Jump to content

[1.7.2] Techne problems.


Pandassaurus

Recommended Posts

Hi,

My texture is not working for techne. When i draw on a certain spot, it adds a texture somewhere where it's not supposed to be. I know it's a lot to go through, but i would really appreciate it if you did.

 

Model Class:

 

// Date: 5/2/2014 9:47:48 PM
// Template version 1.1
// Java generated by Techne
// Keep in mind that you still need to fill in some blanks
// - ZeuX


package com.pandassaurus.breakingbad.item.armor.gasMask;

import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;

public class ModelGasMask extends ModelBiped {
    //fields
    ModelRenderer maskrim;
    ModelRenderer maskrim1;
    ModelRenderer maskrim2;
    ModelRenderer mid;
    ModelRenderer visor;
    ModelRenderer rightbig;
    ModelRenderer leftsmall;
    ModelRenderer rightsmall;
    ModelRenderer leftbig;
    ModelRenderer maskrim3;
    ModelRenderer strap;
    ModelRenderer strap1;
    ModelRenderer strap2;
    ModelRenderer strap3;
    ModelRenderer strap4;
    ModelRenderer strap5;
    ModelRenderer strap6;

    public ModelGasMask(float f) {
        super(f);
        textureWidth = 64;
        textureHeight = 64;

        maskrim = new ModelRenderer(this, 0, 0);
        maskrim.addBox(-4F, -8F, -4F, 1, 8, 1);
        maskrim.setRotationPoint(0F, 0F, -1F);
        maskrim.setTextureSize(64, 64);
        maskrim.mirror = true;
        setRotation(maskrim, 0F, 0F, 0F);
        maskrim1 = new ModelRenderer(this, 0, 10);
        maskrim1.addBox(3F, -8F, -4F, 1, 8, 1);
        maskrim1.setRotationPoint(0F, 0F, -1F);
        maskrim1.setTextureSize(64, 64);
        maskrim1.mirror = true;
        setRotation(maskrim1, 0F, 0F, 0F);
        maskrim2 = new ModelRenderer(this, 0, 23);
        maskrim2.addBox(-4F, -8F, -4F, 8, 1, 1);
        maskrim2.setRotationPoint(0F, 0F, -1F);
        maskrim2.setTextureSize(64, 64);
        maskrim2.mirror = true;
        setRotation(maskrim2, 0F, 0F, 0F);
        mid = new ModelRenderer(this, 40, 26);
        mid.addBox(-1F, 0F, -1F, 2, 2, 3);
        mid.setRotationPoint(0F, -1F, -6F);
        mid.setTextureSize(64, 64);
        mid.mirror = true;
        setRotation(mid, -1.301251F, 0F, 0F);
        visor = new ModelRenderer(this, 35, 32);
        visor.addBox(-4F, -8F, -5F, 6, 6, 1);
        visor.setRotationPoint(1F, 1F, -1F);
        visor.setTextureSize(64, 64);
        visor.mirror = true;
        setRotation(visor, 0F, 0F, 0F);
        rightbig = new ModelRenderer(this, 44, 10);
        rightbig.addBox(-1F, -1F, -1F, 3, 3, 2);
        rightbig.setRotationPoint(-4F, -1F, -7.5F);
        rightbig.setTextureSize(64, 64);
        rightbig.mirror = true;
        setRotation(rightbig, 0.5205006F, 0.5204921F, 0F);
        leftsmall = new ModelRenderer(this, 31, 0);
        leftsmall.addBox(-1F, -1F, -1F, 2, 2, 2);
        leftsmall.setRotationPoint(3F, -1F, -7F);
        leftsmall.setTextureSize(64, 64);
        leftsmall.mirror = true;
        setRotation(leftsmall, 0.5204921F, -0.5204921F, 0F);
        rightsmall = new ModelRenderer(this, 46, 0);
        rightsmall.addBox(-1F, -1F, -1F, 2, 2, 2);
        rightsmall.setRotationPoint(-3F, -1F, -7F);
        rightsmall.setTextureSize(64, 64);
        rightsmall.mirror = true;
        setRotation(rightsmall, 0.5204921F, 0.5205006F, 0F);
        leftbig = new ModelRenderer(this, 33, 12);
        leftbig.addBox(-1F, -1F, -1F, 3, 3, 2);
        leftbig.setRotationPoint(3.2F, -1F, -8.25F);
        leftbig.setTextureSize(64, 64);
        leftbig.mirror = true;
        setRotation(leftbig, 0.5204921F, -0.5204921F, 0F);
        maskrim3 = new ModelRenderer(this, 0, 27);
        maskrim3.addBox(-4F, -8F, -5F, 8, 1, 3);
        maskrim3.setRotationPoint(0F, 7F, -2F);
        maskrim3.setTextureSize(64, 64);
        maskrim3.mirror = true;
        setRotation(maskrim3, 0F, 0F, 0F);
        strap = new ModelRenderer(this, 0, 36);
        strap.addBox(-2F, -8F, -4F, 1, 0, 9);
        strap.setRotationPoint(0F, -0.1F, -1F);
        strap.setTextureSize(64, 64);
        strap.mirror = true;
        setRotation(strap, 0F, 0F, 0F);
        strap1 = new ModelRenderer(this, 0, 36);
        strap1.addBox(1F, -8F, -4F, 1, 0, 9);
        strap1.setRotationPoint(0F, -0.1F, -1F);
        strap1.setTextureSize(64, 64);
        strap1.mirror = true;
        setRotation(strap1, 0F, 0F, 0F);
        strap2 = new ModelRenderer(this, 26, 36);
        strap2.addBox(1F, -8.1F, -4F, 1, 6, 0);
        strap2.setRotationPoint(0F, 0F, 8F);
        strap2.setTextureSize(64, 64);
        strap2.mirror = true;
        setRotation(strap2, 0F, 0F, 0F);
        strap3 = new ModelRenderer(this, 26, 36);
        strap3.addBox(1F, -8.1F, -4F, 1, 6, 0);
        strap3.setRotationPoint(-3F, 0F, 8F);
        strap3.setTextureSize(64, 64);
        strap3.mirror = true;
        setRotation(strap3, 0F, 0F, 0F);
        strap4 = new ModelRenderer(this, 0, 54);
        strap4.addBox(1F, -8F, -4F, 0, 1, 9);
        strap4.setRotationPoint(-5.1F, 5F, -1F);
        strap4.setTextureSize(64, 64);
        strap4.mirror = true;
        setRotation(strap4, 0F, 0F, 0F);
        strap5 = new ModelRenderer(this, 0, 54);
        strap5.addBox(3.1F, -8F, -4F, 0, 1, 9);
        strap5.setRotationPoint(1F, 5F, -1F);
        strap5.setTextureSize(64, 64);
        strap5.mirror = true;
        setRotation(strap5, 0F, 0F, 0F);
        strap6 = new ModelRenderer(this, 0, 32);
        strap6.addBox(1F, -8F, -3F, 8, 1, 0);
        strap6.setRotationPoint(-5F, 5F, 7.1F);
        strap6.setTextureSize(64, 64);
        strap6.mirror = true;
        setRotation(strap6, 0F, 0F, 0F);

        this.bipedHead.addChild(maskrim);
        this.bipedHead.addChild(strap);
        this.bipedHead.addChild(maskrim1);
        this.bipedHead.addChild(maskrim2);
        this.bipedHead.addChild(maskrim3);
        this.bipedHead.addChild(strap);
        this.bipedHead.addChild(strap1);
        this.bipedHead.addChild(strap2);
        this.bipedHead.addChild(strap3);
        this.bipedHead.addChild(strap4);
        this.bipedHead.addChild(strap5);
        this.bipedHead.addChild(strap6);
        this.bipedHead.addChild(visor);
        this.bipedHead.addChild(leftsmall);
        this.bipedHead.addChild(rightsmall);
        this.bipedHead.addChild(rightbig);
        this.bipedHead.addChild(leftbig);
        this.bipedHead.addChild(mid);
    }

    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);
    }

    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);
    }
}

 

 

The rightbig and leftbig are the textures circled below:

width=250 height=218https://31.media.tumblr.com/370d0dcb1279b7ffcc2314855a30d60a/tumblr_n4zlc1PGBF1sejvuqo3_250.png[/img]

 

And are showing up like so whenever i give the boxes (left and right of mouth) texture:

width=442 height=352https://24.media.tumblr.com/dca7151793656e6a4604b94fcf43ee15/tumblr_n4zlc1PGBF1sejvuqo1_500.png[/img]

 

and it's also happening for other textures,too:

width=250 height=157https://24.media.tumblr.com/c055a85691023b5a9221c02d2960fe9d/tumblr_n4zlc1PGBF1sejvuqo2_250.png[/img]

 

 

I'm not sure why that's happening, and i would appreciate it if you help me

thanks,

-Pandassaurus

 

Link to comment
Share on other sites

Hi

this is armor, and i haven't been using render classes. i just add all of them as childs of the head:

 

this.bipedHead.addChild(maskrim);

 

and render them

 

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);
    }

 

in the model class.

 

thanks for the help,

-Pandassaurus

Link to comment
Share on other sites

The problem is that your texture file needs to have a 2:1 ratio.  It looks like yours is square.  So it needs to be 64x32 or 128x64, etc.  It cannot be 128x128 or similar because it will get scaled in the one direction and that will "squash" the pixels and leave transparent areas.

 

You need to (a) size your PNG to be 2:1 and (b) specify the texture size correctly in your model with the setTextureSize() method.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

Hi,

I dont think that's it. Ive been using square textures for all of my techne creations with no problem. Also, the texture sizes are defined here:

textureWidth = 64;
        textureHeight = 64;

so ya, i don't think thats it.

Thanks,

-Pandassaurus

Link to comment
Share on other sites

Thanks,

anyway, are there any other ideas for my problem?

 

thanks,

-Pandassaurus

Techne has an option to load the texture file. You should load it in Techne and adjust the offsets to the correct spot.

Legend of Zelda Mod[updated September 20th to 3.1.1]

Extra Achievements(Minecraft 1.8!)[updated April 3rd to 2.3.0]

Fancy Cheeses[updated May 8th to 0.5.0]

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • C:\Minecraft Server>java -Xmx4096M -Xms1024M -jar server.jar nogui Starting net.minecraft.server.Main ERROR StatusConsoleListener Unable to delete file C:\Minecraft Server\logs\latest.log: java.nio.file.FileSystemException C:\Minecraft Server\logs\latest.log: The process cannot access the file because it is being used by another process ^CTerminate batch job (Y/N)?
    • Oke i tried to download a different mod and try that out on my server and i get the same error. Now i know for a fact that my port forwarding and server is working properly, because i can join them without adding any mods into the server file, but then i dont know what i am doing wrong 
    • Salutation to you ladies and gentlemen, i must confidently say a very big thanks to Fastfundrecovery8 AT GMAIL COM for their tremendous action taken over my case immediately brought to their table, i saw how the whole process was going, and i wisperred to myself and said indeed i am previlledge to know such a legitimate recovery company who is very understable and do not stress their client over recovery software tools, Fastfunds Recovery are good in keeping to time, punctuality, I was scammed last year December 18, i realized that my long investment which i inteded to withdraw has long been a scam, got so frustrated, hired 4 recovery hackers which ended up taking money from me and i couldn't contact them anymore, i went through emotional pains and betrayer, wasn't easy for me at that moment, am very greatful for FastFunds Recovery, who was referred to me by a civil engineer who i was opportuned to share part of my story with and he was like i have a cyber friend do reach and say i'm from Pato's, that's how i got in touch with fastfundsrecovery8(@)gmail(.)com, do inform FastFunds recovery for any cyber issues. Fastfundsrecovery8 AT GMAIL WILL ALWAYS HELP GET BACK YOUR FUNDS.
    • Hello everyone i have made a server with forge and have added pixelmon into the server. But for some reason i keep getting "Internal Exception: io.netty.handles.codec.DecoderException: Not enough bytes in buffer, expected 105, byt got 48". I tried upping the ram of the server to 2GB but it didnt solve anything. I have 16 GB of ram on my pc (where i host the server), but i cant seem to get it to work. Pixelmon does work when i try to go into singleplayer, but for some reason just doesnt work online   Edit: server logs sais nothing aswell [18:55:49] [ServerMain/INFO]: Environment: Environment[accountsHost=https://api.mojang.com, sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD] [18:55:50] [ServerMain/INFO]: Loaded 7 recipes [18:55:51] [ServerMain/INFO]: Loaded 1271 advancements [18:55:51] [Server thread/INFO]: Starting minecraft server version 1.20.2 [18:55:51] [Server thread/INFO]: Loading properties [18:55:51] [Server thread/INFO]: Default game type: SURVIVAL [18:55:51] [Server thread/INFO]: Generating keypair [18:55:51] [Server thread/INFO]: Starting Minecraft server on *:xxxx [18:55:51] [Server thread/INFO]: Using default channel type [18:55:51] [Server thread/INFO]: Preparing level "world" [18:55:52] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld [18:55:53] [Worker-Main-8/INFO]: Preparing spawn area: 0% [18:55:53] [Worker-Main-8/INFO]: Preparing spawn area: 0% [18:55:53] [Worker-Main-8/INFO]: Preparing spawn area: 0% [18:55:53] [Worker-Main-12/INFO]: Preparing spawn area: 0% [18:55:54] [Worker-Main-11/INFO]: Preparing spawn area: 31% [18:55:54] [Server thread/INFO]: Time elapsed: 2344 ms [18:55:54] [Server thread/INFO]: Done (2.865s)! For help, type "help" [18:55:56] [User Authenticator #1/INFO]: UUID of player kemal007023 is 9a2a1dff-fa06-4e29-b57d-b1e6afb2db87 [18:55:56] [Server thread/INFO]: kemal007023[/xxxx] logged in with entity id 271 at (9.497695306619189, 68.0, 10.973182362716573) [18:55:56] [Server thread/INFO]: kemal007023 joined the game [18:55:56] [Server thread/INFO]: kemal007023 lost connection: Disconnected [18:55:56] [Server thread/INFO]: kemal007023 left the game [18:56:00] [User Authenticator #2/INFO]: UUID of player kemal007023 is 9a2a1dff-fa06-4e29-b57d-b1e6afb2db87 [18:56:00] [Server thread/INFO]: kemal007023[xxxx] logged in with entity id 272 at (9.497695306619189, 68.0, 10.973182362716573) [18:56:00] [Server thread/INFO]: kemal007023 joined the game [18:56:00] [Server thread/INFO]: kemal007023 lost connection: Disconnected [18:56:00] [Server thread/INFO]: kemal007023 left the game  
    • Hi, im making a BlockEntity that can contain fluids, and render them in the GUI, only one fluid works perfectly, I can fill or drain it, sync it to the client, and render it. The problem comes when i try to have two fluids in the same GUI, depending on what I delete or leave, the fluids act differently; for example, deleting both of them from "saveAdditional" and "load" methods makes that the fluids cannot render. Also, it can only render one fluid alone, or again, render one fluid, but twice (copies one fluid to the other one). FYI the left one is water, the right one is a red custom fluid. How can I fix this? BoilerBlockEntity: https://pastebin.com/e6b2U3sD BoilerMenu: https://pastebin.com/D375yCNr BoilerScreen: https://pastebin.com/WMrK83Du 
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.