Page 1 of 1

No CP´s and bracket problem

Posted: Mon Jul 09, 2007 4:54 pm
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

RE: No CP´s and bracket problem

Posted: Tue Jul 10, 2007 12:32 am
by [RDH]Zerted
Do a full clean and never stop a muinge.

RE: No CP´s and bracket problem

Posted: Tue Jul 10, 2007 3:39 am
by FOOLIS
AWW when i make a clean my map wont load and it says , FATAL ERROR couldnt open MISSION\FSTg_con o.O

Posted: Tue Jul 10, 2007 4:59 am
by Abiter_b
did you munge it again after you cleaned:?:

Posted: Tue Jul 10, 2007 5:00 am
by FOOLIS
yes , of course :roll:

Posted: Tue Jul 10, 2007 5:53 am
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

Posted: Tue Jul 10, 2007 7:16 am
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")

Posted: Tue Jul 10, 2007 8:02 am
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,}

Posted: Tue Jul 10, 2007 1:15 pm
by FOOLIS
okay problem is sloved i re-installed the modtools

Posted: Tue Jul 10, 2007 1:25 pm
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.