Author Topic: Per-rom snapshot path with zsnes?  (Read 1168 times)

Bgoulette

  • Full Member
  • ***
  • Posts: 61
    • View Profile
Per-rom snapshot path with zsnes?
« on: December 03, 2015, 02:50:42 PM »
Hi all,

Because I wanted something that actually worked with AM, I ditched higan and am now using zsnes for Super NES emulation. I'm curious to know, though, if there's a way to set up zsnes to store snapshots from a given rom in a rom-specific folder. For example, I have it set to just save whatever in a "snap" folder off my zsnes folder; creatively enough, it looks like this: "zsnes\snap\" :)

Within zsnes, can I do something that has the functional equivalent of, say:

zsnes\snap\[romfilename]

What I've done for my mame titles is run the game, grab a snap of the title screen, and that's what shows up in my layouts. I'd like to do something similar with zsnes. I can set it up manually if necessary, but, well, I don't wanna! :P I guess this is my long-winded way of asking if there's any kind of "token" I could use?

Is this possible? Or am I barking up the wrong snorkel? Thanks!

hermine.potter

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
Re: Per-rom snapshot path with zsnes?
« Reply #1 on: December 04, 2015, 01:20:33 AM »
1) scraper AM
AM offers his own scraper. So actually you don't need import snaps and so on by hand.
start AM > TAB > Emulators > zsnes > Enter path for flyer, snap and so on > Scrape Artwork

This is my config of zsnes:
Code: [Select]
# Generated by Attract-Mode 1.6.0
#
executable           C:\attract\EMU\zsnes\zsnesw.exe
args                 -m "[romfilename]"
rompath              C:\attract\EMU\zsnes\roms
romext               .smc
system               Super Nintendo (SNES)
info_source          thegamesdb.net
artwork    flyer           C:\attract\scraper\zsnes\flyer
artwork    marquee         C:\attract\scraper\zsnes\marquee
artwork    snap            C:\attract\scraper\zsnes\videos;C:\attract\scraper\zsnes\flyer
artwork    wheel           C:\attract\scraper\zsnes\flyer

NOTE: Sometimes the scraper downloads a cover, but doesn's show it in AM.
solution: resize image to 1000 x 697

2) Own screenshots in zsnes:
It's a litte bit tricky

-Start zsnes > MISC : MISC KEYS > Set a button for 'SNAPSHOT'
-CONFIG : OPTIONS > set SSHOTS: PNG
-CONFIG : PATHS > set flyer-folder to AM-flyer-folder : C:\attract\scraper\zsnes\flyer

Start game, take with your button a screenshot and look at scraper-flyer-folder of AM

If your rom-file is labeled like this 'game-123 (E).smc' you will get now there a screenshot 'game-123 (E)_00000.png'

So I've created a batch-file, that renames all png-screenshot from xyz (E)_12345.png to xyz (E).png:
Code: [Select]
@echo off
for %%i in ("*.png") do @for /f "delims=_ tokens=1" %%j in ("%%i") do ren "%%i" "%%j.png"

AM Version : 2.4.0
Input : Mad Catz Brawlstick; Mouse; Keyboard; Xbox360 Wireless
Cabinet : Yes
OS : WindowsXP x86 SP3
System : Dell Precision T3500 ; Intel X5650 ; 4GB RAM
Emulators : zsnes; mame; dosbox; scummvm; bsnes; fusion; openbor; windows_games; winuae; video; flashgames; vice; visualboy