How do I solve this 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
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

How do I solve this error?

Post by Noobasaurus »

Anyone know how to solve this?

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LuaScript.cpp(435)
Script file addme not found


Thanks in advance.
...once I get this solved my first map will be on its way to gametoast!
Last edited by Noobasaurus on Wed Sep 08, 2010 8:18 pm, edited 1 time in total.
genaral_mitch
Jedi
Jedi
Posts: 1056
Joined: Fri Aug 14, 2009 12:32 am

Re: How do I solve this error?

Post by genaral_mitch »

Make sure you have an addme.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: How do I solve this error?

Post by Noobasaurus »

In which folder? The addon of my map or somewhere else?
User avatar
acryptozoo
Master Bounty Hunter
Master Bounty Hunter
Posts: 1642
Joined: Wed Jun 03, 2009 3:14 pm
Projects :: Yavin Mappack
Games I'm Playing :: Homeworld 2
xbox live or psn: acryptozoo
Location: in the jungles of Yavin IV
Contact:

Re: How do I solve this error?

Post by acryptozoo »

Noobasaurus wrote:In which folder? The addon of my map or somewhere else?
check the addme.lua in the addme folder
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: How do I solve this error?

Post by Noobasaurus »

Well, I have an addme in there. Is something wrong with it?
User avatar
acryptozoo
Master Bounty Hunter
Master Bounty Hunter
Posts: 1642
Joined: Wed Jun 03, 2009 3:14 pm
Projects :: Yavin Mappack
Games I'm Playing :: Homeworld 2
xbox live or psn: acryptozoo
Location: in the jungles of Yavin IV
Contact:

Re: How do I solve this error?

Post by acryptozoo »

Noobasaurus wrote:Well, I have an addme in there. Is something wrong with it?
post it and we'll see :yes:
User avatar
PilotX
Private
Posts: 35
Joined: Thu Jun 17, 2010 10:58 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: California

Re: How do I solve this error?

Post by PilotX »

It's probably not the addme otherwise it would crash on load or the map wouldn't load. It is probably an error with another lua.
User avatar
acryptozoo
Master Bounty Hunter
Master Bounty Hunter
Posts: 1642
Joined: Wed Jun 03, 2009 3:14 pm
Projects :: Yavin Mappack
Games I'm Playing :: Homeworld 2
xbox live or psn: acryptozoo
Location: in the jungles of Yavin IV
Contact:

Re: How do I solve this error?

Post by acryptozoo »

PilotX wrote:It's probably not the addme otherwise it would crash on load or the map wouldn't load. It is probably an error with another lua.
yeah forgot about that . . . probably the main lua then
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: How do I solve this error?

Post by Noobasaurus »

acryptozoo wrote:post it and we'll see
Ok:
--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)

sp_missionselect_listbox_contents[sp_n+1] = { isModLevel = 1, mapluafile = "ISL%s_%s", era_g = 1, era_c = 1, mode_con_g = 1, mode_con_c = 1,}
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)

AddDownloadableContent("ISL","ISLg_con",4)
AddDownloadableContent("ISL","ISLc_con",4)

-- all done
newEntry = nil
n = nil

-- Now load our core.lvl into the shell to add our localize keys
ReadDataFile("..\\..\\addon\\ISL\\data\\_LVL_PC\\core.lvl")

Or did you want me to attach it?
PilotX wrote:It's probably not the addme otherwise it would crash on load or the map wouldn't load. It is probably an error with another lua.
Which one?
User avatar
acryptozoo
Master Bounty Hunter
Master Bounty Hunter
Posts: 1642
Joined: Wed Jun 03, 2009 3:14 pm
Projects :: Yavin Mappack
Games I'm Playing :: Homeworld 2
xbox live or psn: acryptozoo
Location: in the jungles of Yavin IV
Contact:

Re: How do I solve this error?

Post by acryptozoo »

Which one?
XXXg_con.lua or XXX.c_con.lua depending on which era crashed
User avatar
PilotX
Private
Posts: 35
Joined: Thu Jun 17, 2010 10:58 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: California

Re: How do I solve this error?

Post by PilotX »

Whichever one goes to the map you were trying to load.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: How do I solve this error?

Post by Noobasaurus »

acryptozoo wrote:XXXg_con.lua or XXX.c_con.lua depending on which era crashed
Well, once SWBF2 loads it crashes. I dont even get the the selection screen.
User avatar
acryptozoo
Master Bounty Hunter
Master Bounty Hunter
Posts: 1642
Joined: Wed Jun 03, 2009 3:14 pm
Projects :: Yavin Mappack
Games I'm Playing :: Homeworld 2
xbox live or psn: acryptozoo
Location: in the jungles of Yavin IV
Contact:

Re: How do I solve this error?

Post by acryptozoo »

Noobasaurus wrote:
acryptozoo wrote:XXXg_con.lua or XXX.c_con.lua depending on which era crashed
Well, once battlefront loads it crashes. I dont even get the the selection screen.
wait so the whole BF2 crashed then i dont think thats a problem with your map
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: How do I solve this error?

Post by CressAlbane »

It is I believe, an incorrect addme can cause the game to not be able to set up properly.
Try manual clean and remunge.
Post Reply