ReadDataFile("SIDE\\gun.lvl",
"gun_inf_soldier", // add a , after each line in a readdatafile("side//blahblah except the last line
"gun_inf_defender")
Re: Can't add Gungans
Posted: Wed Dec 02, 2009 11:35 pm
by DarthHamster
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
Re: Can't add Gungans
Posted: Wed Dec 02, 2009 11:44 pm
by CodaRez
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
The LUA stops working because of a tiny coma, and the error log tells u its a bracket.
See the connection?
Obviously this system is real fussy yet inferior at the same time
(but hey, it makes great maps)
Re: Can't add Gungans [Solved]
Posted: Wed Dec 02, 2009 11:53 pm
by 501st_commander
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