Attract-Mode Support Forum
Attract-Mode Support => General => Topic started by: abert on May 05, 2017, 11:45:39 PM
-
Latest version of Attract Mode and I'm having some issues scraping metadata (Maker, year, game info, etc.)
I have the History plugin working just fine using a history.dat, and unless I'm confused I need to scrape for the metadata I want. I've restricted the scraper to "overview" only, but the output list it writes is devoid of any actual game information.
Am I confused? Is there a better way to get this data?
pi@arcade:~ $ grep -i "scrape" ~/RetroPie/attract/attract.cfg
scrape_snaps no
scrape_marquees no
scrape_flyers no
scrape_wheels no
scrape_fanart no
scrape_videos no
scrape_overview yes
pi@arcade:~ $ attract -s mame -c ~/RetroPie/attract -i ~/RetroPie/attract/romlists/mame.txt
*** Scraping artwork for: mame
- scraping thegamesdb.net...
*** Scraping done.
*** Importing Collection/Rom List: /home/pi/RetroPie/attract/romlists/mame.txt
[Import /home/pi/RetroPie/attract/romlists/mame.txt] - Imported 4721 entries.
- Removing any duplicate entries...
+ Writing 4721 entries to: /home/pi/RetroPie/attract/romlists/multi.txt
pi@arcade:~ $ more /home/pi/RetroPie/attract/romlists/multi.txt
#Name;Title;Emulator;CloneOf;Year;Manufacturer;Category;Players;Rotation;Control;Status;DisplayCount;DisplayType;AltRomname;AltTitle;Extra;Buttons
005;005;mame;;;;;;;;;;;;;;
1941;1941;mame;;;;;;;;;;;;;;
1941j;1941j;mame;;;;;;;;;;;;;;
1942;1942;mame;;;;;;;;;;;;;;
1942a;1942a;mame;;;;;;;;;;;;;;
1942b;1942b;mame;;;;;;;;;;;;;;
1943;1943;mame;;;;;;;;;;;;;;
etc.
-
You need generate a mame.xml file to get the data you want.
My advice is to download a current version of MAME for Windows here http://mamedev.org/release.html. Install it and go to the command line and change to the folder where you installed mame and run "mame64.exe -listxml > mame.xml". Create a /home/pi/.attract/extras folder on the Pi. Copy the mame.xml file from your Windows machine to your Pi /home/pi/.attract/extras folder. You should also download the catver.ini, nplayers.ini and controls.ini files from the web and place them in the /home/pi/.attract/extras folder to get the most complete data in your romlist.
Next you need these lines in your Attract-Mode mame.cfg emulator file
system Arcade
info_source
import_extras ./extras/mame.xml;./extras/catver.ini;./extras/nplayers.ini;./extras/controls.ini
Once this is done regenerate the mame romlist and you should have the names and information you want.
-
Did some reading to better understand those files, what they contain, and how they worked together made perfect sense in the context of generating a romlist.
Romlist built with all the info I could ever ask for.
Thanks very much for your advice!