Unit Amount Problem [Solved]

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
Chamboozer
Rebel Colonel
Rebel Colonel
Posts: 604
Joined: Sat Apr 16, 2005 4:57 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Unit Amount Problem [Solved]

Post by Chamboozer »

To make more units spawn on the map at one time, you need to change the Highlighted areas in the LUA, right? Well, I changed them, and there's only 16 units on the map, what have I done wrong?

SetupTeams{
rep = {
team = REP,
units = 100,
reinforcements = 500,
soldier = { "rep_inf_ep2_rifleman",80, 90},
assault = { "rep_inf_ep2_rocketeer",1, 4},
engineer = { "rep_inf_ep2_engineer",1, 4},
sniper = { "rep_inf_ep2_sniper",10, 15},
officer = {"rep_inf_ep3_officer",1, 4},
special = { "rep_inf_ep2_jettrooper_sniper",1, 4},
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

RE: Unit Amount Problem

Post by Darth_Z13 »

Maybe because the max unit count you set is 100 but the max unit count for the individual units add up to 121? :?
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Unit Amount Problem

Post by AceMastermind »

Chamboozer wrote:To make more units spawn on the map at one time, you need to change the Highlighted areas in the LUA, right? Well, I changed them, and there's only 16 units on the map, what have I done wrong?
You might also want to add this to the LUA for that many units to spawn:

Code: Select all

SetUberMode(1);
Chamboozer
Rebel Colonel
Rebel Colonel
Posts: 604
Joined: Sat Apr 16, 2005 4:57 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Re: Unit Amount Problem

Post by Chamboozer »

SetUberMode(1);
Add that where? Anywhere?
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Where to put SetUberMode(1); in the LUA

Post by AceMastermind »

Add it under the:

Code: Select all

 function ScriptPostLoad()
section
like this:

Code: Select all

conquest:Start()
SetUberMode(1); --Added this line
EnableSPHeroRules()
Chamboozer
Rebel Colonel
Rebel Colonel
Posts: 604
Joined: Sat Apr 16, 2005 4:57 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Chamboozer »

Thanks to all of you, It works now. This solves my balancing issues now rofl. (fighting the automatic artillery with 16 units was a bloodbath for the republic)
Post Reply