Error in lua files.

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
thejolf
Recruit Womprat Killer
Posts: 9
Joined: Wed Mar 19, 2014 10:37 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Error in lua files.

Post by thejolf »

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.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Error in lua files.

Post 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.
thejolf
Recruit Womprat Killer
Posts: 9
Joined: Wed Mar 19, 2014 10:37 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: Error in lua files.

Post by thejolf »

Yeah that's what I thought but I have the bracket, here:
Hidden/Spoiler:
ReadDataFile("SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_hover_fightertank",
"rep_hero_obiwan",
"rep_walk_atte")
ReadDataFile("SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_hero_grievous",
"cis_hover_aat"
"cis_walk_spider")
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.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Error in lua files.

Post by Marth8880 »

Re: the comma, Yes, that would most likely be the issue.
Post Reply