Problem with Android player

Started by holmes, January 02, 2011, 14:06:09

0 Members and 1 Guest are viewing this topic.

holmes

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
  •  

Menion

#1
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 ...
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

holmes

#2
Solution is:

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

Thanks for ernst.spiess!
Holmes
  •  

bodenseepingu

#3
Hello,

QuoteSolution 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.
  •  

holmes

#4
Hi!

What is difference ?

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

Holmes
  •  

Menion

#5
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,

QuoteSolution 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.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •