.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   SEV Modders Knowledge Base (http://forum.shrapnelgames.com/forumdisplay.php?f=154)
-   -   Component-dependant engines (http://forum.shrapnelgames.com/showthread.php?t=32202)

Fyron December 8th, 2006 03:05 AM

Re: Component-dependant engines
 
You can always use abiliites that are non-functional in the file in question...

shinigami December 8th, 2006 08:18 AM

Re: Component-dependant engines
 
Yeah, but if MM wants to make the game really mod friendly (more so than it already is http://forum.shrapnelgames.com/images/smilies/happy.gif ) why not take it all the way and come up with a method for us to use custom dummy abilities?

Of course, this would be something for the future, for now, kill those bugs! http://forum.shrapnelgames.com/images/smilies/laugh.gif

Raapys December 8th, 2006 10:57 AM

Re: Component-dependant engines
 
Well, turns out it was alot easier than using the ability stuff, I got the Get_Design_Specific_Component_Count to work, meaning I don't need to check for any abilities at all. It would be nice if it actually worked on the engine requirements themselves, though, instead of having to give that requirement to every single ship.

Noble713 December 9th, 2006 11:51 PM

Re: Component-dependant engines
 
Quote:

Raapys said:
I tried using it in the 'movement amount' formula on the engines( i.e. tried setting movement point amount to 0 if no reactor present).

There's simply no way this will work.

Do we know functions DO work in the movement formula?

Phoenix-D December 9th, 2006 11:53 PM

Re: Component-dependant engines
 
Oh, they work. The problem is that some functions don't work in components.txt, including the ones you'd need for this trick.

Noble713 December 10th, 2006 12:28 AM

Re: Component-dependant engines
 
Quote:

Phoenix-D said:
Oh, they work. The problem is that some functions don't work in components.txt, including the ones you'd need for this trick.

But you can also add abilities directly to ships in vehiclesizes.txt. When I've added movement-generation abilities using formulas to ship hulls, they never work.

For example, Combat Movement with the formulas Get Specific Component Count or Get Design Ability Total do nothing. So problems with the movement formula extend beyond just components.txt.

Phoenix-D December 10th, 2006 12:49 AM

Re: Component-dependant engines
 
It might be those functions only work in requirements, then.

gloryhound April 13th, 2009 06:48 PM

Re: Component-dependant engines
 
I have added just this function to my custom blend of the game, however I used a Reactor piece, didn't make it mandatory. What I did do was removed all but a basic amount of "supply" from ship engines. Changed the ships all over to a fuel based system. Instead of Ion Engines for lvl 1 you get Solar Sails which have 10 supply takes no supply to use and 0.5 movement, and because it's classified as a "engine" the AI will use it. I also redefined supply storage as fuel tanks which are fragile and only hold a small amount, only in late game can you forgo a reactor and have any range. The principle is that the reactor uses your fuel to improve efficiency of the fuel, much like a real ship would use fuel to generate thrust and energy. so just modify AI ship building priorities to include a minimum of supply storage and viola.
I liked this especially because it made my very first ship feel very low tech, with solar sails that were fragile, large and slow, but free to use.

Patupi January 3rd, 2012 08:27 PM

Re: Component-dependant engines
 
I'd just like to thanks all the posts here. I had been struggling trying to get mutually exclusive devices (only one type of engine on a ship etc) and couldn't get anywhere. The AI Tag # thing worked perfectly! Thanks. Prior to that no amount of boolean logic seemed to exclude things other than to say '1 of this type allowed'.

A query on a similar vein. I'd like for engines to use fuel based on the number of engines has anyone tried dividing the fuel use by the vessel move to get supply useage? In every mod I've played two ships with the same number of engines but different ship masses will have different fuel useages as the supply listed is used for every move point! Really weird way of doing that.

(Edit: OK re-read some of this thread. I guess something similar HAS been tried and failed. Is the formula for reading space based move of a ship one that won't work with components.txt?)

Thanks again for the help so far

Skyburn January 14th, 2012 11:11 PM

Re: Component-dependant engines
 
Quote:

Originally Posted by Patupi (Post 791895)
Is the formula for reading space based move of a ship one that won't work with components.txt?

I don't think there is such a formula. All the formula functions are listed in the modding pdf.


All times are GMT -4. The time now is 12:11 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.