How to Post an Image from the Game
There are two ways to post an item image from the Salem server in the forums. First, Loftar set up a nice bbcode you can use:
loftar wrote:FYI, I added a BBcode shorthand to link to item images for your perusal. You can use it e.g. like this:
- Code: Select all
[item]branch[/item]
- Code: Select all
[item]herbs/waxingtoadstool[/item]
It uses the resource name of the item in question, so you'll need to know it to use it, but I'm sure you'll have no great trouble.
The rest of the thread can be found HERE.
You can also link to the server image directly at http://game.salemthegame.com/mt/r/.
- Code: Select all
[img]http://game.salemthegame.com/mt/r/gfx/invobjs/branch[/img]
- Code: Select all
[img]http://game.salemthegame.com/mt/r/gfx/invobjs/herbs/waxingtoadstool[/img]
How to Find the Image in the First Place
To post an image, you need to know the name of the image the server uses. There are two places in your Salem folders you can find the names of the images you need.
First, you can use the cache. C:\Users\<yourname>\.salem\cache\res\ You will see folders gfx, lib, paginae, sfx, ui. All of your inventory object pictures are in gfx/invobjs. If you want to find the picture for a copper bar, you look in C:\Users\<yourname>\.salem\cache\res\gfx\invobjs and find a file named "bar-copper.cached". That looks like the one.
Post it using
- Code: Select all
[item]bar-copper[/item]
or test to be sure it's the one you are looking for by going to the link http://game.salemthegame.com/mt/r/gfx/invobjs/bar-copper
The cache file is easy to find and doesn't require you to mess with any jar file. However, it is limited to only objects you have looked at in game. If you've never seen, for example, Adventurer's Pants, you won't find adventurerspants.cached in your cache file, but you can always try guessing the name of a thing and using the server link to check.
The second way to find an image's name is to look in the Salem jar file. It contains the full listing of items, so if you've never seen an item in game and are having trouble guessing, you should still be able to find it in here. Go to C:\Users\<yourname>\Salem\bin and find the file called salem-res. Open with WinRAR or some other program that allows you to browse the contents; do not open with Java. Inside you'll find the same structure as in the cache folder: gfx, lib, paginae, sfx, ui. Again, all the inventory object pictures are in gfx/invobjs. If you want to find the picture for oat flour, open salem-res.jar\res\gfx\invobjs and find a file named "flour0.res". That looks like the one.
Post it using
- Code: Select all
[item]flour0[/item]
or test to be sure it's the one you are looking for by going to the link http://game.salemthegame.com/mt/r/gfx/invobjs/flour0