Compiler votre mod
-
C’était pas la peine de m’envoyer un mp x)
Ton mod ne fonctionne pas car ce n’est pas un mod forge, tu as modifier les classes de minecraft, donc ça ne peut pas fonctionner.
-
bah euh comment je fais alors ‘-’ ? x’)
parce que j’ai vu dans une vidéo il faisait comme ça ^^des que notre codage est fini recompile -> reobsfucate_srg -> mettre dans un fichier zip et mettre dans le dossir mods du launcher ^^’
-
Envoie moi la vidéo en question.
J’ai vu que tu cherches à modifier le menu de minecraft, j’ai déjà fait un pack ici :
http://dl.mcnanotech.fr/robin4002/mods/Sources/CustomMenu-src.zip
Il suffit juste de modifier la classe GuiMenuCustom. -
@‘robin4002’:
Envoie moi la vidéo en question.
J’ai vu que tu cherches à modifier le menu de minecraft, j’ai déjà fait un pack ici :
http://dl.mcnanotech.fr/robin4002/mods/Sources/CustomMenu-src.zip
Il suffit juste de modifier la classe GuiMenuCustom.ici il ne que modifie les boutons mais comme je sais déjà qu’on peut modifier d’autres trucs j’en ai profité
( comme les enchantements
) -
Il ne modifie aucune classe de minecraft, il modifie des classes custom. Si tu regarde bien, il a utilisé mon pack et l’a modifié. (d’ailleurs je le connais, je l’ai sur skype).
-
Ah ok alors je dois utiliser les sources forge qu’il utilise ?

Et pour les enchantements ? =0 -
Pour les enchantements, c’est pareil.
-
J’utilise le meme pack tu veux dire ?

-
Non, il ne faut pas modifier les classes de minecraft ni de forge, donc que tu utilise le pack ou pas, ça changera rien.
Tu as modifié quoi dans les enchantements exactement ? -
J’augmente le niveau max des enchantements expl : sharp 5 en sharp 7 protect 4 en pretect 6

-
Je pense pas que ce soit modifiable sans asm, et comme je ne maîtrise pas l’asm je ne peux pas t’aider.
-
Si quelqu’un aurait une solution je viens de finir le code de mon mod et j’aimerais le recompiler seulement dans mon dossier forge mcp n’était pas installé merci par avance
-
Puis-je avoir un screenshot de ton dossier Forge.
-
voila
désolé pour l’image qui ne s’affiche pas la piece jointe c’est pas génial
P-S Si tu ne reçois pas de réponse de ma part c’est que je suis en week-end et je rentre lundi
-
Modifie le build.gradle, puis lance la commande gradlew build et tu retrouveras ton mod dans le dossier build/libs/
-
Modifier c’est-à-dire je dois ajouter quelque chose de spécial ?
-
Avec gradle c’est différent. Comme pour que tu as installer les sources de forge, ouvre une fenêtre de commande (ctrl + clic droit, ouvrir une fenêtre de commande ici sous Windows) et tape la commande
gradlew build
Le fichier final sera dans le dossier forge/build/libs et s’appellera modid-1.0
Tu peux modifier ça dans le fichier build.gradle -
Merci beaucoup de ton aide j’essayerais des que je pourrais +1pour toi
-
Bonjour j’ai un gros probleme avec mon mods 1.6.4 je le recompile comme c’est marquer dans le tutoriel saufe que quand je lance minecraft il m’affiche une erreur voici les logs
– Minecraft Crash Report ----
// Would you like a cupcake?Time: 23/12/14 18:19
Description: Initializing gamejava.lang.NoSuchMethodError: net.minecraft.item.ItemMapBase.<init>(Ljava/lang/String;)V
at JustFight.JustFightCreativeTabs.<init>(JustFightCreativeTabs.java:9)
at JustFight.JustFight.<clinit>(JustFight.java:45)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:462)
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:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
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:201)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)
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:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
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:112)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:511)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:473)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:808)
at net.minecraft.client.main.Main.main(SourceFile:101)
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:131)
at net.minecraft.launchwrapper.Launch.main(Launch.java:27)A detailed walkthrough of the error, its code path and all known details is as follows:
– Head –
Stacktrace:
at JustFight.JustFightCreativeTabs.<init>(JustFightCreativeTabs.java:9)
at JustFight.JustFight.<clinit>(JustFight.java:45)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:462)
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:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
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:201)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)
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:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
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:112)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:511)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:473)– Initialization –
Details:
Stacktrace:
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:808)
at net.minecraft.client.main.Main.main(SourceFile:101)
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:131)
at net.minecraft.launchwrapper.Launch.main(Launch.java:27)– System Details –
Details:
Minecraft Version: 1.6.4
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.8.0_11, Oracle Corporation
Java VM Version: Java HotSpot
Client VM (mixed mode), Oracle Corporation
Memory: 73331056 bytes (69 MB) / 206196736 bytes (196 MB) up to 523501568 bytes (499 MB)
JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx512M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v8.11 FML v6.4.49.965 Minecraft Forge 9.11.1.965 4 mods loaded, 4 mods active
mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML{6.4.49.965} [Forge Mod Loader] (minecraftforge-9.11.1.965.jar) Unloaded->Constructed
Forge{9.11.1.965} [Minecraft Forge] (minecraftforge-9.11.1.965.jar) Unloaded->Constructed
JustFight{1.0.0} [JustFight] (JustFight.zip) Unloaded
Launched Version: 1.6.4-Forge9.11.1.965
LWJGL: 2.9.0
OpenGL: GeForce GTX 650/PCIe/SSE2 GL version 4.4.0, NVIDIA Corporation
Is Modded: Definitely; Client brand changed to ‘fml,forge’
Type: Client (map_client.txt)
Resource Pack: Default
Current Language: Français (France)
Profiler Position: N/A (disabled)
Vec3 Pool Size:ERRORNullPointerException: nullj’espere que vous pourez m’aider</clinit></init></clinit></init></init>
-
at JustFight.JustFightCreativeTabs.<init>(JustFightCreativeTabs.java:9)
Tu as quoi dans cette classe ?
Tu as modifié des classes de Minecraft ? Si oui, il ne faut pas.
Et pourquoi coder en 1.6.4 alors que cette version est complètement dépassé ?</init>
