Page 1 of 2

Item Images

PostPosted: Mon Nov 26, 2012 5:12 pm
by Okocim
where can i find salem item images? It's probably somewhere in res files but i can't find it.
Could someone help?

Re: Item Images

PostPosted: Mon Nov 26, 2012 5:47 pm
by Procne
I assume those are files in \res\gfx\invobjs from salem-res.jar file. Do you have some tool to extract image files from .res?

Re: Item Images

PostPosted: Mon Nov 26, 2012 6:08 pm
by Slander
I'm interested in finding a way to obtain the item images as well. I assume it would require a program like Visual Studio to open the RES files.

Re: Item Images

PostPosted: Mon Nov 26, 2012 8:22 pm
by Okocim
Procne wrote:I assume those are files in \res\gfx\invobjs from salem-res.jar file. Do you have some tool to extract image files from .res?

Somehow i found u very helpful ;p iv finaly got the images ;]
I will write HowTo soon ;p

Re: Item Images

PostPosted: Mon Nov 26, 2012 10:18 pm
by Ass_Kraken
Boshaw also made a tool to extract the image files a long time ago, but if you found a way to do it I won't bother looking for it.

Re: Item Images

PostPosted: Mon Nov 26, 2012 11:33 pm
by MagicManICT
Ass_Kraken wrote:Boshaw also made a tool to extract the image files a long time ago, but if you found a way to do it I won't bother looking for it.


There's a couple of ways. Seems like there's an addon for Eclipse or NetBeans one that will let you unpack a .jar file. Boshaw's utility was handy as it is completely standalone. (If anyone wants to dig it up, you should be able find it on the Haven and Hearth forums if you search for something like "Salem resource tool".)

Re: Item Images

PostPosted: Mon Nov 26, 2012 11:50 pm
by Procne
You don't even need eclipse, java alone is enough with jar utility. Google for "jar xf"

Boshaw's utility (http://odditown.taggedup.com/boshaw/Lay ... salem.html) is not completely standalone as it's distributed as source and you need commonLisp SDK to compile it

edit: looks like there was precompiled version in this thread http://www.havenandhearth.com/forum/vie ... 27&t=23458
However it looks like it was done with java 7, and my java 6 won't touch that. No way I'm installing java 7 :P

Re: Item Images

PostPosted: Tue Nov 27, 2012 2:21 pm
by Okocim
HowTo:
1. You need the salem-res.jar file
http://plymouth.seatribe.se/java/salem-res.jar
2. Extract it with (for example using WinRar or 7zip)
3. Download Res Tool http://haven-client.googlecode.com/file ... til_v5.jar (I found it here: http://www.havenandhearth.com/forum/vie ... =27&t=5853)
4. Put ResTool in the same folder where u have unpacked salem-res.jar.
5. Double Click on ResTool Select "extract" and hit ok
6. Wait for efects ;] Everything should apear in "out" folder

Re: Item Images

PostPosted: Tue Nov 27, 2012 2:25 pm
by Chiprel
Don't forget about cached files. Not everything is in salem-res :P

Re: Item Images

PostPosted: Tue Nov 27, 2012 2:30 pm
by Procne
There are 2 resource files:
salem-res.jar
builtin-res.jar

Cache consists of those files downloaded to your HDD, so that you don't have to download them every time you play


Okocim wrote:HowTo:
1. You need the salem-res.jar file
http://plymouth.seatribe.se/java/salem-res.jar
2. Extract it with (for example using WinRar or 7zip)
3. Download Res Tool http://haven-client.googlecode.com/file ... til_v5.jar (I found it here: http://www.havenandhearth.com/forum/vie ... =27&t=5853)
4. Put ResTool in the same folder where u have unpacked salem-res.jar.
5. Double Click on ResTool Select "extract" and hit ok
6. Wait for efects ;] Everything should apear in "out" folder


Works nicely, thanks