2 replies [Last post]
goodplayer
Offline
Joined: 13 Dec 2012
im starting to mod the ini files. one thing: the AI have destroied my thech centre, but i was still able to build objects that were tech-prerequisite.
is tech like one only upgrade and nomore lose the benefits?
if is like that it is not so good, if enemy tears down one structure the damage is most on the features lost....and i have to rebuild to regain the new contruction objects.
or may be i modded bad it...


rampasting: to add new units to AI can you showme an example?
Bittah Commander
Bittah Commander's picture
Offline
Joined: 21 Nov 2009
I do agree that it'd be better if you'd lose any tech gained after building a tech center when it's destroyed, but unfortunately this is an engine limitation and thus can't be changed.
__________________

Rampastring
Rampastring's picture
Offline
Joined: 25 Nov 2009
goodplayer wrote:
rampasting: to add new units to AI can you showme an example?

Open AI(E).ini. Then take some taskforce which the AI builds often, I'll use this one as an example:

[075BFDC0-G]
Name=3 Rocket Launcher
0=4,AIMSAM
1=7,AIMTNK
Group=-1

Now, let's say that you want to add the Phase Tank (Rules.ini ID [PTNK]) to GDI and want to make the AI include the PTNK in this attack taskforce. In this case, add a new line for the Phase Tank, starting with the first free number (2 in this case). After that, type = and then the amount of the specific unit type you want the AI to build. After that, type a comma (',') and the internal ID of the unit, for the Phase Tank this is PTNK.

After adding the Phase Tank, it should be like this:

[075BFDC0-G]
Name=3 Rocket Launcher
0=4,AIMSAM
1=7,AIMTNK
2=4,PTNK
Group=-1

The AI would then build 4 Phase Tanks in that taskforce.

In other words, the format for taskforces is:

[TaskforceId]
Name={Taskforce name}
{some number from 0-6}={number of units},{unit ID in Rules.ini}
{some number from 0-6}={number of units},{unit ID in Rules.ini}
...
{some number from 0-6}={number of units},{unit ID in Rules.ini}
Group=-1

Note that you shouldn't make the TaskForces have too many units (especially expensive ones) or you'll mess up the AI.

Quote:
is tech like one only upgrade and nomore lose the benefits?

Yes, unless you also lose your factories in addition to the tech center. If you for example lose your Weapons Factory after losing your Tech Center, and then you build a new Weapons Factory, you won't be able to build high-tech units until you get a new Tech Center. It's like, building a tech center upgrades your factories.
__________________

DTA for the #2 game at CnCNet! http://cncnet.org/statistics
The staff plays actively there aswell!
Show us your support by following us at ModDB! http://www.moddb.com/mods/the-dawn-of-the-tiberium-age/

--The AI Coder, creator of the Launcher, creator of The Toxic Diversion and a multiplayer mapper of DTA.

 

Website built by Bittah Commander,
hosted by Project Perfect Mod.