Ok, first post here...
So, i'm having an issue I cant seem to wrap my head around. While making my SWBF2 map, and munging, I got this error:
C:\BF2_ModTools\data_BOJ\_BUILD\Common\..\..\..\ToolsFL\Bin\luac.exe: ..\..\common\scripts\BOJ\BOJg_con.lua:94: `)' expected (to close `(' at line 85) near `"imp_walk_atat"'
ERROR[scriptmunge scripts\BOJ\BOJg_con.lua]:Could not read input file.ERROR[scriptmunge scripts\BOJ\BOJg_con.lua]:Could not read input file. [continuing]
2 Errors 0 Warnings
ERROR[levelpack mission\BOJg_con.req]:Expecting bracket, but none was found.
File : munged\pc\bojg_con.script.req(1)...
ucft <--
ERROR[levelpack mission\BOJg_con.req]:Expecting bracket, but none was found.
File : munged\pc\bojg_con.script.req(1)...
ucft <--
2 Errors 0 Warnings
ERROR[levelpack shell.req]:Input file shell.req does not exist. [continuing]
1 Errors 0 Warnings
(It goes on even longer with some incoherent gibberish I do not think anyone would understand :confused:)
Ive checked my lua, and it appears to be correct, and I didn't seem to get any parsing issues, does anyone know...what is going on .-.
I've also attached my lua if anyone can check it out for me...thanks...
~King Curry
I suspect you missed some commas (added in red)
ReadDataFile("SIDE\\imp.lvl",
"imp_inf_rifleman",
"imp_inf_rocketeer",
"imp_inf_engineer",
"imp_inf_sniper",
"imp_inf_officer",
"imp_inf_dark_trooper",
"imp_hero_bobafett",
"imp_fly_destroyer_dome",
"imp_walk_atat",
"imp_walk_atst")
and welcome to the site :cheers:
And now I feel stupid...Thank you so much!
:tu:
i do that all the time... only sometimes its a ; insted of a , :P
lua scripting is a bit of nightmare for me and guess what my
profile name initials are:
Linux
User
Awesome
LUA
What lua is standing for to me...
Lots of Unusual and Abnormal codes
thats a good one.
or how about:
Lucky its an
Undesirable
Ambition
I read that, as soon as I just finished adding in new lua codes :wacko:
The only thing I will add, is that when you get an error code with a line number in it (in this case 94) take a very close look at that line and the one above it to see if there is anything wrong. Happy scripting.