Feature - Implemented Scrape image names for items, add to data files, add proxy field

Bale

Minion
For all of the above types it could apply to, having an "image" field would have uses, especially in writing relay scripts. There are several maps on the Map Manager simply matching image names to a subset of a data type, which could be eliminated if the image name were accessible this way.

We don't save item image names. We could easily scrape them from the item description.

Make a feature request to do said scraping, add it to the data files, somewhere, and make an item proxy field to retrieve it.

Feature Request made!
 

zarqon

Well-known member
Just in case this helps, api.php includes a field for image name, if you're inquiring about an item. I'm not sure how mafia generates its data overrides, but if mafia isn't already doing this it might provide more information than whatever the current method for gathering unknown item info is.
 

Veracity

Developer
Staff member
We get the info by looking up the item description. api.php gives us the descid for items in inventory/closet/storage (since those are the only ones it will let you look up). Needless to say, the item description also has the image.

The "scraping" to be done here will involve looking up every item description and extracting the item image. Easy enough, and gives the image for every single item. I'm thinking of adding a field to itemdesc.txt. Probably in position 3, pushing the plural out to position 4.
 
Top