Résolu Crash Armure
-
Bonjour à tous,
Voilà je passe mon mod de la 1.9 vers la 1.9.4 ce qui apporte quelque changement mineur au code, après avoir fixé tous les erreurs affiché par mon IDE j’ai décidé de lancer pour voir si ça fonctionnait, sauf que là un crash surement du à une mauvaise utilisation du “addArmorMaterial”.
Le problème c’est que je n’arrive pas à trouver ou est cette erreur, pourriez-vous m’aider?Voici ce qu’affiche l’IDE:
2016-05-23 00:58:43,820 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-05-23 00:58:43,822 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [00:58:43] [main/INFO] [GradleStart]: Extra: [] [00:58:43] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Zules/.gradle/caches/minecraft/assets, --assetIndex, 1.9, --accessToken{REDACTED}, --version, 1.9.4, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [00:58:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [00:58:44] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [00:58:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [00:58:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [00:58:44] [main/INFO] [FML]: Forge Mod Loader version 12.17.0.1910 for Minecraft 1.9.4 loading [00:58:44] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_92, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_92 [00:58:44] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [00:58:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [00:58:44] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [00:58:44] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [00:58:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [00:58:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [00:58:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [00:58:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [00:58:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [00:58:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [00:58:44] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [00:58:46] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [00:58:46] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [00:58:46] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [00:58:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [00:58:47] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [00:58:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [00:58:47] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} 2016-05-23 00:58:48,531 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-05-23 00:58:48,612 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-05-23 00:58:48,615 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [00:58:49] [Client thread/INFO]: Setting user: Player254 [00:58:53] [Client thread/INFO]: LWJGL Version: 2.9.4 [00:58:54] [Client thread/INFO] [FML]: Could not load splash.properties, will create a default one [00:58:54] [Client thread/INFO] [STDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:202]: –-- Minecraft Crash Report ---- // Oh - I know what I did wrong! Time: 23/05/16 00:58 Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.9.4 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_92, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 650276248 bytes (620 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'Intel' Version: '4.3.0 - Build 20.19.15.4331' Renderer: 'Intel(R) HD Graphics 4600' [00:58:54] [Client thread/INFO] [FML]: MinecraftForge v12.17.0.1910 Initialized [00:58:54] [Client thread/INFO] [FML]: Replaced 232 ore recipes [00:58:55] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [00:58:55] [Client thread/INFO] [FML]: Searching C:\Users\Zules\Desktop\Forge 1.9.4 2\run\mods for mods [00:58:57] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [00:58:57] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, adamantium] at CLIENT [00:58:57] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, adamantium] at SERVER [00:58:58] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Adamantium [00:58:58] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [00:58:58] [Client thread/INFO] [FML]: Found 418 ObjectHolder annotations [00:58:58] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [00:58:58] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [00:58:58] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [00:58:58] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: java.lang.NoSuchMethodException: net.minecraft.item.ItemArmor$ArmorMaterial.<init>(java.lang.String, int, java.lang.String, int, [I, int, net.minecraft.util.SoundEvent) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at java.lang.Class.getConstructor0(Unknown Source) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at java.lang.Class.getDeclaredConstructor(Unknown Source) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at net.minecraftforge.common.util.EnumHelper.getConstructorAccessor(EnumHelper.java:145) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at net.minecraftforge.common.util.EnumHelper.makeEnum(EnumHelper.java:154) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:337) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:217) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:203) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:189) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at net.minecraftforge.common.util.EnumHelper.addArmorMaterial(EnumHelper.java:63) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at fr.jules552.mod.init.ItemsMod.<clinit>(ItemsMod.java:46) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at fr.jules552.mod.Adamantium.preInit(Adamantium.java:30) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at java.lang.reflect.Method.invoke(Unknown Source) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:563) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at java.lang.reflect.Method.invoke(Unknown Source) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at com.google.common.eventbus.EventBus.post(EventBus.java:275) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:228) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:206) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at java.lang.reflect.Method.invoke(Unknown Source) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at com.google.common.eventbus.EventBus.post(EventBus.java:275) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:135) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:584) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:249) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at net.minecraft.client.Minecraft.startGame(Minecraft.java:475) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at net.minecraft.client.Minecraft.run(Minecraft.java:384) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at net.minecraft.client.main.Main.main(Main.java:118) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at java.lang.reflect.Method.invoke(Unknown Source) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at java.lang.reflect.Method.invoke(Unknown Source) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [00:58:58] [Client thread/INFO] [STDERR]: [net.minecraftforge.common.util.EnumHelper:addEnum:346]: at GradleStart.main(GradleStart.java:26) [00:58:58] [Client thread/INFO] [FML]: Applying holder lookups [00:58:58] [Client thread/INFO] [FML]: Holder lookups applied [00:58:58] [Client thread/INFO] [FML]: Injecting itemstacks [00:58:58] [Client thread/INFO] [FML]: Itemstack injection complete [00:58:58] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue [00:58:58] [Client thread/ERROR] [FML]: States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCH mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCH FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.9.4-12.17.0.1910-1.9.4.jar) UCH Forge{12.17.0.1910} [Minecraft Forge] (forgeSrc-1.9.4-12.17.0.1910-1.9.4.jar) UCE adamantium{1.2.0} [Adamantium] (bin) [00:58:58] [Client thread/ERROR] [FML]: The following problems were captured during this phase [00:58:58] [Client thread/ERROR] [FML]: Caught exception from adamantium java.lang.ExceptionInInitializerError at fr.jules552.mod.Adamantium.preInit(Adamantium.java:30) ~[bin/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_92] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_92] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_92] at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:563) ~[forgeSrc-1.9.4-12.17.0.1910-1.9.4.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_92] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_92] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_92] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:228) ~[forgeSrc-1.9.4-12.17.0.1910-1.9.4.jar:?] at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:206) ~[forgeSrc-1.9.4-12.17.0.1910-1.9.4.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_92] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_92] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_92] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:135) [LoadController.class:?] at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:584) [Loader.class:?] at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:249) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:475) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:384) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_92] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_92] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_92] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_92] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_92] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_92] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: java.lang.RuntimeException: net.minecraft.item.ItemArmor$ArmorMaterial.<init>(java.lang.String, int, java.lang.String, int, [I, int, net.minecraft.util.SoundEvent) at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:347) ~[EnumHelper.class:?] at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:217) ~[EnumHelper.class:?] at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:203) ~[EnumHelper.class:?] at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:189) ~[EnumHelper.class:?] at net.minecraftforge.common.util.EnumHelper.addArmorMaterial(EnumHelper.java:63) ~[EnumHelper.class:?] at fr.jules552.mod.init.ItemsMod.<clinit>(ItemsMod.java:46) ~[ItemsMod.class:?] … 44 more Caused by: java.lang.NoSuchMethodException: net.minecraft.item.ItemArmor$ArmorMaterial.<init>(java.lang.String, int, java.lang.String, int, [I, int, net.minecraft.util.SoundEvent) at java.lang.Class.getConstructor0(Unknown Source) ~[?:1.8.0_92] at java.lang.Class.getDeclaredConstructor(Unknown Source) ~[?:1.8.0_92] at net.minecraftforge.common.util.EnumHelper.getConstructorAccessor(EnumHelper.java:145) ~[EnumHelper.class:?] at net.minecraftforge.common.util.EnumHelper.makeEnum(EnumHelper.java:154) ~[EnumHelper.class:?] at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:337) ~[EnumHelper.class:?] at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:217) ~[EnumHelper.class:?] at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:203) ~[EnumHelper.class:?] at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:189) ~[EnumHelper.class:?] at net.minecraftforge.common.util.EnumHelper.addArmorMaterial(EnumHelper.java:63) ~[EnumHelper.class:?] at fr.jules552.mod.init.ItemsMod.<clinit>(ItemsMod.java:46) ~[ItemsMod.class:?] … 44 more [00:58:58] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:646]: –-- Minecraft Crash Report ---- // This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~] Time: 23/05/16 00:58 Description: There was a severe problem during mod loading that has caused the game to fail net.minecraftforge.fml.common.LoaderException: java.lang.ExceptionInInitializerError at net.minecraftforge.fml.common.LoadController.transition(LoadController.java:179) at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:587) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:249) at net.minecraft.client.Minecraft.startGame(Minecraft.java:475) at net.minecraft.client.Minecraft.run(Minecraft.java:384) at net.minecraft.client.main.Main.main(Main.java:118) 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) 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.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) Caused by: java.lang.ExceptionInInitializerError at fr.jules552.mod.Adamantium.preInit(Adamantium.java:30) 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.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:563) 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 net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:228) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:206) 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 net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:135) at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:584) … 16 more Caused by: java.lang.RuntimeException: net.minecraft.item.ItemArmor$ArmorMaterial.<init>(java.lang.String, int, java.lang.String, int, [I, int, net.minecraft.util.SoundEvent) at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:347) at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:217) at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:203) at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:189) at net.minecraftforge.common.util.EnumHelper.addArmorMaterial(EnumHelper.java:63) at fr.jules552.mod.init.ItemsMod.<clinit>(ItemsMod.java:46) ... 44 more Caused by: java.lang.NoSuchMethodException: net.minecraft.item.ItemArmor$ArmorMaterial.<init>(java.lang.String, int, java.lang.String, int, [I, int, net.minecraft.util.SoundEvent) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.getDeclaredConstructor(Unknown Source) at net.minecraftforge.common.util.EnumHelper.getConstructorAccessor(EnumHelper.java:145) at net.minecraftforge.common.util.EnumHelper.makeEnum(EnumHelper.java:154) at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:337) ... 49 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.9.4 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_92, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 689028304 bytes (657 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.28 Powered by Forge 12.17.0.1910 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 UCH mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCH FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.9.4-12.17.0.1910-1.9.4.jar) UCH Forge{12.17.0.1910} [Minecraft Forge] (forgeSrc-1.9.4-12.17.0.1910-1.9.4.jar) UCE adamantium{1.2.0} [Adamantium] (bin) Loaded coremods (and transformers): GL info: ' Vendor: 'Intel' Version: '4.3.0 - Build 20.19.15.4331' Renderer: 'Intel(R) HD Graphics 4600' [00:58:58] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:646]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Zules\Desktop\Forge 1.9.4 2\run\.\crash-reports\crash-2016-05-23_00.58.58-client.txt Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
et voici mon addArmorMaterials :
public static ArmorMaterial AdamantiumArmor = EnumHelper.addArmorMaterial("AdamantiumArmor", "AdamantiumArmor", 50, new int[]{5, 10, 7, 4}, 10, null);
Pourriez-vous m’aider et m’indique l’erreur ?</init></clinit></init></clinit></init></clinit></init></clinit></init>
-
Ça ressemble à l’erreur typique d’une instanciation de classe dynamique qui ne possède pas de constructeur par défaut explicite, on alors tu t’es foiré dans les paramètres du constructeur.
-
@‘Blackout’:
Ça ressemble à l’erreur typique d’une instanciation de classe dynamique qui ne possède pas de constructeur par défaut explicite, on alors tu t’es foiré dans les paramètres du constructeur.
Mais le problème c’est que ça fonctionnait très bien en 1.9, tient si tu veux voir un peu le constructeur :
package fr.jules552.mod.init.Adamantium; import java.util.List; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.EntityEquipmentSlot; import net.minecraft.item.Item; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.world.World; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import scala.tools.nsc.doc.model.Public; import fr.jules552.mod.Adamantium; import fr.jules552.mod.Reference; import fr.jules552.mod.init.ItemsMod; public class ArmorAdamantium extends ItemArmor { public ArmorAdamantium(final ArmorMaterial material, final EntityEquipmentSlot equipmentSlotIn, final String armourName) { super(material, -1, equipmentSlotIn); } @Override public String getArmorTexture(ItemStack stack, Entity entity, EntityEquipmentSlot slot, String type) { if(armorType == EntityEquipmentSlot.LEGS) return Reference.MOD_ID + ":" + "textures/models/armor/adamantiumArmor_layer_2.png"; else return Reference.MOD_ID + ":" + "textures/models/armor/adamantiumArmor_layer_1.png"; } public boolean getIsRepairable(ItemStack input, ItemStack repair) { if(repair.getItem() == ItemsMod.Adamantium) { return true; } return false; } @SideOnly(Side.CLIENT) public void onArmorTick(World world, EntityPlayer player, ItemStack stack) { if (this.armorType == EntityEquipmentSlot.HEAD) { player.addPotionEffect(new PotionEffect(Potion.getPotionById(16), 210, 0, true, false)); } if (this.armorType == EntityEquipmentSlot.CHEST) { player.addPotionEffect(new PotionEffect(Potion.getPotionById(11), 20, 0, true, false));; } if (this.armorType == EntityEquipmentSlot.LEGS) { player.addPotionEffect(new PotionEffect(Potion.getPotionById(1), 20, 0, true, false));; } if (this.armorType == EntityEquipmentSlot.FEET) { player.addPotionEffect(new PotionEffect(Potion.getPotionById(8), 20, 1, true, false));; } { } } }
-
@‘Blackout’:
Ça ressemble à l’erreur typique d’une instanciation de classe dynamique qui ne possède pas de constructeur par défaut explicite, on alors tu t’es foiré dans les paramètres du constructeur.
Et du coup comment pourrait t-on régler ça ? Il y a un moyen ?
-
Le problème ne se trouve pas dans ton code, mais dans celui de Forge qui ne prends pas encore en compte le nouveau paramètre de l’armure en diamant.
Il faut attendre une version qui corrige ça.
-
En effet le problème vient de forge. Forge 1.9.4 n’est pas encore stable.
-
@‘robin4002’:
En effet le problème vient de forge. Forge 1.9.4 n’est pas encore stable.
D’accord merci à vous, ça confirme bien ma théorie qui me semblait la plus probable