Jump to content

Recommended Posts

Posted

I have posted this error in the Smart Moving topic and Divisor says its a minecraft forge error when smart moving is installed. Any help with this would be great! :D Also, it doesn't seem to cause any problems, just a messy console. lol

 

Here is a link to the topic I have mentioned.

 

2012-11-01 15:01:45 [sEVERE] [ForgeModLoader] A critical server error occured handling a packet, kicking net.smart.moving.playerapi.NetServerHandler@79541d
java.lang.NullPointerException
at cpw.mods.fml.common.modloader.ModLoaderConnectionHandler.connectionClosed(ModLoaderConnectionHandler.java:42)
at cpw.mods.fml.common.network.NetworkRegistry.connectionClosed(NetworkRegistry.java:213)
at cpw.mods.fml.common.network.FMLNetworkHandler.onConnectionClosed(FMLNetworkHandler.java:315)
at bx.b(TcpConnection.java:449)
at im.d(NetServerHandler.java:82)
at in.b(NetworkListenThread.java:55)
at hk.b(SourceFile:30)
at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:664)
at hg.r(DedicatedServer.java:241)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:585)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:492)
at fp.run(SourceFile:818)

2012-11-01 15:01:45 [WARNING] [Minecraft] Failed to handle packet: java.lang.NullPointerException
java.lang.NullPointerException
at cpw.mods.fml.common.modloader.ModLoaderConnectionHandler.connectionClosed(ModLoaderConnectionHandler.java:42)
at cpw.mods.fml.common.network.NetworkRegistry.connectionClosed(NetworkRegistry.java:213)
at cpw.mods.fml.common.network.FMLNetworkHandler.onConnectionClosed(FMLNetworkHandler.java:315)
at bx.b(TcpConnection.java:449)
at im.d(NetServerHandler.java:82)
at in.b(NetworkListenThread.java:55)
at hk.b(SourceFile:30)
at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:664)
at hg.r(DedicatedServer.java:241)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:585)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:492)
at fp.run(SourceFile:818)

Posted

This is indeed a serious ML compatibility bug.

Line 42 of ModLoaderConnectionHandler is:

if (!ModLoaderHelper.sidedHelper.clientConnectionClosed(manager, mod))

 

This is within method connectionClosed(INetworkManager), who's javadocs clearly states it will be called on BOTH CLIENT AND SERVER (IConnectionHandler.java:56)

 

On the client side, ModLoaderHelper.sidedHelper is set to an instance of ModLoaderClientHelper upon said instance's construction. However, on the server side, ModLoaderHelper.sidedHelper is never set and defaults to null.

 

It may be notable that all usages of ModLoaderHelper.sidedHelper within the class ModLoaderHelper itself is guarded by null checks (ModLoaderHelper.java:127, ModLoaderHelper.java:159).

 

Hope this helps!

There's an EAQ for a reason. Read it!

"Note that failure to read this will make you look idiotic. You don't want that do you?" -- luacs1998

 

First rule of bug reports: More information is always better.

Oh, and logs OR IT DIDN'T HAPPEN!!

Posted

This is an issue with Forge ModLoader (so minecraft forge, in other words).

Protip: try and find answers yourself before asking on the forum.

It's pretty likely that there is an answer.

 

Was I helpful? Give me a thank you!

 

  Reveal hidden contents

 

Tired of waiting for mods to port to bukkit?

use BukkitForge! (now with a working version of WorldEdit!)

Posted

This problem only occurs when trying to run a ModLoader mod in a dedicated server context. Hence why it is very rarely seen.

It is fixed, but to be honest, ModLoader mods don't fit very well with a dedicated server context and I recommend switching to a mod design that is...

Posted

In order to go smp, modloader mods had to use modloadermp in the old days. ML was client side only.

So yeah, ML mods don't work on dedicated servers unless they use MLMP/forge/hacks.

Read the EAQ before posting! OR ELSE!

 

  Quote
This isn't building better software, its trying to grab a place in the commit list of a highly visible github project.

 

www.forgeessentials.com

 

Don't PM me, I don't check this account unless I have to.

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

    • Yes that’s the full log, I managed to get it working last night, the anvil fix mod is what was causing it to crash
    • Hey guys, i'm currently developping a mod with forge 1.12.2 2860 and i'm using optifine and gradle 4.9. The thing is i'm trying to figure out how to show the player's body in first person. So far everything's going well since i've try to use a shader. The player's body started to blink dark when using a shader. I've try a lot of shader like chocapic, zeus etc etc but still the same issue. So my question is : How should i apply the current shader to the body ? At the same time i'm also drawing a HUD so maybe it could be the problem?   Here is the issue :    And here is the code where i'm trying to display the body :    private static void renderFirstPersonBody(EntityPlayerSP player, float partialTicks) { Minecraft mc = Minecraft.getMinecraft(); GlStateManager.pushMatrix(); GlStateManager.pushAttrib(); try { // Préparation OpenGL GlStateManager.enableDepth(); GlStateManager.depthMask(true); GlStateManager.enableAlpha(); GlStateManager.alphaFunc(GL11.GL_GREATER, 0.1F); GlStateManager.enableBlend(); GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); // Éclairage correct pour shaders GlStateManager.enableLighting(); RenderHelper.enableStandardItemLighting(); GlStateManager.enableRescaleNormal(); // Active la lightmap pour les shaders mc.entityRenderer.enableLightmap(); // Position de rendu interpolée double px = player.lastTickPosX + (player.posX - player.lastTickPosX) * partialTicks; double py = player.lastTickPosY + (player.posY - player.lastTickPosY) * partialTicks; double pz = player.lastTickPosZ + (player.posZ - player.lastTickPosZ) * partialTicks; GlStateManager.translate( px - mc.getRenderManager().viewerPosX, py - mc.getRenderManager().viewerPosY, pz - mc.getRenderManager().viewerPosZ ); // Rendu du joueur sans la tête Render<?> render = mc.getRenderManager().getEntityRenderObject(player); if (render instanceof RenderPlayer) { RenderPlayer renderPlayer = (RenderPlayer) render; boolean oldHeadHidden = renderPlayer.getMainModel().bipedHead.isHidden; boolean oldHeadwearHidden = renderPlayer.getMainModel().bipedHeadwear.isHidden; renderPlayer.getMainModel().bipedHead.isHidden = true; renderPlayer.getMainModel().bipedHeadwear.isHidden = true; setArmorHeadVisibility(renderPlayer, false); renderPlayer.doRender(player, 0, 0, 0, player.rotationYaw, partialTicks); renderPlayer.getMainModel().bipedHead.isHidden = oldHeadHidden; renderPlayer.getMainModel().bipedHeadwear.isHidden = oldHeadwearHidden; setArmorHeadVisibility(renderPlayer, !oldHeadwearHidden); } // Nettoyage post rendu mc.entityRenderer.disableLightmap(); GlStateManager.disableRescaleNormal(); } catch (Exception e) { // silent fail } finally { GlStateManager.popAttrib(); GlStateManager.popMatrix(); } }   Ty for your help. 
    • Item successfully registered, but there was a problem with the texture of the item, it did not insert and has just the wrong texture.     
    • Keep on using the original Launcher Run Vanilla 1.12.2 once and close the game Download Optifine and run optifine as installer (click on the optifine jar) Start the launcher and make sure the Optifine profile is selected - then test it again  
    • Hi everyone, I’m hoping to revisit an old version of Minecraft — specifically around Beta 1.7.3 — for nostalgia’s sake. I’ve heard you can do this through the official Minecraft Launcher, but I’m unsure how to do it safely without affecting my current installation or save files. Are there any compatibility issues I should watch out for when switching between versions? Would really appreciate any tips or advice from anyone who’s done this before! – Adam
  • Topics

×
×
  • Create New...

Important Information

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