Hi,
I'm having an issue when I munge and as far as I can tell it fails to read the MAPc_con.lua file which I have edited and uses all the defaults instead.
I'm pretty sure it has something to do with me adding in a new line in the script; all my changes work fine until I add (rather than replace) something. The error log seems to show this too:
Hidden/Spoiler:
C:\BF2_ModTools\data_TDS\_BUILD\Common\..\..\..\ToolsFL\Bin\luac.exe: ..\..\common\scripts\TDS\TDSc_con.lua:93: `)' expected (to close `(' at line 84) near `"cis_walk_spider"'
ERROR[scriptmunge scripts\TDS\TDSc_con.lua]:Could not read input file.ERROR[scriptmunge scripts\TDS\TDSc_con.lua]:Could not read input file. [continuing]
Any advice? Thanks.
Re: Error in lua files.
Posted: Sun Mar 23, 2014 2:30 pm
by DarthD.U.C.K.
as the error says, you forgot to add the bracket in line 93 to close off the clause startet at line 84.
also, when getting lua errors, its best to post your script here in hide-tags so people can help you better.
Re: Error in lua files.
Posted: Sun Mar 23, 2014 3:02 pm
by thejolf
Yeah that's what I thought but I have the bracket, here:
It's the bit at the very bottom, it just occurred to me that it might be the missing comma after "...aat" could that be the issue?
Also, seeing as I've just posted the relevant script, I don't know how to spawn command vehicles. With the AT-TE I've noticed there are two names for use in the script; 'rep_walk_atte' and 'rep_walk_atte_nospawn'. I haven't been able to get either of them working properly so far.
Re: Error in lua files.
Posted: Sun Mar 23, 2014 3:15 pm
by Marth8880
Re: the comma, Yes, that would most likely be the issue.