[Support] Impossible de lancer un mods sur la session de developpement [Eclipse]

TheEnergyCube

Aventurier
6 Septembre 2016
4
0
2
21
energycube.fr
Bonjour,
Je créer un mod Minecraft 1.7.10, je souhaite donc aujourd’hui utiliser d'autre mods[& API] pour mon plugin.
Sur eclipse il y a un dossier "mods" et j'ai donc besoin de mettre les mods dedans ex: CoFH Core [C'est ce qui permet d'utiliser Thermal Expansion].
Je l'ai donc fait mais visiblement Minecraft n'est pas d'accord :) il crash :confused:
Code:
---- Minecraft Crash Report ----
// Ouch. That hurt :(

Time: 06/09/16 21:05
Description: There was a severe problem during mod loading that has caused the game to fail

cpw.mods.fml.common.LoaderException: java.lang.NoSuchMethodError: net.minecraft.util.ChatStyle.func_150238_a(Lnet/minecraft/util/EnumChatFormatting;)Lnet/minecraft/util/ChatStyle;
   at cpw.mods.fml.common.LoadController.transition(LoadController.java:163)
   at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:559)
   at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)
   at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)
   at net.minecraft.client.Minecraft.run(Minecraft.java:942)
   at net.minecraft.client.main.Main.main(Main.java:164)
   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 net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
   at GradleStart.main(Unknown Source)
Caused by: java.lang.NoSuchMethodError: net.minecraft.util.ChatStyle.func_150238_a(Lnet/minecraft/util/EnumChatFormatting;)Lnet/minecraft/util/ChatStyle;
   at cofh.mod.updater.UpdateManager.<clinit>(UpdateManager.java:31)
   at cofh.CoFHCore.preInit(CoFHCore.java:106)
   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:532)
   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.preinitializeMods(Loader.java:556)
   ... 12 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 10 (amd64) version 10.0
   Java Version: 1.8.0_101, Oracle Corporation
   Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
   Memory: 381992928 bytes (364 MB) / 670564352 bytes (639 MB) up to 1897922560 bytes (1810 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.99.99 Minecraft Forge 10.13.4.1558 6 mods loaded, 6 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.05} [Minecraft Coder Pack] (minecraft.jar)
   UCH   FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)
   UCH   Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)
   UCH   <CoFH ASM>{000} [CoFH ASM] (minecraft.jar)
   UCH   ECEvolution{0.1.0} [EnergyCube Evolution] (bin)
   UCE   CoFHCore{1.7.10R3.1.3} [CoFH Core] (CoFHCore-[1.7.10]3.1.3-327.jar)
   GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 372.70' Renderer: 'GeForce GTX 965M/PCIe/SSE2'
   CoFHCore: -[1.7.10]3.1.3-327

Bref... Avec forge(à partir du laucher minecraft) tout va bien le mod se lance mais avec Eclipse le Run "Client" il marche pas voir le crash si dessus :/ (à noter que sans le mod Eclipse lance le "Client" sans problème)
 
Dernière édition par un modérateur:

robin4002

Expert en informatique et systèmes d'information
Staff
Responsable technique
Responsable forum
12 Novembre 2012
20 875
157
3 002
347
26
Alsace
www.minecraftforgefrance.fr
Salut,
Il n'est pas possible d'ajouter un mod normal sur un environnement de développement car les noms de méthodes sont différentes. (nom anglais sur l'environnement de dev, func_xxxx sur le jeu lancé depuis le launcher).

Il faut utiliser une version spécifique du mod (si elle existe) prévu pour fonctionner sur un environnement de dev.
Et visiblement c'est le cas pour CoFH core : https://minecraft.curseforge.com/projects/cofhcore/files/2320818
 
  • J'aime
Reactions: TheEnergyCube

TheEnergyCube

Aventurier
6 Septembre 2016
4
0
2
21
energycube.fr
Salut,
Il n'est pas possible d'ajouter un mod normal sur un environnement de développement car les noms de méthodes sont différentes. (nom anglais sur l'environnement de dev, func_xxxx sur le jeu lancé depuis le launcher).

Il faut utiliser une version spécifique du mod (si elle existe) prévu pour fonctionner sur un environnement de dev.
Et visiblement c'est le cas pour CoFH core : https://minecraft.curseforge.com/projects/cofhcore/files/2320818
Merci Beaucoup ! :D