Résolu Crash que sur le minecraft avec mon mod
-
Bonjour j’ai un problème quand je lance minecraft sur eclipse tout marche mais quand j’export sur minecraft et que je lance minecraft avec forge et qu’avec mon mod sa crash à ce que j’ai compris le crash report viendrai du render robber
crash report
[spoiler```java
–-- Minecraft Crash Report ----
// I just don’t know what went wrongTime: 01/05/16 22:41
Description: There was a severe problem during mod loading that has caused the game to failcpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: ed/enderdeath/mod/entity/RenderRobber
at cpw.mods.fml.common.LoadController.transition(LoadController.java:163)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:544)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878)
at net.minecraft.client.main.Main.main(SourceFile:148)
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 net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Caused by: java.lang.NoClassDefFoundError: ed/enderdeath/mod/entity/RenderRobber
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:512)
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:212)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
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:119)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:513)
… 10 more
Caused by: java.lang.ClassNotFoundException: ed.enderdeath.mod.entity.RenderRobber
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.NullPointerException
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182)
… 38 moreA 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 8.1 (amd64) version 6.3
Java Version: 1.8.0_72, Oracle Corporation
Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 175541328 bytes (167 MB) / 327135232 bytes (311 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
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.99.99 Minecraft Forge 10.13.4.1517 4 mods loaded, 4 mods active
States: ‘U’ = Unloaded ‘L’ = Loaded ‘C’ = Constructed ‘H’ = Pre-initialized ‘I’ = Initialized ‘J’ = Post-initialized ‘A’ = Available ‘D’ = Disabled ‘E’ = Errored
UC mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UC FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4.1517-1.7.10.jar)
UC Forge{10.13.4.1517} [Minecraft Forge] (forge-1.7.10-10.13.4.1517-1.7.10.jar)
UE enderdeath{1.0} [leo01418] (enderdeath-1.0.5.jar)
GL info: ’ Vendor: ‘NVIDIA Corporation’ Version: ‘4.5.0 NVIDIA 350.12’ Renderer: ‘GeForce GTX 745/PCIe/SSE2’ -
et le render robber
package ed.enderdeath.mod.entity; import ed.enderdeath.mod.common.enderdeath; import net.minecraft.block.Block; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.EntityAIBase; import net.minecraft.entity.ai.EntityAINearestAttackableTarget; import net.minecraft.entity.ai.EntityAIOpenDoor; import net.minecraft.entity.ai.EntityAISwimming; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; public class Robber extends EntityMob { private static ItemStack defaultHeldItem; private EntityAIBase aiAttackOnCollide; private EntityAIBase aiArrowAttack; public Robber(World world) { super(world); } public void applyEntityAttributes() { super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(70D); this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(6D); this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(1.5D); } public Item getDropItem() { return enderdeath.Ireen; } protected int getExperiencePoints(EntityPlayer p_70693_1_) { if (this.isChild()) { this.experienceValue = (int) ((float) this.experienceValue * 2.5F); } return super.getExperiencePoints(p_70693_1_); } protected String getHurtSound() { return "mob.zombie.hurt"; } protected String getDeathSound() { return "mob.zombie.death"; } protected void func_145780_a(int p_145780_1_, int p_145780_2_, int p_145780_3_, Block p_145780_4_) { this.playSound("mob.zombie.step", 0.15F, 1.0F); } public ItemStack getHeldItem() { return defaultHeldItem; } static { defaultHeldItem = new ItemStack(enderdeath.SwordRobber, 1); } }
Excusé les deux ne tenait pas
-
[font=monospaceCaused] [font=monospaceby][font=monospace:][font=monospace java][font=monospace.][font=monospacelang][font=monospace.][font=monospaceNoClassDefFoundError][font=monospace:][font=monospace ed][font=monospace/][font=monospaceenderdeath][font=monospace/][font=monospacemod][font=monospace/][font=monospaceentity][font=monospace/][font=monospaceRenderRobber]
Ton rendu doit être enregistré uniquement côté client.
-
C’est le client qui crash, pas le serveur.
La classe est visiblement manquante.
Regardes si elle est présente dans jar. -
@‘robin4002’:
C’est le client qui crash, pas le serveur.
La classe est visiblement manquante.
Regardes si elle est présente dans jar.oui il était présent mais j’ai suprimé le dossié build et refait un gradlew build et la sa marche j’ai plus de crash
Merci
-
Ah moi ça m’est déjà arrivé avec des textures, j’ai l’impression des fois gradlew skip le buid en croyant que tout est bon, mais c’est pas le cas…