Page 1 of 1

question about ai fleet buildup and agendas

Posted: Sat Nov 12, 2011 11:32 am
by usane
Hi!

I want to mod the ai fleet buildup. I know how to do it in UE , but i have 2 question about it.
1. Where is ai agendas defined?
I mean, ai start with normal expansion, change when encounter an other major, or change even when encounter minor, and etc. So where can i find it, what are the rules of these.

2. I know that Joker made a mod what makes ai build the newest ships, and it is in the newest ECM mod, or maybe in UDM, but i didnt find it separately. So how can i do that. I did find that the ai build ships depending on the actual agenda, and build the ship with lowest id, but i didnt find how to change it to convince the ai to build heavy ships too.
is it enough if i change the ahips id order, or what have to do to work flawlessly?

Re: question about ai fleet buildup and agendas

Posted: Sat Nov 12, 2011 1:36 pm
by Tethys
Open trek.exe with UE and its in there somewhere, Its not a long list Im sure you will find it if you want to ;)

Edit: ok you said you know how to with UE, well, I dont really know any other way that hex editing, which is harder and more prone to user error. Its in the ship building sets, I believe.

Re: question about ai fleet buildup and agendas

Posted: Sat Nov 12, 2011 2:03 pm
by xDx
usane if you are referring to when each AI build set takes effect then to my Pakled knowledge ;) there is no way to know when they do for sure but i just take how they are worded in UE... for example the AI starts off with normal expansion and then follows with unopposed expansion (should be the other way but its not lol) then the consolidations are the "buildup before a war" phase I believe is how the AI feels compared to hostile or peaceful minors and/or how strong the military strength is of another empire AI or player controlled. Defensive war is the ships they build when they are being invaded imo etc etc etc. It is hard to explain but the best way really imo is just to test with a couple of ships in each ship building set for one empire and see what ships they build based on whom they met already or if they havent met anybody yet (this is what I did). Hope this helps :?

Re: question about ai fleet buildup and agendas

Posted: Sat Nov 12, 2011 2:17 pm
by usane
Yes xDx, i wanted to know that, but seems no answer yet, maybe one day our code masters will figure it out. Thanx for your answer.
Then my second question can be answered, i'm sure.

Re: question about ai fleet buildup and agendas

Posted: Sat Nov 12, 2011 2:54 pm
by thunderchero
usane wrote:Then my second question can be answered, i'm sure.

I think you are talking about ship order of the ship list this only applies to ships of the same class

example;

destroyer
destroyer II (upgrade of destroyer)
destroyer III (upgrade of destroyer II)

this is if all ships upgrade the other, but if you have 2 types of destroyer

it should be like this example so the AI will build defiant not destroyer III

Defiant
destroyer
destroyer II (upgrade of destroyer)
destroyer III (upgrade of destroyer II)

If it is like below it would build destroyer III not defiant

destroyer
destroyer II (upgrade of destroyer)
destroyer III (upgrade of destroyer II)
Defiant

This has no hex editing and can be done with UE just by moving ships up and down on ship list.

thunderchero

Re: question about ai fleet buildup and agendas

Posted: Sat Nov 12, 2011 2:59 pm
by usane
Yesss, that's what i wanted to know. Thank u TC.
I'm already testing it.

Thank u guys again.

Re: question about ai fleet buildup and agendas

Posted: Sat Nov 12, 2011 3:23 pm
by usane
Its work fine, although it messed up my old saved games.

Re: question about ai fleet buildup and agendas

Posted: Sat Nov 12, 2011 11:01 pm
by Darth_Windu
Yes it will do that as the ship list is different, BotF saves the position of the ship in the list, not the ship itself.

TC - this would work with any type of ship? So if I made my Obsidian Order Keldon and make it lower than the Battleship II, the AI won't build it?

Re: question about ai fleet buildup and agendas

Posted: Tue Nov 15, 2011 4:05 pm
by usane
I suppose yes, as my experiences shows neither of major build same ship type with larger ID.

Re: question about ai fleet buildup and agendas

Posted: Tue Nov 15, 2011 6:31 pm
by Peter1981
to clarify DW & usane

the AI will buid the lowest ship ID that matches the class it is trying to build.
however w.r.t. upgrades these must be below the pre-cursors.
i.e. Destroyer II's must always follow Destroyer I's et al.

This is only re itterating what TC has said.

Re: question about ai fleet buildup and agendas

Posted: Tue Nov 15, 2011 9:12 pm
by Darth_Windu
All good Peter, what I'm looking at is an extra Keldon rather than adding as an upgrade :-)

Re: question about ai fleet buildup and agendas

Posted: Wed Nov 16, 2011 4:23 am
by Peter1981
to be clear yes place the obsidian order ship below all other of the same class.