TheGoldCrayon Posted April 2, 2016 Posted April 2, 2016 So I finally got around to adding in a second entity into my mod, and I basically copied everything over form my previous entity except for making it a monster rather than an animal. However, when I spawn both of them in game, the newest entity doesn't render, but it does have a shadow, and the first entity renders, but it's in the model of the newest entity with the original textures. Any idea what I did wrong? I went through my classes to see if I forgot to change names form the first entity to the second one, but nothing I've done has been able to fix it. Here are the classes regarding my entities. Let me know if you need more. The Imp is the first entity I made and the Djinn is the latest one. RenderImp: http://pastebin.com/V9ejeFDG RenderDjinn: http://pastebin.com/1DB3Pywn ModelImp: http://pastebin.com/GkbS42Wk ModelDjinn: http://pastebin.com/zEzQQRCf EntityImp: http://pastebin.com/VfnxvL55 EntityDjinn: http://pastebin.com/bwQH9QTA Thank you for any help. Quote "War doesn't determine who is right. Only who is left." -Bertrand Russell
TheGoldCrayon Posted April 2, 2016 Author Posted April 2, 2016 I register them in here: http://pastebin.com/yUsGPxqT Quote "War doesn't determine who is right. Only who is left." -Bertrand Russell
TheGoldCrayon Posted April 2, 2016 Author Posted April 2, 2016 Which method is it? I saw it was deprecated when I did my first entity, but it still had worked, so I never changed it. Quote "War doesn't determine who is right. Only who is left." -Bertrand Russell
TheGoldCrayon Posted April 2, 2016 Author Posted April 2, 2016 I changed it to the preInit, and I added in the IRenderFactory parameter. Now when I try to spawn in a Djinn, my game crashes. Here's the updated ClientProxy: http://pastebin.com/yUsGPxqT Here's the crashlog: http://pastebin.com/kSuy2Eb0 Quote "War doesn't determine who is right. Only who is left." -Bertrand Russell
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.