How to edit/add images .res file in jar

Forum for alternative clients, mods & discussions on the same.
w00p
Posts: 1
Joined: Thu Dec 19, 2013 3:57 pm

How to edit/add images .res file in jar

Post by w00p »

Hi all,
i've downloaded the client java code and i'm modifing the gui, for everything in .java file no problem.

But how can i add or modify the .res images in the .jar?

I know i can open jar with archive manager or explore it in java ide (ex. eclipse), but how to convert .res in PNG?
I know the images are PNG inspecting the mime type in a text viewer, but simply renaming the .res in .png doesn't work because in the very beginning of the file there is data specific of .res [Haven Resource 1 image].

I think there would be a fast method to edit resource files than editing one by one, removing the .res specific header, saving as png, modify the image, re-add resource header and insert it in to the .jar!!!

Any help would be very apreciated! Thanks
You do not have the required permissions to view the files attached to this post.
User avatar
Clenda
Posts: 50
Joined: Sat Mar 11, 2017 9:41 pm

Re: How to edit/add images .res file in jar

Post by Clenda »

Hello,

I use this tool, but it's seem's that a compiled version is no longer disponible :
http://www.havenandhearth.com/forum/vie ... ource+tool
User avatar
talon00302
Posts: 516
Joined: Sun Apr 15, 2012 8:30 pm

Re: How to edit/add images .res file in jar

Post by talon00302 »

I do it super inefficiently by just ripping the images out and then editing the image and then building a new Jar with the string/whatever metadata as the file name.
Kuddie
Posts: 63
Joined: Tue May 22, 2012 2:24 pm

Re: How to edit/add images .res file in jar

Post by Kuddie »

Clenda wrote:Hello,

I use this tool, but it's seem's that a compiled version is no longer disponible :
http://www.havenandhearth.com/forum/vie ... ource+tool
talon00302 wrote:I do it super inefficiently by just ripping the images out and then editing the image and then building a new Jar with the string/whatever metadata as the file name.
Thank you both for sharing this!
User avatar
Clenda
Posts: 50
Joined: Sat Mar 11, 2017 9:41 pm

Re: How to edit/add images .res file in jar

Post by Clenda »

here is a temporary link to the tools

https://we.tl/t-MhFDcDIEjy (one week left)
Kuddie
Posts: 63
Joined: Tue May 22, 2012 2:24 pm

Re: How to edit/add images .res file in jar

Post by Kuddie »

Clenda wrote:here is a temporary link to the tools

https://we.tl/t-MhFDcDIEjy (one week left)
Nice!

Thank you for compiling this.

Return to “The Wizards' Tower”