weimingtom / openwig

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

Dumps in Player but not in Emulator #223

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What cartridge are you playing?
- right now in development

What is your phone/PDA manufacturer and model? What GPS are you using?
- Motorola Defy
- Apple 5c

What steps will reproduce the problem?
1. Select 'john doe' and identify yourself
2. Just 'accept' always
3. Select Locator and 'ansehen'

What is the expected output? What happens instead?
- The resulting message should appear and a zone (when the player is in it) 
shall be active
- This works in the emulator fine (I am using Urwigo to build)
- even the display messages give the right result (only be seen in the Emulator)
- On the device nothing happens and a dump is shown when closing the cartridge

If you see an error screen, please type its contents here:
RuntimeException: __lt not defined for operand
stack trace: ... lua:4898
... lua:4229

What version are you using?
WhereYouGo to play...

Please provide any additional information below.

I will attach the files 

THANKS for your help

Gotthard (jGda)

Original issue reported on code.google.com by frie...@gmail.com on 31 Dec 2013 at 11:34

Attachments:

GoogleCodeExporter commented 8 years ago
ah, i see the problem
you are using raw Distance values in comparison:
"if d2 < d then"

this works in new versions of the openwig core, but the version in WhereYouGo 
probably doesn't have this yet -- and unfortunately the development of 
WhereYouGo is stopped, so i can't say when this is fixed in there.

to work around the problem, you have to use the converted values, for example:
"if d2(units) < d(units) then"

i'm closing this issue as "Waiting", and will set it to Fixed when the update 
for WhereYouGo is released.

Original comment by matej...@gmail.com on 3 Jan 2014 at 5:41