Page 1 of 1

Era Mod Problems [Solved]

Posted: Sat Dec 24, 2011 12:55 am
by Dakota
ok i've been working on an era mod for the past week or two and i had it working on all maps. recently after i munged the whole thing the era didn't get added to kamino. all i did in the kamino lua was add the line for entity hover so that the dispensable swamp speeder i made would work there. i did the same thing to all of the other luas that needed it and they all still work. i didn't change the mission.req, the addme lua, the kamino reqs in the mission folder, or anything that would logically change this. i do not have over 500 missions and i did do a clean (i may do another one just to make sure later.) it just doesn't make sense to me that it would just decide to disappear one day.


also i have a second problem too. i've been working with geonosis because it was a clone wars map and my sides are all and imp not rep and cis. i got the map working so that sides are on it and everything is nice but there is one problem, vehicles won't appear at the spawn points. i copied the world folder into my mod folder and modded the map to change the vehicle spawns to what vehicle they needed to be in what seems to be the correct line to put them on but yet they don't show up and in my bf log it says it can't find the lvl chunk even though i have the odfs, mshes, reqs, and lua set up to load them.


i have no idea whats going on :runaway:

Re: Era Mod Problems

Posted: Sat Dec 24, 2011 1:19 am
by Marth8880
Work backwards step by step until everything works again. For instance, try removing the EntityHover line in your LUA and see what happens. Also, try remunging everything and copy over all of the LVL files manually to make sure that they're being updated.

Re: Era Mod Problems

Posted: Sat Dec 24, 2011 1:30 am
by Dakota
the lvls have been munging each time, i checked it up and they are right. the only step backwards that i have is to remove the entity hover code from my lua, i commented it out and am munging it as i type this.


as for the geonosis problem i don't see how stepping backwards could help as i just got that mode working and it hasen't had the vehicles on it since then.

Re: Era Mod Problems

Posted: Sat Dec 24, 2011 1:32 am
by Teancum
Post the BF2_modtools.exe error log.

Re: Era Mod Problems

Posted: Sat Dec 24, 2011 1:40 am
by Dakota
i tested the thing after munging and kamino's era still is not there. here is my error log after loading geonosis and then pressing alt+f4


(error log was way way way too big to post here so i uploaded it to gamefront, sorry for the inconvenience.)

http://www.gamefront.com/files/21114592/BFront2.log

EDIT: i just noticed that kamino wasn't selectable in the other version but was useable with addmap commands i wonder whats wrong.

EDIT2: kamino problem is fixed, the capital letters in the kamino lua were throwing everything off.


now i must get geonosis and space assault fixed. my era is selectable for the ctf mode but not for the assault modes on space maps.

EDIT3: ok the assault modes don't show up in the map selection list but can be added with the admin commands for addmap. this is like what happened with kamino except for i haven't seen any letter changes in this one that would cause it.

Re: Era Mod Problems

Posted: Mon Dec 26, 2011 9:56 pm
by [RDH]Zerted
When you add an era to a map, you have to edit the addme.lua so the map selection screen knows which checkboxes to display. If you're editing an existing map, you can make a new addme.lua and put it in a random XXX map folder. This new addme would only add the era to the existing map. It should call the AddGameModes (or AddExistingGameModes?) function to do this and that function should be my modified one.

Re: Era Mod Problems

Posted: Wed Dec 28, 2011 1:11 am
by Dakota
i did that and it worked for all other modes i did except these 3.

Re: Era Mod Problems

Posted: Wed Dec 28, 2011 3:41 am
by [RDH]Zerted
Have you tried removing all other maps from the addon folder? Also, remember cleaning doesn't always delete the munged addme.script file. You have to clean that one manually.

Re: Era Mod Problems

Posted: Thu Dec 29, 2011 1:39 pm
by Dakota
i haven't tried removing all other maps from the addon folder yet. i'm just wondering though, wouldn't others who download this mod want to have this mod and also the other ones that they already have without removing their other ones, or is this just a way to test it?

also i thought that the addme.lua was working properly, i've added maps since i've had the assault maps in the script (i fixed the kamino problem during this time). i'll remunge it again just to make sure.

Re: Era Mod Problems

Posted: Thu Dec 29, 2011 4:40 pm
by [RDH]Zerted
It's a way to test it. Another map might be messing with your custom changes.

Re: Era Mod Problems

Posted: Thu Dec 29, 2011 7:28 pm
by Dakota
i've tested it without the other maps and also remunged the addme.script and moved in manually and it still doesn't show up.

i'm just wondering if the guy who made bfx, who's name i've forgotten, had this problem too and if he knows how he fixed it. (bfx is the only era mod that i know of that added it's eras to stock space maps)

Re: Era Mod Problems

Posted: Thu Dec 29, 2011 10:48 pm
by [RDH]Zerted
So the problem is that your assualt modes don't show up in the map selection screen on the stock space maps? Could you please post your addme.lua? Are you using mode_assault as the mode? If not, try it (mode_assault_<era>)

Re: Era Mod Problems

Posted: Thu Dec 29, 2011 10:56 pm
by Dakota
its not that they don't show up, they would always show up since the map has assault mode with the stock sides but if you check the assault box and the era of my mod's box then it won't add it to the map rotation.

here is my addme.lua.
Hidden/Spoiler:
--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, "cor1%s_%s", {era_r = 1, mode_con_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "cor1%s_%s", {era_r = 1, mode_con_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "cor1%s_%s", {era_r = 1, mode_ctf_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "cor1%s_%s", {era_r = 1, mode_ctf_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "dag1%s_%s", {era_r = 1, mode_con_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "dag1%s_%s", {era_r = 1, mode_con_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "dag1%s_%s", {era_r = 1, mode_ctf_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "dag1%s_%s", {era_r = 1, mode_ctf_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "dea1%s_%s", {era_r = 1, mode_con_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "dea1%s_%s", {era_r = 1, mode_con_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "dea1%s_%s", {era_r = 1, mode_1flag_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "dea1%s_%s", {era_r = 1, mode_1flag_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "end1%s_%s", {era_r = 1, mode_con_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "end1%s_%s", {era_r = 1, mode_con_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "end1%s_%s", {era_r = 1, mode_1flag_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "end1%s_%s", {era_r = 1, mode_1flag_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "fel1%s_%s", {era_r = 1, mode_con_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "fel1%s_%s", {era_r = 1, mode_con_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "fel1%s_%s", {era_r = 1, mode_1flag_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "fel1%s_%s", {era_r = 1, mode_1flag_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "geo1%s_%s", {era_r = 1, mode_con_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "geo1%s_%s", {era_r = 1, mode_con_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "geo1%s_%s", {era_r = 1, mode_ctf_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "geo1%s_%s", {era_r = 1, mode_ctf_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "hot1%s_%s", {era_r = 1, mode_con_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "hot1%s_%s", {era_r = 1, mode_con_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "hot1%s_%s", {era_r = 1, mode_1flag_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "hot1%s_%s", {era_r = 1, mode_1flag_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "kam1%s_%s", {era_r = 1, mode_con_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "kam1%s_%s", {era_r = 1, mode_con_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "kam1%s_%s", {era_r = 1, mode_1flag_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "kam1%s_%s", {era_r = 1, mode_1flag_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "kas2%s_%s", {era_r = 1, mode_con_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "kas2%s_%s", {era_r = 1, mode_con_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "kas2%s_%s", {era_r = 1, mode_ctf_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "kas2%s_%s", {era_r = 1, mode_ctf_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "mus1%s_%s", {era_r = 1, mode_con_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "mus1%s_%s", {era_r = 1, mode_con_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "mus1%s_%s", {era_r = 1, mode_ctf_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "mus1%s_%s", {era_r = 1, mode_ctf_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "myg1%s_%s", {era_r = 1, mode_con_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "myg1%s_%s", {era_r = 1, mode_con_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "myg1%s_%s", {era_r = 1, mode_ctf_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "myg1%s_%s", {era_r = 1, mode_ctf_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "nab2%s_%s", {era_r = 1, mode_con_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "nab2%s_%s", {era_r = 1, mode_con_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "nab2%s_%s", {era_r = 1, mode_ctf_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "nab2%s_%s", {era_r = 1, mode_ctf_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "pol1%s_%s", {era_r = 1, mode_con_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "pol1%s_%s", {era_r = 1, mode_con_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "pol1%s_%s", {era_r = 1, mode_ctf_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "pol1%s_%s", {era_r = 1, mode_ctf_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "tan1%s_%s", {era_r = 1, mode_con_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "tan1%s_%s", {era_r = 1, mode_con_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "tan1%s_%s", {era_r = 1, mode_1flag_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "tan1%s_%s", {era_r = 1, mode_1flag_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "tat2%s_%s", {era_r = 1, mode_con_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "tat2%s_%s", {era_r = 1, mode_con_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "tat2%s_%s", {era_r = 1, mode_ctf_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "tat2%s_%s", {era_r = 1, mode_ctf_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "tat3%s_%s", {era_r = 1, mode_con_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "tat3%s_%s", {era_r = 1, mode_con_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "tat3%s_%s", {era_r = 1, mode_1flag_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "tat3%s_%s", {era_r = 1, mode_1flag_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "uta1%s_%s", {era_r = 1, mode_con_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "uta1%s_%s", {era_r = 1, mode_con_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "uta1%s_%s", {era_r = 1, mode_1flag_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "uta1%s_%s", {era_r = 1, mode_1flag_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "yav1%s_%s", {era_r = 1, mode_con_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "yav1%s_%s", {era_r = 1, mode_con_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "yav1%s_%s", {era_r = 1, mode_1flag_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "yav1%s_%s", {era_r = 1, mode_1flag_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "spa1%s_%s", {era_r = 1, mode_Diet Dr. Pepper_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "spa1%s_%s", {era_r = 1, mode_Diet Dr. Pepper_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "spa1%s_%s", {era_r = 1, mode_1flag_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "spa1%s_%s", {era_r = 1, mode_1flag_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "spa8%s_%s", {era_r = 1, mode_Diet Dr. Pepper_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "spa8%s_%s", {era_r = 1, mode_Diet Dr. Pepper_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "spa8%s_%s", {era_r = 1, mode_1flag_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "spa8%s_%s", {era_r = 1, mode_1flag_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "spa9%s_%s", {era_r = 1, mode_Diet Dr. Pepper_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "spa9%s_%s", {era_r = 1, mode_Diet Dr. Pepper_r = 1,} )

AddNewGameModes( sp_missionselect_listbox_contents, "spa9%s_%s", {era_r = 1, mode_1flag_r = 1,} )
AddNewGameModes( mp_missionselect_listbox_contents, "spa9%s_%s", {era_r = 1, mode_1flag_r = 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","cor1r_con",4)
AddDownloadableContent("cor1","cor1r_ctf",4)
AddDownloadableContent("dag1","dag1r_con",4)
AddDownloadableContent("dag1","dag1r_ctf",4)
AddDownloadableContent("dea1","dea1r_con",4)
AddDownloadableContent("dea1","dea1r_1flag",4)
AddDownloadableContent("end1","end1r_con",4)
AddDownloadableContent("end1","end1r_1flag",4)
AddDownloadableContent("fel1","fel1r_con",4)
AddDownloadableContent("fel1","fel1r_1flag",4)
AddDownloadableContent("geo1","geo1r_con",4)
AddDownloadableContent("geo1","geo1r_ctf",4)
AddDownloadableContent("hot1","hot1r_con",4)
AddDownloadableContent("hot1","hot1r_1flag",4)
AddDownloadableContent("kam1","KAM1r_con",4)
AddDownloadableContent("kam1","KAM1r_1flag",4)
AddDownloadableContent("kas2","kas2r_con",4)
AddDownloadableContent("kas2","kas2r_ctf",4)
AddDownloadableContent("mus1","mus1r_con",4)
AddDownloadableContent("mus1","mus1r_ctf",4)
AddDownloadableContent("myg1","myg1r_con",4)
AddDownloadableContent("myg1","myg1r_ctf",4)
AddDownloadableContent("nab2","nab2r_con",4)
AddDownloadableContent("nab2","nab2r_ctf",4)
AddDownloadableContent("pol1","pol1r_con",4)
AddDownloadableContent("pol1","pol1r_ctf",4)
AddDownloadableContent("tan1","tan1r_con",4)
AddDownloadableContent("tan1","tan1r_1flag",4)
AddDownloadableContent("tat2","tat2r_con",4)
AddDownloadableContent("tat2","tat2r_ctf",4)
AddDownloadableContent("tat3","tat3r_con",4)
AddDownloadableContent("tat3","tat3r_1flag",4)
AddDownloadableContent("uta1","uta1r_con",4)
AddDownloadableContent("uta1","uta1r_1flag",4)
AddDownloadableContent("yav1","yav1r_con",4)
AddDownloadableContent("yav1","yav1r_1flag",4)
AddDownloadableContent("spa1","spa1r_Diet Dr. Pepper",4)
AddDownloadableContent("spa1","spa1r_1flag",4)
AddDownloadableContent("spa8","spa8r_Diet Dr. Pepper",4)
AddDownloadableContent("spa8","spa8r_1flag",4)
AddDownloadableContent("spa9","spa9r_Diet Dr. Pepper",4)
AddDownloadableContent("spa9","spa9r_1flag",4)
-- all done
newEntry = nil
n = nil

-- Now load our core.lvl into the shell to add our localize keys
ReadDataFile("..\\..\\addon\\VBM\\data\\_LVL_PC\\core.lvl")
my era is R

i'm not sure what the last sentence of your post meant but i think that the addme.lua would tell if i am or not.

Re: Era Mod Problems

Posted: Thu Dec 29, 2011 11:00 pm
by AQT
Dakota wrote:i'm not sure what the last sentence of your post meant but i think that the addme.lua would tell if i am or not.
Zerted is telling you to use _assault instead of _Diet Dr. Pepper as the mode code. You're currently using _Diet Dr. Pepper, which is wrong.

Re: Era Mod Problems

Posted: Thu Dec 29, 2011 11:53 pm
by Dakota
ahh, that is a wonderful way to put it. i never would have expected to put assault since it isn't in any lua code or mission.req that i have seen. i'm going to go change it now and give the results.

EDIT: working great now.