Locus Map - forum

WhereYouGo => Troubles & Questions => Topic started by: holmes on January 02, 2011, 14:06:09

Title: Problem with Android player
Post by: holmes on January 02, 2011, 14:06:09
Hi

I have problem with this on Android player:

local d2,b2 = Wherigo.VectorToPoint(zone012.OriginalPoint, Player.ObjectLocation)
kysimus = kysimus + d2("m")

Emulator works well!

Can I do something different?

Holmes
Title: Re: Problem with Android player
Post by: menion on January 05, 2011, 12:08:52
Hi,
  did you try this functionality on J2me OpenWIG emulator? I'm not very familiar with LUA (funny right :) ), so please test this firstly on OpenWIG! Thanks ...
Title: Re: Problem with Android player
Post by: holmes on January 05, 2011, 13:26:41
Solution is:

local d2,b2 = Wherigo.VectorToPoint(zone005.OriginalPoint, Player.ObjectLocation)
kysimus = kysimus + d2:GetValue('m')

Thanks for ernst.spiess!
Holmes
Title: Re: Problem with Android player
Post by: bodenseepingu on January 07, 2011, 18:32:58
Hello,

Quote
Solution is:

local d2,b2 = Wherigo.VectorToPoint(zone005.OriginalPoint, Player.ObjectLocation)
kysimus = kysimus + d2:GetValue('m')

Thanks for ernst.spiess!
Holmes

Not 100% correct, try
kysimus = kysimus + d2:GetValue 'm'  -- or feet - but without brackets

at the same time I am massively programming currently WIG's - there are more problems on ANDROID WhereYouGo

One major when using tables is that table.getn function crashes - I replaced all that calls and count the table entries by myself.
Title: Re: Problem with Android player
Post by: holmes on January 08, 2011, 10:25:02
Hi!

What is difference ?

kysimus = kysimus + d2:GetValue('m')
kysimus = kysimus + d2:GetValue 'm'

Holmes
Title: Re: Problem with Android player
Post by: menion on January 08, 2011, 10:31:03
Hi,
  it's not for first time when I saw problem with table.getn, but ... I have discuss this with author of OpenWIG and he wrote me:

problem is when function "table.getn", is old and should not be used anymore. Instead of this they have to use #table

  maybe it helps.

and one last thing ... if you have any problems with your cartridge on Android WhereYouGo, please try this first on Java OpenWIG as described here (http://http://forum.asamm.cz/viewtopic.php?f=22&t=84), thanks

Quote from: "bodenseepingu"
Hello,

Quote
Solution is:

local d2,b2 = Wherigo.VectorToPoint(zone005.OriginalPoint, Player.ObjectLocation)
kysimus = kysimus + d2:GetValue('m')

Thanks for ernst.spiess!
Holmes

Not 100% correct, try
kysimus = kysimus + d2:GetValue 'm'  -- or feet - but without brackets

at the same time I am massively programming currently WIG's - there are more problems on ANDROID WhereYouGo

One major when using tables is that table.getn function crashes - I replaced all that calls and count the table entries by myself.