No CP´s and bracket problem

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
FOOLIS
Jedi
Jedi
Posts: 1038
Joined: Tue Jan 16, 2007 3:59 pm
Location: Germany

No CP´s and bracket problem

Post by FOOLIS »

HI guys my last problem is solved and the map will load BUT there are no CP´s and i got this :


ERROR[levelpack all.req]:Expecting bracket, but none was found.
File : munged\pc\all_droid_r2d2.lvl.req(1)...

ucft <--
ERROR[levelpack all.req]:Expecting bracket, but none was found.
File : munged\pc\all_droid_r2d2.lvl.req(1)...

ucft <--

2 Errors 0 Warnings

ERROR[levelpack imp.req]:Expecting bracket, but none was found.
File : munged\pc\imp_droid_probe.lvl.req(1)...

ucft <--
ERROR[levelpack imp.req]:Expecting bracket, but none was found.
File : munged\pc\imp_droid_probe.lvl.req(1)...

ucft <--

2 Errors 0 Warnings

ERROR[levelpack jdi.req]:Expecting bracket, but none was found.
File : munged\pc\jdi_demojedi.lvl.req(1)...

ucft <--
ERROR[levelpack jdi.req]:Expecting bracket, but none was found.
File : munged\pc\jdi_demojedi.lvl.req(1)...

ucft <--

2 Errors 0 Warnings

ERROR[levelpack jed.req]:Expecting bracket, but none was found.
File : munged\pc\jed_knight_01.lvl.req(1)...

ucft <--
ERROR[levelpack jed.req]:Expecting bracket, but none was found.
File : munged\pc\jed_knight_01.lvl.req(1)...

ucft <--

2 Errors 0 Warnings

ERROR[levelpack jdi.req]:Expecting bracket, but none was found.
File : munged\pc\jdi_demojedi.lvl.req(1)...

ucft <--
ERROR[levelpack jdi.req]:Expecting bracket, but none was found.
File : munged\pc\jdi_demojedi.lvl.req(1)...

ucft <--

2 Errors 0 Warnings

ERROR[levelpack tur.req]:Expecting bracket, but none was found.
File : munged\pc\tur_bldg_chaingun_roof.lvl.req(1)...

ucft <--
ERROR[levelpack tur.req]:Expecting bracket, but none was found.
File : munged\pc\tur_bldg_chaingun_roof.lvl.req(1)...

ucft <--

2 Errors 0 Warnings

ERROR[levelpack FST.req]:Expecting bracket, but none was found.
File : munged\pc\fst_conquest.lvl.req(1)...

ucft <--
ERROR[levelpack FST.req]:Expecting bracket, but none was found.
File : munged\pc\fst_conquest.lvl.req(1)...

ucft <--
[continuing]
ERROR[levelpack tat2.req]:Expecting bracket, but none was found.
File : munged\pc\tat2_ctf.lvl.req(1)...

ucft <--
ERROR[levelpack tat2.req]:Expecting bracket, but none was found.
File : munged\pc\tat2_ctf.lvl.req(1)...

ucft <--
[continuing]
4 Errors 0 Warnings

ERROR[levelpack FST.req]:Expecting bracket, but none was found.
File : munged\pc\fst_conquest.lvl.req(1)...

ucft <--
ERROR[levelpack FST.req]:Expecting bracket, but none was found.
File : munged\pc\fst_conquest.lvl.req(1)...

ucft <--
[continuing]
ERROR[levelpack tat2.req]:Expecting bracket, but none was found.
File : munged\pc\tat2_ctf.lvl.req(1)...

ucft <--
ERROR[levelpack tat2.req]:Expecting bracket, but none was found.
File : munged\pc\tat2_ctf.lvl.req(1)...

ucft <--
[continuing]
4 Errors 0 Warnings
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: No CP´s and bracket problem

Post by [RDH]Zerted »

Do a full clean and never stop a muinge.
FOOLIS
Jedi
Jedi
Posts: 1038
Joined: Tue Jan 16, 2007 3:59 pm
Location: Germany

RE: No CP´s and bracket problem

Post by FOOLIS »

AWW when i make a clean my map wont load and it says , FATAL ERROR couldnt open MISSION\FSTg_con o.O
Abiter_b

Post by Abiter_b »

did you munge it again after you cleaned:?:
FOOLIS
Jedi
Jedi
Posts: 1038
Joined: Tue Jan 16, 2007 3:59 pm
Location: Germany

Post by FOOLIS »

yes , of course :roll:
Abiter_b

Post by Abiter_b »

well then make sure that its right in the addme.lua the mission.req(in common) and that the req is right in common/mission if thats all right and it still dosn't work then post ya lua
FOOLIS
Jedi
Jedi
Posts: 1038
Joined: Tue Jan 16, 2007 3:59 pm
Location: Germany

Post by FOOLIS »

okay here is the addme.lua :

--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 = "FST%s_%s", era_g = 1, mode_con_g = 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("FST","FSTg_con",4)
AddDownloadableContent("FST","FSTc_con",4)

-- all done
newEntry = nil
n = nil

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

Post by Abiter_b »

This part is missing a comma
sp_missionselect_listbox_contents[sp_n+1] = { isModLevel = 1, mapluafile = "FST%s_%s", era_g = 1, mode_con_g = 1}
it should b like this(the red comma was the missing comma) :wink:
sp_missionselect_listbox_contents[sp_n+1] = { isModLevel = 1, mapluafile = "FST%s_%s", era_g = 1, mode_con_g = 1,}
FOOLIS
Jedi
Jedi
Posts: 1038
Joined: Tue Jan 16, 2007 3:59 pm
Location: Germany

Post by FOOLIS »

okay problem is sloved i re-installed the modtools
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

Abiter_b wrote:This part is missing a comma
sp_missionselect_listbox_contents[sp_n+1] = { isModLevel = 1, mapluafile = "FST%s_%s", era_g = 1, mode_con_g = 1}
it should b like this(the red comma was the missing comma) :wink:
sp_missionselect_listbox_contents[sp_n+1] = { isModLevel = 1, mapluafile = "FST%s_%s", era_g = 1, mode_con_g = 1,}
That actually doesn't make any difference at all. The comma is only required when you are adding another gametype. Otherwise it's optional.
Post Reply