Page 1 of 1

Munging Problem

Posted: Sat Jan 08, 2005 3:09 pm
by Lord_Bandu
I have copied the historical campaign Naboo to try and get those Fambaa Shields but i have come across a problem with munging but i cant tell what its tryin to say ..

Munging Nabc.lua
luac: ' )' expected (to close '(' at line 43);
last token read.' ' " nab_bldg_fambaa_shield"' at line 46 in file '..\..\common\.scripts\ Nab\Nabc.lua


my mod is called Nab by the way. here is the lua of my mod:

ReadDataFile("dc:SIDE\\gun.lvl",
"gun_inf_basic",
"gun_walk_kaadu"
"nab_bldg_fambaa_shield")


on a side note ...i seem to have no music whatsoever in my map ...even the victory screen has no music . here are those parts in my lua:

-- Sound
OpenAudioStream("sound\\nab.lvl", "nabcw_music");
OpenAudioStream("sound\\cw.lvl", "cw_vo");
OpenAudioStream("sound\\cw.lvl", "cw_tac_vo");
OpenAudioStream("sound\\nab.lvl", "nab1");
OpenAudioStream("sound\\nab.lvl", "nab1");


SetAmbientMusic(GUN, 1.0, "rep_nab_amb_start", 0,1);
SetAmbientMusic(GUN, 0.98, "rep_nab_amb_middle", 1,1);
SetAmbientMusic(GUN, 0.1,"rep_nab_amb_end", 2,1);
SetAmbientMusic(CIS, 1.0, "cis_nab_amb_start", 0,1);
SetAmbientMusic(CIS, 0.98, "cis_nab_amb_middle", 1,1);
SetAmbientMusic(CIS, 0.1,"cis_nab_amb_end", 2,1);

SetVictoryMusic(GUN, "rep_nab_amb_victory");
SetDefeatMusic (GUN, "rep_nab_amb_defeat");
SetVictoryMusic(CIS, "cis_nab_amb_victory");
SetDefeatMusic (CIS, "cis_nab_amb_defeat");

thanks for any help.

RE: Munging Problem

Posted: Sat Jan 08, 2005 3:32 pm
by Saturn_V
If you have copied/pasted that section of the lua, you are missing a comma after "gun_walk_kaadu"
The error message says you are missing a close bracket, check for that too.

RE: Munging Problem

Posted: Sat Jan 08, 2005 3:52 pm
by Rends
for your sound problem. do you have the line
ReadDataFile("sound\\nab.lvl;nab1cw"); in the lua ?

RE: Munging Problem

Posted: Sat Jan 08, 2005 4:03 pm
by Lord_Bandu
yes . my mod is called Nab(not nab) so it can get a little confusing at times .


also iv added some kaadus and fambaas to my map but now when i try and play the map my cp's are gone (even tho they are in the zeroedit) and i cant spawn .