No longer works for 1.5.1 since I can't change code which means you need to change the title back to 1.4.7.
Sorry sheenrox, I seem to have forgotten about those darn NullPointerExceptions.. Fixed. Also, there was always support for 1.4.7, I just assumed otherwise for my own reasons. Should always test before deployment.. xD
Sorry if you didn't want me to help but I was in a rush to implement HD Capes...
DeveloperCapesImageBufferDownload.java
@SideOnly(Side.CLIENT)
public class DeveloperCapesImageBufferDownload implements IImageBuffer {
private int imageWidth;
private int imageHeight;
public BufferedImage parseUserSkin(BufferedImage par1BufferedImage) {
if (par1BufferedImage == null) {
return null;
}else{
this.imageWidth = (par1BufferedImage.getWidth((ImageObserver)null) <= 64) ? 64: par1BufferedImage.getWidth((ImageObserver)null);
this.imageHeight = (par1BufferedImage.getHeight((ImageObserver)null) <= 32) ? 32: par1BufferedImage.getHeight((ImageObserver)null);
BufferedImage bufferedimage1 = new BufferedImage(this.imageWidth, this.imageHeight, 2);
Graphics graphics = bufferedimage1.getGraphics();
graphics.drawImage(par1BufferedImage, 0, 0, (ImageObserver)null);
graphics.dispose();
return bufferedimage1;
}
}
}
then change in DeveloperCapesAPI.java, change the following line
mc.renderEngine.obtainImageData(capeUrl, new ImageBufferDownload());
to
mc.renderEngine.obtainImageData(capeUrl, new DeveloperCapesImageBufferDownload());
and Voila, a nice clean HD patch, just bare in mind that it's 1am in UK, I am tired and slightly drunk, so don't yell at me if different sizes don't work, I only tested with 64x32 and 2048x1024(Seen Below)
Hey im back and I was looking at the updates and for the using the HD Capes is there a template that you could provide me with?
I tried using MinebookUK's templates but the 2048x1024 template doesn't work properly and I tried editing it so it would be bigger but with no luck =/ any way you could help?
Hey im back and I was looking at the updates and for the using the HD Capes is there a template that you could provide me with?
I tried using MinebookUK's templates but the 2048x1024 template doesn't work properly and I tried editing it so it would be bigger but with no luck =/ any way you could help?
Thanks again
The cape needs to be exactly 2048x1024. the easiest way to do it is to take a 64x32 cape template (notch's 64x32 cape) and scale it up to 2048x1024 and modify the cape from there.
So I did exactly like you said and scaled the image up up 2048x1024 but i got the same problem as before the image doesnt fill the entire cape space, even with the image extended to the bottom of the canvas there is still a little invisible area near the bottom
So I did exactly like you said and scaled the image up up 2048x1024 but i got the same problem as before the image doesnt fill the entire cape space, even with the image extended to the bottom of the canvas there is still a little invisible area near the bottom
Sorry sheenrox, I seem to have forgotten about those darn NullPointerExceptions.. Fixed. Also, there was always support for 1.4.7, I just assumed otherwise for my own reasons. Should always test before deployment.. xD
Possibly. I'm not sure quite how to do that, but I will look into it.
Oh wow, thanks. I was pretty sure it was in there but I didn't know how do do that.. haha I'll implement that here soon.
Oh, I thought the method being in the ClientProxy fixed that.. Haha
He game me the code on here he didn't need to do one.
Already had the code in my workspace. HD cape support is now in. Thanks
Because all I needed was that one class.
I tried using MinebookUK's templates but the 2048x1024 template doesn't work properly and I tried editing it so it would be bigger but with no luck =/ any way you could help?
Thanks again
The cape needs to be exactly 2048x1024. the easiest way to do it is to take a 64x32 cape template (notch's 64x32 cape) and scale it up to 2048x1024 and modify the cape from there.
Did anything happen like a player died, or disconnected, or connected?
https://dl.dropboxusercontent.com/u/157491565/2013-05-04_21.12.11.png
Hmm, I'll have to look at it. lol I have not looked at this for a few weeks.
You'd have to make your own mod that uses this library.
I'm working on it. It now needs an ASM but I think it will work out in the end.
Same problem here