Page 1 of 1

Game not working on Android

Posted: Mon Jul 02, 2018 1:17 pm
by Le Codex
Hi,

I made a game planned for Android on my PC. It works fine on my PC, and since I have a touch screen I can even test the touch functionnality, and it works. I downloaded the LÖVE2D 11.1 apk and installed it, but my game just refuses to run on my phone. I programmed another game that runs just fine on my phone before, so I know the installation has worked. I tried putting the main.lua (all the game is in it) in the lovegame directory, nothing changed. When I boot up the game, it flips my screen horizontally, shows me a black screen for ~1 second, then it sends me back to the home page. What is causing this to happen?

Thanks in advance ^^

(My phone is a Wooze I45, and I run on Android 5.1
I also tried to see if it was a low memoy error, but it doesn't seem so since love.lowmemory isn't triggering
I tried just now a fixed version with love.errhandler instead of love.errhand, but it doesn't trigger either
Ok, so I check a third time, and I learned that love.errhandler is just callback. But still, it would error out since the field is nil)
capacities.love
(2.18 KiB) Downloaded 140 times

Re: Game not working on Android

Posted: Mon Jul 02, 2018 3:21 pm
by pgimeno
Le Codex wrote: Mon Jul 02, 2018 1:17 pmWhen I boot up the game, it flips my screen horizontally, shows me a black screen for ~1 second, then it sends me back to the home page.
What do you mean by the home page? If it opens a web page, it's a web application, not LÖVE.

Do you mean the No Game screen?

Re: Game not working on Android

Posted: Mon Jul 02, 2018 3:22 pm
by Nixola
I think he means the launcher.

Re: Game not working on Android

Posted: Mon Jul 02, 2018 9:58 pm
by Le Codex
Sorry '^^
What I mean by home page is the menu screen, the screen you have when you press the "Home" button
I'm French... sorry for the inconvenience

I know it's probably just a dumb thing that I overlooked.. Sorry for bothering you with it

Re: Game not working on Android

Posted: Tue Jul 03, 2018 3:45 pm
by Le Codex
Nvm the game just works fine now, out of nowhere.