Spaceboy Ross Posted October 1, 2018 Posted October 1, 2018 (edited) This is what the model is supposed to look like. But this is what it looks like in game. The class of the model is com.spaceboyross.gundam.models.ms.gundams.RX782GundamMobileSuitModel. I have the mod stored on github: https://github.com/SpaceboyRoss01/MSGundamMod Edited October 1, 2018 by Spaceboy Ross Mod has moved from 1.12 to 1.12.2 Quote The official YouTuber Spaceboy Ross
Cadiboo Posted October 2, 2018 Posted October 2, 2018 (edited) I couldn’t find any client/rendering package, where is your model rendering code? Your entity.render package doesn’t appear to contain any code relevant to rendering your entity Edited October 2, 2018 by Cadiboo Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Spaceboy Ross Posted October 2, 2018 Author Posted October 2, 2018 11 hours ago, Cadiboo said: I couldn’t find any client/rendering package, where is your model rendering code? Your entity.render package doesn’t appear to contain any code relevant to rendering your entity The entity.render package is for non-Mobile Suit type entities. com.spaceboyross.gundam.models.ms.gundams.RX782GundamMobileSuitModel is the RX-78-2 Gundam Mobile Suit model class. So the com.spaceboyross.gundam.models.ms package is for the models for Mobile Suits. Quote The official YouTuber Spaceboy Ross
Animefan8888 Posted October 2, 2018 Posted October 2, 2018 10 minutes ago, Spaceboy Ross said: The entity.render package is for non-Mobile Suit type entities. com.spaceboyross.gundam.models.ms.gundams.RX782GundamMobileSuitModel is the RX-78-2 Gundam Mobile Suit model class. So the com.spaceboyross.gundam.models.ms package is for the models for Mobile Suits. Not where is your model, where is the code that makes it appear on the screen? Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
Spaceboy Ross Posted October 2, 2018 Author Posted October 2, 2018 Just now, Animefan8888 said: Not where is your model, where is the code that makes it appear on the screen? Oh, that is com.spaceboyross.gundam.ms.MobileSuit.MSRender Quote The official YouTuber Spaceboy Ross
Animefan8888 Posted October 2, 2018 Posted October 2, 2018 15 minutes ago, Spaceboy Ross said: Oh, that is com.spaceboyross.gundam.ms.MobileSuit.MSRender Does this return the correct ResourceLocation? Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
Spaceboy Ross Posted October 2, 2018 Author Posted October 2, 2018 Yes it does Quote The official YouTuber Spaceboy Ross
Cadiboo Posted October 2, 2018 Posted October 2, 2018 You should probably consider splitting up your client/common/server code more (this will probably crash on a dedicated server) Also NEVER return a null itemstack. Return ItemStack.EMPTY. `public ItemStack getRequiredItemToPilot() { return null; }` What exactly is going wrong with your model? How are you loading the model? Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Animefan8888 Posted October 2, 2018 Posted October 2, 2018 8 hours ago, Spaceboy Ross said: Yes it does Check what texture is bound in your render code in the debugger. Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
Cadiboo Posted October 3, 2018 Posted October 3, 2018 (edited) Wait is it just the parts of the model with rotation that are rendering weirdly? If so I think that it might be something wrong with BlockBench’s model renderer OR the rotations/translations are being applied. Try toggling the checkbox inside BlockBench that says Origin To Geometry. Try making a smaller model with rotated pieces and also look at the JSON model text and see if the sizes look correct. Edited October 3, 2018 by Cadiboo Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Spaceboy Ross Posted October 3, 2018 Author Posted October 3, 2018 3 hours ago, Cadiboo said: You should probably consider splitting up your client/common/server code more (this will probably crash on a dedicated server) Also NEVER return a null itemstack. Return ItemStack.EMPTY. `public ItemStack getRequiredItemToPilot() { return null; }` What exactly is going wrong with your model? How are you loading the model? I've fixed it so the function returns ItemStack.EMPTY since I recently found that out before you told me and the model is rendering from the MobileSuit.MSRenderer class. Also, I didn't make the model, the model designer member made it. Quote The official YouTuber Spaceboy Ross
Cadiboo Posted October 3, 2018 Posted October 3, 2018 Wait so is your problem solved? Cause if not... 4 hours ago, Cadiboo said: Wait is it just the parts of the model with rotation that are rendering weirdly? If so I think that it might be something wrong with BlockBench’s model renderer OR the rotations/translations are being applied. Try toggling the checkbox inside BlockBench that says Origin To Geometry. Try making a smaller model with rotated pieces and also look at the JSON model text and see if the sizes look correct. Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Spaceboy Ross Posted October 3, 2018 Author Posted October 3, 2018 It's only the head that doesn't render correctly, the head rendered correctly in blockbench and other programs. Quote The official YouTuber Spaceboy Ross
Animefan8888 Posted October 3, 2018 Posted October 3, 2018 39 minutes ago, Spaceboy Ross said: It's only the head that doesn't render correctly, the head rendered correctly in blockbench and other programs. Find out which one of these method calls is adding the head box and then change the position that it is being placed at. Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
Spaceboy Ross Posted October 3, 2018 Author Posted October 3, 2018 e23 is the head, I already found that out and changing the position does nothing. Quote The official YouTuber Spaceboy Ross
Cadiboo Posted October 3, 2018 Posted October 3, 2018 (edited) It looks to me as though the only things that are rendering wrong are the “horns” (which both have rotations applied to them) and the 2 “torso” parts that have rotation applied to them. Additionally I think your arms are being rendered wrongly (rotated an extra 90deg Y). Because all your variables are named “e1” or similar, I can’t really see which ones are which and what they correspond to in the actual json model. Edit: I assume they’re e27 & e28, you might want to set the rotation point & the rotation before making the box? Edited October 3, 2018 by Cadiboo Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Animefan8888 Posted October 4, 2018 Posted October 4, 2018 1 hour ago, Cadiboo said: I can’t really see which ones are which and what they correspond to in the actual json model. It's an entity there is no JSON model. This is a java model. Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
Cadiboo Posted October 4, 2018 Posted October 4, 2018 30 minutes ago, Animefan8888 said: It's an entity there is no JSON model. This is a java model. Which has been created by first making a JSON model & then copying the values to Java? Or am I wrong and BlockBench can make Java models? Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Animefan8888 Posted October 4, 2018 Posted October 4, 2018 14 minutes ago, Cadiboo said: Which has been created by first making a JSON model & then copying the values to Java? No, by the looks of it, it was made with Techne. 14 minutes ago, Cadiboo said: Or am I wrong and BlockBench can make Java models? It might be able to, haven't used BlockBench. Plus you don't know if the modeler used that program. Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
Spaceboy Ross Posted October 4, 2018 Author Posted October 4, 2018 13 hours ago, Animefan8888 said: No, by the looks of it, it was made with Techne. It might be able to, haven't used BlockBench. Plus you don't know if the modeler used that program. Blockbench has an "export to java" plugin and that's how I got the model exported. Quote The official YouTuber Spaceboy Ross
Cadiboo Posted October 5, 2018 Posted October 5, 2018 10 hours ago, Spaceboy Ross said: Blockbench has an "export to java" plugin and that's how I got the model exported. Interesting, I think that that plugin may not have been properly tested with rotated boxes and might not be outputting your boxes with rotations correctly. I think that you should rename all your variables to make the code readable, and try moving the calls to setRotationPoint and setRotateAngle around (maybe swap which one gets called first? maybe move them above the call to addBox?) I think that when the model is rendered it’s getting scaled before rotated when it should be getting rotated before scaled (or visa versa). 23 hours ago, Animefan8888 said: you don't know if the modeler used that program. Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Spaceboy Ross Posted October 12, 2018 Author Posted October 12, 2018 The modeler uses Cubix Studio but he says that he cannot figure out how to export the model to java. Quote The official YouTuber Spaceboy Ross
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.