Crash probleme avec modèles/texture techne
-
Bonjour je vous post ici le rapport de crash que j’ai quand je lance le jeu (via eclipse)
–-- Minecraft Crash Report ---- // This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~] Time: 17/07/15 15:24 Description: Initializing game java.lang.NullPointerException: Initializing game at fr.craftesys.items.clien.CuteOcelot.<init>(CuteOcelot.java:47) at fr.craftesys.items.proxy.clientproxy.registerRender(clientproxy.java:16) at fr.craftesys.items.common.ModItems.init(ModItems.java:237) 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:532) 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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) 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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:737) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311) at net.minecraft.client.Minecraft.startGame(Minecraft.java:597) at net.minecraft.client.Minecraft.run(Minecraft.java:942) at net.minecraft.client.main.Main.main(Main.java:164) 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:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) A detailed walkthrough of the error, its code path and all known details is as follows: –------------------------------------------------------------------------------------- -- Head -- Stacktrace: at fr.craftesys.items.clien.CuteOcelot.<init>(CuteOcelot.java:47) at fr.craftesys.items.proxy.clientproxy.registerRender(clientproxy.java:16) at fr.craftesys.items.common.ModItems.init(ModItems.java:237) 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:532) 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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) 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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:737) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311) at net.minecraft.client.Minecraft.startGame(Minecraft.java:597) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:942) at net.minecraft.client.main.Main.main(Main.java:164) 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:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 8.1 (amd64) version 6.3 Java Version: 1.8.0_45, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 787085104 bytes (750 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1448 5 mods loaded, 5 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCHI mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) UCHI FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar) UCHI Forge{10.13.4.1448} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar) UCHI examplemod{1.0} [examplemod] (bin) UCHE moditems{1.7.10} [Mod Items] (bin) GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 347.52' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2' Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: GeForce GTX 750 Ti/PCIe/SSE2 GL version 4.5.0 NVIDIA 347.52, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported. Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: ~~ERROR~~ NullPointerException: null Profiler Position: N/A (disabled) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Anisotropic Filtering: On (16)
class rendermob :
package fr.craftesys.items.clien; import net.minecraft.client.renderer.entity.RenderBiped; import net.minecraft.client.model.ModelBiped; import fr.craftesys.items.clien.CuteOcelot; import net.minecraft.entity.EntityLiving; import net.minecraft.util.ResourceLocation; import fr.craftesys.items.common.EntityMod; import fr.craftesys.items.common.ModItems; public class RenderMob extends RenderBiped { public final ResourceLocation texture = new ResourceLocation(ModItems.MODID, "textures/entity/Cute_Ocelot.png"); public RenderMob(CuteOcelot cuteOcelot, float shadow) { super(cuteOcelot, shadow); } protected ResourceLocation getEntityTexture(EntityLiving living) { return this.getMobTutorielTexture((EntityMod)living); } private ResourceLocation getMobTutorielTexture(EntityMod mobTutoriel) { return texture; } }
class CuteOcelot
package fr.craftesys.items.clien; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelBiped; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; public class CuteOcelot extends ModelBiped { //fields ModelRenderer body; ModelRenderer head; ModelRenderer nose; ModelRenderer leftear; ModelRenderer rightear; ModelRenderer backfeetleft; ModelRenderer backfeetright; ModelRenderer frontLeftPaw; ModelRenderer frontRightPaw; ModelRenderer tail1; ModelRenderer tail2; ModelRenderer Fish; public CuteOcelot() { textureWidth = 128; textureHeight = 64; body = new ModelRenderer(this, 20, 0); body.addBox(-2F, -14F, -3F, 4, 14, 6); body.setRotationPoint(0F, 12F, -2F); body.setTextureSize(128, 64); body.mirror = true; setRotation(body, -0.1047198F, 0F, 0F); head = new ModelRenderer(this, 0, 0); head.addBox(-2.5F, -2F, -2.5F, 5, 4, 5); head.setRotationPoint(0F, -4F, -2F); head.setTextureSize(128, 64); head.mirror = true; setRotation(head, -0.2964248F, 0F, 0F); nose = new ModelRenderer(this, 8, 12); nose.addBox(-1.5F, 0F, -3.5F, 3, 2, 1); nose.setRotationPoint(0F, -4F, -2F); nose.setTextureSize(128, 64); nose.mirror = true; setRotation(nose, -0.2964267F, 0F, 0F); leftear.mirror = true; leftear = new ModelRenderer(this, 8, 9); leftear.addBox(-2F, -3F, 0.5F, 1, 1, 2); leftear.setRotationPoint(0F, -4F, -2F); leftear.setTextureSize(128, 64); leftear.mirror = true; setRotation(leftear, -0.2964267F, 0F, 0F); leftear.mirror = false; rightear = new ModelRenderer(this, 8, 9); rightear.addBox(1F, -3F, 0.5F, 1, 1, 2); rightear.setRotationPoint(0F, -4F, -2F); rightear.setTextureSize(128, 64); rightear.mirror = true; setRotation(rightear, -0.2964267F, 0F, 0F); backfeetleft.mirror = true; backfeetleft = new ModelRenderer(this, 0, 9); backfeetleft.addBox(0F, 0F, -1F, 2, 6, 2); backfeetleft.setRotationPoint(0.2F, 10F, -2F); backfeetleft.setTextureSize(128, 64); backfeetleft.mirror = true; setRotation(backfeetleft, 0F, 0F, -0.074351F); backfeetleft.mirror = false; backfeetright = new ModelRenderer(this, 0, 9); backfeetright.addBox(-2F, 0F, -1F, 2, 6, 2); backfeetright.setRotationPoint(-0.2F, 10F, -2F); backfeetright.setTextureSize(128, 64); backfeetright.mirror = true; setRotation(backfeetright, 0F, 0F, 0.0743572F); frontLeftPaw = new ModelRenderer(this, 0, 16); frontLeftPaw.addBox(0F, -1F, -10F, 2, 2, 10); frontLeftPaw.setRotationPoint(1.1F, 0F, 2.1F); frontLeftPaw.setTextureSize(128, 64); frontLeftPaw.mirror = true; setRotation(frontLeftPaw, -0.1115358F, 0.111544F, 0F); frontRightPaw = new ModelRenderer(this, 0, 16); frontRightPaw.addBox(-2F, -1F, -10F, 2, 2, 10); frontRightPaw.setRotationPoint(-1.1F, 0F, 2.1F); frontRightPaw.setTextureSize(128, 64); frontRightPaw.mirror = true; setRotation(frontRightPaw, -0.1115358F, -0.1115358F, 0F); tail1 = new ModelRenderer(this, 18, 22); tail1.addBox(-0.5F, 0F, 0F, 1, 1, 6); tail1.setRotationPoint(0F, 11F, 0F); tail1.setTextureSize(128, 64); tail1.mirror = true; setRotation(tail1, -0.6253236F, 0.6761344F, 0.1115358F); tail2 = new ModelRenderer(this, 18, 22); tail2.addBox(-0.5F, -0.5F, -1F, 1, 1, 6); tail2.setRotationPoint(2F, 15F, 4F); tail2.setTextureSize(128, 64); tail2.mirror = true; setRotation(tail2, -0.1420016F, -0.8110101F, 0.2230717F); Fish = new ModelRenderer(this, 18, 18); Fish.addBox(0F, -4F, -9F, 0, 14, 14); Fish.setRotationPoint(0F, -1F, -8F); Fish.setTextureSize(128, 64); Fish.mirror = true; setRotation(Fish, -0.5205006F, 0F, 0F); } public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5, entity); body.render(f5); head.render(f5); nose.render(f5); leftear.render(f5); rightear.render(f5); backfeetleft.render(f5); backfeetright.render(f5); frontLeftPaw.render(f5); frontRightPaw.render(f5); tail1.render(f5); tail2.render(f5); Fish.render(f5); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) { super.setRotationAngles(f, f1, f2, f3, f4, f5, entity); } }
class clientproxy :
package fr.craftesys.items.proxy; import net.minecraft.client.model.ModelBiped; import cpw.mods.fml.client.registry.RenderingRegistry; import fr.craftesys.items.clien.CuteOcelot; import fr.craftesys.items.clien.RenderMob; import fr.craftesys.items.common.EntityMod; public class clientproxy extends commonproxy { @Override public void registerRender() { //registerItemRenderer(AkiItemList.rubisBow, new BowRenderer()); System.out.println("méthode côté client"); RenderingRegistry.registerEntityRenderingHandler(EntityMod.class, new RenderMob(new CuteOcelot (), 0.5F)); } }
class entitymod
package fr.craftesys.items.common; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.monster.EntityMob; import net.minecraft.world.World; public class EntityMod extends EntityMob { public EntityMod(World world) { super(world); } public void applyEntityAttributes() { super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(20D); this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(6D); this.getEntityAttribute(SharedMonsterAttributes.knockbackResistance).setBaseValue(1D); this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.8D); } }
merci de votre aide</init></init>
-
Il y a un problème avec les .mirror dans le code de ton modèle, utilise le correcteur de SCAREX.
http://www.scarex.fr/model_corrector.php -
Ton model n’est pas un model biped, il faut l’extends ModelBase.
-
ça crash toujours, même après avec fait le correcteur
–-- Minecraft Crash Report ---- // Surprise! Haha. Well, this is awkward. Time: 17/07/15 16:58 Description: Initializing game java.lang.NullPointerException: Initializing game at fr.craftesys.items.clien.CuteOcelot.<init>(CuteOcelot.java:53) at fr.craftesys.items.proxy.clientproxy.registerRender(clientproxy.java:16) at fr.craftesys.items.common.ModItems.init(ModItems.java:237) 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:532) 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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) 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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:737) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311) at net.minecraft.client.Minecraft.startGame(Minecraft.java:597) at net.minecraft.client.Minecraft.run(Minecraft.java:942) at net.minecraft.client.main.Main.main(Main.java:164) 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:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at fr.craftesys.items.clien.CuteOcelot.<init>(CuteOcelot.java:53) at fr.craftesys.items.proxy.clientproxy.registerRender(clientproxy.java:16) at fr.craftesys.items.common.ModItems.init(ModItems.java:237) 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:532) 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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) 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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:737) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311) at net.minecraft.client.Minecraft.startGame(Minecraft.java:597) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:942) at net.minecraft.client.main.Main.main(Main.java:164) 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:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 8.1 (amd64) version 6.3 Java Version: 1.8.0_45, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 797132176 bytes (760 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1448 5 mods loaded, 5 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCHI mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) UCHI FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar) UCHI Forge{10.13.4.1448} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar) UCHI examplemod{1.0} [examplemod] (bin) UCHE moditems{1.7.10} [Mod Items] (bin) GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 347.52' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2' Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: GeForce GTX 750 Ti/PCIe/SSE2 GL version 4.5.0 NVIDIA 347.52, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported. Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: ~~ERROR~~ NullPointerException: null Profiler Position: N/A (disabled) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Anisotropic Filtering: On (16) ```</init></init>
-
Le model que tu as n’est pas un ModelBiped, ModelBiped c’est pour les Joueurs, Zombies et squelettes.
-
at fr.craftesys.items.clien.CuteOcelot.<init>(CuteOcelot.java:53)
Il y a quoi à la ligne 53 de la classe CuteOcelot ?
Visiblement il y a toujours un problème dans ton modèle.</init> -
this.leftear.mirror = true;
voila ma ligne 53
j’ai supprimé a chaque fois l’histoire de mirror et maintenant ça marche, je dois juste retravailler la texture mais sinon ça marche
-
çà veut dire que tu n’as pas utilisé correctement mon correcteur de model : il doit corrigé çà normalement. Exporte ton fichier en java depuis techne, utilise le correcteur de model et renvoi le code du model.
-
voila ce que j’entre dans ton correcteur : ```java
package fr.craftesys.items.clien
public class ModelCute Ocelot extends ModelBase
{ModelRenderer body;
ModelRenderer head;
ModelRenderer nose;
ModelRenderer leftear;
ModelRenderer rightear;
ModelRenderer backfeetleft;
ModelRenderer backfeetright;
ModelRenderer frontLeftPaw;
ModelRenderer frontRightPaw;
ModelRenderer tail1;
ModelRenderer tail2;
ModelRenderer Fish;public ModelCute Ocelot()
{
textureWidth = 128;
textureHeight = 64;body = new ModelRenderer(this, 20, 0);
body.addBox(-2F, -14F, -3F, 4, 14, 6);
body.setRotationPoint(0F, 12F, -2F);
body.setTextureSize(128, 64);
body.mirror = true;
setRotation(body, -0.1047198F, 0F, 0F);
head = new ModelRenderer(this, 0, 0);
head.addBox(-2.5F, -2F, -2.5F, 5, 4, 5);
head.setRotationPoint(0F, -4F, -2F);
head.setTextureSize(128, 64);
head.mirror = true;
setRotation(head, -0.2964248F, 0F, 0F);
nose = new ModelRenderer(this, 8, 12);
nose.addBox(-1.5F, 0F, -3.5F, 3, 2, 1);
nose.setRotationPoint(0F, -4F, -2F);
nose.setTextureSize(128, 64);
nose.mirror = true;
setRotation(nose, -0.2964267F, 0F, 0F);
leftear.mirror = true;
leftear = new ModelRenderer(this, 8, 9);
leftear.addBox(-2F, -3F, 0.5F, 1, 1, 2);
leftear.setRotationPoint(0F, -4F, -2F);
leftear.setTextureSize(128, 64);
leftear.mirror = true;
setRotation(leftear, -0.2964267F, 0F, 0F);
leftear.mirror = false;
rightear = new ModelRenderer(this, 8, 9);
rightear.addBox(1F, -3F, 0.5F, 1, 1, 2);
rightear.setRotationPoint(0F, -4F, -2F);
rightear.setTextureSize(128, 64);
rightear.mirror = true;
setRotation(rightear, -0.2964267F, 0F, 0F);
backfeetleft.mirror = true;
backfeetleft = new ModelRenderer(this, 0, 9);
backfeetleft.addBox(0F, 0F, -1F, 2, 6, 2);
backfeetleft.setRotationPoint(0.2F, 10F, -2F);
backfeetleft.setTextureSize(128, 64);
backfeetleft.mirror = true;
setRotation(backfeetleft, 0F, 0F, -0.074351F);
backfeetleft.mirror = false;
backfeetright = new ModelRenderer(this, 0, 9);
backfeetright.addBox(-2F, 0F, -1F, 2, 6, 2);
backfeetright.setRotationPoint(-0.2F, 10F, -2F);
backfeetright.setTextureSize(128, 64);
backfeetright.mirror = true;
setRotation(backfeetright, 0F, 0F, 0.0743572F);
frontLeftPaw = new ModelRenderer(this, 0, 16);
frontLeftPaw.addBox(0F, -1F, -10F, 2, 2, 10);
frontLeftPaw.setRotationPoint(1.1F, 0F, 2.1F);
frontLeftPaw.setTextureSize(128, 64);
frontLeftPaw.mirror = true;
setRotation(frontLeftPaw, -0.1115358F, 0.111544F, 0F);
frontRightPaw = new ModelRenderer(this, 0, 16);
frontRightPaw.addBox(-2F, -1F, -10F, 2, 2, 10);
frontRightPaw.setRotationPoint(-1.1F, 0F, 2.1F);
frontRightPaw.setTextureSize(128, 64);
frontRightPaw.mirror = true;
setRotation(frontRightPaw, -0.1115358F, -0.1115358F, 0F);
tail1 = new ModelRenderer(this, 18, 22);
tail1.addBox(-0.5F, 0F, 0F, 1, 1, 6);
tail1.setRotationPoint(0F, 11F, 0F);
tail1.setTextureSize(128, 64);
tail1.mirror = true;
setRotation(tail1, -0.6253236F, 0.6761344F, 0.1115358F);
tail2 = new ModelRenderer(this, 18, 22);
tail2.addBox(-0.5F, -0.5F, -1F, 1, 1, 6);
tail2.setRotationPoint(2F, 15F, 4F);
tail2.setTextureSize(128, 64);
tail2.mirror = true;
setRotation(tail2, -0.1420016F, -0.8110101F, 0.2230717F);
Fish = new ModelRenderer(this, 18, 18);
Fish.addBox(0F, -4F, -9F, 0, 14, 14);
Fish.setRotationPoint(0F, -1F, -8F);
Fish.setTextureSize(128, 64);
Fish.mirror = true;
setRotation(Fish, -0.5205006F, 0F, 0F);
}public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
{
super.render(entity, f, f1, f2, f3, f4, f5);
setRotationAngles(f, f1, f2, f3, f4, f5);
body.render(f5);
head.render(f5);
nose.render(f5);
leftear.render(f5);
rightear.render(f5);
backfeetleft.render(f5);
backfeetright.render(f5);
frontLeftPaw.render(f5);
frontRightPaw.render(f5);
tail1.render(f5);
tail2.render(f5);
Fish.render(f5);
}private void setRotation(ModelRenderer model, float x, float y, float z)
{
model.rotateAngleX = x;
model.rotateAngleY = y;
model.rotateAngleZ = z;
}public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5)
{
super.setRotationAngles(f, f1, f2, f3, f4, f5);
}}
voila ce qui en sort ```java package fr.craftesys.items.clien; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; public ModelRenderer head; public ModelRenderer nose; public ModelRenderer leftear; public ModelRenderer rightear; public ModelRenderer backfeetleft; public ModelRenderer backfeetright; public ModelRenderer frontLeftPaw; public ModelRenderer frontRightPaw; public ModelRenderer tail1; public ModelRenderer tail2; public ModelRenderer fish; public ModelCute Ocelot() { this.textureWidth = 128; this.textureHeight = 64; body = new ModelRenderer(this, 20, 0); body.addBox(-2F, -14F, -3F, 4, 14, 6); body.setRotationPoint(0F, 12F, -2F); body.setTextureSize(128, 64); body.mirror = true; setRotation(body, -0.1047198F, 0F, 0F); this.head = new ModelRenderer(this, 0, 0); this.head.mirror = true; this.head.addBox(-2.5F, -2F, -2.5F, 5, 4, 5); this.head.setRotationPoint(0F, -4F, -2F); this.head.setTextureSize(128, 64); setRotation(this.head, -0.2964248F, 0F, 0F); this.nose = new ModelRenderer(this, 8, 12); this.nose.mirror = true; this.nose.addBox(-1.5F, 0F, -3.5F, 3, 2, 1); this.nose.setRotationPoint(0F, -4F, -2F); this.nose.setTextureSize(128, 64); setRotation(this.nose, -0.2964267F, 0F, 0F); this.leftear.mirror = true; this.leftear = new ModelRenderer(this, 8, 9); this.leftear.mirror = true; this.leftear.addBox(-2F, -3F, 0.5F, 1, 1, 2); this.leftear.setRotationPoint(0F, -4F, -2F); this.leftear.setTextureSize(128, 64); setRotation(this.leftear, -0.2964267F, 0F, 0F); this.leftear.mirror = false; this.rightear = new ModelRenderer(this, 8, 9); this.rightear.mirror = true; this.rightear.addBox(1F, -3F, 0.5F, 1, 1, 2); this.rightear.setRotationPoint(0F, -4F, -2F); this.rightear.setTextureSize(128, 64); setRotation(this.rightear, -0.2964267F, 0F, 0F); this.backfeetleft.mirror = true; this.backfeetleft = new ModelRenderer(this, 0, 9); this.backfeetleft.mirror = true; this.backfeetleft.addBox(0F, 0F, -1F, 2, 6, 2); this.backfeetleft.setRotationPoint(0.2F, 10F, -2F); this.backfeetleft.setTextureSize(128, 64); setRotation(this.backfeetleft, 0F, 0F, -0.074351F); this.backfeetleft.mirror = false; this.backfeetright = new ModelRenderer(this, 0, 9); this.backfeetright.mirror = true; this.backfeetright.addBox(-2F, 0F, -1F, 2, 6, 2); this.backfeetright.setRotationPoint(-0.2F, 10F, -2F); this.backfeetright.setTextureSize(128, 64); setRotation(this.backfeetright, 0F, 0F, 0.0743572F); this.frontLeftPaw = new ModelRenderer(this, 0, 16); this.frontLeftPaw.mirror = true; this.frontLeftPaw.addBox(0F, -1F, -10F, 2, 2, 10); this.frontLeftPaw.setRotationPoint(1.1F, 0F, 2.1F); this.frontLeftPaw.setTextureSize(128, 64); setRotation(this.frontLeftPaw, -0.1115358F, 0.111544F, 0F); this.frontRightPaw = new ModelRenderer(this, 0, 16); this.frontRightPaw.mirror = true; this.frontRightPaw.addBox(-2F, -1F, -10F, 2, 2, 10); this.frontRightPaw.setRotationPoint(-1.1F, 0F, 2.1F); this.frontRightPaw.setTextureSize(128, 64); setRotation(this.frontRightPaw, -0.1115358F, -0.1115358F, 0F); this.tail1 = new ModelRenderer(this, 18, 22); this.tail1.mirror = true; this.tail1.addBox(-0.5F, 0F, 0F, 1, 1, 6); this.tail1.setRotationPoint(0F, 11F, 0F); this.tail1.setTextureSize(128, 64); setRotation(this.tail1, -0.6253236F, 0.6761344F, 0.1115358F); this.tail2 = new ModelRenderer(this, 18, 22); this.tail2.mirror = true; this.tail2.addBox(-0.5F, -0.5F, -1F, 1, 1, 6); this.tail2.setRotationPoint(2F, 15F, 4F); this.tail2.setTextureSize(128, 64); setRotation(this.tail2, -0.1420016F, -0.8110101F, 0.2230717F); this.fish = new ModelRenderer(this, 18, 18); this.fish.mirror = true; this.fish.addBox(0F, -4F, -9F, 0, 14, 14); this.fish.setRotationPoint(0F, -1F, -8F); this.fish.setTextureSize(128, 64); setRotation(this.fish, -0.5205006F, 0F, 0F); } public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5, entity); body.render(f5); this.head.render(f5); this.nose.render(f5); this.leftear.render(f5); this.rightear.render(f5); this.backfeetleft.render(f5); this.backfeetright.render(f5); this.frontLeftPaw.render(f5); this.frontRightPaw.render(f5); this.tail1.render(f5); this.tail2.render(f5); this.fish.render(f5); } public static void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } }
comme tu as pu le remarquer il me supprimer le public class model…… extends ModelBiped
-
@‘SCAREX’:
Exporte ton fichier en java depuis techne, utilise le correcteur de model et renvoi le code du model.
J’ai dit de l’exporter directement, là tu as modifié des parties du code.
-
j’ai refait les modèles pour éviter les soucis, autre question, dans quelle class je peux trouver les détails du squid ? afin de pouvoir faire en sorte que ce mob reste dans l’eau ? (car un requin dans la savane, c’est bof ^^)
-
EntitySquid ?
-
merci j’ai trouvé mais comme mon modèle est deja extends a ModelBiped comme je dois faire, je dois creer une classe annexe extends EntitySquid ?
et les mobs ne spawn pas seul ou si ?
-
Je disais d’aller voir comment est faite la classe EntitySquid.