Adding Ai help needed

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

christien62
Private Recruit
Posts: 18
Joined: Tue Mar 19, 2013 5:31 pm
Projects :: No Mod project currently.
Games I'm Playing :: Swtor SWBF2
xbox live or psn: No gamertag set

Adding Ai help needed

Post 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
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Adding Ai help needed

Post by Fiodis »

If you have the Fake Console there's a pretty straightforward command - something like "Maximum AI allowed".
christien62
Private Recruit
Posts: 18
Joined: Tue Mar 19, 2013 5:31 pm
Projects :: No Mod project currently.
Games I'm Playing :: Swtor SWBF2
xbox live or psn: No gamertag set

Re: Adding Ai help needed

Post 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
User avatar
Cleb
Lieutenant General
Lieutenant General
Posts: 711
Joined: Sun Jun 17, 2012 10:12 pm
Projects :: Learning how to use 3DS Max
Games I'm Playing :: BF2 CIV4 MC
xbox live or psn: ˙. ˙. ˙. ˙. ˙. ˙
Location: Somewhere
Contact:

Re: Adding Ai help needed

Post 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.
christien62
Private Recruit
Posts: 18
Joined: Tue Mar 19, 2013 5:31 pm
Projects :: No Mod project currently.
Games I'm Playing :: Swtor SWBF2
xbox live or psn: No gamertag set

Re: Adding Ai help needed

Post 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?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Adding Ai help needed

Post 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.
the best
Private First Class
Posts: 77
Joined: Thu Jun 03, 2010 5:18 pm
Projects :: No Mod project currently.
Games I'm Playing :: Skyrim
xbox live or psn: No gamertag set
Location: Grand Rapids, Michigan

Re: Adding Ai help needed

Post by the best »

Having more than 32 AI per the FAQ:

http://www.gametoast.com/forums/viewtop ... 27&t=12147
noMatt
2nd Lieutenant
2nd Lieutenant
Posts: 398
Joined: Sun Mar 10, 2013 12:30 pm
Projects :: The Map has no name so see alpha
Games I'm Playing :: Crysis Battlefront
xbox live or psn: No gamertag set
Location: Germaneeee
Contact:

Re: Adding Ai help needed

Post 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

christien62
Private Recruit
Posts: 18
Joined: Tue Mar 19, 2013 5:31 pm
Projects :: No Mod project currently.
Games I'm Playing :: Swtor SWBF2
xbox live or psn: No gamertag set

Re: Adding Ai help needed

Post 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
noMatt
2nd Lieutenant
2nd Lieutenant
Posts: 398
Joined: Sun Mar 10, 2013 12:30 pm
Projects :: The Map has no name so see alpha
Games I'm Playing :: Crysis Battlefront
xbox live or psn: No gamertag set
Location: Germaneeee
Contact:

Re: Adding Ai help needed

Post 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
christien62
Private Recruit
Posts: 18
Joined: Tue Mar 19, 2013 5:31 pm
Projects :: No Mod project currently.
Games I'm Playing :: Swtor SWBF2
xbox live or psn: No gamertag set

Re: Adding Ai help needed

Post by christien62 »

i want to change the unit limit to 100 to the map Battle of Naboo and some other space/ground battle maps
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Adding Ai help needed

Post by Fiodis »

If you don't want to use the Fake Console, then you'll need the map maker's permission to do whatever.
christien62
Private Recruit
Posts: 18
Joined: Tue Mar 19, 2013 5:31 pm
Projects :: No Mod project currently.
Games I'm Playing :: Swtor SWBF2
xbox live or psn: No gamertag set

Re: Adding Ai help needed

Post by christien62 »

the fake console commands wont work i go to any map and set it to 200 but it never goes over 32
noMatt
2nd Lieutenant
2nd Lieutenant
Posts: 398
Joined: Sun Mar 10, 2013 12:30 pm
Projects :: The Map has no name so see alpha
Games I'm Playing :: Crysis Battlefront
xbox live or psn: No gamertag set
Location: Germaneeee
Contact:

Re: Adding Ai help needed

Post 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
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Adding Ai help needed

Post 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.
christien62
Private Recruit
Posts: 18
Joined: Tue Mar 19, 2013 5:31 pm
Projects :: No Mod project currently.
Games I'm Playing :: Swtor SWBF2
xbox live or psn: No gamertag set

Re: Adding Ai help needed

Post 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
noMatt
2nd Lieutenant
2nd Lieutenant
Posts: 398
Joined: Sun Mar 10, 2013 12:30 pm
Projects :: The Map has no name so see alpha
Games I'm Playing :: Crysis Battlefront
xbox live or psn: No gamertag set
Location: Germaneeee
Contact:

Re: Adding Ai help needed

Post 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?
christien62
Private Recruit
Posts: 18
Joined: Tue Mar 19, 2013 5:31 pm
Projects :: No Mod project currently.
Games I'm Playing :: Swtor SWBF2
xbox live or psn: No gamertag set

Re: Adding Ai help needed

Post 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
User avatar
Cleb
Lieutenant General
Lieutenant General
Posts: 711
Joined: Sun Jun 17, 2012 10:12 pm
Projects :: Learning how to use 3DS Max
Games I'm Playing :: BF2 CIV4 MC
xbox live or psn: ˙. ˙. ˙. ˙. ˙. ˙
Location: Somewhere
Contact:

Re: Adding Ai help needed

Post 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? :?
christien62
Private Recruit
Posts: 18
Joined: Tue Mar 19, 2013 5:31 pm
Projects :: No Mod project currently.
Games I'm Playing :: Swtor SWBF2
xbox live or psn: No gamertag set

Re: Adding Ai help needed

Post by christien62 »

i did everything there but still every time i spawn or finish loading i crash to my desktop no error
Last edited by christien62 on Sat Mar 23, 2013 6:47 pm, edited 2 times in total.
Post Reply