Jump to content

Recommended Posts

Posted

Hello guys !

I started mod with forge a day ago. I did what everybody do when you start modding : add a new ore and new suitable stuff.

But, since I added the ore generation, the server crash.

If someone can explain me what's wrong with my code to allow me to fix it.

Thank you

Posted

Not stupid ^^

I added :

---- Minecraft Crash Report ----
// Quite honestly, I wouldn't worry myself about that.

Time: 25/01/15 15:54
Description: Exception in server tick loop

cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/renderer/entity/RenderBiped
at cpw.mods.fml.common.LoadController.transition(LoadController.java:162)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:515)
at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:88)
at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:314)
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:117)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:387)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)
Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/renderer/entity/RenderBiped
at cpw.mods.fml.client.registry.RenderingRegistry.addNewArmourRendererPrefix(RenderingRegistry.java:51)
at com.mralexan.sapphiremod.CommonProxy.preInit(CommonProxy.java:15)
at com.mralexan.sapphiremod.ServerProxy.preInit(ServerProxy.java:17)
at com.mralexan.sapphiremod.Sapphire.preInit(Sapphire.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513)
... 5 more
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.renderer.entity.RenderBiped
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 36 more
Caused by: java.lang.RuntimeException: Attempted to load class bnw for invalid side SERVER
at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:50)
at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279)
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176)
... 38 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 398473424 bytes (380 MB) / 497549312 bytes (474 MB) up to 1877475328 bytes (1790 MB)
JVM Flags: 0 total; 
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.85.1230 Minecraft Forge 10.13.2.1230 6 mods loaded, 6 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
FML{7.10.85.1230} [Forge Mod Loader] (forge-1.7.10-10.13.2.1230-universal.jar) Unloaded->Constructed->Pre-initialized
Forge{10.13.2.1230} [Minecraft Forge] (forge-1.7.10-10.13.2.1230-universal.jar) Unloaded->Constructed->Pre-initialized
imc{1.6} [improving Minecraft] (Improving Minecraft-1.6.jar.zip) Unloaded->Constructed->Pre-initialized
sapphiremod{1.0} [sapphire Mod] (sapphiremod-1.7.10-1.0_BETA.jar) Unloaded->Constructed->Errored
erebus{0.2pre11c} [Erebus] (TheErebus-0.2pre11c.jar) Unloaded->Constructed->Pre-initialized
Profiler Position: N/A (disabled)
Is Modded: Definitely; Server brand changed to 'fml,forge'
Type: Dedicated Server (map_server.txt)

Posted

Ok, so :

CommonProxy :

package com.mralexan.sapphiremod;
import com.mralexan.sapphiremod.initializers.SapphireInitializers;
import com.mralexan.sapphiremod.registers.GameRegister;
import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
public class CommonProxy
{
public void preInit(FMLPreInitializationEvent event)
{
RenderingRegistry.addNewArmourRendererPrefix("5");
/////////////////////////////////////
// Block and items initializations //
/////////////////////////////////////
SapphireInitializers.initialize();
}
public void init(FMLInitializationEvent event)
{
///////////////////
// Game registry //
///////////////////
GameRegister.register();
}
public void postInit(FMLPostInitializationEvent event)
{
}
}

ClientProxy :

package com.mralexan.sapphiremod;
import com.mralexan.sapphiremod.initializers.SapphireInitializers;
import com.mralexan.sapphiremod.registers.GameRegister;
import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
public class ClientProxy extends CommonProxy
{
@Override
public void preInit(FMLPreInitializationEvent e)
{
super.preInit(e);
}
@Override
public void init(FMLInitializationEvent e)
{
super.init(e);
}
@Override
public void postInit(FMLPostInitializationEvent e)
{
super.postInit(e);
}
}

And ServerProxy :

package com.mralexan.sapphiremod;
import com.mralexan.sapphiremod.initializers.SapphireInitializers;
import com.mralexan.sapphiremod.registers.GameRegister;
import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
public class ServerProxy extends CommonProxy
{
@Override
public void preInit(FMLPreInitializationEvent e)
{
super.preInit(e);
}
@Override
public void init(FMLInitializationEvent e)
{
super.init(e);
}
@Override
public void postInit(FMLPostInitializationEvent e)
{
super.postInit(e);
}
}

 

EDIT :

How should I edit it ?

Because new items and blocks should be register on the both side, isn't it ?

So I initialize them. But after, I don't know what should be put in the server side.

Posted

Holy shit balls what the fuck.

 

Is your main mod file seriously the common proxy?

 

No, bad code monkey, no banana.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

No...

The main file (check on GitHub) is Sapphire.java ^^

The link to GitHub is on the first post but here too.

 

EDIT :

Here's the tutorial I followed for proxies

 

EDIT 2 :

So, if I'm right :

  • CommonProxy : Code used for both side
  • ClientProxy : Code used just for Client side
  • ServerProxy : Code used just for Server side

Posted

What? I never heard of any so called "ServerProxy".

 

@SidedProxy(clientSide="tutorial.generic.client.ClientProxy", serverSide="tutorial.generic.CommonProxy")
public static CommonProxy proxy;

 

This is from the official tutorial site. Looks like the CommonProxy IS the ServerProxy.

Here could be your advertisement!

Posted

In fact, I started to watch his tutoriel just when a friend told me that an existing tutorial did the same thing than me.

I update the code in GitHub but still don't find error...

Is someone can find it and explain me it make the server crash ? Because I've some difficulties to understand every post (I'm french...)

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



×
×
  • Create New...

Important Information

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