Hi, i’m experiencing an strange behaviour. It seems that the lua interpreter is not the same on the emulator than on the android.
My game is playing fine on the emulator. I have simple physics, with very little animations. I’m not using nothing strange at all.
I had an XML file ( using a xml parser from some page about corona) and it was working fine. But something was wrong on android. It doesn’t worl. I had to rename the Level001.xml to Level001.txt, and then it was ok!!!
Then i added some fields on the xml. It worked on the emulator but not on the android. I had to change the XML format to a simple TXT format and rewrite the importer.
I had an issue with the txt importer too. I write a # character to indicate EOF. It seems that when you read a line on the emulator is not the same that on the android, because:
[lua]linea=hFile:read("*l")
if linea=="#" then return end[/lua]
This work on the emulator, but not on android. I had to change it to
[lua]linea=hFile:read("*l")
local i,f=string.find( s, “#”, 1 )
if i==1 then return true end[/lua]
I’m using my own custom animation system time based. I have 2 beam rays, that appears and dissapears regulary. It’s ok on the emulator, but on android it starts ok, but after a seconds, the animations get slow!!!
I hope you can understand me, because my english is not very good. Please, give me some help to try to solver this extrange behaviour.
Thanks!!
[import]uid: 63293 topic_id: 18605 reply_id: 318605[/import]
