Hi, I'm new to modding. I've been using a guide, but when I munged the following error. Someone please help?
C:\BF2_ModTools\data_MAP\_BUILD\Common\..\..\..\ToolsFL\Bin\luac.exe: ..\..\common\scripts\MAP\MAPg_con.lua:96: `)' expected (to close `(' at line 87) near `"imp_hover_speederbike"'
ERROR[scriptmunge scripts\MAP\MAPg_con.lua]:Could not read input file.ERROR[scriptmunge scripts\MAP\MAPg_con.lua]:Could not read input file. [continuing]
2 Errors 0 Warnings
ERROR[levelpack mission\MAPg_con.req]:Expecting bracket, but none was found.
File : munged\pc\mapg_con.script.req(1)...
ucft <--
ERROR[levelpack mission\MAPg_con.req]:Expecting bracket, but none was found.
File : munged\pc\mapg_con.script.req(1)...
ucft <--
2 Errors 0 Warnings
New to modding. Error munging after adding vehicles.
Moderator: Moderators
-
poke
- Posts: 3
- Joined: Tue Sep 11, 2012 4:51 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
-
Bob
- Brigadier General

- Posts: 633
- Joined: Thu May 27, 2010 4:28 am
- Location: at home
Re: New to modding. Error munging after adding vehicles.
Looks like a simple syntax error in your MAPg_con.lua at the place where you added the imp_hover_speederbike. May we see that passage?
-
FragMe!
- Gametoast Staff

- Posts: 2244
- Joined: Sat May 13, 2006 12:34 am
- Projects :: Not sure keep changing my mind.
- xbox live or psn: No gamertag set
- Location: Origin name GT_FragMe
- Contact:
Re: New to modding. Error munging after adding vehicles.
Error log says what is missing
C:\BF2_ModTools\data_MAP\_BUILD\Common\..\..\..\ToolsFL\Bin\luac.exe: ..\..\common\scripts\MAP\MAPg_con.lua:96: `)' expected (to close `(' at line 87) near `"imp_hover_speederbike"'
need a closing bracket at or near the line indicated
C:\BF2_ModTools\data_MAP\_BUILD\Common\..\..\..\ToolsFL\Bin\luac.exe: ..\..\common\scripts\MAP\MAPg_con.lua:96: `)' expected (to close `(' at line 87) near `"imp_hover_speederbike"'
need a closing bracket at or near the line indicated
-
poke
- Posts: 3
- Joined: Tue Sep 11, 2012 4:51 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: New to modding. Error munging after adding vehicles.
Here is the script that I'm getting the error with.
Hidden/Spoiler:
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: New to modding. Error munging after adding vehicles.
You currently have:
But it should be:
Code: Select all
"imp_fly_destroyer_dome"Code: Select all
"imp_fly_destroyer_dome",-
poke
- Posts: 3
- Joined: Tue Sep 11, 2012 4:51 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: New to modding. Error munging after adding vehicles.
Thank you everyone. I was able to get the speederbikes in the map. I do have two questions though.
1. Can the rep., cis, etc. only spawn vehicles from their cps that are coded for them? (can the republic have imperial speederbikes?)
2. How do you delete an object in zeroeditor?
1. Can the rep., cis, etc. only spawn vehicles from their cps that are coded for them? (can the republic have imperial speederbikes?)
2. How do you delete an object in zeroeditor?
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: New to modding. Error munging after adding vehicles.
1. Vehicles/units aren't specifically coded to any of the four main factions. As long as the vehicle is loaded from the side .lvl that it is normally found in, you can assign it to spawn at whoever's CP you want it to spawn at.
2. Use the Delete key. For more about the Delete key and other ZE features check out the document entitled ZeroEditor_guide.doc, which can be found in the directory BF2_ModTools\documentation.
2. Use the Delete key. For more about the Delete key and other ZE features check out the document entitled ZeroEditor_guide.doc, which can be found in the directory BF2_ModTools\documentation.
