love2d / love-android

Android build setup for LÖVE.
https://love2d.org
Other
211 stars 73 forks source link

No game while it actually exists #253

Closed Xeononyum closed 1 year ago

Xeononyum commented 1 year ago

I installed love and directory sdcard/Android/data/org.love2d.android didnt existed so i created it, and then created files/games/lovegame and main.lua file but when i starting love for android it says no game

Xeononyum commented 1 year ago

Version 11.3 works fine even with game in /sdcard/lovegame (android 11)

MikuAuahDark commented 1 year ago

If you're using 11.4, then /sdcard/Android/data/org.love2d.android/files/games/lovegame should work. If you're using 11.3, then /sdcard/lovegame should work.

Xeononyum commented 1 year ago

https://github.com/love2d/love-android/assets/90855565/deff6b52-d5b4-4b36-80c8-341d22544d57

It doesnt (11.4)

Xeononyum commented 1 year ago

And yes folder org.love2d.android didnt existed

HarrievG commented 1 month ago

For any future readers. There is no way on a unrooted devices to use 11.3 > without having a shitton of permission pain. Just downgrade to 11.3 and you will be able to edit lua files on your device in the good old /sdcard/lovegame.

The core problem here is that you are not able to copy files to or edit files due to app permissions in /sdcard/Android/data/org.love2d.android/files/games/lovegame on an unrooted device

With ADB you are able to create and copy files to that location. even with unrooted adb. So editing on pc and then copying to device is still a viable option to dev

TLDR Love2d 11.3 > forces the usage of /sdcard/Android/data/org.love2d.android/files/games/lovegame, which is a protected location. If you want to be able to edit lua files and run directly on your android device use 11.3.