Page 1 of 1
Team Management
Posted: Wed Sep 20, 2006 8:08 pm
by TimberWolf
Is there a way to change how many bots spawn on each team and max players allowed on each team? I know I'm pushing my luck, but also how do you change the amount of points given (normally 2) for killing a player in space assault? I'm not talking about the personal points, rather the team ones for space assault.
RE: Team Management
Posted: Thu Sep 21, 2006 12:37 am
by jangoisbaddest
The number of points for killing an enemy can be changed in the gametype LUA (ex. Deathmatch, Conquest), which are in the folder just outside the mission LUA folder in your custom map directory.
RE: Team Management
Posted: Thu Sep 21, 2006 6:00 am
by [RDH]Zerted
You sould let the person setting up the server pick the amount of bots and max players allowed, but it can be set in the Lua.
Use ScriptCB_SetNumBots( [number of bots per team] ) after the objective starts to force the amount of bots per team.
Posted: Thu Sep 21, 2006 8:59 pm
by TimberWolf
Jango: I've found the ObjectiveSpaceAssault.lua but where exactly do you change it? I see pointvalues mentioned but I don't see where it gives these pointvalues to a specific thing.
Zerted: The purpose of this is to give one team more players/bots than the other; about twice as many. I think that'll only set it for both teams?
Posted: Thu Sep 21, 2006 9:14 pm
by [RDH]Zerted
Yes, what I gave you is for both teams. I haven't tried it, but SetUnitCount() should work.
Some examples from the retail maps:
SetUnitCount(ATT, 25)
SetUnitCount(SNIPERS, 4)
SetUnitCount(ambushTeam1, ambushCount1)
SetUnitCount(3, 200)
Posted: Thu Sep 21, 2006 10:02 pm
by TimberWolf
I must be either adding it to the wrong LUA or in the wrong place in the LUA. I've tried puting
SetUnitCount(ATT, 16)
SetUnitCount(DEF, 32)
in both SWSg_Diet Dr. Pepper.lua and SWSg_cmn.lua (SWS is the map ID). The game crashes.
Posted: Fri Sep 22, 2006 6:33 am
by Qdin
any errors? any log problem(s)?
Posted: Fri Sep 22, 2006 12:06 pm
by [RDH]Zerted
change ATT and DEF to 1 and 2
Posted: Fri Sep 22, 2006 8:50 pm
by TimberWolf
Zerted: it still crashes. Here's the log.
Opened logfile BFront2.log 2006-09-22 1731
ingame stream movies\crawl.mvs
Message Severity: 3
.\Source\LuaCallbacks_Mission.cpp(866)
Lua ReadDataFile: Could not open ..\..\addon\SAL\data\_LVL_PC\core.lvl
Message Severity: 3
.\Source\LuaCallbacks_Mission.cpp(866)
Lua ReadDataFile: Could not open ..\..\addon\CSC\data\_LVL_PC\core.lvl
prev = none iLastPage = nil
prev = texture iLastPage = 1
prev = texture iLastPage = 2
prev = texture iLastPage = 3
prev = texture iLastPage = 4
ifs_legal.Exit
Message Severity: 2
.\Source\GameMovie.cpp(399)
Unable to find open movie segment shell_main
ifs_saveop_DoOps LoadFileList
ifs_saveop_DoOps LoadFileList
ifs_saveop_DoOps LoadProfile
ifs_saveop_DoOps LoadProfile
num, Selection = 1 table: 03CC134C
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 1
EraSelection.subst = c era_c
EraSelection.subst = g era_g
play movie GRV 200 , 300 510 x 400
Message Severity: 2
.\Source\GameMovie.cpp(399)
Unable to find open movie segment GRV0.000000ly
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 6
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 7
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 8
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 9
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 10
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 11
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 12
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 14
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 15
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 16
EraSelection.subst = c era_c
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 18
EraSelection.subst = c era_c
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 19
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 20
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 22
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 23
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 24
EraSelection.subst = c era_c
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 26
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 27
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 28
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 29
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 30
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 31
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 32
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 33
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 34
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 35
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 36
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 37
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 38
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 39
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 40
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 41
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 42
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 43
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 44
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 45
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 46
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 47
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 48
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 49
EraSelection.subst = g era_g
EraSelection.subst = g era_g
num, Selection = 1 table: 03CC134C
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 63
EraSelection.subst = g era_g
play movie GRV 200 , 300 510 x 400
Message Severity: 2
.\Source\GameMovie.cpp(399)
Unable to find open movie segment GRV0.000000ly
bEra_CloneWar = 1 bEra_Galactic = 1
clonewar_visable = false galactic_visable = true
Adding map: SWSg_Diet Dr. Pepper idx: 1
this.CurButton = _map_add
cur_button = nil
this.CurButton = Launch
cur_button = nil
Posted: Fri Sep 22, 2006 9:36 pm
by [RDH]Zerted
The log says nothing about your map. When you take out SetUnitCount() does it still crash?
Posted: Fri Sep 22, 2006 9:46 pm
by TimberWolf
Nope.