google-code-export / openwig

Automatically exported from code.google.com/p/openwig
1 stars 0 forks source link

Error when starting cartridge wth DesktopWIG #184

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What cartridge are you playing?
Feuersturm über Reutlingen

What is your phone/PDA manufacturer and model? What GPS are you using?
DesktopWIG

What steps will reproduce the problem?
1. Open the cartridge and start it

What is the expected output? What happens instead?
Init of cartridge

If you see an error screen, please type its contents here:
stack trace: at @E./web.../Feuersturm.enc:4156
at @E:/web.../Feuersturm.enc:2121

What version are you using?
Downloaded today (didn't know, that you have a desktop version of openwig)

Please provide any additional information below.

Original issue reported on code.google.com by dirk.we...@googlemail.com on 12 Jun 2012 at 6:10

Attachments:

GoogleCodeExporter commented 9 years ago
the problem is that the cartridge is using a deprecated "arg" variable for 
varargs. Kahlua only implements Lua 5.1 in which "arg" is replaced by "..." - 
see http://www.lua.org/manual/5.1/manual.html#7 , "changes in the language"

If i come up with a way to add it for backwards compatibility, i will, but i 
think that it will be needlessly difficult.

I suggest you replace this part of the code:
    for i = 1,arg[n] do
      local parArg = arg[i]
with:
    for k,parArg in ipairs({...}) do

the good news is that the original players use Lua 5.1 as well so this won't 
break compatibility.

Original comment by matej...@gmail.com on 12 Jun 2012 at 6:51

GoogleCodeExporter commented 9 years ago
Thank you very much, Jan. Now it works with the desktop version of openwig.

Best regards
Dirk (Charlenni)

Original comment by dirk.we...@googlemail.com on 14 Jun 2012 at 2:45