Page 1 of 2

Adding Ai help needed

Posted: Tue Mar 19, 2013 5:49 pm
by christien62
how do i remove or increase the cap on ai units aloud to be on the map at the same time in SWBF2 i would like to put it on 100 i have patch 1.3 and mod tools but i have no idea how to do this plz help

Re: Adding Ai help needed

Posted: Tue Mar 19, 2013 8:02 pm
by Fiodis
If you have the Fake Console there's a pretty straightforward command - something like "Maximum AI allowed".

Re: Adding Ai help needed

Posted: Tue Mar 19, 2013 8:39 pm
by christien62
well i can only reach 32 per team with console im trying to go over that but it wont let me i use the BF2 mod and made my conquest 100 per team and did everything i was suppose to but it doesent work and i dont no what to do

Re: Adding Ai help needed

Posted: Tue Mar 19, 2013 9:02 pm
by Cleb
Just letting you know, having more than 64 AI on a team makes you forced onto team one all of the time (this happened to me in one of my early test maps) When I was working on one of my most recent maps I tested having 64 AI per team then 65, and it was the same.

Re: Adding Ai help needed

Posted: Tue Mar 19, 2013 9:16 pm
by christien62
is there a way for me to take what of the already made maps or custom maps and make them have like 100 or 64+ units?

Re: Adding Ai help needed

Posted: Wed Mar 20, 2013 9:38 am
by Fiodis
Yes, by using the Fake Console. There's also a command like "Enable Uber Mode" or something that removes any spawning limit. And AFAIK you're not forced onto one team, but I've not really tested that much.

Re: Adding Ai help needed

Posted: Wed Mar 20, 2013 11:25 am
by the best
Having more than 32 AI per the FAQ:

http://www.gametoast.com/forums/viewtop ... 27&t=12147

Re: Adding Ai help needed

Posted: Wed Mar 20, 2013 3:54 pm
by noMatt
OK i hate posts that link to a FAQ or something similar.

If you know the answer why not posting??

Its pretty easy: Just add
under that line:

Code: Select all

conquest:Start()
This Line of code

Code: Select all

SetUberMode(1);
Than here:

Code: Select all

SetupTeams{
all = {
team = ALL,
units = 200,           Here's the maximum of all
reinforcements = 1000,
soldier = { "all_inf_rifleman",(here number for minimun Unit count),(Here the one for the maximun)},    

Put in a number as high as you want it (for every unit)

Apply it to every to both sides or it wont be fun :D


Re: Adding Ai help needed

Posted: Wed Mar 20, 2013 4:00 pm
by christien62
what file do i find that conquest or what also for space assault

EDIT1
ok i got it to work but how do i mod custom maps

EDIT2
like i make a world but i wanna do it for maps custom made by other people

Making multiple posts in a row is against the RULES; please EDIT your post instead -Staff

Re: Adding Ai help needed

Posted: Wed Mar 20, 2013 4:15 pm
by noMatt
you wanna change the lua's from other maps?
As long as you dont have the permission and the lua you wont get it to work :D

Re: Adding Ai help needed

Posted: Wed Mar 20, 2013 4:25 pm
by christien62
i want to change the unit limit to 100 to the map Battle of Naboo and some other space/ground battle maps

Re: Adding Ai help needed

Posted: Wed Mar 20, 2013 4:59 pm
by Fiodis
If you don't want to use the Fake Console, then you'll need the map maker's permission to do whatever.

Re: Adding Ai help needed

Posted: Wed Mar 20, 2013 5:01 pm
by christien62
the fake console commands wont work i go to any map and set it to 200 but it never goes over 32

Re: Adding Ai help needed

Posted: Wed Mar 20, 2013 5:42 pm
by noMatt
Because the luas are "compiled" (i know it really isnt because its a script, but its in a own script format) you wont be able to edit them. The only thing you could try is in fake console click type own lua code (or something similar dunoo whats exactly the ui text)

and then type the lines i posted above

Re: Adding Ai help needed

Posted: Wed Mar 20, 2013 5:48 pm
by AQT
@christien62: Please don't make multiple posts in a row, as it is against the Site Rules, especially within minutes of each other, so don't do it again please. If you have anything new to add, just edit your old post. Also, please take the time to clearly type out your messages so that others can easily understand what it is you are conveying.
noMatt wrote:OK i hate posts that link to a FAQ or something similar.

If you know the answer why not posting??
And why bother asking a question that has already been answered in "a FAQ or something similar"? If you have eyes and fingers, then just search through the Everything You Need thread or use the search function to find the answer. There's nearly eight years worth of SWBF2 modding information on this site, so you're bound to find an answer. But a new person might not know this, so linking to "a FAQ or something similar" instead of writing out another post telling the person the same answer lets that person know that the answer is already out there and that any similar questions they might subsequently ask will probably have already been answered in "a FAQ or something similar." It fosters independence instead of laziness, which is a good thing.

Re: Adding Ai help needed

Posted: Wed Mar 20, 2013 5:52 pm
by christien62
well what would i type in the LUA code could u show me how or what i should type Edited: also the original maps for this game i have the worlds and stuff and i save it to my new map but when i start it in BF2 it comes up with this full out grass map and no ai will spawn how do i use the original maps in my custom maps so i can mod them to have more ai

Re: Adding Ai help needed

Posted: Thu Mar 21, 2013 4:16 pm
by noMatt
OK AQT thats right sorry for that.
Generally the first place to look for ANY Information about BF2 Modding is the GT FAQ. After that the shipped docs.
And i know i'm not a moderator but isnt that a Modding Question? Why is it in SWBF2 Generall?

Re: Adding Ai help needed

Posted: Thu Mar 21, 2013 4:48 pm
by christien62
when im making space maps how do i add more capital ships or is there something i have to download also when im making a world is there a way for me to copy over a map like naboo or something i just took the naboo world and put it in my custom map but every time i spawn i crash

Re: Adding Ai help needed

Posted: Thu Mar 21, 2013 5:31 pm
by Cleb
christien62 wrote:also when im making a world is there a way for me to copy over a map like naboo or something i just took the naboo world and put it in my custom map but every time i spawn i crash
http://www.gametoast.com/forums/viewtop ... =27&t=8519 Why can't anyone just read the faq? :?

Re: Adding Ai help needed

Posted: Thu Mar 21, 2013 6:12 pm
by christien62
i did everything there but still every time i spawn or finish loading i crash to my desktop no error