Hello,
I wrote a love2d game that works fine when I run it in the ZeroBrane IDE and also when I packaged it for Windows using iexpress.
Today I tried porting this game to Android using the instructions at https://www.youtube.com/watch?annotatio ... AZo-pin4nE. I ran the .bat file as instructed and the game.apk file was created as anticipated. I transferred this file to my Android phone and installed it with not problem.
When I start the app, I get a Compatility Warning that says The game indicates it was made for version 0.10.2 and may not be compatible with the running version 0.10.1. When I click on OK, I get the blue error screen which names the line of the code which sets a cursor to an image and says “Cannot create cursor: Cursors are not currently supported.”
When I tap the error screen, I get a black and white message box asking if I want to quit Washington, DC. This is the name of the program as specified in the conf.lua file.
As I said, this runs fine in ZeroBrane (in Linux) and as an .exe in Windows. Any ideas why cursors aren’t supported?
I wrote the game in Linux Antergos (a derivative of Arch Linux), but I made the .apk file in Windows 10 because the process using the Linux script failed.
Both the game.apk file and the project directory are availabe for download as indicated below.
game.apk file - http://rpallen.com.br/game.apk
project directory - http://rpallen.com.br/washington.zip
Thanks for any help you can give me.
error message in Android: "cursors aren't currently supported"
Re: error message in Android: "cursors aren't currently supported"
The error message is pretty straightforward - android has no cursors so don't try to set them.
You can either remove all the cursor stuff from your android build, check every time you want to set the cursor or stub out the cursor calls at the start it you detect android:
You can either remove all the cursor stuff from your android build, check every time you want to set the cursor or stub out the cursor calls at the start it you detect android:
Code: Select all
function love.mouse.setCursor()
-- silently ignore
end
Re: error message in Android: "cursors aren't currently supported"
Boy, that was pretty stupid of me. Of course there's no cursor in Android.
- slime
- Solid Snayke
- Posts: 3172
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: error message in Android: "cursors aren't currently supported"
You can use love.mouse.hasCursor to check for support.
Who is online
Users browsing this forum: SiENcE and 1 guest