Fatal error?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
DrDrSheldonLeeCooper
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sat Apr 26, 2014 1:50 pm
Projects :: Times before Empire
Games I'm Playing :: SWBF2-BF-Skyrim
xbox live or psn: No gamertag set
Location: Coruscant City [Germany]

Fatal error?

Post 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?
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Fatal error?

Post 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,...
DrDrSheldonLeeCooper
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sat Apr 26, 2014 1:50 pm
Projects :: Times before Empire
Games I'm Playing :: SWBF2-BF-Skyrim
xbox live or psn: No gamertag set
Location: Coruscant City [Germany]

Re: Fatal error?

Post by DrDrSheldonLeeCooper »

Custom era,but I think he would tell me what for an error when there would be a log
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Fatal error?

Post by Noobasaurus »

Does he have the v1.3 patch installed?
DrDrSheldonLeeCooper
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sat Apr 26, 2014 1:50 pm
Projects :: Times before Empire
Games I'm Playing :: SWBF2-BF-Skyrim
xbox live or psn: No gamertag set
Location: Coruscant City [Germany]

Re: Fatal error?

Post by DrDrSheldonLeeCooper »

I will ask him.
Is anybody here who would download my mod and tries if it crashes too?
Sandtrooper956
Corporal
Corporal
Posts: 158
Joined: Thu Jul 31, 2014 3:58 pm
Projects :: Just some little things
Games I'm Playing :: SWBF2 and EAW
xbox live or psn: No gamertag set

Re: Fatal error?

Post by Sandtrooper956 »

It's because there isn't a mission.lvl for Mustafar in your Era Mod.
Last edited by Sandtrooper956 on Sat Apr 11, 2015 6:39 pm, edited 2 times in total.
DrDrSheldonLeeCooper
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sat Apr 26, 2014 1:50 pm
Projects :: Times before Empire
Games I'm Playing :: SWBF2-BF-Skyrim
xbox live or psn: No gamertag set
Location: Coruscant City [Germany]

Re: Fatal error?

Post by DrDrSheldonLeeCooper »

And how can I fix that?
I can play with no error
Sandtrooper956
Corporal
Corporal
Posts: 158
Joined: Thu Jul 31, 2014 3:58 pm
Projects :: Just some little things
Games I'm Playing :: SWBF2 and EAW
xbox live or psn: No gamertag set

Re: Fatal error?

Post by Sandtrooper956 »

Are you sure you are playing the same version of your mod as him?
DrDrSheldonLeeCooper
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sat Apr 26, 2014 1:50 pm
Projects :: Times before Empire
Games I'm Playing :: SWBF2-BF-Skyrim
xbox live or psn: No gamertag set
Location: Coruscant City [Germany]

Re: Fatal error?

Post by DrDrSheldonLeeCooper »

Yes I´m very sure.
Sandtrooper956
Corporal
Corporal
Posts: 158
Joined: Thu Jul 31, 2014 3:58 pm
Projects :: Just some little things
Games I'm Playing :: SWBF2 and EAW
xbox live or psn: No gamertag set

Re: Fatal error?

Post by Sandtrooper956 »

Well ask him what the fatal error says, that's the only way to figure out the problem.
DrDrSheldonLeeCooper
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sat Apr 26, 2014 1:50 pm
Projects :: Times before Empire
Games I'm Playing :: SWBF2-BF-Skyrim
xbox live or psn: No gamertag set
Location: Coruscant City [Germany]

Re: Fatal error?

Post by DrDrSheldonLeeCooper »

Okay.
Thank you
razac920
2nd Lieutenant
2nd Lieutenant
Posts: 365
Joined: Sun Jan 16, 2011 12:42 am

Re: Fatal error?

Post by razac920 »

Please post your addme, and list the different mission scripts (.lua files) you are using.
DrDrSheldonLeeCooper
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sat Apr 26, 2014 1:50 pm
Projects :: Times before Empire
Games I'm Playing :: SWBF2-BF-Skyrim
xbox live or psn: No gamertag set
Location: Coruscant City [Germany]

Re: Fatal error?

Post 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"
}
}
razac920
2nd Lieutenant
2nd Lieutenant
Posts: 365
Joined: Sun Jan 16, 2011 12:42 am

Re: Fatal error?

Post 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.
DrDrSheldonLeeCooper
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sat Apr 26, 2014 1:50 pm
Projects :: Times before Empire
Games I'm Playing :: SWBF2-BF-Skyrim
xbox live or psn: No gamertag set
Location: Coruscant City [Germany]

Re: Fatal error?

Post 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
hunpeter12
Command Sergeant Major
Command Sergeant Major
Posts: 260
Joined: Mon Apr 18, 2011 2:53 pm
Projects :: Underground City The Complex [WIP]
Games I'm Playing :: SWBF2

Re: Fatal error?

Post by hunpeter12 »

I will try it if you send it to me
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Fatal error?

Post 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?)
DrDrSheldonLeeCooper
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sat Apr 26, 2014 1:50 pm
Projects :: Times before Empire
Games I'm Playing :: SWBF2-BF-Skyrim
xbox live or psn: No gamertag set
Location: Coruscant City [Germany]

Re: Fatal error?

Post 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?
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Fatal error?

Post by Anakin »

Yes that should be all. Can you send me your map/mod? so i can test it.
Post Reply