Bonjour tout le monde Je me permet un petit post pour demander de l’aide car je travail depuis quelques jours sur un projet de mods pour mes serveurs, tout fonctionnait bien jusqu’à que je compile
Si je comprend bien ce que je vois le jeu ne reconnais pas la méthode setUnlocalizedName() hors en test sur Eclipse ça marche très bien.
Log
–-- Minecraft Crash Report ----
// Don't be sad, have a hug! <3
Time: 13/04/14 11:26
Description: There was a severe problem during mod loading that has caused the game to fail
cpw.mods.fml.common.LoaderException: java.lang.NoSuchMethodError: com.RepublicOfCrafters.Coremod.common.NinjaSuit.setUnlocalizedName(Ljava/lang/String;)Lnet/minecraft/item/Item;
at cpw.mods.fml.common.LoadController.transition(LoadController.java:160)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:500)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:187)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:495)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:849)
at net.minecraft.client.main.Main.main(SourceFile:103)
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:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Caused by: java.lang.NoSuchMethodError: com.RepublicOfCrafters.Coremod.common.NinjaSuit.setUnlocalizedName(Ljava/lang/String;)Lnet/minecraft/item/Item;
at com.RepublicOfCrafters.Coremod.common.RepublicOfCraftersCoremodBase.preInit(RepublicOfCraftersCoremodBase.java:74)
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:536)
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.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:205)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:185)
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.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:116)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:498)
... 10 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.7.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 117421208 bytes (111 MB) / 480247808 bytes (458 MB) up to 1908932608 bytes (1820 MB)
JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G
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.01-pre FML v7.2.75.1007 Minecraft Forge 10.12.0.1007 4 mods loaded, 4 mods active
mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
FML{7.2.75.1007} [Forge Mod Loader] (forge-1.7.2-10.12.0.1007.jar) Unloaded->Constructed->Pre-initialized
Forge{10.12.0.1007} [Minecraft Forge] (forge-1.7.2-10.12.0.1007.jar) Unloaded->Constructed->Pre-initialized
republicofcrafterscoremod{0.1.0} [Republic Of Crafters - Coremod] (republicOfCraftersCoremod-0.1.0-beta-1.7.2.zip) Unloaded->Constructed->Errored
La section Java concernée:
ninjaSuitHelmet = (ItemArmor) new NinjaSuit(EnumArmorMaterials.ninja, 0, 0).setUnlocalizedName("ninjaSuitHelmet").setTextureName(modId + ":ninja_suit_helmet");
Si quelqu’un à une idée je suis preneur, en tout cas merci d’avance