Jump to content

Error Reading Cartridge


Zorkan_Heneron

Recommended Posts

I have almost completed a cartridge and now when I try to open it up in the builder I get the following:

Error Reading Cartridge.

System.ApplicationException: Exeption of type 'System.ApplicationException' was thrown.

at Groundspeak.Wherigo.ZonesEngine.ZonesEngineDll.LuaDoFile(String filename)

at ZonesAuthor.LuaFunctions.ReadLuaCartridge(String luaFileName)

at ZonesAuthor.frmMain.OpenCartridgeFile()

 

Any ideas on how I can resolve this.

 

Zorkan Heneron

Link to comment

Do you have a GWZ file (ZIP file with GWC file and all medias)? If yes, you could upload it to the new compiler site (http://foundation.rangerfox.com/tools/compiler.aspx) and see, where the problem is. If you only have the GWC file, you could download a Lua 5.1 compiler (http://sourceforge.net/projects/luabinaries/files/5.1.5/Tools%20Executables/lua-5.1.5_Win32_bin.zip/download) and compile the GWC file. Than you could altough see the problem.

Link to comment

Oh, I forgot, that not all know, how to use the command line tool.

 

Ok, you have two possibilities:

1. Send me the defekt GWC file via e-mail to info(at)wfplayer.com and I look, if I could find the problem

2. You follow the description below

 

Howto use Lua compiler to check LUA files from Groundspeak Wherigo Builder under Windows

1. Copy the LUA file into the folder with the Lua compiler (it is the easiest way)

2. Open a command line by <Start><Run...>, type "cmd" and start it

3. Change the folder with "cd <Folder, where the Lua compiler is>" to the correct folder

4. Start the Lua compiler by "luac5.1.exe -p <filename of the LUA file>"

5. If there are any errors, than you see the messages on the screen

Link to comment

To bring this to an end: the problem was, that the author used commands, which startet with a number (e.g. "666Z "). This creates not valid Lua code.

 

To find such bugs, you could use the above mentioned approaches. The easiest is to zip the Lua file and upload it to http://foundation.rangerfox.com/tools/compiler.aspx. Select a device in the column "Compile" and you will see the problem and where to find it in the Lua file.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...