Adding more units!

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
maxburg96

Adding more units!

Post by maxburg96 »

Ive created a very simple map and I want to have a buttload of units fighting on it at the same time. Ive edited the proper script files and my reinforcement number goes up properly but there are still only 32 units per side on the battlefield. Im new so any suggestions would be great. Thanks. :lol:
xwingguy

Post by xwingguy »

myTeamConfig = {
all = {
team = ALL,
units = 32,
reinforcements = -1,
pilot = { "all_inf_pilot",23},
marine = { "all_inf_marine",6},
special = { "all_inf_wookiee", 3},

},

imp = {
team = IMP,
units = 32,
reinforcements = -1,
pilot = { "imp_inf_pilot",20},
marine = { "imp_inf_marine",6},
officer = { "imp_inf_officer", 3},
special = { "imp_inf_dark_trooper", 3},
}


change the bolded numbers
maxburg96

Post by maxburg96 »

hmmmm, i did that. i just added a zero behind each of the default numbers, but i certainly didnt have 500 units on the battlefield.
xwingguy

Post by xwingguy »

I do believe there is a limit on that.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Post by [RDH]Zerted »

look up Uber mode
maxburg96

Post by maxburg96 »

There didnt seem to be a limit in the Hypori: Grievous Attacks map. There were droids coming from everywhere. What the heck is uber mode? Thanks for the replies so far.
PvtParts
Jedi
Jedi
Posts: 1001
Joined: Mon Apr 03, 2006 9:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: plundering yer booty

Post by PvtParts »

from what ive been able to uncover uber mode simply takes away restrictions that normally serve as a performance buffer.

So basically, you have uber (or almost) controls over things such as unit count and teams
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

[RDH]Zerted wrote:look up Uber mode
Use search.
darth-jedi

Post by darth-jedi »

TIP: Okay, you guys probably already know this, but, for more playable unit classes on a ground map, just add the marine and pilot class to it.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

Have you tried that? Typically my experience has been that it replaces the engineer and rifleman. It's much easier just to put AddUnitClass([sidename], "[odf name]", [min],[max])
PvtParts
Jedi
Jedi
Posts: 1001
Joined: Mon Apr 03, 2006 9:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: plundering yer booty

Post by PvtParts »

be sure to check with the tatooine lua to see how to properly add units (its set up sort of differently, and if done wrong it can cause crashes and just all around problems)
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Post by [RDH]Zerted »

By default, you can use some or all of "soldier", "pilot", "assault", "sniper", "marine", "engineer", "officer", and "special" with SetupTeams.
You can edit setup_teams.lua and make it take whatever you want. Just remember max of 10 unit classes per team.

Figured out how to use UberMode maxburg96?
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

Post by Penguin »

its 12, not 10 lol
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Post by [RDH]Zerted »

off topic: you can only view/select 10 units (shortcut keys 1 through 0 ) in the spawn screen. If you don't believe me, read ifs_pc_spawnselect.lua. You can mod it to show more unit selection buttons, but the game won't use them.
Post Reply