qingjun1991 / GameDreamFactory

a game engine like mugen
12 stars 1 forks source link

Engine refuses to load on newer android devices #21

Open CodeThokk opened 3 months ago

CodeThokk commented 3 months ago

For some strange reason, loading a game from the selected folder doesn't work. It just leaves the app hanging on a black screen.

This happens in the newest update as well as a build from 2021. Is this a sad limitation of being compiled with an older version of GameMaker or is it something else?

qingjun1991 commented 3 months ago

If you are referring to loading a game from the selected folder by pressing the "Select !GameDreamFactory folder" button, try loading a smaller game, If it can load normally, it indicates that your game is too large.

Due to the limitations of the new version of Android system, the application can not directly read the SD card or selected folder files, need to use a special way to read the file, it read the file is very slow, and will take up a lot of running memory.

So it's better not to do it this way. The recommended way is to put the game in "!GameDreamFactory\Games" folder so that the app can read the file directly.

CodeThokk commented 3 months ago

Alright, but... How do I do that?

Do I need to put the folder the game is in in the !GameDreamFactory\Games folder or do I only dump the files there?

(Ex: let's add a basic Mugen 1.1 in the games folder. Do I add the mugen_1.1 folder in there or do I dump its files in there?)

CodeThokk commented 3 months ago

Addendum: Just tried the latest build on an older Android device (Android 8) and it didn't work there either. After that, I resorted to using the 2021 build again following a video tutorial on YouTube. After that, it finally decided to work.

I am not sure why the latest build is so picky with what it wants to load... Maybe you could release a version that just contains the bare essentials for the app to work? You would only need to download a game and drop it into the app's folder

qingjun1991 commented 3 months ago

好吧,但是...我该怎么做呢?

我是否需要将游戏所在的文件夹放在 !GameDreamFactory\Games 文件夹中,还是只将文件转储到那里?

(例如:让我们在游戏文件夹中添加一个基本的 Mugen 1.1。我是否在其中添加 mugen_1.1 文件夹或者将其文件转储到其中?)

Put the Mugen 1.1 folder in "!GameDreamFactory\Games".

detail: "D:\MyExe!GameDreamFactory\游戏梦工厂&Mugen的教程\游戏梦工厂\1、说明、问题、教程\2.2、如何使用mugen整合、Games游戏文件夹.txt"

qingjun1991 commented 3 months ago

Addendum: Just tried the latest build on an older Android device (Android 8) and it didn't work there either. After that, I resorted to using the 2021 build again following a video tutorial on YouTube. After that, it finally decided to work.

I am not sure why the latest build is so picky with what it wants to load... Maybe you could release a version that just contains the bare essentials for the app to work? You would only need to download a game and drop it into the app's folder

Take a look at the content of "!GameDreamFactory/log.txt".