Animated-Java / animated-java

A Blockbench plugin that makes complex animation a breeze in Minecraft: Java Edition.
Other
150 stars 24 forks source link

[BUG] Datapack pack.mcmeta not recognized on Linux #177

Closed CasperThePancake closed 2 months ago

CasperThePancake commented 7 months ago

Describe the bug When exporting an AJ animation on the official Linux version of Blockbench, selecting the pack.mcmeta file yields the error 'this is an invalid datapack path'. This works just fine for the resource pack section.

To Reproduce Steps to reproduce the behavior:

  1. Install Linux (Mint)
  2. Install Blockbench
  3. Install AJ
  4. Try to export any animation

Expected behavior Recognition of pack.mcmeta and exporting of my animation to resource pack / datapack.

Screenshots image

Desktop (please complete the following information):

Additional context My pack.mcmeta path is /home/casperthepancake/.var/app/com.mojang.Minecraft/data/minecraft/saves/ABTTP Full - Link's House/datapacks/alttp/pack.mcmeta

IanSSenne commented 7 months ago

hi @CasperThePancake just to confirm does your behavior pack have a data folder in it?

CasperThePancake commented 7 months ago

Yes, it does.

TheAfroOfDoom commented 6 months ago
...saves/ABTTP Full - Link's House/datapacks/...

i think the ABTTP Full - Link's House could be the issue. maybe the spaces or the quote (') is causing the issue? worth a shot -- try changing the name of that folder and see what happens?

CasperThePancake commented 6 months ago
...saves/ABTTP Full - Link's House/datapacks/...

i think the ABTTP Full - Link's House could be the issue. maybe the spaces or the quote (') is causing the issue? worth a shot -- try changing the name of that folder and see what happens?

Sadly this does not change anything.

devmattrick commented 5 months ago

I'm also on Linux and thought I bumped into this issue. Have you installed Blockbench through Flatpak? If so, you may need to allow it to access the directory that the datapack is in.

CasperThePancake commented 5 months ago

Thought I fixed this with another flatpak app that can manage app permissions, seems that didn't work.

How did you go about setting these permissions exactly?

devmattrick commented 5 months ago

@CasperThePancake I'm assuming you used Flatseal to allow access, I did this as well. Here's what mine looks like, but my Minecraft isn't installed via Flatpak so that may be why mine is working: image

I poked through the code a bit and I noticed that the error message doesn't update unless the path in the textbox itself updates (so reselecting the same pack.mcmeta file in the file picker won't clear the error message). You have to manually change the path to something else and then reselect it. That also could be the cause.