Page 1 of 6

How To: Images in Trade Posts

PostPosted: Tue Jul 01, 2014 9:07 pm
by TotalyMeow
I've had a PM or two asking me how to find item images and put them in trade threads. I think a thread explaining it to the new traders is in order.

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:

branch
Code: Select all
[item]branch[/item]


herbs/waxingtoadstool
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/.

Image
Code: Select all
[img]http://game.salemthegame.com/mt/r/gfx/invobjs/branch[/img]


Image
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]
bar-copper
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]
flour0
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

Re: How To: Images in Trade Posts

PostPosted: Tue Jul 01, 2014 9:31 pm
by Kardo

Re: How To: Images in Trade Posts

PostPosted: Tue Jul 01, 2014 11:25 pm
by TotalyMeow
Kardo wrote:Image by example, doesnt work


It works, you just had a typo.

Re: How To: Images in Trade Posts

PostPosted: Tue Jul 01, 2014 11:33 pm
by loftar
TotalyMeow wrote:You can also link to the server image directly at http://game.salemthegame.com/mt/r/.

For the record, that's precisely what the BBcode does, so it's not really "also". :)

Re: How To: Images in Trade Posts

PostPosted: Tue Jul 01, 2014 11:45 pm
by Kardo
mineralogical survey, nine mens morris dont work on me..

Re: How To: Images in Trade Posts

PostPosted: Wed Jul 02, 2014 12:08 am
by TotalyMeow
loftar wrote:
TotalyMeow wrote:You can also link to the server image directly at http://game.salemthegame.com/mt/r/.

For the record, that's precisely what the BBcode does, so it's not really "also". :)


True. I mainly included the link for those who want to check they have the name right that way instead of previewing their post over and over.

Re: How To: Images in Trade Posts

PostPosted: Wed Jul 02, 2014 12:17 am
by Champie
Kardo wrote:mineralogical survey, nine mens morris dont work on me..


Code: Select all
[img]http://game.salemthegame.com/mt/r/gfx/invobjs/ninemanmorris[/img]
[item]ninemanmorris[/item]

ninemanmorris Nine Men's Morris

Code: Select all
[img]http://game.salemthegame.com/mt/r/gfx/invobjs/minsurv[/img]
[item]minsurv[/item]

minsurv Mineralogical Survey

Re: How To: Images in Trade Posts

PostPosted: Sat Jul 05, 2014 7:10 pm
by dinoxx7xx
branch

Re: How To: Images in Trade Posts

PostPosted: Sat Jul 05, 2014 10:55 pm
by Murphy
dinoxx7xx wrote:branch



herbs/waxingtoadstool

Re: How To: Images in Trade Posts

PostPosted: Sun Jul 06, 2014 5:02 am
by Yasso
I have used those pretty extensively, i have to tell u the naming of the items isn't really regular, some things are named in different ways than others, just keep testing out on the link till it works. You could refer to my trade thread for item names.