I am trying to add a custom game mode to my space map (a mission with objectives)
What I did:
1 copied my ***c_cmn.lua and ***c_Diet Dr. Pepper.lua and renamed them to ***1_cmn.lua and ***1_con.lua (and put the mission goodies in the con one, re-referencing it).
2 in the folder mission I made my ***1_con.lua (copied my other one and renamed it and its references to the luas)
3 changed my mission.req to call ***1_con.lua from the mission folder
4 changed my addme from this
Hidden/Spoiler:
...
--insert totally new maps here:
local sp_n = 0
local mp_n = 0
sp_n = table.getn(sp_missionselect_listbox_contents)
-- associate this mission name with the current downloadable content directory
-- (this tells the engine which maps are downloaded, so you need to include all new mission lua's here)
-- first arg: mapluafile from above
-- second arg: mission script name
-- third arg: level memory modifier. the arg to LuaScript.cpp: DEFAULT_MODEL_MEMORY_PLUS(x)
AddDownloadableContent("TST","TSTc_Diet Dr. Pepper",4)
-- all done
newEntry = nil
n = nil
-- Now load our core.lvl into the shell to add our localize keys
ReadDataFile("..\\..\\addon\\AAA\\data\\_LVL_PC\\core.lvl")
to this:
Hidden/Spoiler:
...
--insert totally new maps here:
local sp_n = 0
local mp_n = 0
sp_n = table.getn(sp_missionselect_listbox_contents)
-- associate this mission name with the current downloadable content directory
-- (this tells the engine which maps are downloaded, so you need to include all new mission lua's here)
-- first arg: mapluafile from above
-- second arg: mission script name
-- third arg: level memory modifier. the arg to LuaScript.cpp: DEFAULT_MODEL_MEMORY_PLUS(x)
AddDownloadableContent("TST","TSTc_Diet Dr. Pepper",4)
AddDownloadableContent("TST","TST1_con",4)
-- all done
newEntry = nil
n = nil
-- Now load our core.lvl into the shell to add our localize keys
ReadDataFile("..\\..\\addon\\TST\\data\\_LVL_PC\\core.lvl")
What did I do wrong??
Re: Addme Issues...
Posted: Thu Aug 20, 2009 2:32 pm
by Maveritchell
Would you mind not using the "1" prefix as that is what Dark Times uses?
Re: Addme Issues...
Posted: Thu Aug 20, 2009 2:34 pm
by asleeponduty
ok ill change that.
EDIT: Now I get something CRAZY a MESSAGE SEVERITY 5
Here is the bfront2.log for the mission
Hidden/Spoiler:
Opened logfile BFront2.log 2009-08-20 2124
shell_interface: Entered
shell_interface: gPlatformStr, gOnlineServiceStr, gLangStr, gLangEnum: PC GameSpy english 0
ifs_era_handler - Entered
ifs_era_handler - Exited
shell_interface: No custom_gc_0.lvl
shell_interface: No custom_gc_1.lvl
shell_interface: No custom_gc_2.lvl
shell_interface: No custom_gc_3.lvl
shell_interface: No custom_gc_4.lvl
shell_interface: No custom_gc_5.lvl
shell_interface: No custom_gc_6.lvl
shell_interface: No custom_gc_7.lvl
shell_interface: No custom_gc_8.lvl
shell_interface: No custom_gc_9.lvl
shell_interface: No custom_gc_10.lvl
custom_EraButtonList(): Finished building era button table Known eras buttons: 28
custom_GetGMapEras(): Finished building era table Known eras: 28
custom_GetGMapModes(): Finished building game mode table Known Modes: 39
custom_GetMPGameModeList(): Finished building game mode list table List Length: 40
custom_SetMovieLocation()
custom_GetGCButtonList()
custom_SetMovieLocation()
custom_GetFreeformBattleModeList(): Finished building freeform battle mode list Known Modes: 39
ingame stream movies\crawl.mvs
shell_interface: Opening movie: movies\shell.mvs
shell_interface: Leaving
Mission Checker: Entered addme
Mission Checker: addme: Now listening in on AddDownloadableContent() calls
Mission Checker: Exited addme
Cannot find side\rvs.lvl. Skipping BGL's extra KotOR missions
Cannot find ..\..\addon\BDT\data\_LVL_PC\SIDE\dark.lvl. Skipping BGL's extra Dark Times missions
prev = none iLastPage = nil
prev = texture iLastPage = 1
prev = texture iLastPage = 2
prev = texture iLastPage = 3
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
ifs_sp_campaign: Input_Accept(): Entered: _tab_instant
missionlist_ExpandMapList()
ifs_missionselect_pcMulti_fnSetMapPreview(): Defaulting index to 1
ifs_missionselect_pcMulti_fnSetMapPreview(): Stored movie name, file: preview-loop MOVIES\pre-movie
custom_CheckChangeMovies(): Update(): Time to change movies
ifs_missionselect_pcMulti_ChangeMovieFile(): MovieFile: nil
ifs_missionselect_pcMulti_ChangeMovieFile(): Closed any open movie
ifs_missionselect_pcMulti_ChangeMovieFile(): Opening movie: MOVIES\pre-movie.mvs
ifs_missionselect_pcMulti_ChangeMovieFile(): Finished opening movie
Checkbox for check_era24 clicked
this.CurButton = check_era24
cur_button = nil
this.CurButton = check_mode4
cur_button = nil
custom_AddMapNew()
custom_printTable(): table: 03CF136C
The key, value is: mode_assault_x 1
The key, value is: change table: 03CF144C
The key, value is: mode_assault_c 1
The key is mapluafile, the formated value is: TST<A>_<B>
The key, value is: bSelected 1
The key, value is: era_c 1
The key, value is: era_x 1
The key, value is: isModLevel 1
custom_printTable(): Returning
custom_printTable(): table: 03CF67CC
The key, value is: key mode_assault
The key, value is: subst Diet Dr. Pepper
The key, value is: showstr modename.name.spa-assault
The key, value is: descstr modename.description.assault
The key, value is: icon mode_icon_Diet Dr. Pepper
custom_printTable(): Returning
gMapEras.key = era_x Era = era_x subst = x
Adding map: TSTx_Diet Dr. Pepper idx: 1
this.CurButton = _map_add
cur_button = nil
this.CurButton = Launch
cur_button = nil
Message Severity: 3
.\Source\LuaHelper.cpp(112)
OpenScript(TSTx_Diet Dr. Pepper): script (ef5861f6) not found
Message Severity: 5
.\Source\GameState.cpp(1283)
Could not open MISSION\TSTx_Diet Dr. Pepper.lvl
And here is the bfont2.log for conquest:
Hidden/Spoiler:
Opened logfile BFront2.log 2009-08-20 2132
shell_interface: Entered
shell_interface: gPlatformStr, gOnlineServiceStr, gLangStr, gLangEnum: PC GameSpy english 0
ifs_era_handler - Entered
ifs_era_handler - Exited
shell_interface: No custom_gc_0.lvl
shell_interface: No custom_gc_1.lvl
shell_interface: No custom_gc_2.lvl
shell_interface: No custom_gc_3.lvl
shell_interface: No custom_gc_4.lvl
shell_interface: No custom_gc_5.lvl
shell_interface: No custom_gc_6.lvl
shell_interface: No custom_gc_7.lvl
shell_interface: No custom_gc_8.lvl
shell_interface: No custom_gc_9.lvl
shell_interface: No custom_gc_10.lvl
custom_EraButtonList(): Finished building era button table Known eras buttons: 28
custom_GetGMapEras(): Finished building era table Known eras: 28
custom_GetGMapModes(): Finished building game mode table Known Modes: 39
custom_GetMPGameModeList(): Finished building game mode list table List Length: 40
custom_SetMovieLocation()
custom_GetGCButtonList()
custom_SetMovieLocation()
custom_GetFreeformBattleModeList(): Finished building freeform battle mode list Known Modes: 39
ingame stream movies\crawl.mvs
shell_interface: Opening movie: movies\shell.mvs
shell_interface: Leaving
Mission Checker: Entered addme
Mission Checker: addme: Now listening in on AddDownloadableContent() calls
Mission Checker: Exited addme
Cannot find side\rvs.lvl. Skipping BGL's extra KotOR missions
Cannot find ..\..\addon\BDT\data\_LVL_PC\SIDE\dark.lvl. Skipping BGL's extra Dark Times missions
prev = none iLastPage = nil
prev = texture iLastPage = 1
prev = texture iLastPage = 2
prev = texture iLastPage = 3
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
ifs_sp_campaign: Input_Accept(): Entered: _tab_instant
missionlist_ExpandMapList()
ifs_missionselect_pcMulti_fnSetMapPreview(): Defaulting index to 1
Checkbox for check_era3 clicked
this.CurButton = check_era3
cur_button = nil
this.CurButton = check_mode4
cur_button = nil
this.CurButton = nil
cur_button = nil
DoubleClicked
custom_AddMapNew()
custom_printTable(): table: 03CF134C
The key, value is: change table: 03CF136C
The key, value is: era_c 1
The key, value is: mode_assault_c 1
The key, value is: isModLevel 1
The key, value is: bSelected 1
The key is mapluafile, the formated value is: TST<A>_<B>
custom_printTable(): Returning
custom_printTable(): table: 03CF67CC
The key, value is: key mode_assault
The key, value is: subst Diet Dr. Pepper
The key, value is: showstr modename.name.spa-assault
The key, value is: descstr modename.description.assault
The key, value is: icon mode_icon_Diet Dr. Pepper
custom_printTable(): Returning
gMapEras.key = era_c Era = era_c subst = c
Adding map: TSTc_Diet Dr. Pepper idx: 1
this.CurButton = Launch
cur_button = nil
Message Severity: 3
.\Source\LuaCallbacks_Mission.cpp(866)
Lua ReadDataFile: Could not open dc:Load\common.lvl
Message Severity: 2
.\Source\HUDElementBitmap.cpp(380)
HUD BitmapElement unable to find texture btn_directional_pad_LR
game_interface: Entered
utility_functions2: Listening on AddUnitClass() calls
utility_functions2: Listening on SetHeroClass() calls
utility_functions2: Listening on ReadDataFile() calls
game_interface: Reading in custom strings
game_interface: No user_script_0.lvl
game_interface: No user_script_1.lvl
game_interface: No user_script_2.lvl
game_interface: No user_script_3.lvl
game_interface: No user_script_4.lvl
game_interface: No user_script_5.lvl
game_interface: No user_script_6.lvl
game_interface: No user_script_7.lvl
game_interface: No user_script_8.lvl
game_interface: No user_script_9.lvl
game_interface: No user_script_10.lvl
ifs_sideselect_fnBuildScreen()
game_interface: Exited
Message Severity: 3
.\Source\Ordnance.cpp(424)
Ordnance base class "com_weap_inf_chaingun_ord" not found
EDIT: Nevermind, I solved it. I was using a variable that didnt exist!