Attract-Mode Support Forum
Attract-Mode Support => General => Topic started by: qqplayer on September 05, 2016, 02:46:04 PM
-
I don´t know what can I do to display the mame real rom names not the zip names.
Anyone can help me?Thanks.
-
You need to create the mame.xml file manually and then reference it in the emulator.cfg before you generate your rom list.
See this post http://forum.attractmode.org/index.php?topic=945.0
-
Thak you for the help but it´s not working.
I generated the mame.xml using mame.exe (mame 106version)
mame.exe -listxml > mame.xml
This is my MAME (Libretro).cfg
# Generated by Attract-Mode v2.1.0
#
executable /opt/retropie/supplementary/runcommand/runcommand.sh
args 0 _SYS_ mame-libretro "[romfilename]"
rompath /home/pi/RetroPie/roms/mame-libretro
romext .zip
system Arcade
info_source listxml
import_extras /home/pi/.attract/mame-config/mame.xml;/home/pi/.attract/mame-config/catver.ini;/home/pi/.attract/mame-config/nplayers.ini
artwork flyer /home/pi/RetroPie/roms/mame-libretro/flyer
artwork flyer2 /home/pi/RetroPie/roms/mame-libretro/instructions
artwork marquee /home/pi/RetroPie/roms/mame-libretro/marquee
artwork snap /home/pi/RetroPie/roms/mame-libretro/snap
artwork wheel /home/pi/RetroPie/roms/mame-libretro/wheel
I´ve regenerated the "MAME (Libretro).txt" romlist but it`s still showing zip names.
-
My guess is that it doesn't like your mame.xml file. I had this problem a while ago. Take a look at your mame.xml file and see if it uses "game name" or "machine name" for the rom names. I think older versions of mame used "game name" and newer versions of mame use "machine name".
Another thing that sometimes solved unusual issues in Attract-Mode was to delete the emulator and recreate it. I know this sounds silly but has solved issues for me a couple of times.
-
Thanks another time , but still not working.
I´ve deleted all mame (libretro) files and configs.
The script generates my mame romlist very quickly , I think that´s not reading the mame.xml
<?xml version="1.0"?>
<!DOCTYPE mame [
<!ELEMENT mame (game+)>
<!ATTLIST mame build CDATA #IMPLIED>
<!ELEMENT game (description, year?, manufacturer, history?, biosset*, rom*, disk*, sample*, chip*, video?, sound?, input?, dipswitch*, driver?)>
<!ATTLIST game name CDATA #REQUIRED>
<!ATTLIST game sourcefile CDATA #IMPLIED>
<!ATTLIST game runnable (yes|no) "yes">
<!ATTLIST game cloneof CDATA #IMPLIED>
<!ATTLIST game romof CDATA #IMPLIED>
<!ATTLIST game sampleof CDATA #IMPLIED>
<!ELEMENT description (#PCDATA)>
<!ELEMENT year (#PCDATA)>
<!ELEMENT manufacturer (#PCDATA)>
<!ELEMENT history (#PCDATA)>
<!ELEMENT biosset EMPTY>
<!ATTLIST biosset name CDATA #REQUIRED>
<!ATTLIST biosset description CDATA #REQUIRED>
<!ATTLIST biosset default (yes|no) "no">
<!ELEMENT rom EMPTY>
<!ATTLIST rom name CDATA #REQUIRED>
<!ATTLIST rom bios CDATA #IMPLIED>
<!ATTLIST rom size CDATA #REQUIRED>
<!ATTLIST rom crc CDATA #IMPLIED>
<!ATTLIST rom md5 CDATA #IMPLIED>
<!ATTLIST rom sha1 CDATA #IMPLIED>
<!ATTLIST rom merge CDATA #IMPLIED>
<!ATTLIST rom region CDATA #IMPLIED>
<!ATTLIST rom offset CDATA #IMPLIED>
<!ATTLIST rom status (baddump|nodump|good) "good">
<!ATTLIST rom dispose (yes|no) "no">
<!ELEMENT disk EMPTY>
<!ATTLIST disk name CDATA #REQUIRED>
<!ATTLIST disk md5 CDATA #IMPLIED>
<!ATTLIST disk sha1 CDATA #IMPLIED>
<!ATTLIST disk merge CDATA #IMPLIED>
<!ATTLIST disk region CDATA #IMPLIED>
<!ATTLIST disk index CDATA #IMPLIED>
<!ATTLIST disk status (baddump|nodump|good) "good">
<!ELEMENT sample EMPTY>
<!ATTLIST sample name CDATA #REQUIRED>
<!ELEMENT chip EMPTY>
<!ATTLIST chip name CDATA #REQUIRED>
<!ATTLIST chip type (cpu|audio) #REQUIRED>
<!ATTLIST chip clock CDATA #IMPLIED>
<!ELEMENT video EMPTY>
<!ATTLIST video screen (raster|vector) #REQUIRED>
<!ATTLIST video orientation (vertical|horizontal) #REQUIRED>
<!ATTLIST video width CDATA #IMPLIED>
<!ATTLIST video height CDATA #IMPLIED>
<!ATTLIST video aspectx CDATA #IMPLIED>
<!ATTLIST video aspecty CDATA #IMPLIED>
<!ATTLIST video refresh CDATA #REQUIRED>
<!ELEMENT sound EMPTY>
<!ATTLIST sound channels CDATA #REQUIRED>
<!ELEMENT input EMPTY>
<!ATTLIST input service (yes|no) "no">
<!ATTLIST input tilt (yes|no) "no">
<!ATTLIST input players CDATA #REQUIRED>
<!ATTLIST input control CDATA #IMPLIED>
<!ATTLIST input buttons CDATA #IMPLIED>
<!ATTLIST input coins CDATA #IMPLIED>
<!ELEMENT dipswitch (dipvalue*)>
<!ATTLIST dipswitch name CDATA #REQUIRED>
<!ELEMENT dipvalue EMPTY>
<!ATTLIST dipvalue name CDATA #REQUIRED>
<!ATTLIST dipvalue default (yes|no) "no">
<!ELEMENT driver EMPTY>
<!ATTLIST driver status (good|imperfect|preliminary) #REQUIRED>
<!ATTLIST driver emulation (good|imperfect|preliminary) #REQUIRED>
<!ATTLIST driver color (good|imperfect|preliminary) #REQUIRED>
<!ATTLIST driver sound (good|imperfect|preliminary) #REQUIRED>
<!ATTLIST driver graphic (good|imperfect|preliminary) #REQUIRED>
<!ATTLIST driver cocktail (good|imperfect|preliminary) #IMPLIED>
<!ATTLIST driver protection (good|imperfect|preliminary) #IMPLIED>
<!ATTLIST driver savestate (supported|unsupported) #REQUIRED>
<!ATTLIST driver palettesize CDATA #REQUIRED>
]>
<mame build="0.106 (May 13 2006)">
<game name="puckman" sourcefile="pacman.c">
<description>PuckMan (Japan set 1, Probably Bootleg)</description>
<year>1980</year>
<manufacturer>Namco</manufacturer>
<rom name="namcopac.6e" size="4096" crc="fee263b3" sha1="87117ba5082cd7a615b4ec7c02dd819003fbd669" region="cpu1" offset="0"/>
<rom name="namcopac.6f" size="4096" crc="39d1fc83" sha1="326dbbf94c6fa2e96613dedb53702f8832b47d59" region="cpu1" offset="1000"/>
<rom name="namcopac.6h" size="4096" crc="02083b03" sha1="7e1945f6eb51f2e51806d0439f975f7a2889b9b8" region="cpu1" offset="2000"/>
<rom name="namcopac.6j" size="4096" crc="7a36fe55" sha1="01b4c38108d9dc4e48da4f8d685248e1e6821377" region="cpu1" offset="3000"/>
<rom name="pacman.5e" size="4096" crc="0c944964" sha1="06ef227747a440831c9a3a613b76693d52a2f0a9" region="gfx1" dispose="yes" offset="0"/>
<rom name="pacman.5f" size="4096" crc="958fedf9" sha1="4a937ac02216ea8c96477d4a15522070507fb599" region="gfx1" dispose="yes" offset="1000"/>
<rom name="82s123.7f" size="32" crc="2fc650bd" sha1="8d0268dee78e47c712202b0ec4f1f51109b1f2a5" region="proms" offset="0"/>
<rom name="82s126.4a" size="256" crc="3eb3a8e4" sha1="19097b5f60d1030f8b82d9f1d3a241f93e5c75d6" region="proms" offset="20"/>
<rom name="82s126.1m" size="256" crc="a9cc86bf" sha1="bbcec0570aeceb582ff8238a4bc8546a23430081" region="sound1" offset="0"/>
<rom name="82s126.3m" size="256" crc="77245b66" sha1="0c4d0bee858b97632411c440bea6948a74759746" region="sound1" offset="100"/>
<chip type="cpu" name="Z80" clock="3072000"/>
<chip type="audio" name="Namco" clock="96000"/>
<video screen="raster" orientation="vertical" width="224" height="288" aspectx="3" aspecty="4" refresh="60.606060"/>
<sound channels="1"/>
<input players="2" control="joy4way" buttons="1" coins="2"/>
<dipswitch name="Rack Test (Cheat)">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Service Mode">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Cabinet">
<dipvalue name="Upright" default="yes"/>
<dipvalue name="Cocktail"/>
</dipswitch>
<dipswitch name="Coinage">
<dipvalue name="2 Coins/1 Credit"/>
<dipvalue name="1 Coin/1 Credit" default="yes"/>
<dipvalue name="1 Coin/2 Credits"/>
<dipvalue name="Free Play"/>
</dipswitch>
<dipswitch name="Lives">
<dipvalue name="1"/>
<dipvalue name="2"/>
<dipvalue name="3" default="yes"/>
<dipvalue name="5"/>
</dipswitch>
<dipswitch name="Bonus Life">
<dipvalue name="10000" default="yes"/>
<dipvalue name="15000"/>
<dipvalue name="20000"/>
<dipvalue name="None"/>
</dipswitch>
<dipswitch name="Difficulty">
<dipvalue name="Normal" default="yes"/>
<dipvalue name="Hard"/>
</dipswitch>
<dipswitch name="Ghost Names">
<dipvalue name="Normal" default="yes"/>
<dipvalue name="Alternate"/>
</dipswitch>
<dipswitch name="2x Speed Cheat">
<dipvalue name="Disabled" default="yes"/>
<dipvalue name="Enabled Always"/>
<dipvalue name="Enabled with Button"/>
</dipswitch>
<driver status="good" emulation="good" color="good" sound="good" graphic="good" savestate="supported" palettesize="32"/>
</game>
<game name="puckmana" sourcefile="pacman.c" cloneof="puckman" romof="puckman">
<description>PuckMan (Japan set 2)</description>
<year>1980</year>
<manufacturer>Namco</manufacturer>
<rom name="pacman.6e" size="4096" crc="c1e6ab10" sha1="e87e059c5be45753f7e9f33dff851f16d6751181" region="cpu1" offset="0"/>
<rom name="pacman.6f" size="4096" crc="1a6fb2d4" sha1="674d3a7f00d8be5e38b1fdc208ebef5a92d38329" region="cpu1" offset="1000"/>
<rom name="pacman.6h" size="4096" crc="bcdd1beb" sha1="8e47e8c2c4d6117d174cdac150392042d3e0a881" region="cpu1" offset="2000"/>
<rom name="prg7" size="2048" crc="b6289b26" sha1="d249fa9cdde774d5fee7258147cd25fa3f4dc2b3" region="cpu1" offset="3000"/>
<rom name="prg8" size="2048" crc="17a88c13" sha1="eb462de79f49b7aa8adb0cc6d31535b10550c0ce" region="cpu1" offset="3800"/>
<rom name="chg1" size="2048" crc="2066a0b7" sha1="6d4ccc27d6be185589e08aa9f18702b679e49a4a" region="gfx1" dispose="yes" offset="0"/>
<rom name="chg2" size="2048" crc="3591b89d" sha1="79bb456be6c39c1ccd7d077fbe181523131fb300" region="gfx1" dispose="yes" offset="800"/>
<rom name="pacman.5f" merge="pacman.5f" size="4096" crc="958fedf9" sha1="4a937ac02216ea8c96477d4a15522070507fb599" region="gfx1" dispose="yes" offset="1000"/>
<rom name="82s123.7f" merge="82s123.7f" size="32" crc="2fc650bd" sha1="8d0268dee78e47c712202b0ec4f1f51109b1f2a5" region="proms" offset="0"/>
<rom name="82s126.4a" merge="82s126.4a" size="256" crc="3eb3a8e4" sha1="19097b5f60d1030f8b82d9f1d3a241f93e5c75d6" region="proms" offset="20"/>
<rom name="82s126.1m" merge="82s126.1m" size="256" crc="a9cc86bf" sha1="bbcec0570aeceb582ff8238a4bc8546a23430081" region="sound1" offset="0"/>
<rom name="82s126.3m" merge="82s126.3m" size="256" crc="77245b66" sha1="0c4d0bee858b97632411c440bea6948a74759746" region="sound1" offset="100"/>
<chip type="cpu" name="Z80" clock="3072000"/>
<chip type="audio" name="Namco" clock="96000"/>
<video screen="raster" orientation="vertical" width="224" height="288" aspectx="3" aspecty="4" refresh="60.606060"/>
<sound channels="1"/>
<input players="2" control="joy4way" buttons="1" coins="2"/>
<dipswitch name="Rack Test (Cheat)">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Service Mode">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Cabinet">
<dipvalue name="Upright" default="yes"/>
<dipvalue name="Cocktail"/>
</dipswitch>
<dipswitch name="Coinage">
<dipvalue name="2 Coins/1 Credit"/>
<dipvalue name="1 Coin/1 Credit" default="yes"/>
<dipvalue name="1 Coin/2 Credits"/>
<dipvalue name="Free Play"/>
</dipswitch>
<dipswitch name="Lives">
<dipvalue name="1"/>
<dipvalue name="2"/>
<dipvalue name="3" default="yes"/>
<dipvalue name="5"/>
</dipswitch>
<dipswitch name="Bonus Life">
<dipvalue name="10000" default="yes"/>
<dipvalue name="15000"/>
<dipvalue name="20000"/>
<dipvalue name="None"/>
</dipswitch>
<dipswitch name="Difficulty">
<dipvalue name="Normal" default="yes"/>
<dipvalue name="Hard"/>
</dipswitch>
<dipswitch name="Ghost Names">
<dipvalue name="Normal" default="yes"/>
<dipvalue name="Alternate"/>
</dipswitch>
<dipswitch name="2x Speed Cheat">
<dipvalue name="Disabled" default="yes"/>
<dipvalue name="Enabled Always"/>
<dipvalue name="Enabled with Button"/>
</dipswitch>
<driver status="good" emulation="good" color="good" sound="good" graphic="good" savestate="supported" palettesize="32"/>
</game>
<game name="puckmanf" sourcefile="pacman.c" cloneof="puckman" romof="puckman">
<description>PuckMan (Japan set 1 with speedup hack)</description>
<year>1980</year>
<manufacturer>Namco</manufacturer>
<rom name="namcopac.6e" merge="namcopac.6e" size="4096" crc="fee263b3" sha1="87117ba5082cd7a615b4ec7c02dd819003fbd669" region="cpu1" offset="0"/>
<rom name="nampfast.6f" size="4096" crc="51b38db9" sha1="0a796f93462aec4758c2aa1c1f34cd05bb10a178" region="cpu1" offset="1000"/>
<rom name="namcopac.6h" merge="namcopac.6h" size="4096" crc="02083b03" sha1="7e1945f6eb51f2e51806d0439f975f7a2889b9b8" region="cpu1" offset="2000"/>
<rom name="namcopac.6j" merge="namcopac.6j" size="4096" crc="7a36fe55" sha1="01b4c38108d9dc4e48da4f8d685248e1e6821377" region="cpu1" offset="3000"/>
<rom name="pacman.5e" merge="pacman.5e" size="4096" crc="0c944964" sha1="06ef227747a440831c9a3a613b76693d52a2f0a9" region="gfx1" dispose="yes" offset="0"/>
<rom name="pacman.5f" merge="pacman.5f" size="4096" crc="958fedf9" sha1="4a937ac02216ea8c96477d4a15522070507fb599" region="gfx1" dispose="yes" offset="1000"/>
<rom name="82s123.7f" merge="82s123.7f" size="32" crc="2fc650bd" sha1="8d0268dee78e47c712202b0ec4f1f51109b1f2a5" region="proms" offset="0"/>
<rom name="82s126.4a" merge="82s126.4a" size="256" crc="3eb3a8e4" sha1="19097b5f60d1030f8b82d9f1d3a241f93e5c75d6" region="proms" offset="20"/>
<rom name="82s126.1m" merge="82s126.1m" size="256" crc="a9cc86bf" sha1="bbcec0570aeceb582ff8238a4bc8546a23430081" region="sound1" offset="0"/>
<rom name="82s126.3m" merge="82s126.3m" size="256" crc="77245b66" sha1="0c4d0bee858b97632411c440bea6948a74759746" region="sound1" offset="100"/>
<chip type="cpu" name="Z80" clock="3072000"/>
<chip type="audio" name="Namco" clock="96000"/>
<video screen="raster" orientation="vertical" width="224" height="288" aspectx="3" aspecty="4" refresh="60.606060"/>
<sound channels="1"/>
<input players="2" control="joy4way" buttons="1" coins="2"/>
<dipswitch name="Rack Test (Cheat)">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Service Mode">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Cabinet">
<dipvalue name="Upright" default="yes"/>
<dipvalue name="Cocktail"/>
</dipswitch>
<dipswitch name="Coinage">
<dipvalue name="2 Coins/1 Credit"/>
<dipvalue name="1 Coin/1 Credit" default="yes"/>
<dipvalue name="1 Coin/2 Credits"/>
<dipvalue name="Free Play"/>
</dipswitch>
<dipswitch name="Lives">
<dipvalue name="1"/>
<dipvalue name="2"/>
<dipvalue name="3" default="yes"/>
<dipvalue name="5"/>
</dipswitch>
<dipswitch name="Bonus Life">
<dipvalue name="10000" default="yes"/>
<dipvalue name="15000"/>
<dipvalue name="20000"/>
<dipvalue name="None"/>
</dipswitch>
<dipswitch name="Difficulty">
<dipvalue name="Normal" default="yes"/>
<dipvalue name="Hard"/>
</dipswitch>
<dipswitch name="Ghost Names">
<dipvalue name="Normal" default="yes"/>
<dipvalue name="Alternate"/>
</dipswitch>
<dipswitch name="2x Speed Cheat">
<dipvalue name="Disabled" default="yes"/>
<dipvalue name="Enabled Always"/>
<dipvalue name="Enabled with Button"/>
</dipswitch>
<driver status="good" emulation="good" color="good" sound="good" graphic="good" savestate="supported" palettesize="32"/>
</game>
Here is a little part of my mame.xml , its a 24mb file.
Is there any place to downloade a mame 106 clone off romlist for attract mode?Or another external program to generate it?
-
Well finally solved, but now I´ve a new problem.
If AM show the real game mame names it doen´t recognize my media.
-
Like I mentioned above. Your xml is using "game name" and needs to use "machine name". Get the latest Windows MAME and generate the xml , copy it to the Pi and you will see it works when you use it in AM. The problem will be that it's not for the proper rom set but most things will be correct. You can also try a find and replace of "game name" with "machine name" on your existing xml and that might work.
-
Well after various try and error attempts it´s working.
Thanks another time progets.
I think that mame 106 romset could not be generated by mame.xml.
On windows I could generate the mame list but not only my romset folder.
It generates a complete mame.xml set on the mame list.
I´m using a 106 clone off romset.
On the rpi it didn´t work.
I have to put this settings: "info_source listsoftware+thegamesdb.net"
# Generated by Attract-Mode v2.1.0
#
executable /opt/retropie/supplementary/runcommand/runcommand.sh
args 0 _SYS_ mame-libretro "[romfilename]"
rompath /home/pi/RetroPie/roms/mame-libretro
romext .zip;<DIR>
system Arcade
info_source listsoftware+thegamesdb.net
import_extras /home/pi/.attract/mame-config/mame.xml;/home/pi/.attract/mame-config/catver.ini;/home/pi/.attract/mame-config/nplayers.ini;/home/pi/.attract/mame-config/mameinfo.dat
artwork flyer /home/pi/RetroPie/roms/mame-libretro/flyer
artwork flyer2 /home/pi/RetroPie/roms/mame-libretro/instructions
artwork marquee /home/pi/RetroPie/roms/mame-libretro/marquee
artwork snap /home/pi/RetroPie/roms/mame-libretro/snap
artwork wheel /home/pi/RetroPie/roms/mame-libretro/wheel
-
Did you download and try the mame.xml posted in the link above?
Also you want to change the emulator.cfg file from
info_source listsoftware+thegamesdb.net
to
info_source listxml
-
You don't have to generate a list.xml at all..AM will pull it from the binary and create a list of the version on mame you have. Sounds like you don't have your path to your binary set right. Make sure your path is right on that first.
Then make sure you set:
info_source listxml
Then it should spit out a list of rom long names.
if that doesn't work then you can generate a xml by typing:
mame -listxml >> listxml.xml at a command prompt/terminal
make sure the xml file is in the mame folder..then ty to generate a list..using the above method
-
You don't have to generate a list.xml at all..AM will pull it from the binary and create a list of the version on mame you have. Sounds like you don't have your path to your binary set right. Make sure your path is right on that first.
Then make sure you set:
info_source listxml
Then it should spit out a list of rom long names.
if that doesn't work then you can generate a xml by typing:
mame -listxml >> listxml.xml at a command prompt/terminal
make sure the xml file is in the mame folder..then ty to generate a list..using the above method
He's using a RetroArch core/libretro for MAME. It doesn't auto generate and I don't believe you can even execute a command to get the .xml. If there's a way to generate the listxml from RetroArch, I would love to know how.
-
He's using a RetroArch core/libretro for MAME.
Oh I missed that..my fault. (and not sure how...it's right there!) hmmm..I don't see why you can't do that..it has to generate a list somehow.
Is there any place to downloade a mame 106 clone off romlist for attract mode?Or another external program to generate it?
I would think that a stock mame from version 0.106 would work.
EDIT: Well I want to help but I can't even get retroarch to load from the command line. (I'm on a linux-64..yes a computer not a pi) It will load fine from the menu/gui though. Strange
-
He's using a RetroArch core/libretro for MAME.
Oh I missed that..my fault. (and not sure how...it's right there!) hmmm..I don't see why you can't do that..it has to generate a list somehow.
Is there any place to downloade a mame 106 clone off romlist for attract mode?Or another external program to generate it?
I would think that a stock mame from version 0.106 would work.
EDIT: Well I want to help but I can't even get retroarch to load from the command line. (I'm on a linux-64..yes a computer not a pi) It will load fine from the menu/gui though. Strange
To load Retroarch from command line, you need to feed it the core name, and the romname and optionally, the path to the config file. i.e. "./retroarch -L <path to core> --config <path to retroarch.cfg> <rom location>" like
/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-fba-next/fbalpha_libretro.so --config /opt/retropie/configs/arcade/retroarch.cfg /home/pi/RetroPie/roms/arcade/ajax.zip
To import the Game names for Mame, you need to generate an xml file from an actual mame executable, using "mame --listxml >> mame.xml", and set the location of the mame.xml file under "additional import file(s)", and set info source to empty. Then You can use the xml output from the lastest mame, (or pretty much any mame, but roms that have changed may be slightly off for older versions)