Problème chargement d'un .obj sur un Item
-
Salut a tous ,
Je rencontre aujourd’hui un problème lorsque j’ai voulu charger un .obj sur un item.
Le problème étant que le model ne ce charge pas en jeu , je garde en main l’item sans texture.
Voici mes class :
Item :
:::package zenyxx.Common; import org.jglrxavpok.glutils.TessellatorModel; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemBow; import net.minecraft.item.ItemSword; import net.minecraftforge.client.IItemRenderer; import net.minecraftforge.client.MinecraftForgeClient; public class M4A1 extends Item { public M4A1(int id) { super(id); this.setCreativeTab(CreativeTabs.tabMaterials); } }
:::
ma class RenduItem :
:::package zenyxx.Common; import net.minecraft.entity.Entity; import net.minecraft.item.ItemStack; import net.minecraftforge.client.IItemRenderer; import org.jglrxavpok.glutils.TessellatorModel; import org.lwjgl.opengl.GL11; public class M4A1Rendu implements IItemRenderer { private TessellatorModel model; public M4A1Rendu() { model = new TessellatorModel("/assets/modzenyxx/obj/M4A1.obj"); model.regenerateNormals(); model.render(); } @Override public boolean handleRenderType(ItemStack item, ItemRenderType type) { switch (type) { case ENTITY: return true; case EQUIPPED_FIRST_PERSON: return true; case EQUIPPED: return true; case INVENTORY: return true; default: return false; } } @Override public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) { if (type == ItemRenderType.INVENTORY && helper == ItemRendererHelper.INVENTORY_BLOCK) return true; return false; } @Override public void renderItem(ItemRenderType type, ItemStack item, Object… data) { GL11.glScaled(0.05, 0.05, 0.05); switch (type) { case ENTITY: { GL11.glPushMatrix(); GL11.glTranslated(0, 0.1, 0); GL11.glRotated(((Entity) data[1]).rotationYaw += 0.1, 0, 1, 0); GL11.glRotated(10, 0, 0, 1); GL11.glShadeModel(GL11.GL_SMOOTH); model.render(); GL11.glPopMatrix(); break; } case EQUIPPED_FIRST_PERSON: { GL11.glPushMatrix(); GL11.glTranslated(10, 10.0, 0.0); GL11.glRotated(200, 0, 1, 0); GL11.glRotated(-10, 1, 0, 0); GL11.glRotated(200, 0, 1, 0); GL11.glRotated(20, 1, 0, 0); GL11.glRotated(-10, 0, 0, 1); GL11.glRotated(25, 0, 1, 0); GL11.glRotated(10, 1, 0, 0); GL11.glRotated(180, 0, 1, 0); GL11.glShadeModel(GL11.GL_SMOOTH); model.render(); GL11.glPopMatrix(); break; } case EQUIPPED: { GL11.glPushMatrix(); GL11.glTranslated(10, 0.0, 0.0); GL11.glRotated(200, 0, 1, 0); GL11.glRotated(-10, 1, 0, 0); GL11.glShadeModel(GL11.GL_SMOOTH); model.render(); GL11.glPopMatrix(); break; } case INVENTORY: { GL11.glPushMatrix(); GL11.glTranslated(10, -10, 0); GL11.glRotated(90, 0, 1, 0); GL11.glRotated(-45, 1, 0, 0); GL11.glRotated(180, 0, 1, 0); GL11.glShadeModel(GL11.GL_SMOOTH); model.render(); GL11.glDisable(GL11.GL_DEPTH_TEST); GL11.glPopMatrix(); break; } } } }
:::
et mon ClientProxy pour faire le lien Item > Rendu :
:::package zenyxx.Proxy; import zenyxx.Common.M4A1Rendu; import zenyxx.Common.zenyxxMain; import net.minecraftforge.client.IItemRenderer; import net.minecraftforge.client.MinecraftForgeClient; public class ClientProxy extends CommonProxy { public void registerRender() { } public static void registerRenderInformation() { MinecraftForgeClient.registerItemRenderer(zenyxxMain.M4A1.itemID, new M4A1Rendu()); } }
:::
Merci d’avance
-
Ton void n’est pas sensé être static dans le clientProxy, il devrait être comme registerRender (d’ailleurs tu peux mettre la fonction de forge dans registerRender).
Et dans le constructeur de M4A1Rendu, il ne faut pas mettre model.render(); -
Merci Robin pour ton aide , malheureusement malgré ces petites corrections cela ne fonctionne toujours pas et lorsque je déplace
ceci :
:::
MinecraftForgeClient.registerItemRenderer(zenyxxMain.M4A1.itemID, new M4A1Rendu());
:::Dans RegisterRender cela me fait crash le jeu au lancement.
Je vous met ma classe Main peut être que cela vien de la =/
Class Main :
:::
package zenyxx.Common; import org.jglrxavpok.glutils.TessellatorModel; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraftforge.client.IItemRenderer; import net.minecraftforge.client.MinecraftForgeClient; import zenyxx.Proxy.ClientProxy; import zenyxx.Proxy.CommonProxy; import cpw.mods.fml.client.registry.ClientRegistry; 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.network.IGuiHandler; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.network.NetworkRegistry; import cpw.mods.fml.common.registry.GameRegistry; @Mod(modid = "modzenyxx", name = "Mod_Zenyxx", version = "1.0.0") @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class zenyxxMain { @Instance("modzenyxx") public static zenyxxMain instance; @SidedProxy(clientSide = "zenyxx.Proxy.ClientProxy", serverSide = "zenyxx.Proxy.CommonProxy") public static CommonProxy proxy; public static Item M4A1; @EventHandler public void PreInit(FMLPreInitializationEvent event) { M4A1 = new M4A1(12000).setUnlocalizedName("M4A1").setTextureName("modzenyxx:M4A1"); } @EventHandler public void Init(FMLInitializationEvent event) { proxy.registerRender(); } @EventHandler public void PostInit(FMLPostInitializationEvent event) { } }
:::
Merci d’avance
-
Passes-nous le rapport de crash également. D’ailleurs, ton item n’a pas l’air enregistré.
-
Effectivement j’avais oublier le GameRegistry , je l’ai ajouter.
Voici le rapport lorsque je met la fonction dans RegisterRender du ClientProxy
:::
2014-04-21 18:24:10 [Infos] [ForgeModLoader] Forge Mod Loader version 6.99.19.964 for Minecraft 1.6.4 loading
2014-04-21 18:24:10 [Infos] [ForgeModLoader] Java is Java HotSpot Client VM, version 1.7.0_51, running on Windows 7:x86:6.1, installed at C:\Program Files (x86)\Java\jre7
2014-04-21 18:24:10 [Infos] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
2014-04-21 18:24:10 [Infos] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
2014-04-21 18:24:10 [Infos] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
2014-04-21 18:24:10 [Infos] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
2014-04-21 18:24:10 [Infos] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
2014-04-21 18:24:10 [Infos] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
2014-04-21 18:24:11 [Infos] [STDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg
2014-04-21 18:24:11 [Grave] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work!
2014-04-21 18:24:12 [Grave] [ForgeModLoader] The minecraft jar file:/C:/Users/Destiny/.gradle/caches/minecraft/net/minecraftforge/forge/1.6.4-9.11.1.964/forge-1.6.4-9.11.1.964-mcp.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!
2014-04-21 18:24:12 [Grave] [ForgeModLoader] FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!
2014-04-21 18:24:12 [Grave] [ForgeModLoader] Technical information: ClientBrandRetriever was at jar:file:/C:/Users/Destiny/.gradle/caches/minecraft/net/minecraftforge/forge/1.6.4-9.11.1.964/forge-1.6.4-9.11.1.964-mcp.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it
2014-04-21 18:24:12 [Grave] [ForgeModLoader] FML appears to be missing any signature data. This is not a good thing
2014-04-21 18:24:12 [Infos] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
2014-04-21 18:24:12 [Infos] [STDOUT] Loaded 110 rules from AccessTransformer config file forge_at.cfg
2014-04-21 18:24:12 [Infos] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
2014-04-21 18:24:12 [Infos] [ForgeModLoader] Launching wrapped minecraft {net.minecraft.client.main.Main}
2014-04-21 18:24:14 [Infos] [Minecraft-Client] Setting user: Player850
2014-04-21 18:24:16 [Infos] [Minecraft-Client] LWJGL Version: 2.9.0
2014-04-21 18:24:18 [Infos] [Minecraft-Client] Reloading ResourceManager: Default
2014-04-21 18:24:19 [Infos] [MinecraftForge] Attempting early MinecraftForge initialization
2014-04-21 18:24:19 [Infos] [STDOUT] MinecraftForge v9.11.1.964 Initialized
2014-04-21 18:24:19 [Infos] [ForgeModLoader] MinecraftForge v9.11.1.964 Initialized
2014-04-21 18:24:19 [Infos] [STDOUT] Replaced 112 ore recipies
2014-04-21 18:24:19 [Infos] [MinecraftForge] Completed early MinecraftForge initialization
2014-04-21 18:24:19 [Infos] [ForgeModLoader] Reading custom logging properties from C:\Users\Destiny\Desktop\Projet pvp faction\Forge 965\eclipse\config\logging.properties
2014-04-21 18:24:19 [Désactivé] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
2014-04-21 18:24:20 [Infos] [ForgeModLoader] Searching C:\Users\Destiny\Desktop\Projet pvp faction\Forge 965\eclipse\mods for mods
2014-04-21 18:24:24 [Grave] [ForgeModLoader] FML has detected a mod that is using a package name based on ‘net.minecraft.src’ : net.minecraft.src.Start. 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!
2014-04-21 18:24:24 [Grave] [ForgeModLoader] 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!
2014-04-21 18:24:24 [Infos] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
2014-04-21 18:24:24 [Infos] [mcp] Activating mod mcp
2014-04-21 18:24:24 [Infos] [FML] Activating mod FML
2014-04-21 18:24:24 [Infos] [Forge] Activating mod Forge
2014-04-21 18:24:24 [Infos] [modzenyxx] Activating mod modzenyxx
2014-04-21 18:24:24 [Avertissement] [Mod_Zenyxx] Mod Mod_Zenyxx is missing a pack.mcmeta file, things may not work well
2014-04-21 18:24:24 [Infos] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Mod_Zenyxx
2014-04-21 18:24:24 [Infos] [ForgeModLoader] Registering Forge Packet Handler
2014-04-21 18:24:24 [Infos] [ForgeModLoader] Succeeded registering Forge Packet Handler
2014-04-21 18:24:25 [Infos] [ForgeModLoader] Configured a dormant chunk cache size of 0
2014-04-21 18:24:25 [Grave] [Minecraft-Client] Using missing texture, unable to load: modzenyxx:textures/items/M4A1.png
2014-04-21 18:24:25 [Grave] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue
2014-04-21 18:24:25 [Grave] [ForgeModLoader]
mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML{6.99.19.964} [Forge Mod Loader] (forge-1.6.4-9.11.1.964-mcp.jar) Unloaded->Constructed->Pre-initialized->Initialized
Forge{9.11.1.964} [Minecraft Forge] (forge-1.6.4-9.11.1.964-mcp.jar) Unloaded->Constructed->Pre-initialized->Initialized
modzenyxx{1.0.0} [Mod_Zenyxx] (bin) Unloaded->Constructed->Pre-initialized->Errored
2014-04-21 18:24:25 [Grave] [ForgeModLoader] The following problems were captured during this phase
2014-04-21 18:24:25 [Grave] [ForgeModLoader] Caught exception from modzenyxx
java.lang.NoClassDefFoundError: cpw/mods/fml/common/eventhandler/Event
at zenyxx.Common.M4A1Rendu.<init>(M4A1Rendu.java:16)
at zenyxx.Proxy.ClientProxy.registerRender(ClientProxy.java:17)
at zenyxx.Common.zenyxxMain.Init(zenyxxMain.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:523)
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:197)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:177)
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:108)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:670)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:241)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:509)
at net.minecraft.client.Minecraft.run(Minecraft.java:808)
at net.minecraft.client.main.Main.main(Main.java: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)
Caused by: java.lang.ClassNotFoundException: cpw.mods.fml.common.eventhandler.Event
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
… 40 more
Caused by: java.lang.NullPointerException
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:178)
… 42 more
2014-04-21 18:24:25 [Infos] [STDOUT] –-- Minecraft Crash Report ----
2014-04-21 18:24:25 [Infos] [STDOUT] // Sorry
2014-04-21 18:24:25 [Infos] [STDOUT]
2014-04-21 18:24:25 [Infos] [STDOUT] Time: 21/04/14 18:24
2014-04-21 18:24:25 [Infos] [STDOUT] Description: There was a severe problem during mod loading that has caused the game to fail
2014-04-21 18:24:25 [Infos] [STDOUT]
2014-04-21 18:24:25 [Infos] [STDOUT] cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: cpw/mods/fml/common/eventhandler/Event
2014-04-21 18:24:25 [Infos] [STDOUT] at cpw.mods.fml.common.LoadController.transition(LoadController.java:152)
2014-04-21 18:24:25 [Infos] [STDOUT] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:671)
2014-04-21 18:24:25 [Infos] [STDOUT] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:241)
2014-04-21 18:24:25 [Infos] [STDOUT] at net.minecraft.client.Minecraft.startGame(Minecraft.java:509)
2014-04-21 18:24:25 [Infos] [STDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:808)
2014-04-21 18:24:25 [Infos] [STDOUT] at net.minecraft.client.main.Main.main(Main.java:101)
2014-04-21 18:24:25 [Infos] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-04-21 18:24:25 [Infos] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-04-21 18:24:25 [Infos] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-04-21 18:24:25 [Infos] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
2014-04-21 18:24:25 [Infos] [STDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2014-04-21 18:24:25 [Infos] [STDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2014-04-21 18:24:25 [Infos] [STDOUT] Caused by: java.lang.NoClassDefFoundError: cpw/mods/fml/common/eventhandler/Event
2014-04-21 18:24:25 [Infos] [STDOUT] at zenyxx.Common.M4A1Rendu.<init>(M4A1Rendu.java:16)
2014-04-21 18:24:25 [Infos] [STDOUT] at zenyxx.Proxy.ClientProxy.registerRender(ClientProxy.java:17)
2014-04-21 18:24:25 [Infos] [STDOUT] at zenyxx.Common.zenyxxMain.Init(zenyxxMain.java:63)
2014-04-21 18:24:25 [Infos] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-04-21 18:24:25 [Infos] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-04-21 18:24:25 [Infos] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-04-21 18:24:25 [Infos] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
2014-04-21 18:24:25 [Infos] [STDOUT] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:523)
2014-04-21 18:24:25 [Infos] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-04-21 18:24:25 [Infos] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-04-21 18:24:25 [Infos] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-04-21 18:24:25 [Infos] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
2014-04-21 18:24:25 [Infos] [STDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2014-04-21 18:24:25 [Infos] [STDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2014-04-21 18:24:25 [Infos] [STDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2014-04-21 18:24:25 [Infos] [STDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2014-04-21 18:24:25 [Infos] [STDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2014-04-21 18:24:25 [Infos] [STDOUT] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:197)
2014-04-21 18:24:25 [Infos] [STDOUT] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:177)
2014-04-21 18:24:25 [Infos] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-04-21 18:24:25 [Infos] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-04-21 18:24:25 [Infos] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-04-21 18:24:25 [Infos] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
2014-04-21 18:24:25 [Infos] [STDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2014-04-21 18:24:25 [Infos] [STDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2014-04-21 18:24:25 [Infos] [STDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2014-04-21 18:24:25 [Infos] [STDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2014-04-21 18:24:25 [Infos] [STDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2014-04-21 18:24:25 [Infos] [STDOUT] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:108)
2014-04-21 18:24:25 [Infos] [STDOUT] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:670)
2014-04-21 18:24:25 [Infos] [STDOUT] … 10 more
2014-04-21 18:24:25 [Infos] [STDOUT] Caused by: java.lang.ClassNotFoundException: cpw.mods.fml.common.eventhandler.Event
2014-04-21 18:24:25 [Infos] [STDOUT] at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)
2014-04-21 18:24:25 [Infos] [STDOUT] at java.lang.ClassLoader.loadClass(Unknown Source)
2014-04-21 18:24:25 [Infos] [STDOUT] at java.lang.ClassLoader.loadClass(Unknown Source)
2014-04-21 18:24:25 [Infos] [STDOUT] … 40 more
2014-04-21 18:24:25 [Infos] [STDOUT] Caused by: java.lang.NullPointerException
2014-04-21 18:24:25 [Infos] [STDOUT] at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:178)
2014-04-21 18:24:25 [Infos] [STDOUT] … 42 more
2014-04-21 18:24:25 [Infos] [STDOUT]
2014-04-21 18:24:25 [Infos] [STDOUT]
2014-04-21 18:24:25 [Infos] [STDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
2014-04-21 18:24:25 [Infos] [STDOUT] –-------------------------------------------------------------------------------------
2014-04-21 18:24:25 [Infos] [STDOUT]
2014-04-21 18:24:25 [Infos] [STDOUT] – System Details –
2014-04-21 18:24:25 [Infos] [STDOUT] Details:
2014-04-21 18:24:25 [Infos] [STDOUT] Minecraft Version: 1.6.4
2014-04-21 18:24:25 [Infos] [STDOUT] Operating System: Windows 7 (x86) version 6.1
2014-04-21 18:24:25 [Infos] [STDOUT] Java Version: 1.7.0_51, Oracle Corporation
2014-04-21 18:24:25 [Infos] [STDOUT] Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation
2014-04-21 18:24:25 [Infos] [STDOUT] Memory: 847965256 bytes (808 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
2014-04-21 18:24:25 [Infos] [STDOUT] JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
2014-04-21 18:24:25 [Infos] [STDOUT] AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
2014-04-21 18:24:25 [Infos] [STDOUT] Suspicious classes: FML and Forge are installed
2014-04-21 18:24:25 [Infos] [STDOUT] IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
2014-04-21 18:24:25 [Infos] [STDOUT] FML: MCP v8.11 FML v6.99.19.964 Minecraft Forge 9.11.1.964 4 mods loaded, 4 mods active
2014-04-21 18:24:25 [Infos] [STDOUT] mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
2014-04-21 18:24:25 [Infos] [STDOUT] FML{6.99.19.964} [Forge Mod Loader] (forge-1.6.4-9.11.1.964-mcp.jar) Unloaded->Constructed->Pre-initialized->Initialized
2014-04-21 18:24:25 [Infos] [STDOUT] Forge{9.11.1.964} [Minecraft Forge] (forge-1.6.4-9.11.1.964-mcp.jar) Unloaded->Constructed->Pre-initialized->Initialized
2014-04-21 18:24:25 [Infos] [STDOUT] modzenyxx{1.0.0} [Mod_Zenyxx] (bin) Unloaded->Constructed->Pre-initialized->Errored
2014-04-21 18:24:25 [Infos] [STDOUT] #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Destiny\Desktop\Projet pvp faction\Forge 965\eclipse.\crash-reports\crash-2014-04-21_18.24.25-client.txt:::</init></init>
-
Si tu utilise GLUtils 1.7 en 1.6.4 ça ne risque pas de fonctionner …
Prend la version 1.6.4 : https://github.com/jglrxavpok/MCGLUtils/tree/MC1.6 -
Génial Robin merci beaucoup j’avais pas fait attention a cela , il me reste un leger soucis le model ce charge parfaitement mais pas le MTL a première vue car la texture n’y est pas.
J’ai pu constater ceci dans les logs : 2014-04-21 22:46:59 [Infos] [STDOUT] GLMaterialLib.loadMaterials(): Exception when loading /assets/modzenyxx/obj/untitled.mtl: java.lang.NullPointerException
Il faut le définir quelque part ?
-
Aucune idée, faudrait voir avec xavpok.
-
Pourtant je l’ai bien placer dans le meme dossier que le .obj etc je ne vois pas ce qui pourrais clocher =x .
La en jouant avec les rotation j’ai réussie a la placer a peu prêt comme il faut sa rend pas mal
-
Ouvre ton .mtl avec un editeur de texte, et regarde le nom de texture demandé