Page 1 of 1

What's wrong with this lua? [Solved]

Posted: Tue Dec 22, 2009 4:17 pm
by genaral_mitch
Ahh! It keeps saying ERROR*** .LUAC RETURNED! and I fixed it the first time when it was missing ) at the end af a side. But now it says it still and I looked through it and saw nothing.
Hidden/Spoiler:
function SetupUnits()
ReadDataFile("dc:SIDE\\rep.lvl",
"rep_inf_ep2_pilot",
"rep_inf_ep2_marine",
"rep_inf_fil",
"rep_fly_anakinstarfighter_sc",
"rep_fly_arc170fighter_sc",
"rep_veh_remote_terminal",
"rep_fly_gunship_sc",
"rep_fly_vwing")

ReadDataFile("SIDE\\cis.lvl",
"cis_inf_pilot",
"cis_inf_marine",
"cis_fly_droidfighter_sc",
"cis_fly_droidgunship",
"cis_fly_greviousfighter",
"cis_fly_tridroidfighter")

ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_spa_cis_beam",
"tur_bldg_spa_cis_chaingun",
"tur_bldg_spa_rep_beam",
"tur_bldg_spa_rep_chaingun",
"tur_bldg_chaingun_roof")

ReadDataFile("dc:SIDE\\vehicles.lvl",
"rep_fly_v19_sc")
)
end

myTeamConfig = {
rep = {
team = REP,
units = 32,
reinforcements = -1,
pilot = { "rep_inf_ep2_pilot",26},
marine = { "rep_inf_fil",1},
},
cis = {
team = CIS,
units = 32,
reinforcements = -1,
pilot = { "cis_inf_pilot",26},
marine = { "cis_inf_marine",6},

}
}

Re: What's wrong with this lua?

Posted: Tue Dec 22, 2009 4:26 pm
by AQT
Based on what you have there:

1. You don't need the function SetupUnits() line.
2. You have a random ) and end after "rep_fly_v19_sc").
3. myTeamConfig = { was made up. Have a look at a stock script to see how it's really set up.
4. You are missing a , after the second to last bracket.

Re: What's wrong with this lua?

Posted: Tue Dec 22, 2009 4:29 pm
by genaral_mitch
This a space lua.

Re: What's wrong with this lua?

Posted: Tue Dec 22, 2009 4:33 pm
by AQT
You have a random ) after "rep_fly_v19_sc").

Re: What's wrong with this lua?

Posted: Tue Dec 22, 2009 4:34 pm
by Darth_Spiderpig
genaral_mitch wrote:This a space lua.
Then you only have a ) too much after the torrent fighter part. :wink:

EDIT: Grmpf, again too slow. :x

Re: What's wrong with this lua?

Posted: Tue Dec 22, 2009 4:37 pm
by genaral_mitch
AQT, you're my hero! It works!

Re: What's wrong with this lua?

Posted: Tue Dec 22, 2009 4:39 pm
by Darth_Spiderpig
genaral_mitch wrote:AQT, you're my hero!

And me? :(

Lol, I know, I have to get faster. :lol: :thumbs:
But I am glad it works again.