How To: Images in Trade Posts

Forum for In-Game trades and deals.

How To: Images in Trade Posts

Postby TotalyMeow » Tue Jul 01, 2014 9:07 pm

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
Community Manager for Mortal Moments Inc.

Icon wrote:This isn't Farmville with fighting, its Mortal Kombat with corn.
User avatar
TotalyMeow
Site Admin
 
Posts: 3682
Joined: Thu Jun 05, 2014 8:14 pm

Re: How To: Images in Trade Posts

Postby Kardo » Tue Jul 01, 2014 9:31 pm

Kardo
 
Posts: 69
Joined: Sat Feb 22, 2014 9:30 am

Re: How To: Images in Trade Posts

Postby TotalyMeow » Tue Jul 01, 2014 11:25 pm

Kardo wrote:Image by example, doesnt work


It works, you just had a typo.
Community Manager for Mortal Moments Inc.

Icon wrote:This isn't Farmville with fighting, its Mortal Kombat with corn.
User avatar
TotalyMeow
Site Admin
 
Posts: 3682
Joined: Thu Jun 05, 2014 8:14 pm

Re: How To: Images in Trade Posts

Postby loftar » Tue Jul 01, 2014 11:33 pm

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". :)
User avatar
loftar
 
Posts: 1017
Joined: Sun Jul 08, 2012 7:32 am
Location: In your character database, shuffling bits

Re: How To: Images in Trade Posts

Postby Kardo » Tue Jul 01, 2014 11:45 pm

mineralogical survey, nine mens morris dont work on me..
Kardo
 
Posts: 69
Joined: Sat Feb 22, 2014 9:30 am

Re: How To: Images in Trade Posts

Postby TotalyMeow » Wed Jul 02, 2014 12:08 am

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.
Community Manager for Mortal Moments Inc.

Icon wrote:This isn't Farmville with fighting, its Mortal Kombat with corn.
User avatar
TotalyMeow
Site Admin
 
Posts: 3682
Joined: Thu Jun 05, 2014 8:14 pm

Re: How To: Images in Trade Posts

Postby Champie » Wed Jul 02, 2014 12:17 am

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
User avatar
Champie
 
Posts: 825
Joined: Sun Nov 11, 2012 7:24 pm

Re: How To: Images in Trade Posts

Postby dinoxx7xx » Sat Jul 05, 2014 7:10 pm

branch
You will always remember this as the day you almost caught Captain Jack Sparrow
- Captain Jack Sparrow-
User avatar
dinoxx7xx
 
Posts: 464
Joined: Tue Mar 04, 2014 11:25 pm

Re: How To: Images in Trade Posts

Postby Murphy » Sat Jul 05, 2014 10:55 pm

dinoxx7xx wrote:branch



herbs/waxingtoadstool
User avatar
Murphy
 
Posts: 409
Joined: Tue Oct 09, 2012 6:21 am

Re: How To: Images in Trade Posts

Postby Yasso » Sun Jul 06, 2014 5:02 am

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.
Yasso
 
Posts: 416
Joined: Wed Aug 01, 2012 2:00 pm

Next

Return to The Trade-Wind

Who is online

Users browsing this forum: No registered users and 6 guests