Page 1 of 2
Technical issues - about modifying AI
Posted: Wed Nov 13, 2013 10:18 am
by South
Me again. I'm now having trouble with modifying AI...mainly about the rule of AI purchasing tier buildings.
For example, in ModernCombat, how could I make AI of PLA build T1, T2 and T3 in order (never build T3 unless T2 is complete) and ignore (never build) T4?
I tried to modify rules_tech_purchase.ai, but even slightly modify would cause fatal AI error. Are there any tutorial about this? (I've learned about C and Pascal before, so programming is not a problem)
Re: Technical issues - about modifying AI
Posted: Wed Nov 13, 2013 11:41 am
by I_am_a_Spoon
I'm not sure there's anyone on the team who can actually help you. We haven't had a proper AI guy since before release.
Re: Technical issues - about modifying AI
Posted: Wed Nov 13, 2013 5:15 pm
by South
OK I see...so you guys are simply modifying it to fit new units and more?
BTW, the AI seems like written by Pascal/Delphi...already get AI of tiers done, but still don't understand the whole structure of the AI.
Re: Technical issues - about modifying AI
Posted: Wed Nov 13, 2013 5:21 pm
by I_am_a_Spoon
South wrote:OK I see...so you guys are simply modifying it to fit new units and more?
Pretty much.
Re: Technical issues - about modifying AI
Posted: Thu Nov 14, 2013 10:01 pm
by Darkbladecr
I modified Relic's AI coding and got some help from some AI coders to actually get an AI ingame. But honestly it is not ideal. For the building of tiers you should look in:
ModernCombat\Data\ai\rules_tech_purchase.ai
and put some variables that are not activated until a single T2 building is complete or something along those lines.
Re: Technical issues - about modifying AI
Posted: Fri Nov 15, 2013 12:14 am
by South
Darkbladecr wrote:I modified Relic's AI coding and got some help from some AI coders to actually get an AI ingame. But honestly it is not ideal. For the building of tiers you should look in:
ModernCombat\Data\ai\rules_tech_purchase.ai
and put some variables that are not activated until a single T2 building is complete or something along those lines.
Thank you DB. I modified the condition and demanding value, and the AI looks right now.
You are the Jesus of all CoH modder

Re: Technical issues - about modifying AI
Posted: Fri Nov 15, 2013 12:21 am
by South
BTW, does it involves re-animation works when resizing the model, like you've done to PLA T3 and T4 building in 1.012?
Re: Technical issues - about modifying AI
Posted: Fri Nov 15, 2013 7:06 am
by I_am_a_Spoon
I_am_a_Spoon wrote:I'm not sure there's anyone on the team who can actually help you.
Glad to see I was wrong.

Re: Technical issues - about modifying AI
Posted: Sat Nov 16, 2013 9:53 pm
by Darkbladecr
South wrote:BTW, does it involves re-animation works when resizing the model, like you've done to PLA T3 and T4 building in 1.012?
all resizing requires re-animation.
Re: Technical issues - about modifying AI
Posted: Sun Nov 17, 2013 12:52 am
by South
Darkbladecr wrote:South wrote:BTW, does it involves re-animation works when resizing the model, like you've done to PLA T3 and T4 building in 1.012?
all resizing requires re-animation.
I see...