minecraft-linux / mcpelauncher-manifest

The main repository for the Linux and Mac OS Bedrock edition Minecraft launcher.
https://minecraft-linux.github.io
GNU General Public License v3.0
926 stars 100 forks source link

Is it possible mcpelauncher has problems with mods from servers? #386

Open thijs opened 4 years ago

thijs commented 4 years ago

I'm trying to debug an issue I have with my local server setup. I'm trying to run a world with mods (resource and behavior packs) on it, but on mcpelauncher it doesn't show a prompt to download the resource packs.

On my android phone I get a prompt for the same server, so it looks like there's something missing on mcpelauncher for that?

ChristopherHX commented 4 years ago

I get the prompt on linux/flatpak game 1.16.20.03, if the pack isn't already installed but required by an android device as server.

I see no problem, with the launcher.

thijs commented 3 years ago

I think I've found where the problem is. Maybe it's because my server is bedrock running on linux? It's weird, but what happens is that the download of the pack(s) starts and then errors with "Encountered a problem while downloading or applying resource pack."

I have found where the download is saved, which is ~/.var/app/io.mrarm.mcpelauncher/data/mcpelauncher/minecraftpe/packcache/ and then into resource or behavior as expected. It creates temporary directories inside these that look something like VhhaX0mQAAA=. Random in other words.

The trouble is that inside these directories mcpelauncher (or minecraft? not sure who does what here) instead of creating directories is creating 0-size files with the directory names. And then obviously is unable to put any of the resource pack files inside the non-directory.

Using a very simple resource pack that only makes the pumpkin head blur less irritating (basically, changes one png in the resource pack), I've been able to make it work, by:

  1. connecting with my server
  2. have it fail
  3. figure out which directory it was trying to download into (clear out the cache first, then there's only 1)
  4. manually put the directories and files of the resource pack in place
  5. restart mcpelauncher
  6. reconnect

And then it works. I get the resource pack applied and working.

So, is this something inside mcpelauncher that needs fixing?

If I could match the random directory names with the resource packs I could do it manually, but I don't see how they are generated.