Lua Error Help

Started by KingCurry1717, March 29, 2017, 04:04:06 PM

Previous topic - Next topic
March 29, 2017, 04:04:06 PM Last Edit: March 30, 2017, 01:04:42 AM by KingCurry1717
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
100...200...300...you guys are gonna make me rich ~ Boba Fett

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:
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

And now I feel stupid...Thank you so much!
:tu:
100...200...300...you guys are gonna make me rich ~ Boba Fett

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
"a tool is a tool, it isn't inherently evil or good." -Sleep killer

What lua is standing for to me...

Lots of Unusual and Abnormal codes
100...200...300...you guys are gonna make me rich ~ Boba Fett

thats a good one.
or how about:

Lucky its an
Undesirable
Ambition
"a tool is a tool, it isn't inherently evil or good." -Sleep killer

I read that, as soon as I just finished adding in new lua codes  :wacko:
100...200...300...you guys are gonna make me rich ~ Boba Fett

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.
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet