Log in

View Full Version : Modding Question


travislp
March 23rd, 2002, 07:36 PM
What file determines the default facilities that are used to place on homeworlds at the start of a game.

Phoenix-D
March 23rd, 2002, 08:36 PM
It's hard-coded.

Phoenix-D

travislp
March 23rd, 2002, 08:41 PM
I noticed in the porportions mod the default facilites are different. If it's hard coded how'ed he do it.

Andrés
March 23rd, 2002, 10:05 PM
I'm not an expert in editing AI, but every race seems to use something from their own AI_Construction_Facilities.
There are a few entries with
Construction Queue Type := Homeworld
so I'm not sure wich it uses and when.

Phoenix-D
March 23rd, 2002, 10:09 PM
Easy. It's hard-coded to pick the facility that produces the max amount of a certain item. That's why you get level III facilities instead of level I in a normal SE4 High Tech game, for example.

You can test this yourself- make a new facility, no tech required. Now give it boatloads of mineral production- it'll be used instead of the default mineral miners. Give it boatloads of organics/rads/research and it'll be used in place of those. Give it resupply/spaceport, it *might* be used in place of those. etc

I don't think the homeworld type in the construction file does anything, other than maybe telling the AI not to scrap it's homeworld facilities for something "better" http://forum.shrapnelgames.com/images/icons/icon7.gif

Phoenix-D

capnq
March 23rd, 2002, 10:36 PM
<blockquote><font size="1" face="Verdana, Arial">quote:</font><hr> I don't think the homeworld type in the construction file does anything, other than maybe telling the AI not to scrap it's homeworld facilities for something "better" <hr></blockquote>I thought the AIs weren't smart enough to scrap things? Has that been improved in Gold?

I'm sticking to my theory that the Homeworld entries are for rebuilding after an attack destroys facilities.

Sinapus
March 25th, 2002, 09:35 AM
<blockquote><font size="1" face="Verdana, Arial">quote:</font><hr>Originally posted by capnq:
I thought the AIs weren't smart enough to scrap things? Has that been improved in Gold?

I'm sticking to my theory that the Homeworld entries are for rebuilding after an attack destroys facilities.<hr></blockquote>

That's pretty much what it appears to do.