Page 1 of 1

Fatal error?

Posted: Sat Apr 11, 2015 5:58 pm
by DrDrSheldonLeeCooper
Hey I gave somebody my mod.I told him to play Mustafar first but he says it gave him a fatal error.
And I can play it with no problems,but why?

Re: Fatal error?

Posted: Sat Apr 11, 2015 6:01 pm
by Anakin
Because something went wrong.

how should we tell you any reason without seeing an error log, or even knowing what he should test. You haven't told us what era or gamemos, if it was an stock era or an custom,...

Re: Fatal error?

Posted: Sat Apr 11, 2015 6:04 pm
by DrDrSheldonLeeCooper
Custom era,but I think he would tell me what for an error when there would be a log

Re: Fatal error?

Posted: Sat Apr 11, 2015 6:20 pm
by Noobasaurus
Does he have the v1.3 patch installed?

Re: Fatal error?

Posted: Sat Apr 11, 2015 6:26 pm
by DrDrSheldonLeeCooper
I will ask him.
Is anybody here who would download my mod and tries if it crashes too?

Re: Fatal error?

Posted: Sat Apr 11, 2015 6:36 pm
by Sandtrooper956
It's because there isn't a mission.lvl for Mustafar in your Era Mod.

Re: Fatal error?

Posted: Sat Apr 11, 2015 6:38 pm
by DrDrSheldonLeeCooper
And how can I fix that?
I can play with no error

Re: Fatal error?

Posted: Sat Apr 11, 2015 6:39 pm
by Sandtrooper956
Are you sure you are playing the same version of your mod as him?

Re: Fatal error?

Posted: Sat Apr 11, 2015 6:40 pm
by DrDrSheldonLeeCooper
Yes I´m very sure.

Re: Fatal error?

Posted: Sat Apr 11, 2015 6:41 pm
by Sandtrooper956
Well ask him what the fatal error says, that's the only way to figure out the problem.

Re: Fatal error?

Posted: Sat Apr 11, 2015 6:44 pm
by DrDrSheldonLeeCooper
Okay.
Thank you

Re: Fatal error?

Posted: Sat Apr 11, 2015 8:31 pm
by razac920
Please post your addme, and list the different mission scripts (.lua files) you are using.

Re: Fatal error?

Posted: Sat Apr 11, 2015 9:39 pm
by DrDrSheldonLeeCooper
mus1z_con is the map

addme :
Hidden/Spoiler:
function MergeTables( mission, newFlags )
--for each table entry,
local array = type({})
for key,value in pairs(newFlags) do
--check for nested tables
if type(value) == array then
--mission must have this key as a table too
if type(mission[key]) ~= array then
mission[key] = {}
end
--merge these two tables recursively
MergeTables(mission[key], value)
else
--the key is a simple variable, so simply store it
mission[key] = value
end
end
end

--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
MergeTables(mission, newFlags)
end
end
end

--insert totally new maps here:
local sp_n = 0
local mp_n = 0
sp_n = table.getn(sp_missionselect_listbox_contents)

mp_n = table.getn(mp_missionselect_listbox_contents)
mp_missionselect_listbox_contents[mp_n+1] = sp_missionselect_listbox_contents[sp_n+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)

AddNewGameModes( sp_missionselect_listbox_contents, "myg1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})

AddNewGameModes( mp_missionselect_listbox_contents, "myg1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})




AddNewGameModes( sp_missionselect_listbox_contents, "cor1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})

AddNewGameModes( mp_missionselect_listbox_contents, "cor1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})




AddNewGameModes( sp_missionselect_listbox_contents, "dea1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})

AddNewGameModes( mp_missionselect_listbox_contents, "dea1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})




AddNewGameModes( sp_missionselect_listbox_contents, "tan1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})

AddNewGameModes( mp_missionselect_listbox_contents, "tan1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})




AddNewGameModes( sp_missionselect_listbox_contents, "tat2%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})
AddNewGameModes( mp_missionselect_listbox_contents, "tat2%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})




AddNewGameModes( sp_missionselect_listbox_contents, "uta1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})

AddNewGameModes( mp_missionselect_listbox_contents, "uta1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})




AddNewGameModes( sp_missionselect_listbox_contents, "geo1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})

AddNewGameModes( mp_missionselect_listbox_contents, "geo1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})




AddNewGameModes( sp_missionselect_listbox_contents, "tan1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})

AddNewGameModes( mp_missionselect_listbox_contents, "tan1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})




AddNewGameModes( sp_missionselect_listbox_contents, "kam1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})

AddNewGameModes( mp_missionselect_listbox_contents, "kam1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})




AddNewGameModes( sp_missionselect_listbox_contents, "kas2%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})

AddNewGameModes( mp_missionselect_listbox_contents, "kas2%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})




AddNewGameModes( sp_missionselect_listbox_contents, "nab2%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})

AddNewGameModes( mp_missionselect_listbox_contents, "nab2%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})




AddNewGameModes( sp_missionselect_listbox_contents, "fel1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})

AddNewGameModes( mp_missionselect_listbox_contents, "fel1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})




AddNewGameModes( sp_missionselect_listbox_contents, "yav1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})

AddNewGameModes( mp_missionselect_listbox_contents, "yav1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})




AddNewGameModes( sp_missionselect_listbox_contents, "yav2%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})

AddNewGameModes( mp_missionselect_listbox_contents, "yav2%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})




AddNewGameModes( sp_missionselect_listbox_contents, "hot1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})

AddNewGameModes( mp_missionselect_listbox_contents, "hot1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})




AddNewGameModes( sp_missionselect_listbox_contents, "spa6%s_%s", {era_z = 1, mode_Diet Dr. Pepper_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})

AddNewGameModes( mp_missionselect_listbox_contents, "spa6%s_%s", {era_z = 1, mode_Diet Dr. Pepper_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})




AddNewGameModes( sp_missionselect_listbox_contents, "mus1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})

AddNewGameModes( mp_missionselect_listbox_contents, "mus1%s_%s", {era_z = 1, mode_con_z = 1, change = { era_z = { name="Times before Empire", icon2="mode_icon_wea" }, }})




AddDownloadableContent("myg1","myg1z_con",4)
AddDownloadableContent("cor1","cor1z_con",4)
AddDownloadableContent("dea1","dea1z_con",4)
AddDownloadableContent("tan1","tan1z_con",4)
AddDownloadableContent("tat2","tat2z_con",4)
AddDownloadableContent("uta1","uta1z_con",4)
AddDownloadableContent("geo1","geo1z_con",4)
AddDownloadableContent("nab2","nab2z_con",4)
AddDownloadableContent("kas2","kas2z_con",4)
AddDownloadableContent("tan1","tan1z_con",4)
AddDownloadableContent("yav2","yav2z_con",4)
AddDownloadableContent("yav1","yav1z_con",4)
AddDownloadableContent("kam1","kam1z_con",4)
AddDownloadableContent("fel1","fel1z_con",4)
AddDownloadableContent("hot1","hot1z_con",4)
AddDownloadableContent("mus1","mus1z_con",4)

-- all done
newEntry = nil
n = nil

-- Now load our core.lvl into the shell to add our localize keys
ReadDataFile("..\\..\\addon\\MEL\\data\\_LVL_PC\\core.lvl")
mission.req
Hidden/Spoiler:
ucft
{
REQN
{
"config"
"ingame_movies"
}

REQN
{
"script"
"setup_teams"
"gametype_conquest"
"gametype_capture"
"Objective"
"MultiObjectiveContainer"
"ObjectiveCTF"
"ObjectiveAssault"
"ObjectiveSpaceAssault"
"ObjectiveConquest"
"ObjectiveTDM"
"ObjectiveOneFlagCTF"
"SoundEvent_ctf"
"ObjectiveGoto"
"LinkedShields"
"LinkedDestroyables"
"LinkedTurrets"
"Ambush"
"PlayMovieWithTransition"
}

REQN
{
"lvl"
"MELg_con"
"MELc_con"
"cor1z_con"
"geo1z_con"
"kas2z_con"
"tat2z_con"
"myg1z_con"
"dea1z_con"
"nab2z_con"
"spa6z_Diet Dr. Pepper"
"mus1z_con"
}
}
mus1z_con.req :
Hidden/Spoiler:
ucft
{
REQN
{
"script"
"mus1z_con"
}
}

Re: Fatal error?

Posted: Sat Apr 11, 2015 9:51 pm
by razac920
Hm that looks fine to me. But since you are using a custom era, he must have the 1.3 patch installed. I suspect that he doesn't.

Re: Fatal error?

Posted: Sat Apr 11, 2015 9:56 pm
by DrDrSheldonLeeCooper
He told me that he has the 1.3 patch.
I need one person more that could test it so I can know if there is something wrong by him or by me

Re: Fatal error?

Posted: Sun Apr 12, 2015 4:35 am
by hunpeter12
I will try it if you send it to me

Re: Fatal error?

Posted: Sun Apr 12, 2015 4:50 am
by Anakin
Ok so i'm sure that your fatal error is an pop-up window that says something like "... mission.lvl not found" and has only an ok button. when you press the game closes. It's a realy common error when there is no mission.lvl.
I'm 100% sure that the game doesn't work for you, eighter. OK yes you tell us it does, but that's just seems to work. Make an complete manuel clean and retry on your PC, and i'm sure it doesn't work, or it now munged the mission.

If you are useing Windows Vista + there will be an virtual store folder. that's where your munged files go to. and there is the SWBFII directory with the addon folder. Are you sure that you don't have your mod installed twice? (on in the actualy bf directory and one in the virtual store?)

Re: Fatal error?

Posted: Sun Apr 12, 2015 6:34 am
by DrDrSheldonLeeCooper
Yes something with mission.lvl he said.But I can´t understand this.
-I added the map to AddMe
-Added map to scripts (for sure with the custom letter)
-Added map to mission.req
-Added map.req to mission folder.
That should be everything right?

Re: Fatal error?

Posted: Sun Apr 12, 2015 8:53 am
by Anakin
Yes that should be all. Can you send me your map/mod? so i can test it.