SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF2 Modding => Topic started by: KingCurry1717 on March 29, 2017, 04:04:06 PM

Title: Lua Error Help
Post by: KingCurry1717 on March 29, 2017, 04:04:06 PM
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
Title: Re: Lua Error Help
Post by: Led on March 29, 2017, 04:22:39 PM
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:
Title: Re: Lua Error Help
Post by: KingCurry1717 on March 30, 2017, 12:03:25 AM
And now I feel stupid...Thank you so much!
:tu:
Title: Re: Lua Error Help
Post by: Linux user Awesome on March 30, 2017, 12:30:51 AM
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
Title: Re: Lua Error Help
Post by: KingCurry1717 on March 30, 2017, 01:03:34 AM
What lua is standing for to me...

Lots of Unusual and Abnormal codes
Title: Re: Lua Error Help
Post by: Linux user Awesome on March 30, 2017, 07:44:55 AM
thats a good one.
or how about:

Lucky its an
Undesirable
Ambition
Title: Re: Lua Error Help
Post by: KingCurry1717 on March 30, 2017, 10:57:27 AM
I read that, as soon as I just finished adding in new lua codes  :wacko:
Title: Re: Lua Error Help
Post by: Led on March 30, 2017, 11:07:23 AM
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.
EhPortal 1.34 © 2024, WebDev