Increase AI

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Fingerfood
Sith
Sith
Posts: 1262
Joined: Fri Nov 30, 2007 9:40 pm

Increase AI

Post by Fingerfood »

Okay, I edited the .lua here:

Code: Select all

    SetupTeams{
        heroes = {
            team = ALL,
            units = 100,
                reinforcements = -1,
and here:

Code: Select all

    SetupTeams{
        villians = {
            team = IMP,
            units = 110,
            reinforcements = -1,
But when I tested the game, there was the same amount of AI!
Yes, I did munge.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Increase AI

Post by FragMe! »

have a look at any XL game mode near the top will be a line that is something like:

SetUbermode = 1

copy that line to your LUA
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Re: Increase AI

Post by Grev »

Where do you find an XL script/ lua/ req?
NullCommando
Jedi
Jedi
Posts: 1010
Joined: Sat Dec 01, 2007 12:29 pm
Games I'm Playing :: Destiny
xbox live or psn: NullCommando
Location: Earth

Re: Increase AI

Post by NullCommando »

Just follow what I did in the second post:
http://www.gametoast.com/forums/viewtop ... 27&t=12147
Fingerfood
Sith
Sith
Posts: 1262
Joined: Fri Nov 30, 2007 9:40 pm

Re: Increase AI

Post by Fingerfood »

FragMe! wrote:have a look at any XL game mode near the top will be a line that is something like:

SetUbermode = 1

copy that line to your LUA
Can I just copy that?
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: Increase AI

Post by MercuryNoodles »

No. The syntax is wrong, which is why looking at an XL mode lua was suggested. Look at this link, which I grabbed from the FAQ thread:

http://www.gametoast.com/forums/viewtop ... 27&t=12147
Fingerfood
Sith
Sith
Posts: 1262
Joined: Fri Nov 30, 2007 9:40 pm

Re: Increase AI

Post by Fingerfood »

Um, I don't have a ABCc_con.lua (or whatever it is) or ABCg_con.lua. Remember, I need this for assault or eli mode.

In my data_CDU\Common\scripts\CDU folder, I have the following:
  • CDUc_1flag.lua.bak
    CDUc_con.lua.bak
    CDUc_ctf.lua.bak
    CDUg_1flag.lua.bak
    CDUg_con.lua.bak
    CDUg_ctf.lua.bak
    CDUg_eli
    CDUg_eli.lua.bak
And my CDUg_eli is the only .lua file, while all of the others are .bak files.

BTW, now that I have released the 3-letter code for my map (CDU), does anyone know if there is already a map called CDU?
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: Increase AI

Post by MercuryNoodles »

As far as I know, it works for all gametypes. All luas are setup basically the same way. I think the only luas where you might need to do anything different is with a space lua. I believe the placement is different for those.

As for .bak files, that's nothing special. :P It's not any sort of proprietary format. That just siginifies it's a backup. Remove the extension, and you have a working lua, though you may have to do a little more work to add the mode fully, which I won't go into here.

Btw, turn off "hide extensions for known file types". ;) You're more likely to activate a virus with that on.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Increase AI

Post by FragMe! »

This is the exact syntax put in in just above the other line I posted for reference

SetUberMode(1);
ReadDataFile("ingame.lvl")
Post Reply