Page 1 of 1
Increase AI
Posted: Mon Dec 31, 2007 9:00 pm
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.
Re: Increase AI
Posted: Mon Dec 31, 2007 10:34 pm
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
Re: Increase AI
Posted: Mon Dec 31, 2007 11:46 pm
by Grev
Where do you find an XL script/ lua/ req?
Re: Increase AI
Posted: Tue Jan 01, 2008 12:34 am
by NullCommando
Re: Increase AI
Posted: Tue Jan 01, 2008 3:38 am
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?
Re: Increase AI
Posted: Tue Jan 01, 2008 5:01 am
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
Re: Increase AI
Posted: Tue Jan 01, 2008 5:41 am
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?
Re: Increase AI
Posted: Tue Jan 01, 2008 10:49 am
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.

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.
Re: Increase AI
Posted: Tue Jan 01, 2008 5:45 pm
by FragMe!
This is the exact syntax put in in just above the other line I posted for reference
SetUberMode(1);
ReadDataFile("ingame.lvl")