unable to parse as integer

Monkey Targets Forums/Android/unable to parse as integer

dave.h(Posted 2012) [#1]
ive just started playing with txt files and im getting the error

Monkey runtime error: unable to parse " as integer

it runs in html5 and glfw but not android.I think its something to do with the txt files im loading as map data.i was using v56 but just upgraded to v63b and get the same error.The music from the game continues but nothing else.Any pointers to where im going wrong would be appreciated.


Volker(Posted 2012) [#2]
Converting an empty string to int? Thats were I got this,
when LoadState() was empty.


dave.h(Posted 2012) [#3]
im not using LoadState im using LoadString.I just checked the files and all the data is in them.

i dont know if this helps but this comes up while its compiling
UTF-8 Fail!


Samah(Posted 2012) [#4]
What's the filename? Android assets can't contain hyphens, and I'm not sure if monkey is smart enough to strip them for you.


golomp(Posted 2012) [#5]
can you send a few lines of your string file to reproduce the error.


dave.h(Posted 2012) [#6]
aha fixed it.Volkers suggestion got me thinking and it turned out i was trying to get info from a postion that was past the end of the string.thanx for the help guys.