1
General / Re: thegamesdb.net
« on: November 19, 2018, 07:14:01 AM »
Nevermind I just saw that the latest was 2.5.1 Got to bug the maintainer to update the repo.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#!/bin/bash
if [ "$1" == "" ]; then
echo Usage $0 [emulator]
exit 1
fi
if [ ! -d "$HOME/.attract/scraper/$1" ]; then
echo ERROR: no \"$1\" emulator found in ~/.attract/scraper/
exit 2
fi
echo Create missing wheel artwork if one is missing in $1
OldIFS=$IFS
IFS=$'\n'
gamesArray=($(cat "$HOME/.attract/romlists/$1.txt"))
numberWheel=0
numberGames=0
for gameData in ${gamesArray[@]}; do
IFS=';'; gameInfo=($gameData); unset IFS;
#Name;Title;Emulator;CloneOf;Year;Manufacturer;Category;Players;Rotation;Control;Status;DisplayCount;DisplayType;AltRomname;AltTitle;Extra;Buttons
#echo game=\"${gameInfo[0]}\", title=\"${gameInfo[1]}\", year=\"${gameInfo[4]}\", clone=\"${gameInfo[3]}\", rotation=\"${gameInfo[8]}\", category=\"${gameInfo[6]}\", status=\"${gameInfo[10]}\"
game=${gameInfo[0]}
title="${gameInfo[1]}"
if [[ "${game}" == "#"* ]]; then
continue
fi
if [ "${gameInfo[3]}" != "" ]; then
echo game=\"${gameInfo[0]}\", title=\"${gameInfo[1]}\", year=\"${gameInfo[4]}\", clone=\"${gameInfo[3]}\", rotation=\"${gameInfo[8]}\", category=\"${gameInfo[6]}\", status=\"${gameInfo[10]}\"
fi
let "numberGames = numberGames + 1"
if [[ ! -f "./wheel/${game}.png" ]] && [[ ! -f ~/.attract/scraper/$1/wheel/${game}.png ]]; then
if [ ! -d "$HOME/.attract/scraper/$1/wheel-missing" ]; then
echo Creating folder for missing wheels for $1
mkdir "$HOME/.attract/scraper/$1/wheel-missing"
fi
wheel="$HOME/.attract/scraper/$1/wheel-missing/${game}.png"
echo Creating \"${wheel}\" for \"${gameInfo[0]}\": \"${gameInfo[1]}\" from ${gameInfo[4]}
convert -size 400x150 -background transparent -fill yellow -stroke black -strokewidth 3 -gravity center -font Helsinki caption:"${title}" png8:"${wheel}"
let "numberWheel = numberWheel + 1"
fi
done
IFS=${OldIFS}
echo Created ${numberWheel} wheels for ${numberGames} games.
echo Done.
filter All
rule Title not_equals "Super Mario Bros. \(Japan, USA\)"
orfilter All
rule Title not_equals "Super Mario Bros\. \(Japan, USA\)"
Sorry I can't test this ATM.
filter All
rule Title not_equals "Super Mario Bros. (Japan, USA)"
cmd
then go to the folder where you have Attract-Mode installed by typing in the cmd window:cd [c:\the\path\to\AttractMode\]
(replace the path with the real one on your computer.)attract --build-romlist mame --full
and it'll create you the list.attract --build-romlist mame --full
Also make sure to add the path to catver.ini in your mame emulator settings so you can then do cool filters in AM.# Generated by Attract-Mode v2.1.0
#
executable ../mame/mame64.exe
args [name]
rompath ../mame/roms/
romext .zip;.7z;<DIR>
system Arcade
info_source listxml
import_extras ../mame/catver.ini
artwork flyer
artwork marquee ../mame/marquees
artwork snap ../mame/videos/videosnaps;../mame/snap
artwork wheel ../mame/wheel
If you don't care about the console window at all (handy for debugging sometimes), do this:That might be simpler to hide the console.
In attract.cfg, in the general section: change hide_console from no to yes.