Star Wars: Battlefront 2 (Classic, 2005)

Star Wars: Battlefront 2 (Classic, 2005)

lizagna May 3, 2015 @ 4:50pm
Help With Glitches and AI
Hi! I JUST got battlefront 2 today. I played it when i was 7 so i just barly remeber some of it.
As much as i love the game HOLY **** THE AI IN THE GAME ARE SO ******** THEY WALK RIGHT PAST ME!!! Is there a way to fix THAT?????

Also I had 2 Minor texter glitches...no big deal,
But there is an Audio glitch that drives me NUTS after a wile....bacily for 2-7 seconds the audio lags....it sounds like its gonna crash...but i can play. Only durring capture the flag SOMETIMES i lag too :/ Can ANYONE fix it???
Please it would be great!
thx 4 ur help,
xXNekoMimiXx
< >
Showing 1-2 of 2 comments
Delta0175 May 3, 2015 @ 6:53pm 
Not sure if you're interested in mods, but I've heard that BFX and The Dark Times II has better AI

http://starwarsbattlefront.filefront.com/file/Dark_Times_II_Rising_Son;116087

http://starwarsbattlefront.filefront.com/file/Battlefront_Extreme;96607

As for a stand alone mod I haven't seen any, though someone mentioned in this discussion:

http://steamcommunity.com/app/6060/discussions/0/613956964592794935/

That they're working on one.

You could also use the fake console to tweak them yourself.

Originally posted by Jaspo:
Anyway, I think you should maybe be able to enter the SetAIDifficulty command in the 1.3 patch's fake console if you have that installed (there's an option for typing in code commands to execute), though you'd have to do it for each mission you play.

the values are for each team, 1 is 1 better than normal, 10 is 10 better. Which means they don't miss.

The function can actually take 3 values, I just found the "instructions":

SetAIDifficulty(number{friends}, number{enemys}, difficulty{easy,medium,hard}});

so you can limit it to only go into effect on hard difficulty, for example:

SetAIDifficulty(3,6,hard) <-I think this would be correct. Either that or maybe 3,6,2 (if 0=easy, 1=medium, and 2=hard)

Also for snipers, to improve their range, try AISnipeSuitabilityDist(1000)
where 100 is pretty close but 1000 is getting out there a fair distance - or try a bigger number than that if you want.
or
SetDefenderSnipeRange(1000)
SetAttackerSnipeRange(1000)
-capitalization does matter-

I've created quite a few mod maps in which I've tweaked the difficulty settings.

Originally posted by Jaspo:
Just tested it, it works, SetAIDifficulty(10,10) is actually a decent difficulty level imo. Note that it makes them fire sooner and more accurately, but unfortunately doesn't cure their other silly quirks.

To use the fake console's code console, when in a game hit esc to get to the menu, choose "fake console" then third item on the list, "code console"...a dialogue pops up "please enter some lua code to run, remember it must be a function" or similar, behind it you have a text box-like thing and "500", don't click anything on the dialogue pop up, instead hold delete to clear the 500 and type in the function (SetAIDifficulty or whatever), *then* hit enter and?/or click "yes" on the popup dialogue, which takes you back to the fake console menu. Esc out of this, then return to game from the normal ingame menu.

The function you entered should now be in effect, to test that you're doing it right, type in this instead (in a conquest match):

SetReinforcementCount(1,0);

which should make you either win or lose the match immediately, by setting the reinforcement count of team 1 to 0.

Also found this, not sure how it differs:
SetTeamAggressiveness(team, number);

teams are 1 and 2 (and 3 for locals such as ewoks or jawas) so this would be for example,

SetTeamAgressiveness(1,6)

SetDenseEnvironment("boolean");
so "true" or "false", 1 or 0 also works I think; this function changes how far away the ai will engage enemy troops.

EnableAIAutoBalance();

DisableAIAutoBalance();

AIAutoBalance automatically increases the difficulty level of a team when it is losing badly, and by default is enabled.

As for the audio issue, try this:

Originally posted by |)in-d1n:
1. Right-Click on "Star Wars Battlefront II" in Steam
2. Select Properties
3. Click "Set launch options"
4. Place "/audiomixbuffer 50" (without quotes) into the field and click OK
5. Close the properties window for "Star Wars Battlefront II"
lizagna May 4, 2015 @ 1:56pm 
Originally posted by Delta0175:
Not sure if you're interested in mods, but I've heard that BFX and The Dark Times II has better AI

http://starwarsbattlefront.filefront.com/file/Dark_Times_II_Rising_Son;116087

http://starwarsbattlefront.filefront.com/file/Battlefront_Extreme;96607

As for a stand alone mod I haven't seen any, though someone mentioned in this discussion:

http://steamcommunity.com/app/6060/discussions/0/613956964592794935/

That they're working on one.

You could also use the fake console to tweak them yourself.

Originally posted by Jaspo:
Anyway, I think you should maybe be able to enter the SetAIDifficulty command in the 1.3 patch's fake console if you have that installed (there's an option for typing in code commands to execute), though you'd have to do it for each mission you play.

the values are for each team, 1 is 1 better than normal, 10 is 10 better. Which means they don't miss.

The function can actually take 3 values, I just found the "instructions":

SetAIDifficulty(number{friends}, number{enemys}, difficulty{easy,medium,hard}});

so you can limit it to only go into effect on hard difficulty, for example:

SetAIDifficulty(3,6,hard) <-I think this would be correct. Either that or maybe 3,6,2 (if 0=easy, 1=medium, and 2=hard)

Also for snipers, to improve their range, try AISnipeSuitabilityDist(1000)
where 100 is pretty close but 1000 is getting out there a fair distance - or try a bigger number than that if you want.
or
SetDefenderSnipeRange(1000)
SetAttackerSnipeRange(1000)
-capitalization does matter-

I've created quite a few mod maps in which I've tweaked the difficulty settings.

Originally posted by Jaspo:
Just tested it, it works, SetAIDifficulty(10,10) is actually a decent difficulty level imo. Note that it makes them fire sooner and more accurately, but unfortunately doesn't cure their other silly quirks.

To use the fake console's code console, when in a game hit esc to get to the menu, choose "fake console" then third item on the list, "code console"...a dialogue pops up "please enter some lua code to run, remember it must be a function" or similar, behind it you have a text box-like thing and "500", don't click anything on the dialogue pop up, instead hold delete to clear the 500 and type in the function (SetAIDifficulty or whatever), *then* hit enter and?/or click "yes" on the popup dialogue, which takes you back to the fake console menu. Esc out of this, then return to game from the normal ingame menu.

The function you entered should now be in effect, to test that you're doing it right, type in this instead (in a conquest match):

SetReinforcementCount(1,0);

which should make you either win or lose the match immediately, by setting the reinforcement count of team 1 to 0.

Also found this, not sure how it differs:
SetTeamAggressiveness(team, number);

teams are 1 and 2 (and 3 for locals such as ewoks or jawas) so this would be for example,

SetTeamAgressiveness(1,6)

SetDenseEnvironment("boolean");
so "true" or "false", 1 or 0 also works I think; this function changes how far away the ai will engage enemy troops.

EnableAIAutoBalance();

DisableAIAutoBalance();

AIAutoBalance automatically increases the difficulty level of a team when it is losing badly, and by default is enabled.

As for the audio issue, try this:

Originally posted by |)in-d1n:
1. Right-Click on "Star Wars Battlefront II" in Steam
2. Select Properties
3. Click "Set launch options"
4. Place "/audiomixbuffer 50" (without quotes) into the field and click OK
5. Close the properties window for "Star Wars Battlefront II"

ill try thx dude :D
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: May 3, 2015 @ 4:50pm
Posts: 2