Jump to content

Recommended Posts

Posted (edited)

In my mod I replace the player's survival mode inventory container. It works almost perfectly, but I've had a long-running issue that in a very small number of situations, it doesn't synchronise properly. So far, the only situations it definitely happens are:

  • Using the /give command
  • Using JEI recipe fill

What seems to happen is the client doesn't know the container has changed, so the slot still looks empty. But when the slot is actually clicked, the correct stack appears - items are never actually missing, just invisible.

I've tried stepping through the debugger in as many places as I can think of, but the syncing code is really confusing and it's particularly hard to keep track of what happens on the different threads. The main mysteries to me are a) it only happens in such specific situations (it never seems to be a problem when clicking or moving items manually in the inventory - but isn't this all controlled by ultimately the same code?), and b) it only happens in my replacement inventory container, not any of my other custom containers like crafting devices. Mystery b) particularly makes me suspect it's something to do with the way the container is created in the first place - it not being properly linked to the GUI or something? But if that's the case, surely it would never be properly synced, rather than working almost perfectly except for a handful of particular cases?

I'm really stuck on this, and it's frustrating because it's a comparatively minor issue that seems almost impossible to find or solve. Can anyone help?

All the code is on github. Probably-relevant parts:

 

Edited by Jay Avery
Posted

An update: I found that the server-side container didn't have the EntityPlayerMP as a listener. Adding this seems to have fixed the above problems but now another one has started. When loading a saved world, the client doubles the player's inventory contents. So if the world is saved with a stack of sticks in the inventory, then when the world is loaded there will be two stacks. But this is only client-side, and as soon as any slot is clicked the extra items disappear and the inventory resets to the correct contents. It seems like the inventory is somehow being sent to the client twice, but I can't figure out where or why this happens. It's hard to track inventory stuff in the code because there are several sub-inventories and also several wrappers and they're all public and accessed in lots of different places. Can anyone help me understand where and how the player inventory is synced to the client when a world is loaded? Or suggest what might be going wrong with this new bug?

Posted

Another update. I noticed that the client-side container was being replaced after the server-side one, and wondered if that was a problem. So I added a check to the PlayerTickEvent (where I replace the containers), and only set the client-side one there, then send a packet to tell the server to replace its own container so it happens afterwards. This seems to have eliminated the inventory-doubling problem without recreating the syncing problems I originally had. So, this seems to be solved, but I'm not happy about it because I still don't really understand what the problem was in the first place. If anyone can enlighten me, or even make a suggestion, I'd really appreciate it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I keep getting this error and i dont know how to fix it. Can anyone help?       Prism Launcher version: 9.1 (official) Launched instance in offline mode Minecraft folder is: C:/Users/reece/AppData/Roaming/PrismLauncher/instances/Cobblemon Official Modpack [Fabric]/minecraft Java path is: C:/Users/reece/AppData/Roaming/PrismLauncher/java/eclipse_temurin_jre21.0.5+11/eclipse_temurin_jre21.0.5+11/bin/javaw.exe Java is version 21.0.5, using 64 (amd64) architecture, from Eclipse Adoptium. Main Class:   net.fabricmc.loader.impl.launch.knot.KnotClient Native path:   C:/Users/reece/AppData/Roaming/PrismLauncher/instances/Cobblemon Official Modpack [Fabric]/natives Traits: traits FirstThreadOnMacOS traits XR:Initial traits feature:is_quick_play_multiplayer traits feature:is_quick_play_singleplayer Libraries:   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-freetype-natives-windows-arm64/3.3.3/lwjgl-freetype-natives-windows-arm64-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-freetype-natives-windows-x86/3.3.3/lwjgl-freetype-natives-windows-x86-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-freetype-natives-windows/3.3.3/lwjgl-freetype-natives-windows-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-freetype/3.3.3/lwjgl-freetype-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-glfw-natives-windows-arm64/3.3.3/lwjgl-glfw-natives-windows-arm64-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-glfw-natives-windows-x86/3.3.3/lwjgl-glfw-natives-windows-x86-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-glfw-natives-windows/3.3.3/lwjgl-glfw-natives-windows-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-glfw/3.3.3/lwjgl-glfw-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-jemalloc-natives-windows-arm64/3.3.3/lwjgl-jemalloc-natives-windows-arm64-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-jemalloc-natives-windows-x86/3.3.3/lwjgl-jemalloc-natives-windows-x86-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-jemalloc-natives-windows/3.3.3/lwjgl-jemalloc-natives-windows-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-jemalloc/3.3.3/lwjgl-jemalloc-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-natives-windows-arm64/3.3.3/lwjgl-natives-windows-arm64-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-natives-windows-x86/3.3.3/lwjgl-natives-windows-x86-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-natives-windows/3.3.3/lwjgl-natives-windows-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-openal-natives-windows-arm64/3.3.3/lwjgl-openal-natives-windows-arm64-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-openal-natives-windows-x86/3.3.3/lwjgl-openal-natives-windows-x86-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-openal-natives-windows/3.3.3/lwjgl-openal-natives-windows-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-openal/3.3.3/lwjgl-openal-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-opengl-natives-windows-arm64/3.3.3/lwjgl-opengl-natives-windows-arm64-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-opengl-natives-windows-x86/3.3.3/lwjgl-opengl-natives-windows-x86-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-opengl-natives-windows/3.3.3/lwjgl-opengl-natives-windows-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-opengl/3.3.3/lwjgl-opengl-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-stb-natives-windows-arm64/3.3.3/lwjgl-stb-natives-windows-arm64-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-stb-natives-windows-x86/3.3.3/lwjgl-stb-natives-windows-x86-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-stb-natives-windows/3.3.3/lwjgl-stb-natives-windows-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-stb/3.3.3/lwjgl-stb-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-tinyfd-natives-windows-arm64/3.3.3/lwjgl-tinyfd-natives-windows-arm64-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-tinyfd-natives-windows-x86/3.3.3/lwjgl-tinyfd-natives-windows-x86-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-tinyfd-natives-windows/3.3.3/lwjgl-tinyfd-natives-windows-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-tinyfd/3.3.3/lwjgl-tinyfd-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl/3.3.3/lwjgl-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/github/oshi/oshi-core/6.4.10/oshi-core-6.4.10.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/google/guava/guava/32.1.2-jre/guava-32.1.2-jre.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/ibm/icu/icu4j/73.2/icu4j-73.2.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/mojang/authlib/6.0.54/authlib-6.0.54.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/mojang/blocklist/1.0.10/blocklist-1.0.10.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/mojang/brigadier/1.3.10/brigadier-1.3.10.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/mojang/datafixerupper/8.0.16/datafixerupper-8.0.16.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/mojang/logging/1.2.7/logging-1.2.7.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/mojang/patchy/2.2.10/patchy-2.2.10.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/mojang/text2speech/1.17.9/text2speech-1.17.9.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/commons-codec/commons-codec/1.16.0/commons-codec-1.16.0.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/commons-io/commons-io/2.15.1/commons-io-2.15.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/commons-logging/commons-logging/1.2/commons-logging-1.2.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/io/netty/netty-buffer/4.1.97.Final/netty-buffer-4.1.97.Final.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/io/netty/netty-codec/4.1.97.Final/netty-codec-4.1.97.Final.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/io/netty/netty-common/4.1.97.Final/netty-common-4.1.97.Final.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/io/netty/netty-handler/4.1.97.Final/netty-handler-4.1.97.Final.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/io/netty/netty-resolver/4.1.97.Final/netty-resolver-4.1.97.Final.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/io/netty/netty-transport-classes-epoll/4.1.97.Final/netty-transport-classes-epoll-4.1.97.Final.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/io/netty/netty-transport-native-unix-common/4.1.97.Final/netty-transport-native-unix-common-4.1.97.Final.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/io/netty/netty-transport/4.1.97.Final/netty-transport-4.1.97.Final.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/it/unimi/dsi/fastutil/8.5.12/fastutil-8.5.12.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/net/java/dev/jna/jna-platform/5.14.0/jna-platform-5.14.0.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/net/java/dev/jna/jna/5.14.0/jna-5.14.0.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/apache/commons/commons-compress/1.26.0/commons-compress-1.26.0.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/apache/commons/commons-lang3/3.14.0/commons-lang3-3.14.0.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/apache/httpcomponents/httpcore/4.4.16/httpcore-4.4.16.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/apache/logging/log4j/log4j-api/2.22.1/log4j-api-2.22.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/apache/logging/log4j/log4j-core/2.22.1/log4j-core-2.22.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/apache/logging/log4j/log4j-slf4j2-impl/2.22.1/log4j-slf4j2-impl-2.22.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/jcraft/jorbis/0.0.17/jorbis-0.0.17.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/joml/joml/1.10.5/joml-1.10.5.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lz4/lz4-java/1.8.0/lz4-java-1.8.0.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/slf4j/slf4j-api/2.0.9/slf4j-api-2.0.9.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/net/fabricmc/intermediary/1.21.1/intermediary-1.21.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/ow2/asm/asm/9.7.1/asm-9.7.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/ow2/asm/asm-analysis/9.7.1/asm-analysis-9.7.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/ow2/asm/asm-commons/9.7.1/asm-commons-9.7.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/ow2/asm/asm-tree/9.7.1/asm-tree-9.7.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/ow2/asm/asm-util/9.7.1/asm-util-9.7.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/net/fabricmc/sponge-mixin/0.15.4+mixin.0.8.7/sponge-mixin-0.15.4+mixin.0.8.7.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/net/fabricmc/fabric-loader/0.16.9/fabric-loader-0.16.9.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/mojang/minecraft/1.21.1/minecraft-1.21.1-client.jar (missing) Native libraries: Mods:   [✔] almanac-1.21.x-fabric-1.0.2   [✔] AmbientEnvironment-fabric-1.21.1-18.0.0.2   [✔] appleskin-fabric-mc1.21-3.0.6   [✔] architectury-13.0.8-fabric   [✔] balm-fabric-1.21.1-21.0.22   [✔] bedrockify-1.10.1+mc1.21   [✔] BetterAdvancements-Fabric-1.21.1-0.4.3.21   [✔] BetterPingDisplay-Fabric-1.21.1-1.1.1   [✔] BetterThirdPerson-Fabric-1.21-1.9.0   [✔] BHMenu-Fabric-1.21-2.5.1   [✔] bookshelf-fabric-1.21.1-21.1.26   [✔] bwncr-fabric-1.21.1-3.20.2   [✔] cherishedworlds-fabric-10.1.0+1.21.1   [✔] cicada-lib-0.10.2+1.21-1.21.1   [✔] cloth-config-15.0.140-fabric   [✔] Clumps-fabric-1.21.1-19.0.0.1   [✔] Cobblemon-fabric-1.6.0+1.21.1   [✔] collective-1.21.1-7.87   [✔] continuity-3.0.0+1.21   [✔] craftingtweaks-fabric-1.21.1-21.1.5   [✔] CraftPresence-2.5.2+1.21.1-fabric   [✔] dismountentity-1.21.1-3.5   [✔] dynamiccrosshair-9.3+1.21.1-fabric   [✔] dynamic-fps-3.7.7+minecraft-1.21.0-fabric   [✔] enchdesc-fabric-1.21.1-21.1.5   [✔] enhanced_attack_indicator-1.1.0+1.21   [✔] entityculling-fabric-1.7.2-mc1.21   [✔] fabric-api-0.110.0+1.21.1   [✔] fallingleaves-1.16.4+1.21.1   [✔] fancymenu_fabric_3.3.2_MC_1.21.1   [✔] ferritecore-7.0.2-hotfix-fabric   [✔] FeyTweaks-1.21-1.2.8   [✔] Highlighter-1.21-fabric-1.1.11   [✔] highlight-fabric-1.21-3.0.0   [✔] Iceberg-1.21-fabric-1.2.7   [✔] ImmediatelyFast-Fabric-1.3.3+1.21.1   [✔] InvMove-1.21-0.8.8-Fabric   [✔] InvMoveCompats-1.20-0.3.2-Fabric   [✔] iris-fabric-1.8.1+mc1.21.1   [✔] konkrete_fabric_1.9.9_MC_1.21   [✔] krypton-0.2.8   [✔] lambdynamiclights-3.1.4+1.21.1   [✔] language-reload-1.7.2+1.21.1   [✔] letmedespawn-1.21.x-fabric-1.4.4   [✔] lithium-fabric-0.14.3-snapshot+mc1.21.1-build.92   [✔] LongerChatHistory-fabric-1.6   [✔] make_bubbles_pop-0.3.0-fabric-mc1.19.4-1.21   [✔] melody_fabric_1.0.10_MC_1.21   [✔] modmenu-11.0.3   [✔] monsters-in-the-closet-1.0.3+1.21   [✔] netherportalfix-fabric-1.21.1-21.1.1   [✔] notenoughanimations-fabric-1.9.0-mc1.21   [✔] owo-lib-0.12.15+1.21   [✔] particle-rain-3.0.5   [✔] particular-1.1.1+1.21   [✔] PresenceFootsteps-1.10.2+1.21   [✔] prickle-fabric-1.21.1-21.1.6   [✔] reeses-sodium-options-fabric-1.8.0+mc1.21.3   [✔] RoughlyEnoughItems-16.0.788-fabric   [✔] RoughlyEnoughProfessions-fabric-1.21.1-4.0.3   [✔] show-me-your-skin-1.11.3+1.21   [✔] shulkerboxtooltip-fabric-5.1.2+1.21.1   [✔] slimyfloor-1.21-1.3.2   [✔] sodium-extra-fabric-0.6.0+mc1.21.1   [✔] sodiumextras-fabric-1.0.6-1.21.1   [✔] sodium-fabric-0.6.5+mc1.21.1   [✔] sodiumleafculling-fabric-1.0.0-1.21.1   [✔] sodiumoptionsapi-fabric-1.0.8-1.21.1   [✔] sodiumoptionsmodcompat-fabric-1.0.0-1.21.1   [✔] sodium-shadowy-path-blocks-fabric-4.0.0   [✔] stendhal-1.4.1-1.21   [✔] superflatworldnoslimes-1.21.1-3.4   [✔] swingthrough-1.0.5+1.21   [✔] titlefixer-1.0+1.21   [✔] tooltipfix-1.1.1-1.20   [✔] txnilib-fabric-1.0.21-1.21.1   [✔] UniLib-1.0.4+1.21.1-fabric   [✔] visuality-0.7.7+1.21   [✔] wakes-0.2.2-1.21   [✔] Xaeros_Minimap_24.7.1_Fabric_1.21   [✔] XaerosWorldMap_1.39.2_Fabric_1.21   [✔] YetAnotherConfigLib-3.6.2+1.21-fabric   [✔] yosbr-0.1.2 Params:   --username  --version 1.21.1 --gameDir C:/Users/reece/AppData/Roaming/PrismLauncher/instances/Cobblemon Official Modpack [Fabric]/minecraft --assetsDir C:/Users/reece/AppData/Roaming/PrismLauncher/assets --assetIndex 17 --uuid  --accessToken  --userType  --versionType release Window size: 854 x 480 Launcher: standard Failed to reconstruct Minecraft assets. Java Arguments: [-XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump, -Xms512m, -Xmx5632m, -Duser.language=en] Minecraft process ID: 74920 Exception caught from launcher java.lang.ClassNotFoundException: net.fabricmc.loader.impl.launch.knot.KnotClient     at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)     at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)     at java.base/java.lang.ClassLoader.loadClass(Unknown Source)     at org.prismlauncher.utils.ReflectionUtils.findMainMethod(ReflectionUtils.java:88)     at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:104)     at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)     at org.prismlauncher.EntryPoint.main(EntryPoint.java:70) Exiting with ERROR Process exited with code 2. Log upload triggered at: 02 Jan 2025 22:41:36 -0800 Log uploaded to: https://mclo.gs/thSD0Is Clipboard copy at: 02 Jan 2025 22:41:43 -0800  
    • I solved this already, but basically I was getting java.io.EOFException while installing Forge. From the (scarce) other forum postings on this, I needed to either clear the temp directory or delete some folder in `.minecraft/libraries`.  The other forum posts were for Windows, so I have no idea what temp folder they mean exactly, I doubt it is `/tmp`.  If someone can clarify where the download cache is for the Forge installer on Linux, that would be really nice.   Solution: In terminal, `cd` to your `.minecraft` folder, likely this command is what you want: `cd ~/.minecraft`. Run `find -name '*1.20.1*'`, or replace 1.20.1 with the version you're installing.  This shows where the damaged files might be which cause this error. Very carefully, determine which folders are safe to delete with `rm -rf`.  The commands I ran were: rm -rf ./versions/1.20.1* rm -rf ./libraries/de/oceanlabs/mcp/mcp_config/1.20.1* rm -rf ./libraries/net/minecraftforge/fmlcore/1.20.1-47.3.22 rm -rf ./libraries/net/minecraftforge/forge/1.20.1-47.3.22 rm -rf ./libraries/net/minecraftforge/mclanguage/1.20.1-47.3.22 After this I reran the install and it worked fine.
    • Hi everyone, I’m working on creating a UI similar to the one shown in the picture below. Most of the functionality is working perfectly, but I’m struggling to achieve a smooth blur effect for the background. Currently, I’m rendering the black transparent box using: "Gui.drawRect();" While the rest of the elements work as intended, the blur effect either drastically impacts performance or doesn’t look smooth at all. I’ve tried implementing the classes from Github, but I can’t seem to achieve the desired results.   I’d greatly appreciate your guidance or tips! Thanks in advance for your help! (This is on the hud no opened gui or something)
    • Please read the FAQ, and post logs as directed in your own new post in the support forum.
    • Hello, i Play Modded Minecraft on the Version 1.20.1. About half of the time my Minecraft crashes while starting the Game with the following Crash log. Any help would be appreciated.    Crashlog: https://mclo.gs/nB6kdBb  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.