AI Editing -1 reply

Please wait...

BlackHedgehog

Speeding Faster Than Before

50 XP

8th August 2009

0 Uploads

39 Posts

0 Threads

#1 10 years ago

How would one go about adding custom classes to the build lists/etc. Because one mod I downloaded for the Borg already came with Borg Modded AI Files, but I'd like to add my other downloaded classes but the 1.0/-1.0 and so forth really confuse me.




Freyr Advanced Member

A2Files Staff

46,876 XP

6th February 2005

11 Uploads

4,275 Posts

0 Threads

#2 10 years ago

Find the line that commands the AI to build the appropriate shipyard eg;-

"byard2" 1, 1,copy and paste this line so it reads

"byard2" 1, 1, "byard2" 1, 1, Then edit the new line you've just added "byard2" is the ODF filename of what you want it to build. (ie, the cube is bbattle.odf, so "bbattle" is used to build the ship.

"byard2" 1, 1, "bbattle" 1, 1, Copy what is is the file though, not what I have written. This is because the file could have been written as any of the four following variations:- "byard2" 1, "byard2" 1, 1, "byard2" 1, 1, 1, "byard2" 1, 1, 1, 1, And me telling you to do the wrong one would make it crash.

Regardless, the first figure tells the AI how many of that object to build, the second tells it where to build it (ignore this line!) the third line tells it how many times to rebuild it if it gets blown up and the forth number is for the tech level.




BlackHedgehog

Speeding Faster Than Before

50 XP

8th August 2009

0 Uploads

39 Posts

0 Threads

#3 10 years ago

Okay I'll give you an example, say I wanted it to build the Prometheus right...well you have say the Sovereign which says this...

"fbattle", 4,0, -1, 0, // Sovereign

Also what I found was that there was several duplicates of vessels such as the Intrepid, this is what I need to have explained. I assume that Defensive List, Offensive List, etc has the same stuff.




bgil

Let No Evil Escape My Sight.

50 XP

3rd February 2007

0 Uploads

128 Posts

0 Threads

#4 10 years ago

You may want to check out starbase34.net, as they have a good tutorial on AI files.




BlackHedgehog

Speeding Faster Than Before

50 XP

8th August 2009

0 Uploads

39 Posts

0 Threads

#5 10 years ago

It explained it sort of...but I think I'd still rather someone else do it. :P




Freyr Advanced Member

A2Files Staff

46,876 XP

6th February 2005

11 Uploads

4,275 Posts

0 Threads

#6 10 years ago

BlackHedgehog;4971940Okay I'll give you an example, say I wanted it to build the Prometheus right...well you have say the Sovereign which says this...

"fbattle", 4,0, -1, 0, // Sovereign

Also what I found was that there was several duplicates of vessels such as the Intrepid, this is what I need to have explained. I assume that Defensive List, Offensive List, etc has the same stuff.

There being several duplicates means that it's getting built several times throughout the game.

Defensive, Offensive etc are all used at different points in the game, depending on a lot of different factors that we are only just starting to unpick now. The best thing to do is just add it to all of them.

I don't know exactly what the filename of your prometheus is, you'll need to check that yourself, but whatever the filename is that's what you need to put in the AIP. For instance, assuming the ODF filename is prometheus.odf then you would put this in your AIP:-

"fprometheus ", 4,0, -1, 0, // Prometheus