Here's the bash script I use.
It should be pretty straight forward.
You need ImageMagick installed from
http://www.imagemagick.orgit most likely have a package for Ubuntu already to go.
After a bunch of trial and errors I settled on the Helsinki font:
https://www.fontsquirrel.com/fonts/helsinki which shows nicely on the wheel.
You can replace it with whatever you want.
It put the create wheels in wheel-missing folder as to not mess with the real ones. You need to add that folder to your emulator's configuration.
Let me know if you have any questions running it.
#!/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.