ForcePack icon indicating copy to clipboard operation
ForcePack copied to clipboard

packs load in random order

Open eltrevii opened this issue 10 months ago • 9 comments

this is my config:

Server:
  packs:
    all:
      urls: ["https://cdn.modrinth.com/data/LBcosBrl/versions/rXky43kq/BetterVanillaBuildingV3.5.zip", "https://mediafilez.forgecdn.net/files/5095/617/BvB%20Logged%20Fences.zip", "https://mediafilez.forgecdn.net/files/5095/611/BvB%20Biome%20Campfires.zip"]
      generate-hash: false
      hashes: ["17ffe7b372784df495eb9ccc907ddbbf058fc5e9", "22da9c4e2c4984da3e2af458fcc647b3ba39662e", "8173b763ad89242d51aa32a73da9055af03b25a7"]

the packs are in order from first to last, however it seems the packs are loading in a different order (generate_hash on true seems to change it too)

Image

the expected order from top to bottom is 3-2-1, however the order for this case is 1-3-2 what could be the cause for this issue? the plugin is generating the packs with the correct order:

[19:44:01 INFO]: [ForcePack] Performing version size check...
[19:44:01 INFO]: 1.8-1.15 (50 MB): Supported.
[19:44:01 INFO]: 1.16-1.17 (100 MB): Supported.
[19:44:01 INFO]: 1.18+ (250 MB): Supported.
[19:44:01 INFO]: Hash verification complete.
[19:44:01 INFO]: [ForcePack] Generated resource pack (https://cdn.modrinth.com/data/LBcosBrl/versions/rXky43kq/BetterVanillaBuildingV3.5.zip#17ffe7b372784df495eb9ccc907ddbbf058fc5e9) for version all with id cad39ab7-01f0-30b0-a34b-e78ce2768c5e
[19:44:01 INFO]: [ForcePack] Performing version size check...
[19:44:01 INFO]: 1.8-1.15 (50 MB): Supported.
[19:44:01 INFO]: 1.16-1.17 (100 MB): Supported.
[19:44:01 INFO]: 1.18+ (250 MB): Supported.
[19:44:01 INFO]: Hash verification complete.
[19:44:01 INFO]: [ForcePack] Generated resource pack (https://mediafilez.forgecdn.net/files/5095/617/BvB%20Logged%20Fences.zip#22da9c4e2c4984da3e2af458fcc647b3ba39662e) for version all with id 7c85b593-c2a3-357e-95cc-d4c63021c2c2
[19:44:01 INFO]: [ForcePack] Performing version size check...
[19:44:01 INFO]: 1.8-1.15 (50 MB): Supported.
[19:44:01 INFO]: 1.16-1.17 (100 MB): Supported.
[19:44:01 INFO]: 1.18+ (250 MB): Supported.
[19:44:01 INFO]: Hash verification complete.
[19:44:01 INFO]: [ForcePack] Generated resource pack (https://mediafilez.forgecdn.net/files/5095/611/BvB%20Biome%20Campfires.zip#8173b763ad89242d51aa32a73da9055af03b25a7) for version all with id df73d7ac-a9f8-3145-acce-caa030963933

eltrevii avatar Feb 25 '25 18:02 eltrevii

Minecraft applies resource packs async and I highly suspect it entirely depends on which resourcepack finishes loading on the client first

SamB440 avatar Feb 26 '25 13:02 SamB440

is there any fix or workaround for this? it is very important to load first the main pack and the addons afterwards for everything to work properly

eltrevii avatar Feb 28 '25 21:02 eltrevii

Nothing immediate. Could perhaps send each resource pack after one has finished being applied. But that’s increased delay for the user. Also possible that Mojang doesn’t care about order and it gets added completely randomly anyway.

SamB440 avatar Mar 04 '25 13:03 SamB440

well i wouldnt mind sending the packs with a small delay because its a tiny server for me and a few friends and its just 3 packs

eltrevii avatar Mar 04 '25 16:03 eltrevii

This feature would be useful for me as well, I need a certain priority to make one of the resourcepacks work. I've just been struggling with that too.

Mlisko avatar Apr 10 '25 11:04 Mlisko

there are ways to "merge" resource packs, that could be a good option but tbh i prefer having them separately for possible updates and stuff

eltrevii avatar Apr 12 '25 23:04 eltrevii

Yeah, but i want sometimes to update "external" resourcepacks separately from our own resoucepack, so i don't want to merge it all the time into one resourcepack when I want to update one of them.

Mlisko avatar Apr 12 '25 23:04 Mlisko

Heavy +1 on a fix/workaround for this

bakkbone avatar Jun 25 '25 13:06 bakkbone

oh and also this might be an upstream (vanilla minecraft/papermc/spigot) bug or maybe intended? but if a player already has a resource pack on their resourcepacks folder ive seen it sometimes wont be applied for some reason

eltrevii avatar Jun 25 '25 22:06 eltrevii