### Author Topic: Problem with Android player  (Read 2740 times)

#### holmes

• Newbie
• Posts: 3
##### Problem with Android player
« 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
« Last Edit: January 01, 1970, 01:00:00 by Guest »

#### Menion

• Professor of Locus
• Posts: 11851
• Thanked: 436 times
• Device: Pixel 2
##### Re: Problem with Android player
« Reply #1 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 ...
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
Support email: locus.map@asamm.com

#### holmes

• Newbie
• Posts: 3
##### Re: Problem with Android player
« Reply #2 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
« Last Edit: January 01, 1970, 01:00:00 by Guest »

#### bodenseepingu

• Newbie
• Posts: 2
##### Re: Problem with Android player
« Reply #3 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.
« Last Edit: January 01, 1970, 01:00:00 by Guest »

#### holmes

• Newbie
• Posts: 3
##### Re: Problem with Android player
« Reply #4 on: January 08, 2011, 10:25:02 »
Hi!

What is difference ?

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

Holmes
« Last Edit: January 01, 1970, 01:00:00 by Guest »

#### Menion

• Professor of Locus
• Posts: 11851
• Thanked: 436 times
• Device: Pixel 2
##### Re: Problem with Android player
« Reply #5 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, 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.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
Support email: locus.map@asamm.com