Game not working on Android

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Le Codex
Prole
Posts: 31
Joined: Thu Feb 09, 2017 10:56 am
Location: France
Contact:

Game not working on Android

Post 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 131 times

Code: Select all

if your.timeSpeed > 0 then universe:update(dt) else universe:destroy() end
User avatar
pgimeno
Party member
Posts: 3544
Joined: Sun Oct 18, 2015 2:58 pm

Re: Game not working on Android

Post 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?
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Game not working on Android

Post by Nixola »

I think he means the launcher.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
Le Codex
Prole
Posts: 31
Joined: Thu Feb 09, 2017 10:56 am
Location: France
Contact:

Re: Game not working on Android

Post 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

Code: Select all

if your.timeSpeed > 0 then universe:update(dt) else universe:destroy() end
User avatar
Le Codex
Prole
Posts: 31
Joined: Thu Feb 09, 2017 10:56 am
Location: France
Contact:

Re: Game not working on Android

Post by Le Codex »

Nvm the game just works fine now, out of nowhere.

Code: Select all

if your.timeSpeed > 0 then universe:update(dt) else universe:destroy() end
Post Reply

Who is online

Users browsing this forum: No registered users and 41 guests