Page 1 of 2

Android & Stuck on Super Toast screen.

Posted: Wed Nov 22, 2017 2:04 pm
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.

Re: Android & Stuck on Super Toast screen.

Posted: Wed Nov 22, 2017 5:56 pm
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?

Re: Android & Stuck on Super Toast screen.

Posted: Wed Nov 22, 2017 8:49 pm
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.

Re: Android & Stuck on Super Toast screen.

Posted: Thu Nov 23, 2017 3:43 am
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.

Re: Android & Stuck on Super Toast screen.

Posted: Thu Nov 23, 2017 10:17 am
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.

Re: Android & Stuck on Super Toast screen.

Posted: Thu Nov 23, 2017 10:41 am
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.

Re: Android & Stuck on Super Toast screen.

Posted: Thu Nov 23, 2017 12:27 pm
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 :(

Re: Android & Stuck on Super Toast screen.

Posted: Fri Nov 24, 2017 2:06 pm
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.

Re: Android & Stuck on Super Toast screen.

Posted: Fri Nov 24, 2017 2:56 pm
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 ?

Re: Android & Stuck on Super Toast screen.

Posted: Mon Nov 27, 2017 8:28 am
by Gibs
Bump !
Help ! :)