View Single Post
  #3  
Old April 8th, 2006, 01:47 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: Eliminating Resupply Depots... =)

Yes. Add AI Tag ## abilities to the facilities you actually want them to build. Next, go into each Mod\Pictures\Races\Racename\Racename_AI_Constructi on_Facilities.txt file and do a find/replace operation of the offending ability with the new AI tag.

This is necessary for any ability with values (ie: not space port or resupply). With valueless abilities, you can fool the AI into thinking the facility you want them to build is more advanced by making it require more total tech levels. They can be redundant.

This method does not require any editing of AI files, so is generally preferable for valueless abilities. Valued abilities only use the value of the ability in question when determining what is "more advanced," whereas valueless abilities are compared by total levels of tech reqs. Last position in the file is a tie breaker in both cases.

For example, you could make Space Port appear to require 5 tech levels thusly:

Name := Space Port
...
Tech Area Req 1 := Cargo
Tech Level Req 1 := 1
Tech Area Req 2 := Cargo
Tech Level Req 2 := 1
Tech Area Req 3 := Cargo
Tech Level Req 3 := 1
Tech Area Req 4 := Cargo
Tech Level Req 4 := 1
Tech Area Req 5 := Cargo
Tech Level Req 5 := 1


A possibly cleaner way is to add an AI Tech tech area with, say, 15 levels. Set its start and raise levels to 15. Make it so that it is unremovable, since you will never want it to be removed. It is only meant to be used to fool AI into using the correct facility. Humans will have AI Tech too, but this is fine because it will allow the ministers to function properly. With the same 5 tech levels example above, it would more cleanly look like:

Name := Space Port
...
Tech Area Req 1 := Cargo
Tech Level Req 1 := 1
Tech Area Req 2 := AI Tech
Tech Level Req 2 := 4

These redundant tech reqs do not change anything in-game; the facilities appear in the same place in the tech tree.
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote