Problème de library



  • Salut !
    Je suis entrain de bosser sur un mod qui est réparti sur 3 fichiers jars.
    Il y en a un principal qui sert pour les trois autres mods cependant j'ai un problème lorsque j'execute le jeu avec pour library le principal pour un autre fichier.
    Et quand je lance le jeu ça me met une erreur qui ne survient pas quand j'ai simplement le mod :

    [00:18:36] [Server thread/INFO]: Preparing start region for level 0
    [00:18:37] [Server thread/ERROR]: Skipping event FMLServerStartingEvent and marking errored mod dofuscraftstuffs since required dependency dofuscraftcore has errored
    [00:18:37] [Server thread/ERROR]: Fatal errors were detected during the transition from SERVER_ABOUT_TO_START to SERVER_STARTING. Loading cannot continue
    [00:18:37] [Server thread/ERROR]: 
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UCHIJAAA mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
    UCHIJAAA FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.10.2-12.18.3.2185.jar) 
    UCHIJAAA Forge{12.18.3.2185} [Minecraft Forge] (forgeSrc-1.10.2-12.18.3.2185.jar) 
    UCHIJAAE dofuscraftcore{0.6.0.0} [DofusCraft Core] (DofusCraftCore-0.6.0.0.jar) 
    UCHIJAAE dofuscraftstuffs{0.5.9.0} [DofusCraft Stuffs] (DofusCraft-Stuffs) 
    [00:18:37] [Server thread/ERROR]: The following problems were captured during this phase
    [00:18:37] [Server thread/ERROR]: Caught exception from DofusCraft Core (dofuscraftcore)
    java.lang.AbstractMethodError
    at net.minecraft.command.CommandHandler.registerCommand(CommandHandler.java:144) ~[forgeSrc-1.10.2-12.18.3.2185.jar:?]
    at net.minecraftforge.fml.common.event.FMLServerStartingEvent.registerServerCommand(FMLServerStartingEvent.java:59) ~[forgeSrc-1.10.2-12.18.3.2185.jar:?]
    at fr.jeremy60800.dofuscraftcore.DofusCraftCore.serverStarting(DofusCraftCore.java:109) ~[DofusCraftCore-0.6.0.0.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_131]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
    at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:602) ~[forgeSrc-1.10.2-12.18.3.2185.jar:?]
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) ~[?:?]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
    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:243) ~[forgeSrc-1.10.2-12.18.3.2185.jar:?]
    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:221) ~[forgeSrc-1.10.2-12.18.3.2185.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_131]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
    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:145) [LoadController.class:?]
    at net.minecraftforge.fml.common.Loader.serverStarting(Loader.java:845) [Loader.class:?]
    at net.minecraftforge.fml.common.FMLCommonHandler.handleServerStarting(FMLCommonHandler.java:292) [FMLCommonHandler.class:?]
    at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:126) [IntegratedServer.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:497) [MinecraftServer.class:?]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
    [00:18:37] [Server thread/ERROR]: A fatal exception occurred during the server starting event
    net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from DofusCraft Core (dofuscraftcore)
    
    Caused by: java.lang.AbstractMethodError
    at net.minecraft.command.CommandHandler.registerCommand(CommandHandler.java:144) ~[forgeSrc-1.10.2-12.18.3.2185.jar:?]
    at net.minecraftforge.fml.common.event.FMLServerStartingEvent.registerServerCommand(FMLServerStartingEvent.java:59) ~[forgeSrc-1.10.2-12.18.3.2185.jar:?]
    at fr.jeremy60800.dofuscraftcore.DofusCraftCore.serverStarting(DofusCraftCore.java:109) ~[DofusCraftCore-0.6.0.0.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_131]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
    at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:602) ~[forgeSrc-1.10.2-12.18.3.2185.jar:?]
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) ~[?:?]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
    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:243) ~[LoadController.class:?]
    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:221) ~[LoadController.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_131]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
    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:145) ~[LoadController.class:?]
    at net.minecraftforge.fml.common.Loader.serverStarting(Loader.java:845) [Loader.class:?]
    at net.minecraftforge.fml.common.FMLCommonHandler.handleServerStarting(FMLCommonHandler.java:292) [FMLCommonHandler.class:?]
    at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:126) [IntegratedServer.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:497) [MinecraftServer.class:?]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
    [00:18:37] [Server thread/INFO]: Stopping server
    [00:18:37] [Server thread/INFO]: Saving players
    [00:18:37] [Server thread/INFO]: Saving worlds
    [00:18:37] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Overworld
    [00:18:37] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Nether
    [00:18:37] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/The End
    [00:18:37] [Server thread/INFO]: Unloading dimension 0
    [00:18:37] [Server thread/INFO]: Unloading dimension -1
    [00:18:37] [Server thread/INFO]: Unloading dimension 1
    [00:18:37] [Server thread/ERROR]: Skipping event FMLModIdMappingEvent and marking errored mod dofuscraftstuffs since required dependency dofuscraftcore has errored
    [00:18:37] [Server thread/INFO]: Applying holder lookups
    [00:18:37] [Server thread/INFO]: Holder lookups applied
    [00:18:37] [Server thread/ERROR]: Skipping event FMLServerStoppedEvent and marking errored mod dofuscraftstuffs since required dependency dofuscraftcore has errored
    [00:18:37] [Server thread/INFO]: The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED. Errors may have been discarded.
    [00:18:37] [Server thread/INFO]: The state engine was in incorrect state ERRORED and forced into state AVAILABLE. Errors may have been discarded.
    


  • "Et quand je lance le jeu ça me met une erreur qui ne survient pas quand j'ai simplement le mod : "
    Quel mod ?

    Ce crash arrive quand tu lances dans eclipse ? (parce que je vois que le mod dofuscraftstuffs n'est pas dans un jar)
    Si oui le problème est que les mods compilé ont les noms obfusqués des fonctions vanilla, or quand tu lance dans eclipse ce sont les noms deobfusqués qui sont actifs, et donc ton mod dofuscraftcore n'arrive pas à charger ; il faut que tu utilises les mod CodeChickenCore qui résoud les problèmes de noms obfusqués en lançant dans eclipse.



  • J'ai testé mais ça ne change rien 😕



  • Montres le log ?



  • Bah c'est ce que j'ai envoyé



  • Après avoir fait ce que je t'ai demandé x)



  • En fait quand je mets codechickencore ça me mets la même erreur, apparemment ça vient de l'event FMLStartingServerEvent où j'enregistre une commande dans le core de mon mod. Auparavant j'ai déjà build et bosser avec la lib sans problème mais c'est depuis que j'ai ajouté l'event que ça me fait ça 😕



  • Alors ça serait spécialement la commande que tu enregistres qu'il n'aime pas… C'est bien la dernière version de la lib que tu as avec les mods chargés ?