I want to test my program on my android phone. I have a Samsung note 1 with upgraded OS to 4.4 KitKat.
When I try to run the VM I get two errors. First one says "Error loading VM state data into virtual machine" The second one says " Path not found in asset lookup: basic4glmobile/charset.png" which is a size 512x512
Now there is no "charset.png" in the gfx folder on my PC. There is just charset2.png which is 256x256.
I tried resizing and renaming the one on my PC to meet what the Android app wants, but it still didn't work.
I also just tried the snake game demo and it didn't run either. I got the same errors. I did find the charset.png in my basic4gl folder on my PC. I copied it over to both the basic4gl folder and the basic4gl/gfx folder on my phone the games still didn't work. Same errors.
Hi. The important message is the "Error loading vm state data into virtual machine". I think the charset.png message is a red herring (it's built into the Android App, so it doesn't need to be in the gfx folder).
Are you using the latest version of both the PC version and the Android App? The format for the VM data changed slightly in the 1.1 release, which means that the new Android App doesn't work with program.vm files created by an older PC version and vice versa, so if you've just updated one then you'll have problems.
Also depending on how your phone is configured the Basic4GL App could have updated to v1.1 automatically, which would have put it out of sync.
Are you able to check that they are both on v1.1. On PC the version # is in help about. On Android check if there's an "Upgrade" button on the Basic4GL App store page. If you do upgrade the PC version, you'll need to recreate the program.vm file with that version.
It's pretty rare for the VM data format to change, so hopefully this shouldn't happen again. Perhaps I could make the error message a bit more helpful - something like "program.vm was created with v1.0 of Basic4GL Mobile. This App is only compatible with v1.1 or later. Please upgrade to v1.1 and recreate the program.vm file".