Page 1 of 1

How do I solve this error?

Posted: Wed Sep 08, 2010 7:35 pm
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!

Re: How do I solve this error?

Posted: Wed Sep 08, 2010 8:18 pm
by genaral_mitch
Make sure you have an addme.

Re: How do I solve this error?

Posted: Wed Sep 08, 2010 8:19 pm
by Noobasaurus
In which folder? The addon of my map or somewhere else?

Re: How do I solve this error?

Posted: Wed Sep 08, 2010 8:26 pm
by acryptozoo
Noobasaurus wrote:In which folder? The addon of my map or somewhere else?
check the addme.lua in the addme folder

Re: How do I solve this error?

Posted: Wed Sep 08, 2010 8:36 pm
by Noobasaurus
Well, I have an addme in there. Is something wrong with it?

Re: How do I solve this error?

Posted: Wed Sep 08, 2010 8:37 pm
by acryptozoo
Noobasaurus wrote:Well, I have an addme in there. Is something wrong with it?
post it and we'll see :yes:

Re: How do I solve this error?

Posted: Wed Sep 08, 2010 8:38 pm
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.

Re: How do I solve this error?

Posted: Wed Sep 08, 2010 8:39 pm
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

Re: How do I solve this error?

Posted: Wed Sep 08, 2010 8:40 pm
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?

Re: How do I solve this error?

Posted: Wed Sep 08, 2010 8:42 pm
by acryptozoo
Which one?
XXXg_con.lua or XXX.c_con.lua depending on which era crashed

Re: How do I solve this error?

Posted: Wed Sep 08, 2010 8:43 pm
by PilotX
Whichever one goes to the map you were trying to load.

Re: How do I solve this error?

Posted: Wed Sep 08, 2010 9:00 pm
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.

Re: How do I solve this error?

Posted: Wed Sep 08, 2010 9:02 pm
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

Re: How do I solve this error?

Posted: Wed Sep 08, 2010 9:04 pm
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.