Resource Pack Overrides [Forge & Fabric]

Resource Pack Overrides [Forge & Fabric]

27M Downloads

[Bug]: Resource pack not applied as default and "doesn't seem to exist anymore" warning for packs with special characters in the name

MbtMarco opened this issue · 0 comments

commented

Mod Loader (Required)

Fabric

Minecraft Version(s) (Required)

1.21.5

Mod Version(s) (Required)

v21.5.0

Issue Description (Required)

Description:
I am using Resource Pack Overrides to set a list of default resource packs. Some of these packs contain special characters (specifically '§' and '¨') in their filenames. While I have correctly encoded the '§' character as '\u00A7' in my resourcepackoverrides.json, packs containing such characters are not being applied as default.

Additionally, I am seeing the following warnings in the Minecraft logs:

[Render thread/WARN]: Removed resource pack file/\u00A7dBetter Nether Portal \u00A81.21.4\u00A70.zip from options because it doesn't seem to exist anymore
[Render thread/WARN]: Removed resource pack file/\u00A7aChests\u00A78-\u00A7aReimagined\u00A70_\\u00A78[v1.6.1]\u00A70.zip from options because it doesn't seem to exist anymore

These warnings appear even though the corresponding .zip files are definitely present in the .minecraft/resourcepacks folder and are visible in the in-game resource pack selection screen.

Here is my resourcepackoverrides.json configuration:

{
  "schema_version": 2,
  "failed_reloads_per_session": 5,
  "default_packs": [
    "vanilla",
    "fabric",
    "file/Resource Fixes Lite.zip",
    "continuity:default",
    "continuity:glass_pane_culling_fix",
    "file/DetailedAnimationsReworked - V1.15 PATCH.zip",
    "file/Authentic Shadows_1.21+.zip",
    "file/Tasty_Items-v1.1.zip",
    "file/Vanilla+ Collections Snap 2.6-c.zip",
    "file/Blockstates+V.1.5.2.2 - NoBushyLeaves.zip",
    "file/\\u00A7dBetter Nether Portal \\u00A81.21.4\\u00A70.zip",
    "file/\\u00A7aChests\\u00A78-\\u00A7aReimagined\\u00A70_\\u00A78[v1.6.1]\\u00A70.zip",
    "file/EnderEyes_1.21.5_v3.1.zip",
    "file/Animated_Furnaces_(1.21).zip",
    "file/Consistent_Signs_(1.21).zip",
    "file/Living_Dragon_(1.21).zip",
    "file/New_Style_Squid_(1.21).zip",
    "file/Some_Shulkers_(1.21).zip",
    "file/Soul_Campfire_(1.21).zip",
    "file/Particles+ V.1.5.zip",
    "file/Enchanting Table Magic Circle Blue v1.3.zip",
    "file/Better Enchanting Table Blue v1.2.zip",
    "file/AR's OreUI 1.21.2-1.21.x.zip",
    "file/qrafty's-capitalized-font.zip",
    "file/xali's enchanted book v1.0.0.zip"
  ],
  "pack_overrides": {
    "vanilla": {
      "fixed_position": true,
      "force_compatible": true
    },
    "1": [
      "fabric",
      "continuity:default",
      "continuity:glass_pane_culling_fix",
      "file/Resource Fixes Lite.zip",
      "file/DetailedAnimationsReworked - V1.15 PATCH.zip",
      "file/Authentic Shadows_1.21+.zip",
      "file/Tasty_Items-v1.1.zip",
      "file/Vanilla+ Collections Snap 2.6-c.zip",
      "file/Blockstates+V.1.5.2.2 - NoBushyLeaves.zip",
      "file/\\u00A7dBetter Nether Portal \\u00A81.21.4\\u00A70.zip",
      "file/\\u00A7aChests\\u00A78-\\u00A7aReimagined\\u00A70_\\u00A78[v1.6.1]\\u00A70.zip",
      "file/EnderEyes_1.21.5_v3.1.zip",
      "file/Animated_Furnaces_(1.21).zip",
      "file/Consistent_Signs_(1.21).zip",
      "file/Living_Dragon_(1.21).zip",
      "file/New_Style_Squid_(1.21).zip",
      "file/Some_Shulkers_(1.21).zip",
      "file/Soul_Campfire_(1.21).zip",
      "file/Particles+ V.1.5.zip",
      "file/Enchanting Table Magic Circle Blue v1.3.zip",
      "file/Better Enchanting Table Blue v1.2.zip",
      "file/xali's enchanted book v1.0.0.zip"
    ],
    "$$1": {
      "hidden": true,
      "required": true,
      "fixed_position": true,
      "force_compatible": true
    }
  }
}

Steps to Reproduce:

  1. Place resource packs with special characters ('§', '¨') in their filenames in the resourcepacks folder.
  2. Configure resourcepackoverrides.json to include these packs in default_packs, encoding '§' as '\u00A7'.
  3. Launch Minecraft.
  4. Observe that the packs are not applied as default and warnings about their non-existence appear in the logs.

Expected Behavior:

The resource packs with special characters in their names should be applied as default according to the resourcepackoverrides.json configuration, without any warnings about them not existing.

Possible Cause:

The mod may have an issue handling resource pack filenames containing certain special characters beyond the documented '§' character, or there might be a discrepancy in how the mod interacts with Minecraft's resource pack loading mechanism when such characters are present.

Thank you for looking into this issue.

latest.log (Required)

https://mclo.gs/p75qmwz