I followed the directions but when I played my map no Gungans.
Munge error report=
ERROR[levelpack mission\BFDc_con.req]:Expecting bracket, but none was found.
File : munged\pc\bfdc_con.script.req(1)...
ucft <--
ERROR[levelpack mission\BFDc_con.req]:Expecting bracket, but none was found.
File : munged\pc\bfdc_con.script.req(1)...
ucft <--
2 Errors 0 Warnings
This is from my maps script (this it were I think the error is coming from)=
SetTeamName (3, "Gungan")
AddUnitClass (3, "gun_inf_soldier", 10,15)
AddUnitClass (3, "gun_inf_defender", 10,15)
SetUnitCount (3, 15)
AddAIGoal(3, "Deathmatch", 100)
SetTeamAsEnemy(ATT,3)
SetTeamAsEnemy(3,ATT)
SetTeamAsEnemy(DEF,3)
SetTeamAsEnemy(3,DEF)
Anybody know were I'm missing the bracket? If I need to post anything else from my maps script let me know. THANKS
Can't add Gungans [Solved]
Moderator: Moderators
- DarthHamster
- Rebel Warrant Officer

- Posts: 300
- Joined: Wed Nov 18, 2009 9:09 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Orlando, Florida
- Contact:
- CodaRez
- Field Commander

- Posts: 940
- Joined: Mon May 25, 2009 6:49 am
- Projects :: I would like one.....
- Location: Ride around the world! And I won't give you anything :P
Re: Can't add Gungans
Post the WHOLE LUA instead dude, outta help more.DarthHamster wrote:Hidden/Spoiler:
(and also, u arent missing any there i believe, u may be missing more above, if u know what i mean)
- DarthHamster
- Rebel Warrant Officer

- Posts: 300
- Joined: Wed Nov 18, 2009 9:09 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Orlando, Florida
- Contact:
Re: Can't add Gungans
Is this what you mean.
ReadDataFile("SIDE\\gun.lvl",
"gun_inf_soldier"
"gun_inf_defender")
(thats from my script)
Besides that all I changed was adding the cp.
cp7 = CommandPost:New{name = "local_cp1"}
ReadDataFile("SIDE\\gun.lvl",
"gun_inf_soldier"
"gun_inf_defender")
(thats from my script)
Besides that all I changed was adding the cp.
cp7 = CommandPost:New{name = "local_cp1"}
-
501st_commander
- Master Bounty Hunter

- Posts: 1570
- Joined: Wed Dec 10, 2008 7:48 pm
Re: Can't add Gungans
ReadDataFile("SIDE\\gun.lvl",
"gun_inf_soldier", // add a , after each line in a readdatafile("side//blahblah except the last line
"gun_inf_defender")
- DarthHamster
- Rebel Warrant Officer

- Posts: 300
- Joined: Wed Nov 18, 2009 9:09 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Orlando, Florida
- Contact:
Re: Can't add Gungans
Added the coma and it WORKED!
THANK YOU 501st_commander. Its amazing all that crap in the error report was caused by a missing coma! Just one question in the errors why did it say I was missing a bracket when I was missing a coma?
gtpwn
gtpwn
- CodaRez
- Field Commander

- Posts: 940
- Joined: Mon May 25, 2009 6:49 am
- Projects :: I would like one.....
- Location: Ride around the world! And I won't give you anything :P
Re: Can't add Gungans
The LUA stops working because of a tiny coma, and the error log tells u its a bracket.DarthHamster wrote:Added the coma and it WORKED!THANK YOU 501st_commander. Its amazing all that crap in the error report was caused by a missing coma! Just one question in the errors why did it say I was missing a bracket when I was missing a coma?
gtpwn
See the connection?
Obviously this system is real fussy yet inferior at the same time
(but hey, it makes great maps)
-
501st_commander
- Master Bounty Hunter

- Posts: 1570
- Joined: Wed Dec 10, 2008 7:48 pm
Re: Can't add Gungans [Solved]
Here is how it works. If it's missing a comma it looks for a bracket like this:
ReadDataFile("SIDE\\gun.lvl",
"gun_inf_soldier") // no comma. end. looking for bracket.. found.
"gun_inf_defender") //ERROR
If you have a comma it tells the VM that it has another line to add.
ReadDataFile("SIDE\\gun.lvl",
"gun_inf_soldier", // comma. add next line.
"gun_inf_defender") // no comma. end. looking for bracket.. found.
If no comma or bracket on line.
ReadDataFile("SIDE\\gun.lvl",
"gun_inf_soldier" // No comma. No bracket. ERROR
"gun_inf_defender") //ERROR
ReadDataFile("SIDE\\gun.lvl",
"gun_inf_soldier") // no comma. end. looking for bracket.. found.
"gun_inf_defender") //ERROR
If you have a comma it tells the VM that it has another line to add.
ReadDataFile("SIDE\\gun.lvl",
"gun_inf_soldier", // comma. add next line.
"gun_inf_defender") // no comma. end. looking for bracket.. found.
If no comma or bracket on line.
ReadDataFile("SIDE\\gun.lvl",
"gun_inf_soldier" // No comma. No bracket. ERROR
"gun_inf_defender") //ERROR
- DarthHamster
- Rebel Warrant Officer

- Posts: 300
- Joined: Wed Nov 18, 2009 9:09 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Orlando, Florida
- Contact:
Re: Can't add Gungans [Solved]
Ahhh I get it. Thanks.
