Android & Stuck on Super Toast screen.

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Gibs
Prole
Posts: 7
Joined: Wed Nov 22, 2017 1:44 pm

Android & Stuck on Super Toast screen.

Post by Gibs »

Hello,
I'm on my galaxy s8+ and each time I try to run the Love2D Hello World example or other I get the Super Toast screen.

I have tried all possibilities listed on the playstore including setting a local webserver with kws and none works.

From what I have read it seams to be related to a bad path.
I noticed that I don't have /sdcard on android 7.

Any help appreciated.
Thanks.
User avatar
erasio
Party member
Posts: 118
Joined: Wed Mar 15, 2017 8:52 am
Location: Germany

Re: Android & Stuck on Super Toast screen.

Post by erasio »

The supertoast screen means your main.lua or .love file aren't found. (on PC. On apps they should be packaged with the apk)

And since it didn't find any game files it can run, it displays a default screen.

Are you sure you built your apk correctly?
Gibs
Prole
Posts: 7
Joined: Wed Nov 22, 2017 1:44 pm

Re: Android & Stuck on Super Toast screen.

Post by Gibs »

Thanks for the answer.
I haven't built any APK.
I wanted to code on the S8 directly and wanted to execute the code like it is shown in this video:
https://www.youtube.com/watch?v=MnMWWehbhsY&t=147s

This is also the way it is explained in the playstore description of love2D for Android.
User avatar
zorg
Party member
Posts: 3441
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Android & Stuck on Super Toast screen.

Post by zorg »

Probably device dependent, but i don't need to create apk-s or even .love files on my tablet for löve to find the one specific directory it searches for a main.lua; not sure what it's called though, since i can't check it atm.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Gibs
Prole
Posts: 7
Joined: Wed Nov 22, 2017 1:44 pm

Re: Android & Stuck on Super Toast screen.

Post by Gibs »

Hello

At the root of the device I have /sdcard which is linked to /storage/emulated/0

In /sdcard I have created a directory called "lovegame" in which I have my main.love textile which is correctly indented.

When I open it with love2d I get the SuperToast screen.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Android & Stuck on Super Toast screen.

Post by Nixola »

It should be called main.lua, not main.love. A .love file is a packaged game, but by default LÖVE tries to run a main.lua file in that directory.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Gibs
Prole
Posts: 7
Joined: Wed Nov 22, 2017 1:44 pm

Re: Android & Stuck on Super Toast screen.

Post by Gibs »

Before posting here I also tried main.lua and it was the same result (super toast). I tried it again now (as it is a quick test :))

...And I get the super toast screen :(
User avatar
xNick1
Party member
Posts: 267
Joined: Wed Jun 15, 2016 8:27 am
Location: Rome, Italy

Re: Android & Stuck on Super Toast screen.

Post by xNick1 »

For some reason I have the same problem.
I didn't want to build/install a new apk of my app every time.
It seems I can't get Love to find my game.
I didn't have much time so I solved my problem opening the .love game from the file manager and it works now!
I don't code from my phone anyway.
Gibs
Prole
Posts: 7
Joined: Wed Nov 22, 2017 1:44 pm

Re: Android & Stuck on Super Toast screen.

Post by Gibs »

Here are the instructions from the playstore:

# Instructions

You can run games in multiple ways:

Upload your .love file to a web server and open the link with a browser on your Android device
- or -
Put the .love file on your device and open it with a file explorer (e.g. X-plore, open file as */*, select LÖVE for Android).
- or -
Extract it to /sdcard/lovegame such that main.lua is found at /sdcard/lovegame/main.lua and then run the app
- or -
Extract your game anywhere on your device and open its main.lua using a file browser (e.g. X-plore, open main.lua as */*, select LÖVE for Android).

With extracted sources you can edit the source files with any text editor of your choice to tweak your game or add new functionality.


None of the above worked for me :(
How did you manage to solve the issue ?
Gibs
Prole
Posts: 7
Joined: Wed Nov 22, 2017 1:44 pm

Re: Android & Stuck on Super Toast screen.

Post by Gibs »

Bump !
Help ! :)
Post Reply

Who is online

Users browsing this forum: No registered users and 89 guests