Posted February 18, 201510 yr I am having problem trying to figure out how to put my Techne file into Forge to let Forge render my entity model properly.
February 18, 201510 yr In Techne: File -> Export -> Java Name it something intelligent. Move the file into your source files directories, somewhere intelligent. Refactor the code so it stops throwing errors (Techne assumes that you plan to put this file in the net.minecraft.client.entities package, which is Wrong with a Capital W, so it throws a ton of errors that are easy to fix, provided you know anything about Java). Register a new rendering doodad as appropriate for the kind of model you wish to render in your client proxy. Bam, done Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
February 18, 201510 yr Author ... Register a new rendering doodad as appropriate for the kind of model you wish to render in your client proxy. ... Yeah but what was that? I am having trouble there I have been successful in resolving the errors and exporting.
February 18, 201510 yr It depends on what you're trying to render. What are you trying to render? And don't say "a techne model" because that's the visual representation, not what it is. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
February 18, 201510 yr Author Then Maybe I need to clarify and or need to be clarified... I am planning to make a gun that shoots small bullets from it. Then I was thinking if I could use Techne to make a model for it. I completed the making and the export step, and solved all errors while moving into Forge. But my entity (the bullet) dont show up , but still exists. (I saw my test subject creepers die before me.) BTW do you guys need the source code?
February 18, 201510 yr Author Just in case: Entity class http://pastebin.com/YQLey0it Render class http://pastebin.com/fU2yaYjM Model (generated from Techne) class http://pastebin.com/S8Us219C Can someone figure out how it works?
February 18, 201510 yr And your client proxy? Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
February 19, 201510 yr Author public class ClientProxy extends CommonProxy { @Override public void preInit(FMLPreInitializationEvent e) { RenderRegistry.RegisterRender(); // Another class in my mod. The problematic line is below: RenderingRegistry.registerEntityRenderingHandler(EntityTesterBolt.class, new RenderFireball(0)); super.preInit(e); } @Override public void init(FMLInitializationEvent e) { super.init(e); } @Override public void postInit(FMLPostInitializationEvent e) { super.postInit(e); } }
February 19, 201510 yr Aside from having used the main mod file events... RenderingRegistry.registerEntityRenderingHandler(EntityTesterBolt.class, new RenderFireball(0)); RenderBolt != RenderFireball Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
February 20, 201510 yr Author Aside from that Do my RenderTesterBolt have any problem? I need an example for such entities. EDIT: Still I cant see the bolt, but the explosion left behind.
February 20, 201510 yr public void renderBolt(Entity entity, double x, double y, double z, float u, float v) { super.doRender(entity, x, y, z, u, v); } You should be rendering here. The super class isn't going to do it for you. [shadow=gray,left][glow=red,2,300]KEEGAN[/glow][/shadow]
February 20, 201510 yr Author According to my available code, I need one more parameter to actually render the model from Model Class. What would that be? (Entity entity, float f, float f1, float f2, float f3, float f4, float f5) (Entity entity, double x, double y, double z, float u, float v) f5 is not paired up.
February 20, 201510 yr Try 0.0625F as that is what I always use as the last parameter when doing models. Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
February 20, 201510 yr Try 0.0625F as that is what I always use as the last parameter when doing models. It's a scale value. It just so happens that all models need the same scale value (1/16th) to be the right size. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
February 21, 201510 yr Author I am OK with Java codes, but new to those "constants" So what value do modders use for those "scale"?
February 21, 201510 yr I am OK with Java codes, but new to those "constants" So what value do modders use for those "scale"? 0.0625F Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
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.