Créer un item basique
-
[19:04:14] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [19:04:15] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/Sebastien/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.2.1147/forgeSrc-1.7.2-10.12.2.1147.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! [19:04:15] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem! [19:04:15] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/Sebastien/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.2.1147/forgeSrc-1.7.2-10.12.2.1147.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it [19:04:15] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [19:04:15] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [19:04:15] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [19:04:16] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [19:04:17] [main/INFO]: Setting user: Player968 [19:04:19] [Client thread/INFO]: LWJGL Version: 2.9.0 [19:04:19] [Client thread/ERROR]: Couldn't set icon
et sa me met apres que des message comme sa (sa spam)
[19:05:42] [Client thread/ERROR]: @ Post render [19:05:42] [Client thread/ERROR]: 1286: Invalid framebuffer operation [19:05:42] [Client thread/ERROR]: ########## GL ERROR ########## [19:05:42] [Client thread/ERROR]: @ Post render [19:05:42] [Client thread/ERROR]: 1286: Invalid framebuffer operation [19:05:42] [Client thread/ERROR]: ########## GL ERROR ########## [19:05:42] [Client thread/ERROR]: @ Post render [19:05:42] [Client thread/ERROR]: 1286: Invalid framebuffer operation [19:05:42] [Client thread/ERROR]: ########## GL ERROR ########## [19:05:42] [Client thread/ERROR]: @ Post render [19:05:42] [Client thread/ERROR]: 1286: Invalid framebuffer operation [19:05:42] [Client thread/ERROR]: ########## GL ERROR ########## [19:05:42] [Client thread/ERROR]: @ Post render [19:05:42] [Client thread/ERROR]: 1286: Invalid framebuffer operation [19:05:43] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press [19:05:43] [Client thread/INFO]: Stopping!
jai trouver sa aussi:
[19:04:20] [Client thread/ERROR] [FML]: There was a problem reading the file C:\Users\Sebastien\Desktop\modding\forge-1.7.2\bin\com\google\smalycraft\misterfire\common\fraise.class - probably this is a corrupt file
[19:04:21] [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!
-
Je ne vois pas pourquoi forge ne reconnais pas le mod :x Essaye de réinstaller ton environnement Forge.
-
Essaye de réinstaller mon environnement Forge?
-
As tu suivis correctement le tutoriel de base pour créer son mod ?
(Avec forge gradlew, le “gradlew setupDecompWorkspace” etc …) -
a ok j’avait pas compris dsl
-
j’ai fait gradlewsetupDecompWorkspace et gradlew eclipse et sa ne marche toujours pas
-
Bizzare envoie le code de ta classe
-
comment je fait ?
(je suis débuttant) -
Dans eclipse : Ctrl + A; Ctrl + C; Dans internet, tu le colle en message avec la balise de code
-
a ok
package com.google.smalycraft.misterfire.common; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import com.google.smalycraft.misterfire.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; import cpw.mods.fml.common.registry.GameRegistry; @Mod(modid = MisterFire.MODID, name = "MisterFire", version = "1.0.0") public class MisterFire { public static final String MODID = "fraise"; @Instance("fraise") public static MisterFire instance; @SidedProxy(clientSide = "com.google.smalycraft.misterfire.proxy.CommonProxy" , serverSide = "com.google.smalycraft.misterfire.proxy.CommonProxy") public static CommonProxy proxy; public static Item fraise; @EventHandler public void preInit(FMLPreInitializationEvent event) { fraise = new fraise().setUnlocalizedName("fraise").setTextureName(MODID + ":fraise").setCreativeTab(CreativeTabs.tabMaterials); GameRegistry.registerItem(fraise, "fraise"); } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerRender(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } }
-
Renomme ta classe fraise en ItemFraise histoire de respecter la convention java (et encore faudrait nommer la classe en anglais).
-
non sa ne marche pas
-
un screen:
-
Pourtant il n’y a aucune erreur … Essayes de supprimer le dossier forge/bin (je sais plus où il es
-
-
Tu as mis le même nom pour ton proxy client et serveur
@SidedProxy(clientSide = "com.google.smalycraft.misterfire.proxy.CommonProxy" , serverSide = "com.google.smalycraft.misterfire.proxy.CommonProxy")
Change le CommonProxy en ClientProxy.
Erreur toute bête ^^ -
package com.google.smalycraft.misterfire.common; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import com.google.smalycraft.misterfire.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; import cpw.mods.fml.common.registry.GameRegistry; @Mod(modid = MisterFire.MODID, name = "MisterFire", version = "1.0.0") public class MisterFire { public static final String MODID = "fraise"; @Instance("fraise") public static MisterFire instance; @SidedProxy(clientSide = "com.google.smalycraft.misterfire.proxy.ClientProxy" , serverSide = "com.google.smalycraft.misterfire.proxy.ClientProxy") public static CommonProxy proxy; public static Item fraise; @EventHandler public void preInit(FMLPreInitializationEvent event) { fraise = new ItemFraise().setUnlocalizedName("fraise").setTextureName(MODID + ":fraise").setCreativeTab(CreativeTabs.tabMaterials); GameRegistry.registerItem(fraise, "fraise"); } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerRender(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } }
-
Balises….
-
balises?
-
ok, c’est pas dans le nouvel éditeur autant pour moi. Utilises les balise [java] et [/java] pour mettre du code ^^