Page 1 of 1
AI Attacking own CP
Posted: Thu Jun 04, 2009 8:21 pm
by myers73
as you can see, my AI units are going towards their own CPs. plz help

Re: AI Attacking own CP
Posted: Fri Jun 05, 2009 9:46 am
by 501st_commander
Do you use hub and connections? They might try going to and past there own cp to get to others. Hubs and connections will guide the Al to where you want them to go.
Re: AI Attacking own CP
Posted: Fri Jun 05, 2009 9:47 am
by DarthD.U.C.K.
you could have to place hubs all around the cp
and if its captured by the enemys the clones wouldnt capture it i think (because they are constantly running into the the hubs..)
did you change the ai-goals anyhow?
Re: AI Attacking own CP
Posted: Fri Jun 05, 2009 10:10 am
by myers73
Yes, I did add planning, and barriers.
planning
barriers
plans and barriers
in the pic in my first post, the AI are attacking the cp that is on top of the middle-bottom of the six platforms in the lower left hand corner of the pictures.
and no, i have not changed the AI goals, do i need to? and if so, is that in the lua somewhere?
Re: AI Attacking own CP
Posted: Fri Jun 05, 2009 10:23 am
by RepSharpshooter
It looks like some of your connections are overlapping, which is not good I dont think.
Remember that planning is only in 2D, so I'd recommend putting a hub where the planning crosses.
If that's not the case, check your bf2log, it often has statements about hubs and planning if something is going wrong.
Re: AI Attacking own CP
Posted: Fri Jun 05, 2009 11:36 am
by Teancum
RepSharpshooter wrote:It looks like some of your connections are overlapping, which is not good I dont think.
Yep, you can't have planning on top of other planning or AI will get stuck/go crazy/stand there (depending on the situation)
Re: AI Attacking own CP
Posted: Fri Jun 05, 2009 2:07 pm
by FragMe!
What both Rep and Teancum said plus the planning paths you have between the platforms is basically a straight line which means yes if there is a ramp or bridge between the the AI (if up top) will follow it, the thing is though is the AI that is on the ground will also follow it. And since it goes through the middle of the platform that is where they will try to go. And of course you cannot put barriers around them because that will stop everyone (ai) from getting there.
Re: AI Attacking own CP
Posted: Fri Jun 05, 2009 7:36 pm
by myers73
Thanks guys, I will redo all my planning with all of this in mind. Are there any other limitations to planning that i should know about?
EDIT: my BFront2.log is empty, is it in the right place: C:\Program Files\LucasArts\Star Wars Battlefront II\GameData
Re: AI Attacking own CP
Posted: Sat Jun 06, 2009 12:32 am
by [RDH]Zerted
It shouldn't be empty. Are you running the debug version of the game (the one with the green screen?). Only that version generates the debug log. If you are, is your hard drive full (very unlikely)? Does that file only have read-only permissions thus the game can't write to it? Are you using Windows Vista?
Re: AI Attacking own CP
Posted: Wed Jun 10, 2009 4:11 pm
by myers73
im using vista, and how do you run the dubugging version of the game?
Re: AI Attacking own CP
Posted: Thu Jun 11, 2009 2:50 pm
by 501st_commander
you put the bfront2_modtools.exe in C:\Program Files\LucasArts\Star Wars Battlefront II\GameData
then play you map with the bfront2_modtools.exe
now go to C:\Program Files\LucasArts\Star Wars Battlefront II\GameData and click the "compatibility files" at the top, then open you bfront2.log and post it.