Résolu Problème pour la texture des items
-
Salut
J’ai un problème pour mettre des textures à mes items : j’ai tout fait comme il faut, mais mes items n’ont pas de texture, c’est la texture violette et noire qui s’affiche. Pourtant, je n’ai aucune erreur, que ce soit dans le code ou dans les logs.Voilà mon clientProxy :
:::package This_is_Halloween.Client; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; import net.minecraft.client.model.ModelBiped; import net.minecraft.client.model.ModelChicken; import net.minecraft.client.model.ModelCow; import net.minecraft.client.model.ModelPig; import net.minecraft.client.renderer.ItemModelMesher; import net.minecraft.client.renderer.entity.RenderItem; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.item.Item; import This_is_Halloween.CommonProxy; import This_is_Halloween.CreateBlocks; import This_is_Halloween.CreateItems; import This_is_Halloween.Entity.EntityEvilChicken; import This_is_Halloween.Entity.EntityEvilCow; import This_is_Halloween.Entity.EntityEvilPig; import This_is_Halloween.Entity.EntityEvilSheep; import This_is_Halloween.Entity.EntityGhost; import This_is_Halloween.Entity.EntityMummy; import This_is_Halloween.Entity.EntityVampire; public class ClientProxy extends CommonProxy{ public void registerTextures() { // Blocks Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(CreateBlocks.Cross), 0, new ModelResourceLocation("this_is_halloween:Cross", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(CreateBlocks.RoundedCross), 0, new ModelResourceLocation("this_is_halloween:RoundCross", "inventory")); // Items Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.BlackString, 0, new ModelResourceLocation("this_is_halloween:BlackString", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.BloodBottle, 0, new ModelResourceLocation("this_is_halloween:BloodBottle", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.GrayPaper, 0, new ModelResourceLocation("this_is_halloween:GrayPaper", "inventory")); // Items : Candy Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.LightGrayCandy, 0, new ModelResourceLocation("this_is_halloween:LightGrayCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.BlackCandy, 0, new ModelResourceLocation("this_is_halloween:BlackCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.BrownCandy, 0, new ModelResourceLocation("this_is_halloween:BrownCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.CactusGreenCandy, 0, new ModelResourceLocation("this_is_halloween:CactusGreenCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.CyanCandy, 0, new ModelResourceLocation("this_is_halloween:CyanCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.GrayCandy, 0, new ModelResourceLocation("this_is_halloween:GrayCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.WhiteCandy, 0, new ModelResourceLocation("this_is_halloween:WhiteCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.LapisLazuliCandy, 0, new ModelResourceLocation("this_is_halloween:LapisLazuliCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.RedCandy, 0, new ModelResourceLocation("this_is_halloween:RedCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.LightBlueCandy, 0, new ModelResourceLocation("this_is_halloween:LightBlueCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.LimeCandy, 0, new ModelResourceLocation("this_is_halloween:LimeCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.MagentaCandy, 0, new ModelResourceLocation("this_is_halloween:MagentaCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.OrangeCandy, 0, new ModelResourceLocation("this_is_halloween:OrangeCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.PurpleCandy, 0, new ModelResourceLocation("this_is_halloween:PurpleCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.PinkCandy, 0, new ModelResourceLocation("this_is_halloween:PinkCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.YellowCandy, 0, new ModelResourceLocation("this_is_halloween:YellowCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.TrickorTreatCandy, 0, new ModelResourceLocation("this_is_halloween:TrickorTreatCandy", "inventory")); // Items : Suit Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.MummyHelmet, 0, new ModelResourceLocation("this_is_halloween:MummyHelmet", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.MummyChestplate, 0, new ModelResourceLocation("this_is_halloween:MummyChestplate", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.MummyLeggings, 0, new ModelResourceLocation("this_is_halloween:MummyLeggings", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.MummyBoots, 0, new ModelResourceLocation("this_is_halloween:MummyBoots", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.VampireHelmet, 0, new ModelResourceLocation("this_is_halloween:VampireHelmet", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.VampireChestplate, 0, new ModelResourceLocation("this_is_halloween:VampireChestplate", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.VampireLeggings, 0, new ModelResourceLocation("this_is_halloween:VampireLeggings", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.VampireBoots, 0, new ModelResourceLocation("this_is_halloween:VampireBoots", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.GhostHelmet, 0, new ModelResourceLocation("this_is_halloween:GhostHelmet", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.GhostChestplate, 0, new ModelResourceLocation("this_is_halloween:GhostChestplate", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.GhostLeggings, 0, new ModelResourceLocation("this_is_halloween:GhostLeggings", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.GhostBoots, 0, new ModelResourceLocation("this_is_halloween:GhostBoots", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.ZombieHelmet, 0, new ModelResourceLocation("this_is_halloween:ZombieHelmet", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.ZombieChestplate, 0, new ModelResourceLocation("this_is_halloween:ZombieChestplate", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.ZombieLeggings, 0, new ModelResourceLocation("this_is_halloween:ZombieLeggings", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.ZombieBoots, 0, new ModelResourceLocation("this_is_halloween:ZombieBoots", "inventory")); } @Override public void registerRenderThings() { net.minecraftforge.fml.client.registry.RenderingRegistry.registerEntityRenderingHandler(EntityVampire.class, new RenderVampire(Minecraft.getMinecraft().getRenderManager(), new ModelBiped(), 0.05F)); net.minecraftforge.fml.client.registry.RenderingRegistry.registerEntityRenderingHandler(EntityMummy.class, new RenderMummy(Minecraft.getMinecraft().getRenderManager(), new ModelBiped(), 0.05F)); net.minecraftforge.fml.client.registry.RenderingRegistry.registerEntityRenderingHandler(EntityGhost.class, new RenderGhost(Minecraft.getMinecraft().getRenderManager(), new ModelBiped(), 0.5f)); net.minecraftforge.fml.client.registry.RenderingRegistry.registerEntityRenderingHandler(EntityEvilCow.class, new RenderEvilCow(Minecraft.getMinecraft().getRenderManager(), new ModelCow(), 0.5f)); net.minecraftforge.fml.client.registry.RenderingRegistry.registerEntityRenderingHandler(EntityEvilPig.class, new RenderEvilPig(Minecraft.getMinecraft().getRenderManager(), new ModelPig(), 0.5f)); net.minecraftforge.fml.client.registry.RenderingRegistry.registerEntityRenderingHandler(EntityEvilSheep.class, new RenderEvilSheep(Minecraft.getMinecraft().getRenderManager(), new ModelEvilSheep2(), 0.5f)); net.minecraftforge.fml.client.registry.RenderingRegistry.registerEntityRenderingHandler(EntityEvilChicken.class, new RenderEvilChicken(Minecraft.getMinecraft().getRenderManager(), new ModelChicken(), 0.5f)); // net.minecraftforge.fml.common.FMLCommonHandler.instance().bus().register(new ClientTickHandler()); }
:::
Comme vous pouvez le voir, c’est pareil pour les blocks et les items (j’ai suivi le tuto). Mais ce que je ne comprend pas, c’est que les blocks ont des textures mais pas mes items.
La méthode du proxy est appelé dans la classe principale, dans la fonction init, via :
:::*[size=smallproxy]*.registerTextures();
:::
Voici un des json :
:::{ "parent": "builtin/generated", "textures": { "layer0": "this_is_halloween:items/blood_bottle" }, "display": { "thirdperson": { "rotation": [ -90, 0, 0 ], "translation": [ 0, 1, -3 ], "scale": [ 0.55, 0.55, 0.55 ] }, "firstperson": { "rotation": [ 0, -135, 25 ], "translation": [ 0, 4, 2 ], "scale": [ 1.7, 1.7, 1.7 ] } } }
:::
J’ai comparer mon json à ceux vanilla, mais pas de différence à part le chemin de la texture.
Voilà mon workspace :
:::
https://www.dropbox.com/s/odib4wbk0vpt3sf/Workspace.PNG?dl=0
Désolé pour le lien, mais je n’arrive pas à mettre d’image, ça ne veut pas marcher.
:::
PS : Ne faites pas attention aux erreurs, j’ai à peu près trouver les solutions, je le ferai quand j’aurai mis les texturesVoilà quand même mes logs, même si je ne pense pas que ça servira à grand chose :
:::[17:25:20] [main/INFO] [GradleStart]: Extra: [] [17:25:20] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Antonin/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [17:25:20] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [17:25:20] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [17:25:20] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [17:25:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [17:25:20] [main/INFO] [FML]: Forge Mod Loader version 8.99.124.1450 for Minecraft 1.8 loading [17:25:20] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre1.8.0_51 [17:25:20] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [17:25:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [17:25:20] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [17:25:20] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [17:25:20] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [17:25:20] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [17:25:20] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [17:25:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [17:25:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [17:25:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [17:25:20] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [17:25:22] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [17:25:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [17:25:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [17:25:23] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [17:25:23] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [17:25:23] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [17:25:23] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [17:25:23] [Client thread/INFO]: Setting user: Player78 [17:25:26] [Client thread/INFO]: LWJGL Version: 2.9.1 [17:25:26] [Client thread/INFO] [STDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:235]: –-- Minecraft Crash Report ---- // But it works on my machine. Time: 15/08/15 17:25 Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.8 Operating System: Windows 8.1 (amd64) version 6.3 Java Version: 1.8.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 747059944 bytes (712 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13399 Compatibility Profile Context 15.200.1046.2' Renderer: 'AMD Radeon R9 200 Series' [17:25:26] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [17:25:26] [Client thread/INFO] [FML]: MinecraftForge v11.14.3.1450 Initialized [17:25:26] [Client thread/INFO] [FML]: Replaced 204 ore recipies [17:25:26] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [17:25:27] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [17:25:27] [Client thread/INFO] [FML]: Searching C:\Users\Antonin\OneDrive\Documents\Codage\Minecraft\This_is_Halloween\v1.2\MC 1.8\eclipse\mods for mods [17:25:28] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [17:25:28] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, This_is_Halloween] at CLIENT [17:25:28] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, This_is_Halloween] at SERVER [17:25:28] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:This_is_Halloween [17:25:29] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [17:25:29] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [17:25:29] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [17:25:29] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [17:25:29] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [17:25:29] [Client thread/INFO] [FML]: Applying holder lookups [17:25:29] [Client thread/INFO] [FML]: Holder lookups applied [17:25:29] [Client thread/INFO] [FML]: Injecting itemstacks [17:25:29] [Client thread/INFO] [FML]: Itemstack injection complete [17:25:29] [Sound Library Loader/INFO]: Starting up SoundSystem… [17:25:29] [Thread-9/INFO]: Initializing LWJGL OpenAL [17:25:29] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [17:25:29] [Thread-9/INFO]: OpenAL initialized. [17:25:29] [Sound Library Loader/INFO]: Sound engine started [17:25:33] [Client thread/INFO]: Created: 512x512 textures-atlas [17:25:34] [Client thread/INFO] [FML]: Injecting itemstacks [17:25:34] [Client thread/INFO] [FML]: Itemstack injection complete [17:25:34] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [17:25:34] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:This_is_Halloween [17:25:34] [Client thread/INFO]: SoundSystem shutting down… [17:25:34] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [17:25:34] [Sound Library Loader/INFO]: Starting up SoundSystem… [17:25:34] [Thread-11/INFO]: Initializing LWJGL OpenAL [17:25:34] [Thread-11/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [17:25:34] [Thread-11/INFO]: OpenAL initialized. [17:25:35] [Sound Library Loader/INFO]: Sound engine started [17:25:37] [Client thread/INFO]: Created: 512x512 textures-atlas [0x7FFDED054450] ANOMALY: meaningless REX prefix used [17:26:47] [Client thread/INFO]: Stopping! [17:26:47] [Client thread/INFO]: SoundSystem shutting down… [17:26:47] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
:::
J’ai beaucoup cherché (site/forum anglais/français) mais rien n’a résolu mon problème.
Je suis sûr que c’est une erreur tellement bête que je ne la vois pas
Savez vous comment faire ?
Merci d’avance
-
Rajoute des logs dans ta fonction registerTextures pour voir si elle est appelée, si c’est pas le cas, envoi ta classe principale. Il me semble que ton json n’est pas valide, utilise jsonlint pour vérifier.
-
Salut,
Les jsons que tu as envoyé n’est pas valide. Il y a trois fermeture de parenthèse en trop.
Tu peux vérifies les json avec : http://jsonlint.com/ -
En effet, la classe n’est pas appelé. Du moins, d’après les logs, parce que mes blocks ont tous des textures.
Et le site me dit que mon json est valide.
Voilà ma classe principale :
:::package This_is_Halloween; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.entity.RenderItem; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraft.world.biome.BiomeGenBase; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.common.BiomeDictionary; import net.minecraftforge.common.BiomeDictionary.Type; import net.minecraftforge.common.DimensionManager; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.Mod.Instance; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.registry.GameRegistry; import This_is_Halloween.Frightful.BiomeGenEvilland; import This_is_Halloween.Frightful.BiomeList; import This_is_Halloween.Frightful.WorldProviderFrightful; import This_is_Halloween.Generation.AddCobwebInBiome; import This_is_Halloween.Generation.AddPumpkinLanternInBiome; import This_is_Halloween.Generation.CimeteryGenerator; import This_is_Halloween.Generation.LavaLakeGenerator; import akka.dispatch.sysmsg.Create; @Mod(modid = "This_is_Halloween", name = "This_is_Halloween", version = "1.2", acceptedMinecraftVersions = "1.8") public class This_is_Halloween { @SidedProxy(clientSide = "This_is_Halloween.Client.ClientProxy", serverSide = "This_is_Halloween.CommonProxy") public static CommonProxy proxy; public static final String MODID = "this_is_halloween"; @Instance("This_is_Halloween") public static This_is_Halloween instance; public static int dimensionID = -5; public static String dimensionName = "Frightful"; public static BiomeGenBase Evilland; @EventHandler public void preload(FMLPreInitializationEvent event) { new CreateBlocks(); new CreateItems(); GameRegistry.registerWorldGenerator(new AddCobwebInBiome(), 0); GameRegistry.registerWorldGenerator(new AddPumpkinLanternInBiome(), 0); GameRegistry.registerWorldGenerator(new CimeteryGenerator(), 0); GameRegistry.registerWorldGenerator(new LavaLakeGenerator(), 0); } @EventHandler public void load(FMLInitializationEvent event) { new RegisterBlock(); new RegisterItem(); new CreateRecipes(); new RegisterEntity(); RegisterEntity.RegisterEntityEgg(); RegisterEntity.RegisterEntitySpawn(); BiomeList.BiomeList(); proxy.registerRenderThings(); proxy.registerTextures(); Evilland = new BiomeGenEvilland(200).setBiomeName("Evilland").setDisableRain().setTemperatureRainfall(2.0F, 0.0F); BiomeDictionary.registerBiomeType(Evilland, Type.WASTELAND); if (event.getSide().isClient()) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.BlackString, 0, new ModelResourceLocation("this_is_halloween:BlackString", "inventory")); } } @EventHandler public void modloaded(FMLPostInitializationEvent event) { DimensionManager.registerProviderType(this.dimensionID, WorldProviderFrightful.class, false); DimensionManager.registerDimension(this.dimensionID, this.dimensionID); } }
:::
EDIT : Ah oui exact. Le json est faux sur le 1er post, j’ai dû mal copier/coller car sur mon ordi, il est correcte. Je l’édit
-
Ta classe principale est incohérente, le modid n’est pas le même partout, tu déclare une variable statique pour ton modid que tu n’utilises jamais.
Tu utilises en partis le proxy : Tu enregistres certaines textures via le proxy et les autres dans la fonction load avec la condition if(event.getSide().isClient()), de plus tu crées des instances de classes étranges (ligne 44 à 45 et 55 à 58).
De plus tu ne respectes pas du tout la convention java.
Dans ton preInit, rajoute System.out.println(“Classe du proxy :” + proxy.getClass() + " | Side :" + event.getSide().isClient())et envoi les logs.
-
Salut
J’utilise la variable MODID dans beaucoup de classe (par exemple, les entités, la dimension, …) en utilisant ceci :
This_is_Halloween.This_is_Halloween.MODID
J’ai mis la condition du side Client ici pour faire un test au début et j’ai oublier de l’enlever.
tu crées des instances de classes étranges (ligne 44 à 45 et 55 à 58).
Je n’ai pas vraiment compris. J’ai “allégé” la classe principale en enregistrant les blocks, items et entité dans d’autre classes.
Sinon, voilà les logs après avoir lancé :
:::[17:04:34] [main/INFO] [GradleStart]: Extra: [] [17:04:34] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Antonin/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [17:04:34] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [17:04:34] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [17:04:34] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [17:04:34] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [17:04:34] [main/INFO] [FML]: Forge Mod Loader version 8.99.124.1450 for Minecraft 1.8 loading [17:04:34] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre1.8.0_51 [17:04:34] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [17:04:34] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [17:04:34] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [17:04:34] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [17:04:34] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [17:04:34] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [17:04:34] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [17:04:34] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [17:04:34] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [17:04:34] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [17:04:34] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [17:04:36] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [17:04:36] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [17:04:36] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [17:04:36] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [17:04:36] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [17:04:36] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [17:04:36] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [17:04:37] [Client thread/INFO]: Setting user: Player913 [17:04:39] [Client thread/INFO]: LWJGL Version: 2.9.1 [17:04:40] [Client thread/INFO] [STDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:235]: –-- Minecraft Crash Report ---- // I let you down. Sorry :( Time: 16/08/15 17:04 Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.8 Operating System: Windows 8.1 (amd64) version 6.3 Java Version: 1.8.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 733336416 bytes (699 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13399 Compatibility Profile Context 15.200.1046.2' Renderer: 'AMD Radeon R9 200 Series' [17:04:40] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [17:04:40] [Client thread/INFO] [FML]: MinecraftForge v11.14.3.1450 Initialized [17:04:40] [Client thread/INFO] [FML]: Replaced 204 ore recipies [17:04:40] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [17:04:40] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [17:04:40] [Client thread/INFO] [FML]: Searching C:\Users\Antonin\OneDrive\Documents\Codage\Minecraft\This_is_Halloween\v1.2\MC 1.8\eclipse\mods for mods [17:04:42] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [17:04:42] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, This_is_Halloween] at CLIENT [17:04:42] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, This_is_Halloween] at SERVER [17:04:42] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:This_is_Halloween [17:04:42] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [17:04:42] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [17:04:42] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [17:04:42] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [17:04:42] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [17:04:43] [Client thread/INFO] [STDOUT]: [This_is_Halloween.This_is_Halloween:preload:50]: Classe du proxy : class This_is_Halloween.Client.ClientProxy | Side :true [17:04:43] [Client thread/INFO] [FML]: Applying holder lookups [17:04:43] [Client thread/INFO] [FML]: Holder lookups applied [17:04:43] [Client thread/INFO] [FML]: Injecting itemstacks [17:04:43] [Client thread/INFO] [FML]: Itemstack injection complete [17:04:43] [Sound Library Loader/INFO]: Starting up SoundSystem… [17:04:43] [Thread-9/INFO]: Initializing LWJGL OpenAL [17:04:43] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [17:04:43] [Thread-9/INFO]: OpenAL initialized. [17:04:43] [Sound Library Loader/INFO]: Sound engine started [17:04:46] [Client thread/INFO]: Created: 512x512 textures-atlas 2336802 [17:04:47] [Client thread/INFO] [FML]: Injecting itemstacks [17:04:47] [Client thread/INFO] [FML]: Itemstack injection complete [17:04:47] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [17:04:47] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:This_is_Halloween [17:04:47] [Client thread/INFO]: SoundSystem shutting down… [17:04:47] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [17:04:47] [Sound Library Loader/INFO]: Starting up SoundSystem… [17:04:47] [Thread-11/INFO]: Initializing LWJGL OpenAL [17:04:47] [Thread-11/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [17:04:47] [Thread-11/INFO]: OpenAL initialized. [17:04:47] [Sound Library Loader/INFO]: Sound engine started [17:04:49] [Client thread/INFO]: Created: 512x512 textures-atlas
:::
Je pense que ce qui est intéressant est ça :
:::[This_is_Halloween.This_is_Halloween:preload:50]: Classe du proxy : class This_is_Halloween.Client.ClientProxy | Side :true
Le ClientProxy marche pourtant
:::
-
Rajoute un @Override au-dessus de la méthode du ClientProxy.
-
Non, toujours rien.
J’ai réessayé d’ajouter : ```java
System.[size=smallout].println([size=small“coucou”]);mais ça ne l'affiche pas. Pourtant, les textures des blocks fonctionnent. Et si je les enlève, ils n'en ont plus. Alors que c'est dans la même méthode. :interrogation: :interrogation:
-
Là y’a un problème dans le code que tu nous donne, c’est pas possible que les textures de tes blocs soient enregistrés et que ton message s’affiche pas, ne modifie plus de classe, envoi ta classe principale + ClientProxy + CommonProxy + les logs, sans rien toucher.
-
This_is_Halloween (classe principale) :
:::package This_is_Halloween; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.entity.RenderItem; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraft.world.biome.BiomeGenBase; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.common.BiomeDictionary; import net.minecraftforge.common.BiomeDictionary.Type; import net.minecraftforge.common.DimensionManager; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.Mod.Instance; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.registry.GameRegistry; import This_is_Halloween.Frightful.BiomeGenEvilland; import This_is_Halloween.Frightful.BiomeList; import This_is_Halloween.Frightful.WorldProviderFrightful; import This_is_Halloween.Generation.AddCobwebInBiome; import This_is_Halloween.Generation.AddPumpkinLanternInBiome; import This_is_Halloween.Generation.CimeteryGenerator; import This_is_Halloween.Generation.LavaLakeGenerator; import akka.dispatch.sysmsg.Create; @Mod(modid = "This_is_Halloween", name = "This_is_Halloween", version = "1.2", acceptedMinecraftVersions = "1.8") public class This_is_Halloween { @SidedProxy(clientSide = "This_is_Halloween.Client.ClientProxy", serverSide = "This_is_Halloween.CommonProxy") public static CommonProxy proxy; public static final String MODID = "this_is_halloween"; @Instance("This_is_Halloween") public static This_is_Halloween instance; public static int dimensionID = -5; public static String dimensionName = "Frightful"; public static BiomeGenBase Evilland; @EventHandler public void preload(FMLPreInitializationEvent event) { new CreateBlocks(); new CreateItems(); GameRegistry.registerWorldGenerator(new AddCobwebInBiome(), 0); // GameRegistry.registerWorldGenerator(new AddPumpkinLanternInBiome(), 0); GameRegistry.registerWorldGenerator(new CimeteryGenerator(), 0); GameRegistry.registerWorldGenerator(new LavaLakeGenerator(), 0); System.out.println("Classe du proxy : " + proxy.getClass() + " | Side :" + event.getSide().isClient()); } @EventHandler public void load(FMLInitializationEvent event) { new RegisterBlock(); new RegisterItem(); new CreateRecipes(); new RegisterEntity(); RegisterEntity.RegisterEntityEgg(); RegisterEntity.RegisterEntitySpawn(); BiomeList.BiomeList(); proxy.registerRenderThings(); proxy.registerTextures(); Evilland = new BiomeGenEvilland(200).setBiomeName("Evilland").setDisableRain().setTemperatureRainfall(2.0F, 0.0F); BiomeDictionary.registerBiomeType(Evilland, Type.WASTELAND); } @EventHandler public void modloaded(FMLPostInitializationEvent event) { DimensionManager.registerProviderType(this.dimensionID, WorldProviderFrightful.class, false); DimensionManager.registerDimension(this.dimensionID, this.dimensionID); } }
:::
ClientProxy :
:::package This_is_Halloween.Client; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; import net.minecraft.client.model.ModelBiped; import net.minecraft.client.model.ModelChicken; import net.minecraft.client.model.ModelCow; import net.minecraft.client.model.ModelPig; import net.minecraft.client.renderer.ItemModelMesher; import net.minecraft.client.renderer.entity.RenderItem; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.item.Item; import This_is_Halloween.CommonProxy; import This_is_Halloween.CreateBlocks; import This_is_Halloween.CreateItems; import This_is_Halloween.Entity.EntityEvilChicken; import This_is_Halloween.Entity.EntityEvilCow; import This_is_Halloween.Entity.EntityEvilPig; import This_is_Halloween.Entity.EntityEvilSheep; import This_is_Halloween.Entity.EntityGhost; import This_is_Halloween.Entity.EntityMummy; import This_is_Halloween.Entity.EntityVampire; public class ClientProxy extends CommonProxy{ @Override public void registerTextures() { System.out.println("coucou"); // Blocks Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(CreateBlocks.Cross), 0, new ModelResourceLocation("this_is_halloween:Cross", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(CreateBlocks.RoundedCross), 0, new ModelResourceLocation("this_is_halloween:RoundCross", "inventory")); // Items Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.BlackString, 0, new ModelResourceLocation("this_is_halloween:BlackString", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.BloodBottle, 0, new ModelResourceLocation("this_is_halloween:BloodBottle", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.GrayPaper, 0, new ModelResourceLocation("this_is_halloween:GrayPaper", "inventory")); // Items : Candy Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.LightGrayCandy, 0, new ModelResourceLocation("this_is_halloween:LightGrayCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.BlackCandy, 0, new ModelResourceLocation("this_is_halloween:BlackCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.BrownCandy, 0, new ModelResourceLocation("this_is_halloween:BrownCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.CactusGreenCandy, 0, new ModelResourceLocation("this_is_halloween:CactusGreenCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.CyanCandy, 0, new ModelResourceLocation("this_is_halloween:CyanCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.GrayCandy, 0, new ModelResourceLocation("this_is_halloween:GrayCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.WhiteCandy, 0, new ModelResourceLocation("this_is_halloween:WhiteCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.LapisLazuliCandy, 0, new ModelResourceLocation("this_is_halloween:LapisLazuliCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.RedCandy, 0, new ModelResourceLocation("this_is_halloween:RedCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.LightBlueCandy, 0, new ModelResourceLocation("this_is_halloween:LightBlueCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.LimeCandy, 0, new ModelResourceLocation("this_is_halloween:LimeCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.MagentaCandy, 0, new ModelResourceLocation("this_is_halloween:MagentaCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.OrangeCandy, 0, new ModelResourceLocation("this_is_halloween:OrangeCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.PurpleCandy, 0, new ModelResourceLocation("this_is_halloween:PurpleCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.PinkCandy, 0, new ModelResourceLocation("this_is_halloween:PinkCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.YellowCandy, 0, new ModelResourceLocation("this_is_halloween:YellowCandy", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.TrickorTreatCandy, 0, new ModelResourceLocation("this_is_halloween:TrickorTreatCandy", "inventory")); // Items : Suit Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.MummyHelmet, 0, new ModelResourceLocation("this_is_halloween:MummyHelmet", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.MummyChestplate, 0, new ModelResourceLocation("this_is_halloween:MummyChestplate", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.MummyLeggings, 0, new ModelResourceLocation("this_is_halloween:MummyLeggings", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.MummyBoots, 0, new ModelResourceLocation("this_is_halloween:MummyBoots", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.VampireHelmet, 0, new ModelResourceLocation("this_is_halloween:VampireHelmet", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.VampireChestplate, 0, new ModelResourceLocation("this_is_halloween:VampireChestplate", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.VampireLeggings, 0, new ModelResourceLocation("this_is_halloween:VampireLeggings", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.VampireBoots, 0, new ModelResourceLocation("this_is_halloween:VampireBoots", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.GhostHelmet, 0, new ModelResourceLocation("this_is_halloween:GhostHelmet", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.GhostChestplate, 0, new ModelResourceLocation("this_is_halloween:GhostChestplate", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.GhostLeggings, 0, new ModelResourceLocation("this_is_halloween:GhostLeggings", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.GhostBoots, 0, new ModelResourceLocation("this_is_halloween:GhostBoots", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.ZombieHelmet, 0, new ModelResourceLocation("this_is_halloween:ZombieHelmet", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.ZombieChestplate, 0, new ModelResourceLocation("this_is_halloween:ZombieChestplate", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.ZombieLeggings, 0, new ModelResourceLocation("this_is_halloween:ZombieLeggings", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CreateItems.ZombieBoots, 0, new ModelResourceLocation("this_is_halloween:ZombieBoots", "inventory")); } @Override public void registerRenderThings() { net.minecraftforge.fml.client.registry.RenderingRegistry.registerEntityRenderingHandler(EntityVampire.class, new RenderVampire(Minecraft.getMinecraft().getRenderManager(), new ModelBiped(), 0.05F)); net.minecraftforge.fml.client.registry.RenderingRegistry.registerEntityRenderingHandler(EntityMummy.class, new RenderMummy(Minecraft.getMinecraft().getRenderManager(), new ModelBiped(), 0.05F)); net.minecraftforge.fml.client.registry.RenderingRegistry.registerEntityRenderingHandler(EntityGhost.class, new RenderGhost(Minecraft.getMinecraft().getRenderManager(), new ModelBiped(), 0.5f)); net.minecraftforge.fml.client.registry.RenderingRegistry.registerEntityRenderingHandler(EntityEvilCow.class, new RenderEvilCow(Minecraft.getMinecraft().getRenderManager(), new ModelCow(), 0.5f)); net.minecraftforge.fml.client.registry.RenderingRegistry.registerEntityRenderingHandler(EntityEvilPig.class, new RenderEvilPig(Minecraft.getMinecraft().getRenderManager(), new ModelPig(), 0.5f)); net.minecraftforge.fml.client.registry.RenderingRegistry.registerEntityRenderingHandler(EntityEvilSheep.class, new RenderEvilSheep(Minecraft.getMinecraft().getRenderManager(), new ModelEvilSheep2(), 0.5f)); net.minecraftforge.fml.client.registry.RenderingRegistry.registerEntityRenderingHandler(EntityEvilChicken.class, new RenderEvilChicken(Minecraft.getMinecraft().getRenderManager(), new ModelChicken(), 0.5f)); net.minecraftforge.fml.common.FMLCommonHandler.instance().bus().register(new ClientTickHandler()); } }
:::
CommonProxy :
:::package This_is_Halloween; import net.minecraft.block.Block; import net.minecraft.item.Item; public class CommonProxy { public void registerTextures() { } public void registerRenderThings() { } }
:::
Logs :
:::[00:31:39] [main/INFO] [GradleStart]: Extra: [] [00:31:39] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Antonin/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [00:31:39] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [00:31:39] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [00:31:39] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [00:31:39] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [00:31:39] [main/INFO] [FML]: Forge Mod Loader version 8.99.124.1450 for Minecraft 1.8 loading [00:31:39] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre1.8.0_51 [00:31:39] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [00:31:40] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [00:31:40] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [00:31:40] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [00:31:40] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [00:31:40] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [00:31:40] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [00:31:40] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [00:31:40] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [00:31:40] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [00:31:40] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [00:31:42] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [00:31:42] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [00:31:42] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [00:31:42] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [00:31:42] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [00:31:42] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [00:31:42] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [00:31:43] [Client thread/INFO]: Setting user: Player617 [00:31:46] [Client thread/INFO]: LWJGL Version: 2.9.1 [00:31:46] [Client thread/INFO] [STDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:235]: –-- Minecraft Crash Report ---- // Sorry :( Time: 17/08/15 00:31 Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.8 Operating System: Windows 8.1 (amd64) version 6.3 Java Version: 1.8.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 744059104 bytes (709 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13399 Compatibility Profile Context 15.200.1046.2' Renderer: 'AMD Radeon R9 200 Series' [00:31:46] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [00:31:46] [Client thread/INFO] [FML]: MinecraftForge v11.14.3.1450 Initialized [00:31:46] [Client thread/INFO] [FML]: Replaced 204 ore recipies [00:31:46] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [00:31:47] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [00:31:47] [Client thread/INFO] [FML]: Searching C:\Users\Antonin\OneDrive\Documents\Codage\Minecraft\This_is_Halloween\v1.2\MC 1.8\eclipse\mods for mods [00:31:48] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [00:31:49] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, This_is_Halloween] at CLIENT [00:31:49] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, This_is_Halloween] at SERVER [00:31:49] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:This_is_Halloween [00:31:49] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [00:31:49] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [00:31:49] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [00:31:49] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [00:31:49] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [00:31:49] [Client thread/INFO] [STDOUT]: [This_is_Halloween.This_is_Halloween:preload:50]: Classe du proxy : class This_is_Halloween.Client.ClientProxy | Side :true [00:31:49] [Client thread/INFO] [FML]: Applying holder lookups [00:31:49] [Client thread/INFO] [FML]: Holder lookups applied [00:31:49] [Client thread/INFO] [FML]: Injecting itemstacks [00:31:49] [Client thread/INFO] [FML]: Itemstack injection complete [00:31:49] [Sound Library Loader/INFO]: Starting up SoundSystem… [00:31:50] [Thread-9/INFO]: Initializing LWJGL OpenAL [00:31:50] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [00:31:50] [Thread-9/INFO]: OpenAL initialized. [00:31:50] [Sound Library Loader/INFO]: Sound engine started [00:31:52] [Client thread/INFO]: Created: 512x512 textures-atlas [00:31:54] [Client thread/INFO] [FML]: Injecting itemstacks [00:31:54] [Client thread/INFO] [FML]: Itemstack injection complete [00:31:54] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [00:31:54] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:This_is_Halloween [00:31:54] [Client thread/INFO]: SoundSystem shutting down… [00:31:54] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [00:31:54] [Sound Library Loader/INFO]: Starting up SoundSystem… [00:31:54] [Thread-11/INFO]: Initializing LWJGL OpenAL [00:31:54] [Thread-11/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [00:31:54] [Thread-11/INFO]: OpenAL initialized. [00:31:54] [Sound Library Loader/INFO]: Sound engine started [00:31:56] [Client thread/INFO]: Created: 512x512 textures-atlas [0x7FFA4BC44450] ANOMALY: meaningless REX prefix used [00:33:09] [Server thread/INFO]: Starting integrated minecraft server version 1.8 [00:33:09] [Server thread/INFO]: Generating keypair [00:33:09] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance [00:33:09] [Server thread/INFO] [FML]: Applying holder lookups [00:33:09] [Server thread/INFO] [FML]: Holder lookups applied [00:33:09] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@2896b079) [00:33:09] [Server thread/INFO] [FML]: Loading dimension -5 (New World) (net.minecraft.server.integrated.IntegratedServer@2896b079) [00:33:09] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@2896b079) [00:33:09] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@2896b079) [00:33:09] [Server thread/INFO]: Preparing start region for level 0 [00:33:10] [Server thread/INFO]: Changing view distance to 12, from 10 [00:33:11] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2 [00:33:11] [Netty Server IO #1/INFO] [FML]: Client protocol version 2 [00:33:11] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : This_is_Halloween@1.2,FML@8.0.99.99,Forge@11.14.3.1450,mcp@9.05 [00:33:11] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established [00:33:11] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established [00:33:11] [Server thread/INFO]: Player617[local:E:897f3882] logged in with entity id 79 at (-616.5, 4.0, -604.5) [00:33:11] [Server thread/INFO]: Player617 joined the game [00:33:12] [Server thread/INFO]: Saving and pausing game… [00:33:12] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld [00:33:12] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@7dfe23c2[id=99963b1e-252d-3ba6-8126-9071dd762e6c,name=Player617,properties={},legacy=false] com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:65) ~[YggdrasilAuthenticationService.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:158) [YggdrasilMinecraftSessionService.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:53) [YggdrasilMinecraftSessionService$1.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:50) [YggdrasilMinecraftSessionService$1.class:?] at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) [guava-17.0.jar:?] at com.google.common.cache.LocalCache.get(LocalCache.java:3934) [guava-17.0.jar:?] at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827) [guava-17.0.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:148) [YggdrasilMinecraftSessionService.class:?] at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:138) [SkinManager$3.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_51] at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_51] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_51] at java.lang.Thread.run(Unknown Source) [?:1.8.0_51] [00:33:12] [Server thread/INFO]: Saving chunks for level 'New World'/Nether [00:33:12] [Server thread/INFO]: Saving chunks for level 'New World'/The End [00:33:12] [Server thread/INFO]: Saving chunks for level 'New World'/Frightful
L’erreur nous informe que le jeu n’a pas pu se connecter à minecraft.net pour vérifier le pseudo. Rien de grave. C’est normal
::: -
Est-ce que ta méthode registerRenderThings est appelée ?
-
Oui, appelé par
proxy.registerRenderThings();
-
Les registerWorldGenerator -> init
new RegisterBlock();
new RegisterItem();
-> preinit
proxy.registerRenderThings();
-> preinit aussi -
Salut
J’ai rallumé Eclipse, Minecraft et toutes les textures s’affichent à nouveau. Je ne saurai pas comment expliquer, je ne sais pas si c’est en déplaçant ce que Robin m’a dit qui a fait marché ou pas, mais en tout cas, merci à vous deux.