Glitch Storm Trooper Corporal
Messages : 408 Registration Date : 2012-04-02 Age : 29 Location : Baktoid Combat Automata
| Subject: Addme Error 11/26/2012, 2:20 am | |
| I can't do anything till I fix this. For now I'm attempting to use two BF1 maps. (Marvel4 was kind enough to give me the password to his BF1 map scripts file) The game crashes before I even reach the main menu. - Code:
-
Message Severity: 3 C:\Battlefront2\main\Battlefront2\Source\LuaScript.cpp(435) Script file addme not found - Code:
-
--Search through the missionlist to find a map that matches mapName, --then insert the new flags into said entry. --Use this when you know the map already exists, but this content patch is just --adding new gamemodes (otherwise you should just add whole new entries to the missionlist) function AddNewGameModes(missionList, mapName, newFlags) for i, mission in missionList do if mission.mapluafile == mapName then for flag, value in pairs(newFlags) do mission[flag] = value end end end end
--insert totally new maps here: local sp_n = 0 local mp_n = 0 sp_n = table.getn(sp_missionselect_listbox_contents)
--add my modes to the singleplayer map selection screen
AddNewGameModes( sp_missionselect_listbox_contents, "cor1c_c", {era_c = 1, mode_c_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "cor1c_con", {era_c = 1, mode_con_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "cor1g_con", {era_g = 1, mode_con_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "cor1c_ctf", {era_c = 1, mode_ctf_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "cor1g_ctf", {era_g = 1, mode_ctf_g = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "geo1c_c", {era_c = 1, mode_c_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "geo1c_con", {era_c = 1, mode_con_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "geo1c_ctf", {era_c = 1, mode_ctf_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "geo1c_hunt", {era_c = 1, mode_hunt_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "geo1c_xl", {era_c = 1, mode_xl_c = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "kam1c_c", {era_c = 1, mode_c_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "kam1c_con", {era_c = 1, mode_con_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "kam1g_con", {era_g = 1, mode_con_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "kam1c_1flag", {era_c = 1, mode_1flag_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "kam1g_1flag", {era_g = 1, mode_1flag_g = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "mus1c_c", {era_c = 1, mode_c_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "mus1c_con", {era_c = 1, mode_con_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "mus1g_con", {era_g = 1, mode_con_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "mus1c_ctf", {era_c = 1, mode_ctf_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "mus1g_ctf", {era_g = 1, mode_ctf_g = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "pol1g_c", {era_g = 1, mode_c_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "pol1c_con", {era_c = 1, mode_con_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "pol1g_con", {era_g = 1, mode_con_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "pol1c_ctf", {era_c = 1, mode_ctf_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "pol1g_ctf", {era_g = 1, mode_ctf_g = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "dea1g_c", {era_g = 1, mode_c_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "dea1c_con", {era_c = 1, mode_con_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "dea1g_con", {era_g = 1, mode_con_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "dea1c_1flag", {era_c = 1, mode_1flag_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "dea1g_1flag", {era_g = 1, mode_1flag_g = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "myg1c_c", {era_c = 1, mode_c_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "myg1c_con", {era_c = 1, mode_con_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "myg1g_con", {era_g = 1, mode_con_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "myg1c_ctf", {era_c = 1, mode_ctf_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "myg1g_ctf", {era_g = 1, mode_ctf_g = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "nab2g_c", {era_g = 1, mode_c_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "nab2c_hunt", {era_c = 1, mode_hunt_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "nab2c_con", {era_c = 1, mode_con_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "nab2g_con", {era_g = 1, mode_con_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "nab2c_ctf", {era_c = 1, mode_ctf_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "nab2g_ctf", {era_g = 1, mode_ctf_g = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "tan1g_c", {era_g = 1, mode_c_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "tan1c_con", {era_c = 1, mode_con_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "tan1g_con", {era_g = 1, mode_con_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "tan1c_1flag", {era_c = 1, mode_1flag_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "tan1g_1flag", {era_g = 1, mode_1flag_g = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "tat2g_eli", {era_g = 1, mode_eli_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "tat2g_hunt", {era_g = 1, mode_hunt_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "tat2c_con", {era_c = 1, mode_con_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "tat2g_con", {era_g = 1, mode_con_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "tat2c_ctf", {era_c = 1, mode_ctf_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "tat2g_ctf", {era_g = 1, mode_ctf_g = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "tat3g_hunt", {era_g = 1, mode_hunt_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "tat3c_con", {era_c = 1, mode_con_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "tat3g_con", {era_g = 1, mode_con_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "tat3c_1flag", {era_c = 1, mode_1flag_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "tat3g_1flag", {era_g = 1, mode_1flag_g = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "kas2c_c", {era_c = 1, mode_c_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "kas2c_con", {era_c = 1, mode_con_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "kas2g_con", {era_g = 1, mode_con_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "kas2c_ctf", {era_c = 1, mode_ctf_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "kas2g_ctf", {era_g = 1, mode_ctf_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "kas2g_xl", {era_g = 1, mode_xl_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "kas2c_xl", {era_c = 1, mode_xl_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "kas2c_hunt", {era_c = 1, mode_hunt_c = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "uta1c_c", {era_g = 1, mode_c_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "uta1c_con", {era_c = 1, mode_con_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "uta1g_con", {era_g = 1, mode_con_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "uta1c_1flag", {era_c = 1, mode_1flag_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "uta1g_1flag", {era_g = 1, mode_1flag_g = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "dag1c_con", {era_c = 1, mode_con_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "dag1g_con", {era_g = 1, mode_con_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "dag1c_ctf", {era_c = 1, mode_ctf_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "dag1g_ctf", {era_g = 1, mode_ctf_g = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "fel1c_c", {era_g = 1, mode_c_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "fel1c_con", {era_c = 1, mode_con_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "fel1g_con", {era_g = 1, mode_con_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "fel1c_1flag", {era_c = 1, mode_1flag_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "fel1g_1flag", {era_g = 1, mode_1flag_g = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "yav1g_c", {era_g = 1, mode_c_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "yav1c_con", {era_c = 1, mode_con_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "yav1g_con", {era_g = 1, mode_con_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "yav1c_1flag", {era_c = 1, mode_1flag_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "yav1g_1flag", {era_g = 1, mode_1flag_g = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "spa1g_1flag", {era_g = 1, mode_1flag_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "spa1g_ass", {era_g = 1, mode_ass_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "spa1g_c", {era_g = 1, mode_c_g = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "spa2c_c", {era_c = 1, mode_c_c = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "spa3c_1flag", {era_c = 1, mode_1flag_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "spa3c_ass", {era_c = 1, mode_ass_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "spa3c_c", {era_c = 1, mode_c_c = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "spa4g_c", {era_g = 1, mode_c_g = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "spa6c_1flag", {era_c = 1, mode_1flag_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "spa6c_ass", {era_c = 1, mode_ass_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "spa6c_cmn", {era_c = 1, mode_cmn_c = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "spa7c_1flag", {era_c = 1, mode_1flag_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "spa7c_ass", {era_c = 1, mode_ass_c = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "spa7c_cmn", {era_c = 1, mode_cmn_c = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "spa8g_1flag", {era_g = 1, mode_1flag_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "spa8g_ass", {era_g = 1, mode_ass_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "spa8g_cmn", {era_g = 1, mode_cmn_g = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "spa9g_1flag", {era_g = 1, mode_1flag_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "spa9g_ass", {era_g = 1, mode_ass_g = 1,} ) AddNewGameModes( sp_missionselect_listbox_contents, "spa9g_cmn", {era_g = 1, mode_cmn_g = 1,} )
AddNewGameModes( sp_missionselect_listbox_contents, "RVCc_con", {era_c = 1, mode_con_c = 1,} AddNewGameModes( sp_missionselect_listbox_contents, "RVCg_con", {era_g = 1, mode_con_g = 1,}
AddNewGameModes( sp_missionselect_listbox_contents, "RVHc_con", {era_c = 1, mode_con_c = 1,} AddNewGameModes( sp_missionselect_listbox_contents, "RVHg_con", {era_g = 1, mode_con_g = 1,}
-- 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("cor1","cor1c_c",4) AddDownloadableContent("cor1","cor1c_con",4) AddDownloadableContent("cor1","cor1g_con",4) AddDownloadableContent("cor1","cor1c_ctf",4) AddDownloadableContent("cor1","cor1g_ctf",4)
AddDownloadableContent("geo1","geo1c_c",4) AddDownloadableContent("geo1","geo1c_con",4) AddDownloadableContent("geo1","geo1c_ctf",4) AddDownloadableContent("geo1","geo1c_hunt",4) AddDownloadableContent("geo1","geo1c_xl",4)
AddDownloadableContent("kam1","kam1c_c",4) AddDownloadableContent("kam1","kam1c_con",4) AddDownloadableContent("kam1","kam1g_con",4) AddDownloadableContent("kam1","kam1c_1flag",4) AddDownloadableContent("kam1","kam1g_1flag",4)
AddDownloadableContent("mus1","mus1c_c",4) AddDownloadableContent("mus1","mus1c_con",4) AddDownloadableContent("mus1","mus1g_con",4) AddDownloadableContent("mus1","mus1c_ctf",4) AddDownloadableContent("mus1","mus1g_ctf",4)
AddDownloadableContent("pol1","pol1g_c",4) AddDownloadableContent("pol1","pol1c_con",4) AddDownloadableContent("pol1","pol1g_con",4) AddDownloadableContent("pol1","pol1c_ctf",4) AddDownloadableContent("pol1","pol1g_ctf",4)
AddDownloadableContent("dea1","dea1g_c",4) AddDownloadableContent("dea1","dea1c_con",4) AddDownloadableContent("dea1","dea1g_con",4) AddDownloadableContent("dea1","dea1c_1flag",4) AddDownloadableContent("dea1","dea1g_1flag",4)
AddDownloadableContent("myg1","myg1c_c",4) AddDownloadableContent("myg1","myg1c_con",4) AddDownloadableContent("myg1","myg1g_con",4) AddDownloadableContent("myg1","myg1c_ctf",4) AddDownloadableContent("myg1","myg1g_ctf",4)
AddDownloadableContent("nab2","nab2g_c",4) AddDownloadableContent("nab2","nab2c_hunt",4) AddDownloadableContent("nab2","nab2c_con",4) AddDownloadableContent("nab2","nab2g_con",4) AddDownloadableContent("nab2","nab2c_ctf",4) AddDownloadableContent("nab2","nab2g_ctf",4)
AddDownloadableContent("tan1","tan1g_c",4) AddDownloadableContent("tan1","tan1c_con",4) AddDownloadableContent("tan1","tan1g_con",4) AddDownloadableContent("tan1","tan1c_1flag",4) AddDownloadableContent("tan1","tan1g_1flag",4)
AddDownloadableContent("tat2","tat2g_eli",4) AddDownloadableContent("tat2","tat2g_hunt",4) AddDownloadableContent("tat2","tat2c_con",4) AddDownloadableContent("tat2","tat2g_con",4) AddDownloadableContent("tat2","tat2c_ctf",4) AddDownloadableContent("tat2","tat2g_ctf",4)
AddDownloadableContent("tat3","tat3g_hunt",4) AddDownloadableContent("tat3","tat3c_con",4) AddDownloadableContent("tat3","tat3g_con",4) AddDownloadableContent("tat3","tat3c_1flag",4) AddDownloadableContent("tat3","tat3g_1flag",4)
AddDownloadableContent("kas2","kas2c_c",4) AddDownloadableContent("kas2","kas2c_xl",4) AddDownloadableContent("kas2","kas2g_xl",4) AddDownloadableContent("kas2","kas2c_hunt",4) AddDownloadableContent("kas2","kas2c_con",4) AddDownloadableContent("kas2","kas2g_con",4) AddDownloadableContent("kas2","kas2c_ctf",4) AddDownloadableContent("kas2","kas2g_ctf",4)
AddDownloadableContent("uta1","uta1c_c",4) AddDownloadableContent("uta1","uta1c_con",4) AddDownloadableContent("uta1","uta1g_con",4) AddDownloadableContent("uta1","uta1c_1flag",4) AddDownloadableContent("uta1","uta1g_1flag",4)
AddDownloadableContent("dag1","dag1c_con",4) AddDownloadableContent("dag1","dag1g_con",4) AddDownloadableContent("dag1","dag1c_ctf",4) AddDownloadableContent("dag1","dag1g_ctf",4)
AddDownloadableContent("fel1","fel1c_c",4) AddDownloadableContent("fel1","fel1c_con",4) AddDownloadableContent("fel1","fel1g_con",4) AddDownloadableContent("fel1","fel1c_1flag",4) AddDownloadableContent("fel1","fel1g_1flag",4)
AddDownloadableContent("yav1","yav1g_c",4) AddDownloadableContent("yav1","yav1c_con",4) AddDownloadableContent("yav1","yav1g_con",4) AddDownloadableContent("yav1","yav1c_1flag",4) AddDownloadableContent("yav1","yav1g_1flag",4)
AddDownloadableContent("spa1","spa1g_1flag",4) AddDownloadableContent("spa1","spa1g_ass",4) AddDownloadableContent("spa1","spa1g_c",4)
AddDownloadableContent("spa2","spa2c_c",4)
AddDownloadableContent("spa3","spa3c_1flag",4) AddDownloadableContent("spa3","spa3c_ass",4) AddDownloadableContent("spa3","spa3c_c",4)
AddDownloadableContent("spa4","spa4g_c",4)
AddDownloadableContent("spa6","spa6c_1flag",4) AddDownloadableContent("spa6","spa6c_ass",4) AddDownloadableContent("spa6","spa6c_cmn",4)
AddDownloadableContent("spa7","spa7c_1flag",4) AddDownloadableContent("spa7","spa7c_ass",4) AddDownloadableContent("spa7","spa7c_cmn",4)
AddDownloadableContent("spa8","spa8g_1flag",4) AddDownloadableContent("spa8","spa8g_ass",4) AddDownloadableContent("spa8","spa8g_cmn",4)
AddDownloadableContent("spa9","spa9g_1flag",4) AddDownloadableContent("spa9","spa9g_ass",4) AddDownloadableContent("spa9","spa9g_cmn",4)
AddDownloadableContent("RVC","RVCc_con",4) AddDownloadableContent("RVC","RVCg_con",4)
AddDownloadableContent("RVH","RVHc_con",4) AddDownloadableContent("RVH","RVHg_con",4)
-- all done newEntry = nil n = nil
-- Now load our core.lvl into the shell to add our localize keys ReadDataFile("..\\..\\addon\\***\\data\\_LVL_PC\\core.lvl") Edit: This happens every time I add a new map. I did the following things for each. 1: Added the following to C:\BF2_ModTools\data_ZCM\addme AddNewGameModes( sp_missionselect_listbox_contents, "BCCc_con", {era_c = 1, mode_con_c = 1,} AddNewGameModes( sp_missionselect_listbox_contents, "BCCg_con", {era_g = 1, mode_con_g = 1,} 2: Added the following to C:\BF2_ModTools\data_ZCM\addme AddDownloadableContent("BCC","BCCc_con",4) AddDownloadableContent("BCC","BCCg_con",4) 3: Added BCCc_con.lua to C:\BF2_ModTools\data_ZCM\Common\scripts\ZCM 4: Added BCCc_con.req to C:\BF2_ModTools\data_ZCM\Common\mission 5: Added "BCCc_con" to mission.req What am I doing wrong???? |
|