• S'inscrire
    • Se connecter
    • Recherche
    • Récent
    • Mots-clés
    • Populaire
    • Utilisateurs
    • Groupes

    Résolu [ NoSuchFieldError ]

    1.7.x
    1.7.10
    2
    2
    654
    Charger plus de messages
    • Du plus ancien au plus récent
    • Du plus récent au plus ancien
    • Les plus votés
    Répondre
    • Répondre à l'aide d'un nouveau sujet
    Se connecter pour répondre
    Ce sujet a été supprimé. Seuls les utilisateurs avec les droits d'administration peuvent le voir.
    • SpyMan
      SpyMan dernière édition par

      Bonjour 
      J’ai un soucis avec l’un de mes bloc, Quand je lance la run avec eclipse ca fonctionne mais quand le lance le mod avec le laucnher client ça crash .
      J’ai constaté que j’avais un NoSuchFieldError mais je ne sais pas comment régler ce problème.

      CrashReport :

      –-- Minecraft Crash Report ----
      // Don’t be sad. I’ll do better next time, I promise!

      Time: 08/07/15 09:35
      Description: There was a severe problem during mod loading that has caused the game to fail

      cpw.mods.fml.common.LoaderException: java.lang.NoSuchFieldError: glass
      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.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.NoSuchFieldError: glass
      at com.google.SpyMan.MoreStuffs.common.MoreStuffs.preInit(MoreStuffs.java:93)
      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)
      … 10 more

      Mon Code (ligne 93):

      ​Lantern = new Lantern(Material.glass).setBlockName("Lantern").setCreativeTab(Ctab).setBlockTextureName(MODID + ":Lantern");
      
      1 réponse Dernière réponse Répondre Citer 0
      • robin4002
        robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par

        Pour compiler ton mod tu dois utiliser la commande gradlew build et non exporter avec eclipse, sinon le mod ne sera pas obfusqué.
        Il faut taper la commande dans la console (comme pour le setup, en étant dans le dossier Forge), le fichier jar se trouvera dans le dossier forge-src/build/libs

        1 réponse Dernière réponse Répondre Citer 0
        • 1 / 1
        • Premier message
          Dernier message
        Design by Woryk
        Contact / Mentions Légales

        MINECRAFT FORGE FRANCE © 2018

        Powered by NodeBB