Créer la base de votre mod
-
Ce tutoriel est également disponible en vidéo.
Sommaire
Introduction
Afin que votre mod soit détecté par FML, qu’il soit chargé et de bien gérer les sides (client et serveur), il faut créer une base de votre mod ainsi que des proxy. C’est ce que nous allons faire dans ce tutoriel. Tous les mods ont cette même base, sauf les plugins FML (anciennement connus sous le nom de coremods, que nous verrons plus tard).
Vous avez deux dossiers dans le projet Minecraft, un nommé src/main/java dans lequel il faudra placer tous les codes java (fichier .java) et un deuxième nommé src/main/resources dans lequel il faudra placer tout le reste (fichier .info, .png, .lang, .obj, etc …).
Pré-requis
- Installation de l’espace de travail pour Eclipse
- Avoir des connaissances en Java
Code
La classe principale :
Commencez par créer deux packages (clic droit sur src/main/java -> new -> Package).
Si vous avez un nom de domaine, par convention on utilise <extension du domaine>. <nom de domaine> pour le début des packages, donc pour nous, ce sera fr.minecraftforgefrance. Pour minecraftforge.net, net.minecraftforge, etc … Si vous n’avez pas de nom domaine, vous pouvez utiliser votre email (exemple : com.google.robin4002).
Après le début du nom de package, ajoutez le nom de votre mod, puis common pour le premier package, et client pour le second.
Dans mon cas, je vais nommer ce mod tutoriel, donc mes deux packages sont : fr.minecraftforgefrance.tutoriel.common et fr.minecraftforgefrance.tutoriel.client
Vous l’avez sûrement compris, le package client va servir pour toutes les classes client, et le package common pour toutes les classes communes au client et au serveur.
Faites un clic droit sur le package common, et créez une nouvelle classe. Cette classe va être votre classe principale, dans mon cas je vais l’appeler ModTutoriel.
En dessous de la déclaration de package, ajoutez @Mod. Vous allez avoir une erreur, passez la souris dessus et cliquez sur “import ‘Mod’ (cpw.mods.fml.common.Mod)”. @Mod va se mettre en gris, mais il va toujours avoir une erreur. Il suffit de passer à nouveau la souris dessus, et cliquer sur “Add missing attributes”. Un argument modid va s’ajouter, avec comme valeur un String vide. Placez simplement dedans le modid de votre mod, dans mon cas “modtutoriel”. Éviter les majuscules dans votre modid ainsi que les espaces. Dans la foulée, ajoutez les arguments name et version :@Mod(modid = "modtutoriel", name = "Mod Tutoriel", version = "1.0.0")
name
: le nom du mod, ici vous pouvez mettre des majuscules et des espaces.
version
: la version de votre mod.
Votre classe devrait ressembler à ceci :package fr.minecraftforgefrance.tutoriel.common; import cpw.mods.fml.common.Mod; @Mod(modid = "modtutoriel", name = "Mod Tutoriel", version = "1.0.0") public class ModTutoriel { // La suite va se mettre ici }
Ensuite, nous allons ajouter l’instance du mod. Dans la zone que j’ai mit en commentaire juste au dessus (// La suite va se mettre ici) ajoutez :
@Instance("modtutoriel") public static ModTutoriel instance;
C’est l’instance du mod. Pour faire simple, c’est un objet static qui renvoie sur votre classe principale. L’instance va être utilisé principalement dans le réseau (pour les gui, les paquets, et les mobs). Si vous connaissez le java, vous allez dire qu’il y a un problème. En effet, on peut croire que instance est null, puisqu’il n’a pas été initialisé. En fait, c’est l’annotation @Instance qui va initialiser la variable, il est donc important de ne rien mettre entre @Instance(“modtutoriel”) et public static ModTutoriel instance. Les deux doivent être à la suite.
Pour ceux qui ne l’ont pas devinés, @Instance est suivi du modid. Vous devez donc mettre votre modid.Maintenant nous allons voir quelques méthodes :
@EventHandler public void preInit(FMLPreInitializationEvent event) { } @EventHandler public void init(FMLInitializationEvent event) { } @EventHandler public void postInit(FMLPostInitializationEvent event) { }
Ajoutez-les après
public static ModTutoriel instance;
.
@EventHandler est une annotation nécessaire pour dire à FML que la méthode qui suit correspond à une étape du chargement du jeu. C’est aussi ce qui va faire que fml va appeler cette méthode (si vous ne mettez pas @EventHandler, votre méthode ne sera jamais exécutée). Ensuite les 3 méthodes ont pour argument un event qui correspond à une étape de chargement du jeu.
FMLPreInitializationEvent : c’est la première exécutée, elle va servir pour lire le fichier de configuration, enregistrer les blocs, les items, la plupart des choses qui se trouve dans le GameRegistry.
FMLInitializationEvent : toutes les choses secondaires iront ici, enregistrement des events, des rendus, des recettes, etc …
FMLPostInitializationEvent : la dernière chose faite avant le lancement du jeu, permet de principalement d’interagir avec les autres mods.
Il existe d’autres event moins utilisés comme FMLServerStartingEvent qui sert à enregistrer les commandes. Les autres ne m’ont jamais servi. Vous pouvez voir la liste complète dans la javadoc de @EventHandler (il vous suffit de passer la souris dessus).Petite astuce, vous pouvez aussi créer une constante correspondante à votre modid :
public static final String MODID = "modtutoriel";
Ainsi à chaque fois que vous aurez besoin d’id de votre mod, il vous suffira de mettre
NomDeVotreClassePrincipale.MODID
Nous l’utiliserons dans les tutoriels, je vous recommande donc de mettre cette constante. (à placer en dessous depublic static ModTutoriel instance;
).Le fichier d’information du mod :
Nous allons en profiter qu’un exemple tout prêt soit disponible depuis la 1.7 pour le compléter. Ouvrez le dossier src/main/resources puis ouvrez le fichier
mcmod.info
(soit avec l’éditeur d’eclipse, soit avec un éditeur externe à eclipse, peu importe).
Dansmodid
, mettez votre modid et dansname
le nom de votre mod (qui peut contenir des espaces et majuscules, contrairement au modid qui soit être en un mot et en minuscule). Dans description, faites une courte description de votre mod, dans les cases version et mcversion laissez les valeurs par défaut, elles seront automatiquement remplacées lors du build du mod. Dans url, mettez le lien de votre mod, vous pouvez laisser vide updateUrl, Concernant authors son nom a changé, remplacez-le par authorList. Il s’agit d’une liste, si vous êtes plusieurs développeurs :"authorList": ["auteur1", "auteur2", "auteur3", "auteur4", "etc .."],
Sinon :
"authorList": ["auteur"],
Dans credits, vous pouvez citer les contributeurs, ou la personne qui vous a donné l’idée de faire ce mod, ou encore citer minecraftforgefrance car sans nous votre mod n’existerai pas (il s’agit d’une blague, vous n’êtes pas obligé de le faire)
Dans logoFile, donnez le chemin complet vers le fichier png de votre logo (avec /assets/modid/logo.png, le fichier logo.png sera dans src/main/resources/assets/modid/.
screenshots est une liste comme authors, comme pour le logoFile il faut mettre les chemins vers les screenshots.
Laissez dependencies vide, il ne fonctionne pas, si votre mod est dépendant d’un autre, utilisez dependencies dans l’annotation @Mod.Les proxy :
L’un des plus gros avantages de forge, c’est qu’il permet de faire des mods universels, il n’y a donc qu’une seule version de votre mod pour le client et le serveur. Les proxy vont être très utilisés pour ça, car en fonction du side (client ou serveur) les fonctions seront soit appelées dans le client proxy, soit dans le common proxy.
Créez deux nouvelles classes, ClientProxy et CommonProxy. Mettez ces deux classes soit dans un nouveau package dédié aux proxy (fr.minecraftforgefrance.tutoriel.proxy dans mon cas), soit CommonProxy dans le package common et ClientProxy dans le package client. Le client proxy doit hériter du CommonProxy (public class ClientProxy extends CommonProxy).
Ajoutez une méthode nommée registerRender du type void dans les deux proxy, avec l’annotation @Override dans le ClientProxy. Dans cette méthode ajoutezSystem.out.println("méthode côté serveur/client");
Vous devrez maintenant avoir :
package fr.minecraftforgefrance.tutoriel.proxy; public class CommonProxy { public void registerRender() { System.out.println("méthode côté serveur"); } }
Et pour le client proxy :
package fr.minecraftforgefrance.tutoriel.proxy; public class ClientProxy extends CommonProxy { @Override public void registerRender() { System.out.println("méthode côté client"); } }
Bien sûr, afficher ceci n’a aucun intérêt dans un mod, c’est purement démonstratif. Actuellement la méthode registerRender n’est pas appelée dans la classe principale, donc même si vous lancez le jeu, il n’y aura rien dans la console. Nous allons donc déclarer les proxy et appeler cette méthode dans la méthode init.
Retournez dans la classe principale et ajoutez en dessous de l’instance et au dessus de la méthode preInit :@SidedProxy(clientSide = "le.package.de.votre.client.proxy.ClientProxy", serverSide = "le.package.de.votre.common.proxy.CommonProxy") public static CommonProxy proxy;
Remplacez par le chemin qui vous concerne, dans mon cas :
@SidedProxy(clientSide = "fr.minecraftforgefrance.tutoriel.proxy.ClientProxy", serverSide = "fr.minecraftforgefrance.tutoriel.proxy.CommonProxy")
Pour finir, nous allons appeler cette méthode dans la fonction init :
@EventHandler public void init(FMLInitializationEvent event) { proxy.registerRender(); }
Maintenant lancez le jeu, vous devrez voir méthode côté client. Lancez le serveur :
Vous devrez voirméthode côté serveur
dans les logs.
Voila donc pour le principe des proxy, on peut passer à la suite.Les fichiers de lang :
Pour finir, nous allons nous occuper des fichiers .lang et des autres ressources du mod. Ouvrez votre dossier forge/src/main/resources. Normalement il y a déjà le fichier mcmod.info. Créez un nouveau dossier nommé “assets”, et dans ce dossier créez un dossier portant votre modid en minuscule. Dans ce dossier, créez un dossier “textures” et un dossier “lang”.
Le dossier textures servira plus tard pour les textures. Allez dans le dossier lang, et créez de fichier : en_US.lang et fr_FR.lang. Vous pouvez faire d’autres fichiers de lang pour les autres langages, ils sont détectés automatiquement. Nous les compléterons plus tard.Résultat
Voir le commit sur github
Le commit sur github montre clairement où ont été placés les fichiers, ainsi que ce qui a été ajouté et retiré dans le fichier.En vidéo
http://www.youtube.com/watch?v=LLIaljWXMXM
Crédits
Rédaction :
Correction :
Ce tutoriel de Minecraft Forge France est mis à disposition selon les termes de la licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International -
Quand je clique sur le bouton Run Minecraft crash.
Les log :
[12:42:21] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [12:42:21] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [12:42:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [12:42:21] [main/INFO] [FML]: Forge Mod Loader version 7.2.116.1024 for Minecraft 1.7.2 loading [12:42:21] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_51, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7 [12:42:21] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [12:42:21] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [12:42:21] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [12:42:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [12:42:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [12:42:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [12:42:21] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [12:42:22] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/Nolan/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1024/forgeSrc-1.7.2-10.12.0.1024.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again! [12:42:22] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem! [12:42:22] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/Nolan/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1024/forgeSrc-1.7.2-10.12.0.1024.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it [12:42:22] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [12:42:22] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [12:42:22] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [12:42:24] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [12:42:27] [main/INFO]: Setting user: Player514 [12:42:30] [Client thread/INFO]: LWJGL Version: 2.9.0 [12:42:31] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [12:42:31] [Client thread/INFO] [FML]: MinecraftForge v10.12.0.1024 Initialized [12:42:31] [Client thread/INFO] [FML]: Replaced 128 ore recipies [12:42:31] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [12:42:31] [Client thread/INFO] [FML]: Searching C:\Users\Nolan\Desktop\Java\forge\eclipse\mods for mods [12:42:33] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW! [12:42:36] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load [12:42:36] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:CodCrafted, FMLFileResourcePack:ModTutoriel févr. 27, 2014 12:42:37 PM com.google.common.eventbus.EventBus dispatch Grave: Could not dispatch event: cpw.mods.fml.common.event.FMLConstructionEvent@5eb4cff8 to handler [wrapper public void cpw.mods.fml.common.FMLModContainer.constructMod(cpw.mods.fml.common.event.FMLConstructionEvent)] java.lang.reflect.InvocationTargetException 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:209) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188) 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:119) at cpw.mods.fml.common.Loader.loadMods(Loader.java:487) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:194) at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) at net.minecraft.client.Minecraft.run(Minecraft.java:931) at net.minecraft.client.main.Main.main(Main.java:112) 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: cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: com.google.itspgm.proxy.ClientProxy at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:76) at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:515) … 32 more Caused by: java.lang.ClassNotFoundException: com.google.itspgm.proxy.ClientProxy at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59) ... 33 more Caused by: java.lang.NullPointerException at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:180) ... 39 more [12:42:37] [Client thread/ERROR] [FML]: An error occured trying to load a proxy into {clientSide=com.google.itspgm.proxy.ClientProxy, serverSide=com.google.itspgm.proxy.CommonProxy}.com.google.itspgm.codcrafted.common.CodCrafted java.lang.ClassNotFoundException: com.google.itspgm.proxy.ClientProxy at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188) ~[launchwrapper-1.9.jar:?] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_51] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_51] at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) ~[ModClassLoader.class:?] at java.lang.Class.forName0(Native Method) ~[?:1.7.0_51] at java.lang.Class.forName(Unknown Source) ~[?:1.7.0_51] at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59) [ProxyInjector.class:?] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:515) [FMLModContainer.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) [guava-15.0.jar:?] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) [guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) [guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) [guava-15.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:267) [guava-15.0.jar:?] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:209) [LoadController.class:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188) [LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) [guava-15.0.jar:?] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) [guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) [guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) [guava-15.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:267) [guava-15.0.jar:?] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?] at cpw.mods.fml.common.Loader.loadMods(Loader.java:487) [Loader.class:?] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:194) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] Caused by: java.lang.NullPointerException at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:180) ~[launchwrapper-1.9.jar:?] … 39 more [12:42:37] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue [12:42:37] [Client thread/ERROR] [FML]: mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed FML{7.2.116.1024} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.0.1024.jar) Unloaded->Constructed Forge{10.12.0.1024} [Minecraft Forge] (forgeSrc-1.7.2-10.12.0.1024.jar) Unloaded->Constructed Cod{1.0.0} [CodCrafted] (bin) Unloaded->Errored ModTutoriel{1.0.0} [ModTutoriel] (bin) Unloaded->Errored [12:42:37] [Client thread/ERROR] [FML]: The following problems were captured during this phase [12:42:37] [Client thread/ERROR] [FML]: Caught exception from ModTutoriel java.lang.ClassNotFoundException: modtutoriel.common.ModTutoriel at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188) ~[launchwrapper-1.9.jar:?] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_51] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_51] at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) ~[ModClassLoader.class:?] at java.lang.Class.forName0(Native Method) ~[?:1.7.0_51] at java.lang.Class.forName(Unknown Source) ~[?:1.7.0_51] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:443) ~[FMLModContainer.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:209) ~[LoadController.class:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188) ~[LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?] at cpw.mods.fml.common.Loader.loadMods(Loader.java:487) [Loader.class:?] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:194) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] Caused by: java.lang.NullPointerException at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:180) ~[launchwrapper-1.9.jar:?] … 38 more [12:42:37] [Client thread/ERROR] [FML]: Caught exception from Cod cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: com.google.itspgm.proxy.ClientProxy at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:76) ~[ProxyInjector.class:?] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:515) ~[FMLModContainer.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:209) ~[LoadController.class:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188) ~[LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?] at cpw.mods.fml.common.Loader.loadMods(Loader.java:487) [Loader.class:?] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:194) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] Caused by: java.lang.ClassNotFoundException: com.google.itspgm.proxy.ClientProxy at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188) ~[launchwrapper-1.9.jar:?] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_51] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_51] at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) ~[ModClassLoader.class:?] at java.lang.Class.forName0(Native Method) ~[?:1.7.0_51] at java.lang.Class.forName(Unknown Source) ~[?:1.7.0_51] at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59) ~[ProxyInjector.class:?] … 33 more Caused by: java.lang.NullPointerException at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:180) ~[launchwrapper-1.9.jar:?] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_51] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_51] at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) ~[ModClassLoader.class:?] at java.lang.Class.forName0(Native Method) ~[?:1.7.0_51] at java.lang.Class.forName(Unknown Source) ~[?:1.7.0_51] at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59) ~[ProxyInjector.class:?] … 33 more ---- Minecraft Crash Report ---- // Shall we play a game? Time: 27/02/14 12:42 Description: There was a severe problem during mod loading that has caused the game to fail cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: modtutoriel.common.ModTutoriel at cpw.mods.fml.common.LoadController.transition(LoadController.java:163) at cpw.mods.fml.common.Loader.loadMods(Loader.java:497) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:194) at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) at net.minecraft.client.Minecraft.run(Minecraft.java:931) at net.minecraft.client.main.Main.main(Main.java:112) 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.ClassNotFoundException: modtutoriel.common.ModTutoriel at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:443) 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:209) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188) 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:119) at cpw.mods.fml.common.Loader.loadMods(Loader.java:487) ... 10 more Caused by: java.lang.NullPointerException at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:180) ... 38 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: 894812496 bytes (853 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M 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.116.1024 Minecraft Forge 10.12.0.1024 5 mods loaded, 5 mods active mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed FML{7.2.116.1024} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.0.1024.jar) Unloaded->Constructed Forge{10.12.0.1024} [Minecraft Forge] (forgeSrc-1.7.2-10.12.0.1024.jar) Unloaded->Constructed Cod{1.0.0} [CodCrafted] (bin) Unloaded->Errored ModTutoriel{1.0.0} [ModTutoriel] (bin) Unloaded->Errored #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Nolan\Desktop\Java\forge\eclipse\.\crash-reports\crash-2014-02-27_12.42.37-client.txt
-
java.lang.ClassNotFoundException: com.google.itspgm.proxy.ClientProxy
La classe de ton client proxy n’est pas trouvé. Vérifie que tu as mit le bon chemin.
Sinon il y a un autre truc étrange :Cod{1.0.0} [CodCrafted] (bin) Unloaded->Errored ModTutoriel{1.0.0} [ModTutoriel] (bin) Unloaded->Errored
Pourquoi il y a deux mods ?
Si tu n’arrives pas à résoudre le problème tout seul, on a besoin de tes codes.
-
Salut !
J’ai fini mon mod 1.7, tout fonctionne et tout, la classe principale est bien complète, aucune erreur, le mod est prêt à être recompilé… Seul problème, j’ai aucune idée de comment recompiler et “déobsfucater” le mod :x
Si quelqu’un connait une manière rapide de compiler le mod, pouvez vous le dire svp ? Et OUI, je suis au courant que vous êtes actuellement en train de faire (ou vous allez le faire) un tuto pour compiler, mais je doute qu’il sera là rapidement et vu que je suis impatient, j’ai pas trop envie d’attendre le tutoriel ^^Merci :3
-
De la même façon pour installer forge, sauf qu’il faut utiliser build :
gradlew build
Le .jar se trouve dans forge/build/libs/ -
Salut, je n’arrive toujours pas à régler l’erreur
Ma classe principal(CodCrafted.java) :
package com.google.itspgm.codcrafted.common; import com.google.itspgm.proxy.CommonProxy; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; @Mod(modid = "Cod", name = "CodCrafted", version = "1.0.0") public class CodCrafted { @Instance("Cod") public static CodCrafted instance; @SidedProxy(clientSide = "com.google.itspgm.proxy.ClientProxy", serverSide = "com.google.itspgm.proxy.CommonProxy") public static CommonProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerRender(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } }
ClientProxy :
package com.google.itspgm.client; import com.google.itspgm.proxy.CommonProxy; public class ClientProxy extends CommonProxy { @Override public void registerRender() { } }
CommonProxy :
package com.google.itspgm.proxy; public class CommonProxy { public void registerRender() { } }
-
Ta classe ClientProxy est dans le package com.google.itspgm.client mais tu dis à Forge de chercher com.google.itspgm.ClientProxy
-
Bon maintenant dans les logs y a sa :
[17:57:04] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [17:57:04] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [17:57:04] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [17:57:04] [main/INFO] [FML]: Forge Mod Loader version 7.2.116.1024 for Minecraft 1.7.2 loading [17:57:04] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_51, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7 [17:57:04] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [17:57:04] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [17:57:04] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [17:57:04] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [17:57:04] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [17:57:04] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [17:57:05] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [17:57:05] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/Nolan/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1024/forgeSrc-1.7.2-10.12.0.1024.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again! [17:57:05] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem! [17:57:05] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/Nolan/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1024/forgeSrc-1.7.2-10.12.0.1024.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it [17:57:05] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [17:57:05] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [17:57:05] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [17:57:07] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [17:57:10] [main/INFO]: Setting user: Player918 [17:57:13] [Client thread/INFO]: LWJGL Version: 2.9.0 [17:57:14] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [17:57:14] [Client thread/INFO] [FML]: MinecraftForge v10.12.0.1024 Initialized [17:57:14] [Client thread/INFO] [FML]: Replaced 128 ore recipies [17:57:14] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [17:57:15] [Client thread/INFO] [FML]: Searching C:\Users\Nolan\Desktop\Java\forge\eclipse\mods for mods [17:57:17] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW! [17:57:20] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [17:57:20] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:CodCrafted févr. 27, 2014 5:57:21 PM com.google.common.eventbus.EventBus dispatch Grave: Could not dispatch event: cpw.mods.fml.common.event.FMLConstructionEvent@3555c746 to handler [wrapper public void cpw.mods.fml.common.FMLModContainer.constructMod(cpw.mods.fml.common.event.FMLConstructionEvent)] java.lang.reflect.InvocationTargetException 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:209) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188) 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:119) at cpw.mods.fml.common.Loader.loadMods(Loader.java:487) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:194) at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) at net.minecraft.client.Minecraft.run(Minecraft.java:931) at net.minecraft.client.main.Main.main(Main.java:112) 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: cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: com.google.itspgm.proxy.client.ClientProxy at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:76) at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:515) … 32 more Caused by: java.lang.ClassNotFoundException: com.google.itspgm.proxy.client.ClientProxy at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59) ... 33 more Caused by: java.lang.NullPointerException at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:180) ... 39 more [17:57:21] [Client thread/ERROR] [FML]: An error occured trying to load a proxy into {clientSide=com.google.itspgm.proxy.client.ClientProxy, serverSide=com.google.itspgm.proxy.client.CommonProxy}.com.google.itspgm.codcrafted.common.CodCrafted java.lang.ClassNotFoundException: com.google.itspgm.proxy.client.ClientProxy at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188) ~[launchwrapper-1.9.jar:?] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_51] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_51] at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) ~[ModClassLoader.class:?] at java.lang.Class.forName0(Native Method) ~[?:1.7.0_51] at java.lang.Class.forName(Unknown Source) ~[?:1.7.0_51] at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59) [ProxyInjector.class:?] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:515) [FMLModContainer.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) [guava-15.0.jar:?] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) [guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) [guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) [guava-15.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:267) [guava-15.0.jar:?] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:209) [LoadController.class:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188) [LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) [guava-15.0.jar:?] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) [guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) [guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) [guava-15.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:267) [guava-15.0.jar:?] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?] at cpw.mods.fml.common.Loader.loadMods(Loader.java:487) [Loader.class:?] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:194) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] Caused by: java.lang.NullPointerException at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:180) ~[launchwrapper-1.9.jar:?] … 39 more [17:57:21] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue [17:57:21] [Client thread/ERROR] [FML]: mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed FML{7.2.116.1024} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.0.1024.jar) Unloaded->Constructed Forge{10.12.0.1024} [Minecraft Forge] (forgeSrc-1.7.2-10.12.0.1024.jar) Unloaded->Constructed CodCrafted{1.0.0} [CodCrafted] (bin) Unloaded->Errored [17:57:21] [Client thread/ERROR] [FML]: The following problems were captured during this phase [17:57:21] [Client thread/ERROR] [FML]: Caught exception from CodCrafted cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: com.google.itspgm.proxy.client.ClientProxy at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:76) ~[ProxyInjector.class:?] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:515) ~[FMLModContainer.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:209) ~[LoadController.class:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188) ~[LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?] at cpw.mods.fml.common.Loader.loadMods(Loader.java:487) [Loader.class:?] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:194) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] Caused by: java.lang.ClassNotFoundException: com.google.itspgm.proxy.client.ClientProxy at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188) ~[launchwrapper-1.9.jar:?] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_51] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_51] at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) ~[ModClassLoader.class:?] at java.lang.Class.forName0(Native Method) ~[?:1.7.0_51] at java.lang.Class.forName(Unknown Source) ~[?:1.7.0_51] at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59) ~[ProxyInjector.class:?] … 33 more Caused by: java.lang.NullPointerException at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:180) ~[launchwrapper-1.9.jar:?] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_51] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_51] at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) ~[ModClassLoader.class:?] at java.lang.Class.forName0(Native Method) ~[?:1.7.0_51] at java.lang.Class.forName(Unknown Source) ~[?:1.7.0_51] at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59) ~[ProxyInjector.class:?] … 33 more ---- Minecraft Crash Report ---- // On the bright side, I bought you a teddy bear! Time: 27/02/14 17:57 Description: There was a severe problem during mod loading that has caused the game to fail cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: com.google.itspgm.proxy.client.ClientProxy at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:76) at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:515) 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:209) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188) 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:119) at cpw.mods.fml.common.Loader.loadMods(Loader.java:487) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:194) at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) at net.minecraft.client.Minecraft.run(Minecraft.java:931) at net.minecraft.client.main.Main.main(Main.java:112) 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.ClassNotFoundException: com.google.itspgm.proxy.client.ClientProxy at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59) ... 33 more Caused by: java.lang.NullPointerException at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:180) ... 39 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: 904957000 bytes (863 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M 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.116.1024 Minecraft Forge 10.12.0.1024 4 mods loaded, 4 mods active mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed FML{7.2.116.1024} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.0.1024.jar) Unloaded->Constructed Forge{10.12.0.1024} [Minecraft Forge] (forgeSrc-1.7.2-10.12.0.1024.jar) Unloaded->Constructed CodCrafted{1.0.0} [CodCrafted] (bin) Unloaded->Errored #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Nolan\Desktop\Java\forge\eclipse\.\crash-reports\crash-2014-02-27_17.57.21-client.txt
-
Ta classe est toujours dans com.google.itspgm.client, pas com.google.itspgm.proxy.client
-
Problème régler, merci
-
J’ai cette erreur au lancement du jeu:
[22:27:19] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [22:27:19] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [22:27:19] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [22:27:19] [main/INFO] [FML]: Forge Mod Loader version 7.2.156.1060 for Minecraft 1.7.2 loading [22:27:19] [main/INFO] [FML]: Java is Java HotSpot(TM) Client VM, version 1.7.0_55, running on Windows 8.1:x86:6.3, installed at C:\Program Files (x86)\Java\jre7 [22:27:19] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [22:27:19] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [22:27:19] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [22:27:19] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [22:27:19] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [22:27:19] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [22:27:20] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [22:27:20] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/Jean-Baptiste/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1060/forgeSrc-1.7.2-10.12.1.1060.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again! [22:27:20] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem! [22:27:20] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/Jean-Baptiste/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1060/forgeSrc-1.7.2-10.12.1.1060.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it [22:27:20] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [22:27:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [22:27:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [22:27:20] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [22:27:20] [main/ERROR] [LaunchWrapper]: Unable to launch java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_55] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_55] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_55] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_55] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] Caused by: joptsimple.MissingRequiredOptionException: Missing required option(s) ['accessToken'] at joptsimple.OptionParser.ensureRequiredOptions(OptionParser.java:447) ~[OptionParser.class:?] at joptsimple.OptionParser.parse(OptionParser.java:437) ~[OptionParser.class:?] at net.minecraft.client.main.Main.main(Main.java:47) ~[Main.class:?] … 6 more
-
http://www.minecraftforgefrance.fr/showthread.php?tid=566#bonus
Tu as loupé quelque chose ici. Tu t’es sûrement trompé de mot de passe ou d’émail/pseudo. (l’argument accessToken est généré avec l’émail/pseudo et le mot de passe, si un des deux est faux, il ne se créé pas et ça crash). -
C’est bon ! Nikel, j’avais oublié une lettre
-
Bonjour/soir !
J’ai bien suivi tout votre tutoriel mais lorsque je lance le server un erreur s’affiche :
[20:24:05] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLServerTweaker [20:24:05] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLServerTweaker [20:24:05] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLServerTweaker [20:24:05] [main/INFO] [FML]: Forge Mod Loader version 7.2.156.1060 for Minecraft 1.7.2 loading [20:24:05] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.6.0_65, running on Mac OS X:x86_64:10.8.5, installed at /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home [20:24:05] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [20:24:05] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [20:24:05] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [20:24:05] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [20:24:05] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [20:24:05] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [20:24:05] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [20:24:05] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [20:24:05] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [20:24:05] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [20:24:06] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.server.MinecraftServer} [20:24:09] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: Starting minecraft server version 1.7.2 [20:24:09] [Server thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [20:24:09] [Server thread/INFO] [FML]: MinecraftForge v10.12.1.1060 Initialized [20:24:09] [Server thread/INFO] [FML]: Replaced 141 ore recipies [20:24:09] [Server thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [20:24:09] [Server thread/INFO] [FML]: Searching /Users/Thomas/Desktop/Mods/eclipse/mods for mods [20:24:11] [Server thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW! [20:24:13] [Server thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [20:24:14] [Server thread/ERROR] [FML]: An error occured trying to load a proxy into {clientSide=fr.disneypickcraft.avataradventure.proxy.ClientProxy, serverSide=fr.disneypickcraft.avataradventure.proxy.CommonProxy}.fr.disneypickcraft.avataradventuremod.common.AvatarAdventure java.lang.ClassNotFoundException: fr.disneypickcraft.avataradventure.proxy.CommonProxy at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188) ~[launchwrapper-1.9.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) ~[?:1.6.0_65] at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ~[?:1.6.0_65] at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) ~[ModClassLoader.class:?] at java.lang.Class.forName0(Native Method) ~[?:1.6.0_65] at java.lang.Class.forName(Class.java:249) ~[?:1.6.0_65] at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59) [ProxyInjector.class:?] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:492) [FMLModContainer.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.6.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[?:1.6.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[?:1.6.0_65] at java.lang.reflect.Method.invoke(Method.java:597) ~[?:1.6.0_65] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) [guava-15.0.jar:?] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) [guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) [guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) [guava-15.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:267) [guava-15.0.jar:?] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:209) [LoadController.class:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188) [LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.6.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[?:1.6.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[?:1.6.0_65] at java.lang.reflect.Method.invoke(Method.java:597) ~[?:1.6.0_65] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) [guava-15.0.jar:?] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) [guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) [guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) [guava-15.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:267) [guava-15.0.jar:?] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?] at cpw.mods.fml.common.Loader.loadMods(Loader.java:489) [Loader.class:?] at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:86) [FMLServerHandler.class:?] at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:310) [FMLCommonHandler.class:?] at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:117) [DedicatedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742) [MinecraftServer$2.class:?] Caused by: java.lang.NullPointerException [20:24:14] [Server thread/ERROR] [FML]: Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue [20:24:14] [Server thread/ERROR] [FML]: mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed FML{7.2.156.1060} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed Forge{10.12.1.1060} [Minecraft Forge] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed avataradventure{1.0.0} [Avatar Adventure Mod] (bin) Unloaded->Errored [20:24:14] [Server thread/ERROR] [FML]: The following problems were captured during this phase [20:24:14] [Server thread/ERROR] [FML]: Caught exception from avataradventure cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: fr.disneypickcraft.avataradventure.proxy.CommonProxy at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:76) ~[ProxyInjector.class:?] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:492) ~[FMLModContainer.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.6.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[?:1.6.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[?:1.6.0_65] at java.lang.reflect.Method.invoke(Method.java:597) ~[?:1.6.0_65] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:209) ~[LoadController.class:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188) ~[LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.6.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[?:1.6.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[?:1.6.0_65] at java.lang.reflect.Method.invoke(Method.java:597) ~[?:1.6.0_65] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?] at cpw.mods.fml.common.Loader.loadMods(Loader.java:489) [Loader.class:?] at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:86) [FMLServerHandler.class:?] at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:310) [FMLCommonHandler.class:?] at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:117) [DedicatedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742) [MinecraftServer$2.class:?] Caused by: java.lang.ClassNotFoundException: fr.disneypickcraft.avataradventure.proxy.CommonProxy at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188) ~[launchwrapper-1.9.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) ~[?:1.6.0_65] at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ~[?:1.6.0_65] at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) ~[ModClassLoader.class:?] at java.lang.Class.forName0(Native Method) ~[?:1.6.0_65] at java.lang.Class.forName(Class.java:249) ~[?:1.6.0_65] at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59) ~[ProxyInjector.class:?] … 28 more Caused by: java.lang.NullPointerException [20:24:14] [Server thread/ERROR] [net.minecraft.server.MinecraftServer]: Encountered an unexpected exception cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: fr.disneypickcraft.avataradventure.proxy.CommonProxy at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:76) ~[ProxyInjector.class:?] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:492) ~[FMLModContainer.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.6.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[?:1.6.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[?:1.6.0_65] at java.lang.reflect.Method.invoke(Method.java:597) ~[?:1.6.0_65] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:209) ~[LoadController.class:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188) ~[LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.6.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[?:1.6.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[?:1.6.0_65] at java.lang.reflect.Method.invoke(Method.java:597) ~[?:1.6.0_65] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) ~[LoadController.class:?] at cpw.mods.fml.common.Loader.loadMods(Loader.java:489) ~[Loader.class:?] at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:86) ~[FMLServerHandler.class:?] at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:310) ~[FMLCommonHandler.class:?] at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:117) ~[DedicatedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742) [MinecraftServer$2.class:?] Caused by: java.lang.ClassNotFoundException: fr.disneypickcraft.avataradventure.proxy.CommonProxy at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188) ~[launchwrapper-1.9.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) ~[?:1.6.0_65] at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ~[?:1.6.0_65] at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) ~[ModClassLoader.class:?] at java.lang.Class.forName0(Native Method) ~[?:1.6.0_65] at java.lang.Class.forName(Class.java:249) ~[?:1.6.0_65] at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59) ~[ProxyInjector.class:?] … 28 more Caused by: java.lang.NullPointerException [20:24:14] [Server thread/ERROR] [net.minecraft.server.MinecraftServer]: This crash report has been saved to: /Users/Thomas/Desktop/Mods/eclipse/./crash-reports/crash-2014-05-21_20.24.14-server.txt
-
Salut, apparemment, le problème vient d’une faute dans le nom de ta classe ou du package de ton common proxy. Vérifie le chemin d’accès que tu as mis et que la classe est au bon endroit.
-
@‘gagoi’:
Salut, apparemment, le problème vient d’une faute dans le nom de ta classe ou du package de ton common proxy. Vérifie le chemin d’accès que tu as mis et que la classe est au bon endroit.
Je ne trouve pas l’erreur…
Voici mes classe de proxyClientProxy :
package fr.disneypickcraft.avataradventuremod.proxy; public class ClientProxy extends CommonProxy { @Override public void registerRender() { System.out.println("méthode côté client"); } }
CommonProxy :
package fr.disneypickcraft.avataradventuremod.proxy; public class CommonProxy { public void registerRender() { System.out.println("méthode côté serveur"); } }
-
Tu peux envoyer aussi ta classe principale (la ligne @SidedProxy suffira).
-
@‘robin4002’:
Tu peux envoyer aussi ta classe principale (la ligne @SidedProxy suffira).
C’est à dire ? :s
(Désolé pour l’instant je débute encore un peu dans le codage) -
Dans ta classe principale tu as une ligne @SidedProxy(…
Il me faut ce que tu as mit dans cette ligne. -
@‘robin4002’:
Dans ta classe principale tu as une ligne @SidedProxy(…
Il me faut ce que tu as mit dans cette ligne.Voilà :
@SidedProxy(clientSide = "fr.disneypickcraft.avataradventure.proxy.ClientProxy", serverSide = "fr.disneypickcraft.avataradventure.proxy.CommonProxy") public static CommonProxy proxy;