Author Topic: Rename Games ?  (Read 10678 times)

noxx

  • Full Member
  • ***
  • Posts: 29
    • View Profile
Rename Games ?
« on: November 01, 2016, 12:25:24 PM »
Hello,

ive some roms in my list with a ugly name, like dkonk3

how can i rename this game to Donkey Kong 3?

regard

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1274
    • View Profile
Re: Rename Games ?
« Reply #1 on: November 01, 2016, 02:13:50 PM »
Some more information like what OS and what emulator you're using would help. I'll assume you're talking about MAME.

You need to create the .xml file (it will not be created for you) with the "mame -listxml" command and then point to it in the mame.cfg.

mame.cfg
Code: [Select]
system               Arcade
info_source          listxml
import_extras        .\extras\mame.xml;.\extras\catver.ini;.\extras\nplayers.ini

noxx

  • Full Member
  • ***
  • Posts: 29
    • View Profile
Re: Rename Games ?
« Reply #2 on: November 02, 2016, 12:53:35 PM »
thx

i use a Raspi, where must i input this command ("mame -listxml")?

Code: [Select]
pi@retropie:~ $ mame -listxml
-bash: mame: command not found

noxx

  • Full Member
  • ***
  • Posts: 29
    • View Profile
Re: Rename Games ?
« Reply #3 on: November 02, 2016, 01:57:51 PM »
ok, think thats rigth (or?). where can i find now the mame.xml?

Code: [Select]
pi@retropie:/opt/retropie/emulators/mame4all $ ./mame -listxml
M.A.M.E. v0.37 BETA 5 (Jul 20 2016) - Multiple Arcade Machine Emulator
Copyright (C) 1997-2013 by Nicola Salmoria and the MAME Team
MAME is an emulator: it reproduces, more or less faithfully, the behaviour of
several arcade machines. But hardware is useless without software, so an image
of the ROMs which run on that hardware is required. Such ROMs, like any other
commercial software, are copyrighted material and it is therefore illegal to
use them if you don't own the original arcade machine. Needless to say, ROMs
are not distributed together with MAME. Distribution of MAME together with ROM
images is a violation of copyright law and should be promptly reported to the
authors so that appropriate legal action can be taken.

Usage:  MAME gamename [options]

        MAME -list      for a brief list of supported games
        MAME -listfull  for a full list of supported games

        Other lists:
         -listinfo -listdetails -gamelistheader -gamelistfooter -gamelist
         -listgames -listclones -listsamdir -listcrc -listdupcrc
         -listromsize -listcpu -wrongorientation -wrongfps -noclones

        Options
         -listroms -listsamples -verifyroms -verifysets
         -vset -verifysamples -vsam -romident -isknown -sourcefile

        Pi Options
         -nodrz80_snd Switch off DrZ80 core for sound (on by default)
         -drz80       Switch on DrZ80 core (may cause instability)
         -nocyclone   Switch off Cyclone core
         -nosound     Switch off sound
pi@retropie:/opt/retropie/emulators/mame4all $
« Last Edit: November 02, 2016, 02:03:38 PM by noxx »

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1274
    • View Profile
Re: Rename Games ?
« Reply #4 on: November 02, 2016, 04:41:14 PM »
You can see in your post the command you need is actually "mame -listfull" due to the old version of MAME. You can find the output file in the folder that you execute the command in. You might have issues with the list that this generates since it's such an old version of MAME. When using MAME on a Pi I generate the .xml file from Windows or Linux and then copy it to the Pi.

noxx

  • Full Member
  • ***
  • Posts: 29
    • View Profile
Re: Rename Games ?
« Reply #5 on: November 03, 2016, 05:06:08 AM »
Can i update mame? I use the Floods Version
http://forum.attractmode.org/index.php?topic=705.0

noxx

  • Full Member
  • ***
  • Posts: 29
    • View Profile
Re: Rename Games ?
« Reply #6 on: November 03, 2016, 11:00:08 AM »
i  had created a mame.xml with
mame.exe -listxml > mame.xml
unter Windos (MAME179b)
This files was 188MB big :-(

I need this big file only for rename my Game List?
Is it not possible to use a small file ?

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1274
    • View Profile
Re: Rename Games ?
« Reply #7 on: November 04, 2016, 01:24:03 AM »
The mame 179b you are using has mame combined with mess and that's the reason your file is so large. Your older version of mame will not be able to play any of the mess games. You can use a mame 179b compiled only for arcade games to get a smaller file. It would be easier to use mame 161 on windows where mess isn't included in mame to get a smaller file (around 65 MB).

Either way, the file you get gives you more than just the game names. It also gives clone, genre, year, manufacture, display, etc. information that can be displayed by your layout/theme and also used to to create filters to make browsing your games easier.

Once you create your mame romlist you can delete the file if you want. It's only needed to properly parse the romlist when you create it.
« Last Edit: November 04, 2016, 01:30:24 AM by progets »

noxx

  • Full Member
  • ***
  • Posts: 29
    • View Profile
Re: Rename Games ?
« Reply #8 on: November 04, 2016, 11:22:48 AM »
will not work :-(

i copy the mame.xml to the folder
/home/pi/.attract/mame-config
(in this folder are also the other files (Catver.ini, controls.ini, nplayers.ini)

i delete the romlist and the screen, after this i rescan mame. but
i see the old names like dkonk3 again....

my mame.cfg:
Code: [Select]
# 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    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
« Last Edit: November 04, 2016, 11:24:26 AM by noxx »

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1274
    • View Profile
Re: Rename Games ?
« Reply #9 on: November 04, 2016, 05:50:04 PM »
View this thread. http://forum.attractmode.org/index.php?topic=948.msg7201#msg7201

Download the mame.xml (zipped) link from there if you wish.

noxx

  • Full Member
  • ***
  • Posts: 29
    • View Profile
Re: Rename Games ?
« Reply #10 on: November 04, 2016, 11:35:49 PM »
thx, i try this xml but the same problem. the menu shows only the filename (without zip).

is there a LOG file to see whats wrong?


progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1274
    • View Profile
Re: Rename Games ?
« Reply #11 on: November 04, 2016, 11:41:55 PM »
When you copy over the new .xml file you are generating a new romlist file, right? The mame.xml must be unzipped and is only read when you generate a new romlist.

noxx

  • Full Member
  • ***
  • Posts: 29
    • View Profile
Re: Rename Games ?
« Reply #12 on: November 05, 2016, 12:30:12 AM »
i unzip this mame.zip and put the mame.xml to
/home/pi/.attract/mame-config

after this i delete the screen and the MAME (Libretro).txt in
/home/pi/.attract/romlists
then i reboot the pi

after this, i generate a new romlist with the GUI.

and i see dkong3 in my "new" list, not Donkey Kong 3

MAME (Libretro).cfg in
/home/pi/.attract/emulators
Code: [Select]
# 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    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