Closed WimpieRatte closed 4 months ago
The delay resource load is waiting for the resource pack reload event, nothing spectacular. What modpack, and did you update any other mods recently? "this.field_3699" appears to be the client packet listener instance, and I don't see dsurround in the trace. Do you have a complete log you can link?
I can send a full log later, but can confirm that the only change I do is change from 0.3.0 to 0.3.1 and then the issue appears. In the meantime, you can replicate it by: Download and use this modpack: https://modrinth.com/modpack/lekkermanclientside Then update Dynamic Surroundings to 0.3.1 or later. Then join this server: gommehd.net Then try entering their City Building area. The freeze happens as soon as the server tries to switch you to that (because it's a section that prompts and requires a server custom resource pack.)
With 0.3.0, the freeze doesn't happen, of course :).
Took me hours to pin it to the Dynamic Surroundings mod. (Because I first expected it to be related to a resource pack or a rendering mod, not a sound mod.) Already did the painful journey of testing the mods until this mod was found to be the reason. That's why I wanted to log the ticket, because it's so unexpected and I wanted to save others the debugging time.
Caused by: java.util.NoSuchElementException: No value present
at java.util.Optional.orElseThrow(Optional.java:377) ~[?:?]
at org.orecruncher.dsurround.lib.resources.ClientTagLoader.loadTagData(ClientTagLoader.java:88) ~[DynamicSurroundings-Fabric-1.20.4-0.3.2.jar:?]
at org.orecruncher.dsurround.lib.resources.ClientTagLoader.getTagData(ClientTagLoader.java:72) ~[DynamicSurroundings-Fabric-1.20.4-0.3.2.jar:?]
at org.orecruncher.dsurround.lib.resources.ClientTagLoader.getMembers(ClientTagLoader.java:42) ~[DynamicSurroundings-Fabric-1.20.4-0.3.2.jar:?]
at java.util.Map.computeIfAbsent(Map.java:1054) ~[?:?]
It's trying to find a registry associated with a tag and it cannot be found. Joy.
Do you know what changed in the modpack recently? I hacked around the immediate issue with tag loading, and it fails further on in a piece of code I have not touched in a while.
EDIT: FWIW I hacked around THAT problem, and I can get it to load.
super nice to hear the feedback! Is this a hack that i can apply to the pack as well? Or is this something that can work on a future patch?
Unfortunately, it requires a set of code changes.
Pushed update 0.3.3 to CurseForge and Modrinth.
I suspect it's because of the "Delay processing resource packs/external configurations until later in the startup process." change, because from version 0.3.1, when joining a server that has a custom resource pack, the game freezes with a "Reconfiguring" text, accompanied by an endless spam of this error message, until I "End Task" Java: