local teams 3-52 lua lines

Started by Led, May 28, 2012, 10:31:36 PM

Previous topic - Next topic
May 28, 2012, 10:31:36 PM Last Edit: May 28, 2012, 10:36:39 PM by Buckler
I downloaded visual basic 2010--yuk!  So complicated for such a small job...

so (and I'm dating myself) I found my old standby,  quickbasic 4.5 and whipped this up in 15 minutes...


These are all tuskens, but will serve two purposes:

-check to see if we can have 50 local teams
-check to see if we can generate 100 local AI


if this does not work, then try 25 local teams, 10 local teams, etc until it works


note: 
be sure to have enough AIMERS in your memory pool
insert this section of lines into map lua
be sure to load a des.lvl first
you will need a map with CPs defined for teams 1 and 2 (like emps and rebs) and 3-52 for the respective local teams


--Local stats for team       3
SetTeamName( 3 ,"locals")
AddUnitClass( 3 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 3 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  3 , 2)

--Local stats for team       4
SetTeamName( 4 ,"locals")
AddUnitClass( 4 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 4 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  4 , 2)

--Local stats for team       5
SetTeamName( 5 ,"locals")
AddUnitClass( 5 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 5 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  5 , 2)

--Local stats for team       6
SetTeamName( 6 ,"locals")
AddUnitClass( 6 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 6 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  6 , 2)

--Local stats for team       7
SetTeamName( 7 ,"locals")
AddUnitClass( 7 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 7 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  7 , 2)

--Local stats for team       8
SetTeamName( 8 ,"locals")
AddUnitClass( 8 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 8 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  8 , 2)

--Local stats for team       9
SetTeamName( 9 ,"locals")
AddUnitClass( 9 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 9 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  9 , 2)

--Local stats for team       10
SetTeamName( 10 ,"locals")
AddUnitClass( 10 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 10 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  10 , 2)

--Local stats for team       11
SetTeamName( 11 ,"locals")
AddUnitClass( 11 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 11 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  11 , 2)

--Local stats for team       12
SetTeamName( 12 ,"locals")
AddUnitClass( 12 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 12 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  12 , 2)

--Local stats for team       13
SetTeamName( 13 ,"locals")
AddUnitClass( 13 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 13 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  13 , 2)

--Local stats for team       14
SetTeamName( 14 ,"locals")
AddUnitClass( 14 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 14 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  14 , 2)

--Local stats for team       15
SetTeamName( 15 ,"locals")
AddUnitClass( 15 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 15 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  15 , 2)

--Local stats for team       16
SetTeamName( 16 ,"locals")
AddUnitClass( 16 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 16 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  16 , 2)

--Local stats for team       17
SetTeamName( 17 ,"locals")
AddUnitClass( 17 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 17 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  17 , 2)

--Local stats for team       18
SetTeamName( 18 ,"locals")
AddUnitClass( 18 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 18 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  18 , 2)

--Local stats for team       19
SetTeamName( 19 ,"locals")
AddUnitClass( 19 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 19 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  19 , 2)

--Local stats for team       20
SetTeamName( 20 ,"locals")
AddUnitClass( 20 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 20 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  20 , 2)

--Local stats for team       21
SetTeamName( 21 ,"locals")
AddUnitClass( 21 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 21 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  21 , 2)

--Local stats for team       22
SetTeamName( 22 ,"locals")
AddUnitClass( 22 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 22 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  22 , 2)

--Local stats for team       23
SetTeamName( 23 ,"locals")
AddUnitClass( 23 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 23 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  23 , 2)

--Local stats for team       24
SetTeamName( 24 ,"locals")
AddUnitClass( 24 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 24 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  24 , 2)

--Local stats for team       25
SetTeamName( 25 ,"locals")
AddUnitClass( 25 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 25 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  25 , 2)

--Local stats for team       26
SetTeamName( 26 ,"locals")
AddUnitClass( 26 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 26 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  26 , 2)

--Local stats for team       27
SetTeamName( 27 ,"locals")
AddUnitClass( 27 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 27 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  27 , 2)

--Local stats for team       28
SetTeamName( 28 ,"locals")
AddUnitClass( 28 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 28 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  28 , 2)

--Local stats for team       29
SetTeamName( 29 ,"locals")
AddUnitClass( 29 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 29 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  29 , 2)

--Local stats for team       30
SetTeamName( 30 ,"locals")
AddUnitClass( 30 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 30 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  30 , 2)

--Local stats for team       31
SetTeamName( 31 ,"locals")
AddUnitClass( 31 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 31 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  31 , 2)

--Local stats for team       32
SetTeamName( 32 ,"locals")
AddUnitClass( 32 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 32 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  32 , 2)

--Local stats for team       33
SetTeamName( 33 ,"locals")
AddUnitClass( 33 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 33 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  33 , 2)

--Local stats for team       34
SetTeamName( 34 ,"locals")
AddUnitClass( 34 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 34 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  34 , 2)

--Local stats for team       35
SetTeamName( 35 ,"locals")
AddUnitClass( 35 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 35 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  35 , 2)

--Local stats for team       36
SetTeamName( 36 ,"locals")
AddUnitClass( 36 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 36 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  36 , 2)

--Local stats for team       37
SetTeamName( 37 ,"locals")
AddUnitClass( 37 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 37 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  37 , 2)

--Local stats for team       38
SetTeamName( 38 ,"locals")
AddUnitClass( 38 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 38 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  38 , 2)

--Local stats for team       39
SetTeamName( 39 ,"locals")
AddUnitClass( 39 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 39 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  39 , 2)

--Local stats for team       40
SetTeamName( 40 ,"locals")
AddUnitClass( 40 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 40 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  40 , 2)

--Local stats for team       41
SetTeamName( 41 ,"locals")
AddUnitClass( 41 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 41 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  41 , 2)

--Local stats for team       42
SetTeamName( 42 ,"locals")
AddUnitClass( 42 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 42 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  42 , 2)

--Local stats for team       43
SetTeamName( 43 ,"locals")
AddUnitClass( 43 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 43 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  43 , 2)

--Local stats for team       44
SetTeamName( 44 ,"locals")
AddUnitClass( 44 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 44 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  44 , 2)

--Local stats for team       45
SetTeamName( 45 ,"locals")
AddUnitClass( 45 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 45 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  45 , 2)

--Local stats for team       46
SetTeamName( 46 ,"locals")
AddUnitClass( 46 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 46 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  46 , 2)

--Local stats for team       47
SetTeamName( 47 ,"locals")
AddUnitClass( 47 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 47 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  47 , 2)

--Local stats for team       48
SetTeamName( 48 ,"locals")
AddUnitClass( 48 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 48 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  48 , 2)

--Local stats for team       49
SetTeamName( 49 ,"locals")
AddUnitClass( 49 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 49 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  49 , 2)

--Local stats for team       50
SetTeamName( 50 ,"locals")
AddUnitClass( 50 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 50 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  50 , 2)

--Local stats for team       51
SetTeamName( 51 ,"locals")
AddUnitClass( 51 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 51 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  51 , 2)

--Local stats for team       52
SetTeamName( 52 ,"locals")
AddUnitClass( 52 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 52 ,"tat_inf_tuskenhunter", 1);
SetUnitCount(  52 , 2)

Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

May 28, 2012, 11:05:30 PM #1 Last Edit: May 29, 2012, 03:42:01 AM by tirpider
I don't have a map set up to test this at the moment.

I will in a moment. :)

This just looks fun.

-edit
Well...
I got a little map marked off and 50 CP's laid down.
I'm going through each and filling in it's label and team assignments and....

On cp16 it won't let me enter 16 for team.
when I do, it replaces whatever number I type with 15.
(I tried entering all sorts of numbers, but all it would accept is 0 - 15)

I'm pushing forward with that many for the moment.
Is this the edge of out team population limit, perhaps?


- edit
Munge munge munge...
I went over and over mu script and map (not much to go over)
The highest number of teams I could get on the map at once was 7.

1 attacker
1 defender
5 locals

(heh, the cp's are really close, so it's a brawl)

I am not the most experienced at this, so someone that knows more about lvl building might get better results.
I thought it might be that my options were too greedy, so I trimmed the video options all the way down for everything.
Still got crashes.

The Lua used:
[spoiler]--start header
function ScriptInit()
local ALL = 1
local IMP = 2
local ATT = 1
local DEF = 2
--end header
--start objectives
AddMissionObjective(IMP,"red", "level.tst01.objectives.1");
AddMissionObjective(IMP,"orange", "level.tst01.objectives.2");
AddMissionObjective(IMP,"orange", "level.tst01.objectives.3");
AddMissionObjective(ALL,"red", "level.tst01.objectives.1");
AddMissionObjective(ALL,"orange", "level.tst01.objectives.2");
AddMissionObjective(ALL,"orange","level.tst01.objectives.3");
--end objectives
--start soundlvl
ReadDataFile("sound\\tat.lvl;tat1gcw");
--end soundlvl

-- Start sidelvls
ReadDataFile("SIDE\\all.lvl",
"all_inf_basicdesert",
"all_inf_lukeskywalker",
"all_inf_smuggler");
ReadDataFile("SIDE\\imp.lvl",
"imp_inf_basic_tie",
"imp_inf_darthvader",
"imp_inf_dark_trooper");

--load locals for test
ReadDataFile("SIDE\\des.lvl",
"tat_inf_tuskenhunter",
"tat_inf_tuskenraider")
--end sidelvls

--start loadouts
SetTeamName(ALL, "Alliance")
SetTeamIcon(ALL, "all_icon")
AddUnitClass(ALL, "all_inf_soldierdesert",6)
AddUnitClass(ALL, "all_inf_vanguard",1)
AddUnitClass(ALL, "all_inf_pilot",1)
AddUnitClass(ALL, "all_inf_marksman",1)
AddUnitClass(ALL, "all_inf_smuggler",1)
SetHeroClass(ALL, "all_inf_lukeskywalker")
SetTeamName(IMP, "Empire")
SetTeamIcon(IMP, "imp_icon")
AddUnitClass(IMP, "imp_inf_storm_trooper",6)
AddUnitClass(IMP, "imp_inf_shock_trooper",1)
AddUnitClass(IMP, "imp_inf_pilottie",1)
AddUnitClass(IMP, "imp_inf_scout_trooper",1)
AddUnitClass(IMP, "imp_inf_dark_trooper",1)
SetHeroClass(IMP, "imp_inf_darthvader")
--end loadouts
--start teamstats
SetUnitCount(ATT, 10)
SetReinforcementCount(ATT, 200)
SetUnitCount(DEF, 10)
SetReinforcementCount(DEF, 200)
--end teamstats

--start local test
--Local stats for team  3
SetTeamName(  3 ,"locals")
AddUnitClass( 3 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 3 ,"tat_inf_tuskenhunter", 1);
SetUnitCount( 3 , 2)
--Local stats for team  4
SetTeamName(  4 ,"locals")
AddUnitClass( 4 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 4 ,"tat_inf_tuskenhunter", 1);
SetUnitCount( 4 , 2)
--Local stats for team  5
SetTeamName(  5 ,"locals")
AddUnitClass( 5 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 5 ,"tat_inf_tuskenhunter", 1);
SetUnitCount( 5 , 2)
--Local stats for team  6
SetTeamName(  6 ,"locals")
AddUnitClass( 6 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 6 ,"tat_inf_tuskenhunter", 1);
SetUnitCount( 6 , 2)
--Local stats for team  7
SetTeamName(  7 ,"locals")
AddUnitClass( 7 ,"tat_inf_tuskenraider", 1);
AddUnitClass( 7 ,"tat_inf_tuskenhunter", 1);
SetUnitCount( 7 , 2)
--~ --Local stats for team  8
--~ SetTeamName(  8 ,"locals")
--~ AddUnitClass( 8 ,"tat_inf_tuskenraider", 1);
--~ AddUnitClass( 8 ,"tat_inf_tuskenhunter", 1);
--~ SetUnitCount( 8 , 2)
--~ --Local stats for team  9
--~ SetTeamName(  9 ,"locals")
--~ AddUnitClass( 9 ,"tat_inf_tuskenraider", 1);
--~ AddUnitClass( 9 ,"tat_inf_tuskenhunter", 1);
--~ SetUnitCount( 9 , 2)
--~ --Local stats for team 10
--~ SetTeamName( 10 ,"locals")
--~ AddUnitClass(10 ,"tat_inf_tuskenraider", 1);
--~ AddUnitClass(10 ,"tat_inf_tuskenhunter", 1);
--~ SetUnitCount(10 , 2)

--~ --Local stats for team 11
--~ SetTeamName( 11 ,"locals")
--~ AddUnitClass(11 ,"tat_inf_tuskenraider", 1);
--~ AddUnitClass(11 ,"tat_inf_tuskenhunter", 1);
--~ SetUnitCount(11 , 2)
--~ --Local stats for team 12
--~ SetTeamName( 12 ,"locals")
--~ AddUnitClass(12 ,"tat_inf_tuskenraider", 1);
--~ AddUnitClass(12 ,"tat_inf_tuskenhunter", 1);
--~ SetUnitCount(12 , 2)
--~ --Local stats for team 13
--~ SetTeamName( 13 ,"locals")
--~ AddUnitClass(13 ,"tat_inf_tuskenraider", 1);
--~ AddUnitClass(13 ,"tat_inf_tuskenhunter", 1);
--~ SetUnitCount(13 , 2)
--~ --Local stats for team 14
--~ SetTeamName( 14 ,"locals")
--~ AddUnitClass(14 ,"tat_inf_tuskenraider", 1);
--~ AddUnitClass(14 ,"tat_inf_tuskenhunter", 1);
--~ SetUnitCount(14 , 2)
--~ --Local stats for team 15
--~ SetTeamName( 15 ,"locals")
--~ AddUnitClass(15 ,"tat_inf_tuskenraider", 1);
--~ AddUnitClass(15 ,"tat_inf_tuskenhunter", 1);
--~ SetUnitCount(15 , 2)

--end local test

--start alliances
SetTeamAsFriend(ATT, 1)
SetTeamAsEnemy(ATT, 2)
SetTeamAsFriend(DEF, 2)
SetTeamAsEnemy(DEF, 1)
SetAttackingTeam(ATT);
--end alliances

--start memorypools
ClearWalkers()
AddWalkerType(0, 0)-- special -> droidekas
AddWalkerType(1, 0)-- 1x2 (1 pair of legs)
AddWalkerType(2, 0)-- 2x2 (2 pairs of legs)
AddWalkerType(3, 0)-- 3x2 (3 pairs of legs)
--being generous with the aimers
SetMemoryPoolSize("Aimer", 200)
SetMemoryPoolSize("PowerupItem", 60)
SetMemoryPoolSize("EntityMine", 40)
--end memorypools
--start worldlvl
ReadDataFile("dc:tst01\\tst01.lvl")
--end worldlvl
--start spawndelay
SetSpawnDelay(10.0, 0.25)
--end spawndelay
--start flyheight
--end flyheight
--start ainotify
--end ainotify
--start stayinturrets
--end stayinturrets
--start denseenvironment
SetDenseEnvironment("false")
--end denseenvironment
--start birdsandfish
--end birdsandfish
--start deathregions
--end deathregions

--start soundconfig
OpenAudioStream("sound\\tat.lvl","tatgcw_music");
OpenAudioStream("sound\\tat.lvl","tat1");
OpenAudioStream("sound\\tat.lvl","tat1");
OpenAudioStream("sound\\gcw.lvl","gcw_vo");
OpenAudioStream("sound\\gcw.lvl","gcw_tac_vo");
OpenAudioStream("sound\\tat.lvl","tat1_emt");
SetBleedingVoiceOver(ALL,ALL,"all_off_com_report_us_overwhelmed",1);
SetBleedingVoiceOver(ALL,IMP,"all_off_com_report_enemy_losing",1);
SetBleedingVoiceOver(IMP,ALL,"imp_off_com_report_enemy_losing",1);
SetBleedingVoiceOver(IMP,IMP,"imp_off_com_report_us_overwhelmed",1);
SetLowReinforcementsVoiceOver(ALL, ALL, "all_off_defeat_im", .1,1);
SetLowReinforcementsVoiceOver(ALL, IMP, "all_off_victory_im", .1,1);
SetLowReinforcementsVoiceOver(IMP, IMP, "imp_off_defeat_im", .1,1);
SetLowReinforcementsVoiceOver(IMP, ALL, "imp_off_victory_im", .1,1);
SetOutOfBoundsVoiceOver(2,"Allleaving");
SetOutOfBoundsVoiceOver(1,"Impleaving");
SetAmbientMusic(ALL,1.0,"all_tat_amb_start",0,1);
SetAmbientMusic(ALL,0.99,"all_tat_amb_middle",1,1);
SetAmbientMusic(ALL,0.1,"all_tat_amb_end",2,1);
SetAmbientMusic(IMP,1.0,"imp_tat_amb_start",0,1);
SetAmbientMusic(IMP,0.99,"imp_tat_amb_middle",1,1);
SetAmbientMusic(IMP,0.1,"imp_tat_amb_end",2,1);
SetVictoryMusic(ALL,"all_tat_amb_victory");
SetDefeatMusic (ALL,"all_tat_amb_defeat");
SetVictoryMusic(IMP,"imp_tat_amb_victory");
SetDefeatMusic (IMP,"imp_tat_amb_defeat");
SetSoundEffect("ScopeDisplayZoomIn","binocularzoomin");
SetSoundEffect("ScopeDisplayZoomOut","binocularzoomout");
SetSoundEffect("SpawnDisplayUnitChange","shell_select_unit");
SetSoundEffect("SpawnDisplayUnitAccept","shell_menu_enter");
SetSoundEffect("SpawnDisplaySpawnPointChange","shell_select_change");
SetSoundEffect("SpawnDisplaySpawnPointAccept","shell_menu_enter");
SetSoundEffect("SpawnDisplayBack","shell_menu_exit");
SetPlanetaryBonusVoiceOver(IMP,IMP,0,"imp_bonus_imp_medical");
SetPlanetaryBonusVoiceOver(IMP,ALL,0,"imp_bonus_all_medical");
SetPlanetaryBonusVoiceOver(IMP,IMP,1,"");
SetPlanetaryBonusVoiceOver(IMP,ALL,1,"");
SetPlanetaryBonusVoiceOver(IMP,IMP,2,"imp_bonus_imp_sensors");
SetPlanetaryBonusVoiceOver(IMP,ALL,2,"imp_bonus_all_sensors");
SetPlanetaryBonusVoiceOver(IMP,IMP,3,"imp_bonus_imp_hero");
SetPlanetaryBonusVoiceOver(IMP,ALL,3,"imp_bonus_all_hero");
SetPlanetaryBonusVoiceOver(IMP,IMP,4,"imp_bonus_imp_reserves");
SetPlanetaryBonusVoiceOver(IMP,ALL,4,"imp_bonus_all_reserves");
SetPlanetaryBonusVoiceOver(IMP,IMP,5,"imp_bonus_imp_sabotage");--sabotage
SetPlanetaryBonusVoiceOver(IMP,ALL,5,"imp_bonus_all_sabotage");
SetPlanetaryBonusVoiceOver(IMP,IMP,6,"");
SetPlanetaryBonusVoiceOver(IMP,ALL,6,"");
SetPlanetaryBonusVoiceOver(IMP,IMP,7,"imp_bonus_imp_training");--advanced training
SetPlanetaryBonusVoiceOver(IMP,ALL,7,"imp_bonus_all_training");--advanced training
SetPlanetaryBonusVoiceOver(ALL,ALL,0,"all_bonus_all_medical");
SetPlanetaryBonusVoiceOver(ALL,IMP,0,"all_bonus_imp_medical");
SetPlanetaryBonusVoiceOver(ALL,ALL,1,"");
SetPlanetaryBonusVoiceOver(ALL,IMP,1,"");
SetPlanetaryBonusVoiceOver(ALL,ALL,2,"all_bonus_all_sensors");
SetPlanetaryBonusVoiceOver(ALL,IMP,2,"all_bonus_imp_sensors");
SetPlanetaryBonusVoiceOver(ALL,ALL,3,"all_bonus_all_hero");
SetPlanetaryBonusVoiceOver(ALL,IMP,3,"all_bonus_imp_hero");
SetPlanetaryBonusVoiceOver(ALL,ALL,4,"all_bonus_all_reserves");
SetPlanetaryBonusVoiceOver(ALL,IMP,4,"all_bonus_imp_reserves");
SetPlanetaryBonusVoiceOver(ALL,ALL,5,"all_bonus_all_sabotage");--sabotage
SetPlanetaryBonusVoiceOver(ALL,IMP,5,"all_bonus_imp_sabotage");
SetPlanetaryBonusVoiceOver(ALL,ALL,6,"");
SetPlanetaryBonusVoiceOver(ALL,IMP,6,"");
SetPlanetaryBonusVoiceOver(ALL,ALL,7,"all_bonus_all_training");--advanced training
SetPlanetaryBonusVoiceOver(ALL,IMP,7,"all_bonus_imp_training");--advanced training
--end soundconfig

--start activebonus
--end activebonus

--start camerashots
AddCameraShot(-0.404895, 0.000992, -0.914360, -0.002240, -85.539894, 20.536297, 141.699493);
AddCameraShot(0.040922, 0.004049, -0.994299, 0.098381, -139.729523, 17.546598, -34.360893);
AddCameraShot(-0.312360, 0.016223, -0.948547, -0.049263, -217.381485, 20.150953, 54.514324);
--end camerashots

--start footer
end
--end footer
[/spoiler]

I added Buckler's team definitions, loaded des.lvl and set aimers to 200.
I also changed attacker and defender counts to make an even 20 unit count between the 2. (anticipating more locals than I got.)
The rest is bfbuilder's fault :P

I'll poke at it some more tomorrow and see how high I can get the unit count for the locals.
here's the build folder as a curiosity. TEST: 5 Local Teams(8.2 MB)
There are 8 cp's for the locals. I was deleting them, but just started reassigning them as it got tedious.
Yes, the ground is really ugly.

Only 5 local teams is the limit?  :( Oh well..
=AaTc= Forever

SALLY....

-Retired Modder

May 29, 2012, 12:46:49 PM #3 Last Edit: May 29, 2012, 12:52:11 PM by Buckler
Quote from: SnΛke on May 29, 2012, 09:35:13 AM
Only 5 local teams is the limit?  :( Oh well..

It wasn't long ago when we thought that 1 local was the limit...anyway, there are ways to add locals without CP, see mos eisely with the jawa...(i'm not sawing I know *how*, mind you) and think I made mos with more than 5 locals...of course, I hex edited the CPs.
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

It was probably done with invisible cps which don't show up on the map. So still it would be in the 5 limit.
=AaTc= Forever

SALLY....

-Retired Modder

May 29, 2012, 01:18:01 PM #5 Last Edit: May 29, 2012, 01:20:18 PM by Buckler
the CPS dont show in ZE.  anyway, try my mos map, snake, it is in the downloads area
http://www.swbfgamers.com/index.php?action=downloads;sa=view;down=389

try it, let us know...
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

The other cps are red to both teams but nothing spawns out of them.
=AaTc= Forever

SALLY....

-Retired Modder

Quote from: SnΛke on May 29, 2012, 02:14:34 PM
The other cps are red to both teams but nothing spawns out of them.

Please show me your mission file.  Also, the CP colors are going to be all messed up.
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Huh? I just downloaded what you sent me.
=AaTc= Forever

SALLY....

-Retired Modder

Quote from: SnΛke on May 29, 2012, 06:21:54 PM
Huh? I just downloaded what you sent me.

read the description...a mission file with the teams defined is also required--no mission means no locals, no locals means no spawning locals
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Oops, I missed that part. I'll test it tomorrow
=AaTc= Forever

SALLY....

-Retired Modder

Population testing, so far.

I set the ATT and DEF unit counts to 1 per class and 5 overall.
Just to keep them at a low steady number.

For the locals, I'm up to 100 per class and 200 overall, per team, and it isn't crashing.

But it is behaving in 2 strange ways.

1 when they initially spawn, the player unit dissappears.
2 they don't maintain the total population.
They spawn 200 through the 2 spawn points then dwindel down till one of the main factions destroys them.
Perhaps a spawn timer limit of some sort, that needs to be set?