
Spaceboy Ross
Members-
Posts
143 -
Joined
-
Last visited
Everything posted by Spaceboy Ross
-
[1.12.2] Custom model doesn't render correctly
Spaceboy Ross replied to Spaceboy Ross's topic in Modder Support
The modeler uses Cubix Studio but he says that he cannot figure out how to export the model to java. -
[1.12.2] Custom model doesn't render correctly
Spaceboy Ross replied to Spaceboy Ross's topic in Modder Support
Blockbench has an "export to java" plugin and that's how I got the model exported. -
[1.12.2] Custom model doesn't render correctly
Spaceboy Ross replied to Spaceboy Ross's topic in Modder Support
e23 is the head, I already found that out and changing the position does nothing. -
[1.12.2] Custom model doesn't render correctly
Spaceboy Ross replied to Spaceboy Ross's topic in Modder Support
It's only the head that doesn't render correctly, the head rendered correctly in blockbench and other programs. -
[1.12.2] Custom model doesn't render correctly
Spaceboy Ross replied to Spaceboy Ross's topic in Modder Support
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. -
[1.12.2] Custom model doesn't render correctly
Spaceboy Ross replied to Spaceboy Ross's topic in Modder Support
Yes it does -
[1.12.2] Custom model doesn't render correctly
Spaceboy Ross replied to Spaceboy Ross's topic in Modder Support
Oh, that is com.spaceboyross.gundam.ms.MobileSuit.MSRender -
[1.12] Player control riding custom entity
Spaceboy Ross replied to Spaceboy Ross's topic in Modder Support
Got the interaction code to work again. -
[1.12.2] Custom model doesn't render correctly
Spaceboy Ross replied to Spaceboy Ross's topic in Modder Support
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. -
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
-
[1.12] Player control riding custom entity
Spaceboy Ross replied to Spaceboy Ross's topic in Modder Support
Yeah, I'm using version control. https://github.com/SpaceboyRoss01/MSGundamMod -
[1.12] Player control riding custom entity
Spaceboy Ross replied to Spaceboy Ross's topic in Modder Support
Now I can't even interact with the entity. So I can't fix the movement until I fix interaction handling, all of a sudden the interaction function stopped working. -
[1.12] Player control riding custom entity
Spaceboy Ross replied to Spaceboy Ross's topic in Modder Support
It does but move doesn't work on my entity. -
Common proxies are normal, they run in both client and server side. All of my mods use them to register items, blocks, event handlers, etc.
-
@Kaelym I know why it's null, because the @GameRegistry.ObjectHolder value is probably different from what was set in the item's setRegistryName and setUnlocalizedName and/or you didn't register your item in your common proxy.
-
Cancel the render player event, that's the start. You're going to have to access the shader code and write a shader in GLSL to render the player as transparent. Then you're going to have to apply the shader and render the player yourself don't forget to unbind the shader program when you're done.
-
So I'm working on moving my Mobile Suit type entities over to a non-player based model design and I made the entity class for the Mobile Suits no longer extend EntityMob it now extends Entity and I had to rewrite the renderer but I'm not getting anything to render. The code I've attached is my rendering code. public static class MSRender extends Render<MSMob> { private MobileSuit ms; private ModelBase model; public MSRender(RenderManager rendermanagerIn,MobileSuit ms) { super(rendermanagerIn); this.model = ms.createModel() == null ? new ModelPlayer(1.0f,false) : ms.createModel(); this.model.isChild = false; this.ms = ms; } protected float handleRotationFloat(MSMob entity,float partialTicks) { return (float)entity.ticksExisted + partialTicks; } protected float interpolateRotation(float prevYawOffset,float yawOffset,float partialTicks) { float f; for(f = yawOffset-prevYawOffset;f < -180.0F;f += 360.0F); while(f >= 180.0F) f -= 360.0F; return prevYawOffset+partialTicks*f; } @Override public void doRender(MSMob entity,double x,double y,double z,float entityYaw,float partialTicks) { GlStateManager.pushMatrix(); this.scale(entity,partialTicks); GlStateManager.translate(x,y,z); GlStateManager.rotate(-entityYaw,0,1,0); this.getRenderManager().renderEngine.bindTexture(this.getEntityTexture(entity)); this.model.render(entity,0,0,entity.ticksExisted+partialTicks,entity.rotationYaw,entity.rotationPitch,entity.scale/0.0625F); super.doRender(entity,x,y,z,entityYaw,partialTicks); GlStateManager.popMatrix(); } protected void scale(MSMob mob,float par2) { this.shadowSize = mob.scale/2.0f; } @Override protected ResourceLocation getEntityTexture(MSMob entity) { return new ResourceLocation(this.ms.getBaseResourceLocation()+".png"); } public static class Factory implements IRenderFactory<MSMob> { private MobileSuit ms; public Factory(MobileSuit ms) { this.ms = ms; } @Override public Render<? super MSMob> createRenderFor(RenderManager manager) { return new MSRender(manager,this.ms); } } }
-
[1.12] Player control riding custom entity
Spaceboy Ross replied to Spaceboy Ross's topic in Modder Support
I discovered that if I run setVelocity or move nothing happens. Does anyone know how to make the entity move because it's refusing to move? -
[1.12] Gradle and Eclipse can't descide on a name for a file
Spaceboy Ross replied to Spaceboy Ross's topic in Modder Support
Creating a new file with the same name worked. -
[1.12] Gradle and Eclipse can't descide on a name for a file
Spaceboy Ross replied to Spaceboy Ross's topic in Modder Support
There are 0 hidden characters, I've checked. -
[1.12] Gradle and Eclipse can't descide on a name for a file
Spaceboy Ross replied to Spaceboy Ross's topic in Modder Support
Its the same file. Eclipse wants me to rename the file when I rename it to get gradle to work and gradle wants me to rename the file when I rename it to get eclipse to work. -
[1.12] Gradle and Eclipse can't descide on a name for a file
Spaceboy Ross replied to Spaceboy Ross's topic in Modder Support
ColonyMaintenanceTunnelWorldGenerator.java