finally figured out how order mini-attract assets properly

This commit is contained in:
4am
2025-01-11 12:28:07 -05:00
parent ff899b573b
commit 4e1e6c1be1
181 changed files with 235 additions and 209 deletions
+53 -27
View File
@@ -2,6 +2,41 @@
# run from project root directory
shrs=$(mktemp)
cat res/SS/SHR*.CONF |
tr -d "\r" |
sort |
uniq >> "$shrs"
dhgrs=$(mktemp)
cat res/SS/ACTDHGR*.CONF |
tr -d "\r" |
sort |
uniq >> "$dhgrs"
hgrs=$(mktemp)
cat res/SS/ACTION*.CONF |
tr -d "\r" |
sort |
uniq >> "$hgrs"
grs=$(mktemp)
cat res/SS/ACTGR*.CONF |
tr -d "\r" |
sort |
uniq >> "$grs"
dgrs=$(mktemp)
cat res/SS/ACTDGR*.CONF |
tr -d "\r" |
sort |
uniq >> "$dgrs"
demos=$(mktemp)
cat res/ATTRACT.CONF |
tr -d "\r" |
grep "=0$" >> "$demos"
cat res/GAMES.CONF |
tr -d "\r" |
grep "," |
@@ -13,53 +48,37 @@ cat res/GAMES.CONF |
echo -e "#\n# Attract mode for $game\n# This file is automatically generated\n#\n" > /tmp/g
# add box art, if any
cat res/SS/SHR*.CONF |
tr -d "\r" |
cat "$shrs" |
egrep "(^|=)""$game""$" |
cut -d"=" -f1 |
sed -e "s/$/=C/g" |
sort |
uniq >> /tmp/g
sed -e "s/$/=C/g" >> /tmp/g
# add DHGR action screenshots, if any
cat res/SS/ACTDHGR*.CONF |
tr -d "\r" |
cat "$dhgrs" |
egrep "(^|=)""$game""$" |
cut -d"=" -f1 |
sed -e "s/$/=B/g" |
sort |
uniq >> /tmp/g
sed -e "s/$/=B/g" >> /tmp/g
# add HGR action screenshots, if any
cat res/SS/ACTION*.CONF |
tr -d "\r" |
cat "$hgrs" |
egrep "(^|=)""$game""$" |
cut -d"=" -f1 |
sed -e "s/$/=A/g" |
sort |
uniq >> /tmp/g
sed -e "s/$/=A/g" >> /tmp/g
# add GR action screenshots, if any
cat res/SS/ACTGR*.CONF |
tr -d "\r" |
cat "$grs" |
egrep "(^|=)""$game""$" |
cut -d"=" -f1 |
sed -e "s/$/=D/g" |
sort |
uniq >> /tmp/g
sed -e "s/$/=D/g" >> /tmp/g
# add DGR action screenshots, if any
cat res/SS/ACTDGR*.CONF |
tr -d "\r" |
cat "$dgrs" |
egrep "(^|=)""$game""$" |
cut -d"=" -f1 |
sed -e "s/$/=E/g" |
sort |
uniq >> /tmp/g
sed -e "s/$/=E/g" >> /tmp/g
# add self-running demo, if any
cat res/ATTRACT.CONF |
tr -d "\r" |
cat "$demos" |
grep "^$game=0" >> /tmp/g
if [ "$game" == "SPARE.CHANGE" ]; then
@@ -76,3 +95,10 @@ cat res/GAMES.CONF |
# clean up
rm /tmp/g
done
rm "$demos"
rm "$dgrs"
rm "$grs"
rm "$hgrs"
rm "$dhgrs"
rm "$shrs"
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
AERIAL2=A
AERIAL=A
AERIAL2=A
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
AERONAUTS2=A
AERONAUTS=A
AERONAUTS2=A
+1 -1
View File
@@ -4,6 +4,6 @@
#
AGENT.U.S.A=C
AGENT.U.S.A2=A
AGENT.U.S.A=A
AGENT.U.S.A2=A
AGENT.U.S.A=0
+1 -1
View File
@@ -4,6 +4,6 @@
#
AIRHEART=C
AIRHEART=B
AIRHEART2=B
AIRHEART3=B
AIRHEART=B
+1 -1
View File
@@ -4,5 +4,5 @@
#
ALF=C
ALF2=A
ALF=A
ALF2=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
ALIEN.LANDER=C
ALIEN.LANDER2=A
ALIEN.LANDER=A
ALIEN.LANDER2=A
+1 -1
View File
@@ -4,7 +4,7 @@
#
ALIEN.TYPHOON=C
ALIEN.TYPHOON=A
ALIEN.TYPHOON2=A
ALIEN.TYPHOON3=A
ALIEN.TYPHOON=A
ALIEN.TYPHOON=0
+1 -1
View File
@@ -4,5 +4,5 @@
#
ALIENS=C
ALIENS2=B
ALIENS=B
ALIENS2=B
+1 -1
View File
@@ -4,6 +4,7 @@
#
ANKH=C
ANKH=A
ANKH02=A
ANKH03=A
ANKH04=A
@@ -13,4 +14,3 @@ ANKH07=A
ANKH08=A
ANKH09=A
ANKH10=A
ANKH=A
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
ANTIAIR2=A
ANTIAIR=A
ANTIAIR2=A
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
APPLZ2=A
APPLZ=A
APPLZ2=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
ARCHON=C
ARCHON2=A
ARCHON=A
ARCHON2=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
ARTESIANS=C
ARTESIANS2=A
ARTESIANS=A
ARTESIANS2=A
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
ASCEND2=A
ASCEND=A
ASCEND2=A
+1 -1
View File
@@ -4,9 +4,9 @@
#
AXIS.ASSASSIN=C
AXIS.ASSASSIN=A
AXIS.ASSASSIN2=A
AXIS.ASSASSIN3=A
AXIS.ASSASSIN4=A
AXIS.ASSASSIN5=A
AXIS.ASSASSIN=A
AXIS.ASSASSIN=0
+1 -1
View File
@@ -4,6 +4,6 @@
#
AZTEC=C
AZTEC=A
AZTEC2=A
AZTEC3=A
AZTEC=A
+1 -1
View File
@@ -4,6 +4,6 @@
#
BAD.DUDES=C
BAD.DUDES=B
BAD.DUDES2=B
BAD.DUDES3=B
BAD.DUDES=B
+1 -1
View File
@@ -4,5 +4,5 @@
#
BANDITS=C
BANDITS2=A
BANDITS=A
BANDITS2=A
+1 -1
View File
@@ -4,8 +4,8 @@
#
BATMAN=C
BATMAN=B
BATMAN2=B
BATMAN3=B
BATMAN4=B
BATMAN5=B
BATMAN=B
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
BATTLOT2=A
BATTLOT=A
BATTLOT2=A
+1 -1
View File
@@ -4,6 +4,6 @@
#
BEZARE=C
BEZARE=A
BEZARE2=A
BEZARE3=A
BEZARE=A
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
BEZOFF2=A
BEZOFF=A
BEZOFF2=A
+1 -1
View File
@@ -4,6 +4,6 @@
#
BLACK.MAGIC=C
BLACK.MAGIC=A
BLACK.MAGIC2=A
BLACK.MAGIC3=A
BLACK.MAGIC=A
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
BOOTSKELL2=A
BOOTSKELL=A
BOOTSKELL2=A
+1 -1
View File
@@ -4,6 +4,6 @@
#
BOULDER.DASH=C
BOULDER.DASH=A
BOULDER.DASH2=A
BOULDER.DASH3=A
BOULDER.DASH=A
+1 -1
View File
@@ -4,6 +4,6 @@
#
BR=C
BR=A
BR2=A
BR3=A
BR=A
+1 -1
View File
@@ -4,6 +4,6 @@
#
BW=C
BW=A
BW2=A
BW3=A
BW=A
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
CACORM2=A
CACORM=A
CACORM2=A
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
CALI.RAISINS2=A
CALI.RAISINS=A
CALI.RAISINS2=A
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
CATACOMBS2=B
CATACOMBS=B
CATACOMBS2=B
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
CAVIT2=A
CAVIT=A
CAVIT2=A
+1 -1
View File
@@ -4,9 +4,9 @@
#
CHIVALRY=C
CHIVALRY=A
CHIVALRY2=A
CHIVALRY3=A
CHIVALRY4=A
CHIVALRY5=A
CHIVALRY6=A
CHIVALRY=A
+1 -1
View File
@@ -3,8 +3,8 @@
# This file is automatically generated
#
CHRONO.WARRIOR=A
CHRONO.WARRIOR2=A
CHRONO.WARRIOR3=A
CHRONO.WARRIOR4=A
CHRONO.WARRIOR5=A
CHRONO.WARRIOR=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
COLUMNS=B
COLUMNS2=A
COLUMNS=A
COLUMNS2=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
COSMIC.COMBAT=C
COSMIC.COMBAT2=A
COSMIC.COMBAT=A
COSMIC.COMBAT2=A
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
CQ2=A
CQ=A
CQ2=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
CR=C
CR2=A
CR=A
CR2=A
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
CRACKY2=A
CRACKY=A
CRACKY2=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
CRICKATEER=C
CRICKATEER2=A
CRICKATEER=A
CRICKATEER2=A
+1 -1
View File
@@ -3,6 +3,6 @@
# This file is automatically generated
#
CROSSBOW=B
CROSSBOW2=B
CROSSBOW3=B
CROSSBOW=B
+1 -1
View File
@@ -3,6 +3,6 @@
# This file is automatically generated
#
CS=A
CS2=A
CS3=A
CS=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
CUBIT=C
CUBIT2=A
CUBIT=A
CUBIT2=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
CV=C
CV2=A
CV=A
CV2=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
CW=C
CW2=A
CW=A
CW2=A
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
DAWN.TREADER2=A
DAWN.TREADER=A
DAWN.TREADER2=A
+1 -1
View File
@@ -3,9 +3,9 @@
# This file is automatically generated
#
DD.GOES.NUTZ=B
DD.GOES.NUTZ10=B
DD.GOES.NUTZ2=B
DD.GOES.NUTZ4=B
DD.GOES.NUTZ6=B
DD.GOES.NUTZ8=B
DD.GOES.NUTZ=B
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
DD.RETURNS2=B
DD.RETURNS=B
DD.RETURNS2=B
+1 -1
View File
@@ -4,7 +4,7 @@
#
DEATH.SWORD=C
DEATH.SWORD=B
DEATH.SWORD2=B
DEATH.SWORD3=B
DEATH.SWORD4=B
DEATH.SWORD=B
+1 -1
View File
@@ -4,6 +4,6 @@
#
DEEP.SPACE=C
DEEP.SPACE=A
DEEP.SPACE2=A
DEEP.SPACE3=A
DEEP.SPACE=A
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
DEMONIC.DECKS2=A
DEMONIC.DECKS=A
DEMONIC.DECKS2=A
+1 -1
View File
@@ -4,6 +4,6 @@
#
DIAMOND.MINE=C
DIAMOND.MINE=A
DIAMOND.MINE2=A
DIAMOND.MINE3=A
DIAMOND.MINE=A
+1 -1
View File
@@ -3,7 +3,7 @@
# This file is automatically generated
#
DJ=A
DJ2=A
DJ3=A
DJ4=A
DJ=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
DONKEY.KONG=C
DONKEY.KONG2=A
DONKEY.KONG=A
DONKEY.KONG2=A
+1 -1
View File
@@ -4,6 +4,6 @@
#
DROL=C
DROL=A
DROL2=A
DROL3=A
DROL=A
+1 -1
View File
@@ -4,7 +4,7 @@
#
DUNG.BEETLES=C
DUNG.BEETLES=A
DUNG.BEETLES2=A
DUNG.BEETLES3=A
DUNG.BEETLES=A
DUNG.BEETLES=0
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
ETHER.QUEST2=B
ETHER.QUEST=B
ETHER.QUEST2=B
+1 -1
View File
@@ -4,6 +4,6 @@
#
FALCONS=C
FALCONS.SCORE=A
FALCONS=A
FALCONS.SCORE=A
FALCONS=0
+1 -1
View File
@@ -4,6 +4,6 @@
#
FIREBIRD=C
FIREBIRD2=A
FIREBIRD=A
FIREBIRD2=A
FIREBIRD=0
+1 -1
View File
@@ -4,6 +4,6 @@
#
FIREBUG=C
FIREBUG2=D
FIREBUG=D
FIREBUG2=D
FIREBUG=0
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
FLAPPLE.BIRD2=E
FLAPPLE.BIRD=E
FLAPPLE.BIRD2=E
+1 -1
View File
@@ -4,5 +4,5 @@
#
FLY.WARS=C
FLY.WARS2=A
FLY.WARS=A
FLY.WARS2=A
+1 -1
View File
@@ -4,7 +4,7 @@
#
FORCE.7=C
FORCE.7=A
FORCE.72=A
FORCE.73=A
FORCE.74=A
FORCE.7=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
FREE.FALL=C
FREE.FALL2=A
FREE.FALL=A
FREE.FALL2=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
FROGGER=C
FROGGER2=A
FROGGER=A
FROGGER2=A
+1 -1
View File
@@ -4,6 +4,6 @@
#
G.I.JOE=C
G.I.JOE=A
G.I.JOE2=A
G.I.JOE3=A
G.I.JOE=A
+1 -1
View File
@@ -3,6 +3,6 @@
# This file is automatically generated
#
GADGETZ=A
GADGETZ2=A
GADGETZ3=A
GADGETZ=A
+1 -1
View File
@@ -4,9 +4,9 @@
#
GAMMA.GOBLINS=C
GAMMA.GOBLINS=A
GAMMA.GOBLINS2=A
GAMMA.GOBLINS3=A
GAMMA.GOBLINS4=A
GAMMA.GOBLINS5=A
GAMMA.GOBLINS=A
GAMMA.GOBLINS=0
+1 -1
View File
@@ -4,6 +4,6 @@
#
GAUNTLET=C
GAUNTLET=A
GAUNTLET2=A
GAUNTLET3=A
GAUNTLET=A
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
GB.TETRIS2=A
GB.TETRIS=A
GB.TETRIS2=A
+1 -1
View File
@@ -4,8 +4,8 @@
#
GHOSTBUSTERS=C
GHOSTBUSTERS=A
GHOSTBUSTERS2=A
GHOSTBUSTERS3=A
GHOSTBUSTERS4=A
GHOSTBUSTERS5=A
GHOSTBUSTERS=A
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
GLUTTON2=A
GLUTTON=A
GLUTTON2=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
GRAPPLE=C
GRAPPLE2=A
GRAPPLE=A
GRAPPLE2=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
GUARDIAN=C
GUARDIAN2=A
GUARDIAN=A
GUARDIAN2=A
+1 -1
View File
@@ -4,6 +4,6 @@
#
GUMBALL=C
GUMBALL2=A
GUMBALL=A
GUMBALL2=A
GUMBALL=0
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
GUNTUS2=A
GUNTUS=A
GUNTUS2=A
+1 -1
View File
@@ -4,6 +4,7 @@
#
H.E.R.O=C
H.E.R.O=A
H.E.R.O02=A
H.E.R.O03=A
H.E.R.O04=A
@@ -13,4 +14,3 @@ H.E.R.O07=A
H.E.R.O08=A
H.E.R.O09=A
H.E.R.O10=A
H.E.R.O=A
+1 -1
View File
@@ -4,6 +4,6 @@
#
HANDY.DANDY=C
HANDY.DANDY=A
HANDY.DANDY2=A
HANDY.DANDY3=A
HANDY.DANDY=A
+1 -1
View File
@@ -4,7 +4,7 @@
#
HARD.HAT.MACK=C
HARD.HAT.MACK=A
HARD.HAT.MACK2=A
HARD.HAT.MACK3=A
HARD.HAT.MACK=A
HARD.HAT.MACK=0
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
HELLSTORM2=A
HELLSTORM=A
HELLSTORM2=A
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
HOPMAN2=A
HOPMAN=A
HOPMAN2=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
HORIZON.V=C
HORIZON.V2=A
HORIZON.V=A
HORIZON.V2=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
HUNGRYBOY=C
HUNGRYBOY2=A
HUNGRYBOY=A
HUNGRYBOY2=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
HYPER.HEAD.ON=C
HYPER.HEAD.ON2=A
HYPER.HEAD.ON=A
HYPER.HEAD.ON2=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
IE=C
IE2=B
IE=B
IE2=B
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
IMPETUS2=A
IMPETUS=A
IMPETUS2=A
+1 -1
View File
@@ -4,6 +4,6 @@
#
INDIANA.JONES=C
INDIANA.JONES=B
INDIANA.JONES2=B
INDIANA.JONES3=B
INDIANA.JONES=B
+1 -1
View File
@@ -4,6 +4,6 @@
#
INFILTRATOR=C
INFILTRATOR=A
INFILTRATOR2=A
INFILTRATOR3=A
INFILTRATOR=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
IP=C
IP2=A
IP=A
IP2=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
JOUST=C
JOUST2=A
JOUST=A
JOUST2=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
JUGGLER=C
JUGGLER2=A
JUGGLER=A
JUGGLER2=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
JUMP.JET=C
JUMP.JET2=A
JUMP.JET=A
JUMP.JET2=A
+1 -1
View File
@@ -4,6 +4,6 @@
#
JUNGLE.HUNT=C
JUNGLE.HUNT2=A
JUNGLE.HUNT=A
JUNGLE.HUNT2=A
JUNGLE.HUNT=0
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
LIFT2=A
LIFT=A
LIFT2=A
+1 -1
View File
@@ -4,6 +4,6 @@
#
LOST.TOMB=C
LOST.TOMB2=A
LOST.TOMB=A
LOST.TOMB2=A
LOST.TOMB=0
+1 -1
View File
@@ -4,5 +4,5 @@
#
LUNAR.LEEPERS=C
LUNAR.LEEPERS2=A
LUNAR.LEEPERS=A
LUNAR.LEEPERS2=A
+1 -1
View File
@@ -3,5 +3,5 @@
# This file is automatically generated
#
MAPPLE2=A
MAPPLE=A
MAPPLE2=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
MARAUDER=C
MARAUDER2=A
MARAUDER=A
MARAUDER2=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
MARBLE.MADNESS=C
MARBLE.MADNESS2=A
MARBLE.MADNESS=A
MARBLE.MADNESS2=A
+1 -1
View File
@@ -4,5 +4,5 @@
#
MAXWELL.MANOR=C
MAXWELL.MANOR2=A
MAXWELL.MANOR=A
MAXWELL.MANOR2=A

Some files were not shown because too many files have changed in this diff Show More