How to edit/add images .res file in jar

Forum for alternative clients, mods & discussions on the same.

How to edit/add images .res file in jar

Postby w00p » Thu Apr 30, 2020 7:06 pm

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
Attachments
forum.PNG
example of .res
forum.PNG (6.7 KiB) Viewed 2005 times
w00p
 
Posts: 1
Joined: Thu Dec 19, 2013 3:57 pm

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

Postby Clenda » Tue May 05, 2020 12:07 pm

Hello,

I use this tool, but it's seem's that a compiled version is no longer disponible :
viewtopic.php?f=49&t=57708&hilit=Resource+tool
User avatar
Clenda
 
Posts: 43
Joined: Sat Mar 11, 2017 9:41 pm

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

Postby talon00302 » Tue May 05, 2020 11:39 pm

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.
User avatar
talon00302
 
Posts: 481
Joined: Sun Apr 15, 2012 8:30 pm

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

Postby Kuddie » Wed May 06, 2020 3:31 am

Clenda wrote:Hello,

I use this tool, but it's seem's that a compiled version is no longer disponible :
viewtopic.php?f=49&t=57708&hilit=Resource+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!
Kuddie
 
Posts: 63
Joined: Tue May 22, 2012 2:24 pm

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

Postby Clenda » Thu May 14, 2020 10:26 am

here is a temporary link to the tools

https://we.tl/t-MhFDcDIEjy (one week left)
User avatar
Clenda
 
Posts: 43
Joined: Sat Mar 11, 2017 9:41 pm

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

Postby Kuddie » Thu May 14, 2020 3:04 pm

Clenda wrote:here is a temporary link to the tools

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


Nice!

Thank you for compiling this.
Kuddie
 
Posts: 63
Joined: Tue May 22, 2012 2:24 pm


Return to The Wizards' Tower

Who is online

Users browsing this forum: Naylok and 90 guests