Author Topic: sdlmame romname instead of game name  (Read 651 times)

nerdnils

  • Jr. Member
  • **
  • Posts: 10
    • View Profile
sdlmame romname instead of game name
« on: May 27, 2017, 10:46:36 PM »
Hi there,

I set up sdlmame and now I see that it seems like every game is in my list twice, once with the clean "real" game name and once with the name of the rom. I would like to have it with the real game name only. Another problem is that if I am adding those games to lists defined by my, always the rom name is shown and never the game name, no matter which of the games I add. How to change that?

Greetings

akafox

  • Hero Member
  • *****
  • Posts: 745
    • View Profile
Re: sdlmame romname instead of game name
« Reply #1 on: May 29, 2017, 08:09:35 AM »
SDLMame? So I am guessing you are on a PC? But which operating system?


Sounds like you don't have you emulator configured correctly. You need to make sure that your info source is set to listxml that way attract mode will use the xml list inside mame to make the list. if you have other problems let me know..and post a copy of your mame config please.
People want life easy..then complain about it

nerdnils

  • Jr. Member
  • **
  • Posts: 10
    • View Profile
Re: sdlmame romname instead of game name
« Reply #2 on: May 30, 2017, 08:47:28 AM »
I have archlinux as OS. My mame configuration: http://ix.io/vMZ

[source]
# Generated by Attract-Mode v2.2.1-47
#
executable           /usr/bin/sdlmame
args                 -audiodriver pulseaudio [name]
rompath              /games/mame/roms/
romext               .zip;.7z;<DIR>
system               Arcade
info_source          listxml
import_extras        /home/cab/emulators/catver.ini
artwork    flyer           
artwork    marquee         $HOME/mame/marquees
artwork    snap            /home/cab/emulators/mame/snap
artwork    wheel           
[/source]

Shouldn't all games display wrong if I misconfigured it?

My ~/.mame/mame.ini: http://ix.io/vN4

[source]
#
# CORE CONFIGURATION OPTIONS
#
readconfig                1
writeconfig               0

#
# CORE SEARCH PATH OPTIONS
#
rompath                   /games/mame/roms
hashpath                  hash
samplepath                $HOME/.mame/samples
artpath                   $HOME/.mame/artwork;artwork
ctrlrpath                 $HOME/.mame/ctrlr;ctrlr
inipath                   $HOME/.mame/ini
fontpath                  .
cheatpath                 cheat
crosshairpath             crosshair

#
# CORE OUTPUT DIRECTORY OPTIONS
#
cfg_directory             $HOME/.mame/cfg
nvram_directory           $HOME/.mame/nvram
memcard_directory         $HOME/.mame/memcard
input_directory           $HOME/.mame/inp
state_directory           $HOME/.mame/sta
snapshot_directory        $HOME/.mame/snap
diff_directory            $HOME/.mame/diff
comment_directory         $HOME/.mame/comments

#
# CORE STATE/PLAYBACK OPTIONS
#
state                     
autosave                  0
playback                 
record                   
mngwrite                 
aviwrite                 
wavwrite                 
snapname                  %g/%i
snapsize                  auto
snapview                  internal
burnin                    0

#
# CORE PERFORMANCE OPTIONS
#
autoframeskip             1
frameskip                 1
seconds_to_run            0
throttle                  1
sleep                     0
speed                     1.0
refreshspeed              1

#
# CORE ROTATION OPTIONS
#
rotate                    1
ror                       0
rol                       0
autoror                   0
autorol                   0
flipx                     0
flipy                     0

#
# CORE ARTWORK OPTIONS
#
artwork_crop              0
use_backdrops             1
use_overlays              1
use_bezels                1
use_cpanels               1
use_marquees              1

#
# CORE SCREEN OPTIONS
#
brightness                1.0
contrast                  1.0
gamma                     1.0
pause_brightness          0.65
effect                    none

#
# CORE VECTOR OPTIONS
#
antialias                 1
beam                      1.5
flicker                   0

#
# CORE SOUND OPTIONS
#
sound                     pulseaudio
samplerate                48000
samples                   1
volume                    0

#
# CORE INPUT OPTIONS
#
coin_lockout              1
ctrlr                     
mouse                     1
joystick                  1
lightgun                  0
multikeyboard             0
multimouse                0
steadykey                 0
ui_active                 0
offscreen_reload          0
joystick_map              auto
joystick_deadzone         0.3
joystick_saturation       0.85
natural                   0
joystick_contradictory    0
coin_impulse              0

#
# CORE INPUT AUTOMATIC ENABLE OPTIONS
#
paddle_device             keyboard
adstick_device            keyboard
pedal_device              keyboard
dial_device               keyboard
trackball_device          keyboard
lightgun_device           keyboard
positional_device         keyboard
mouse_device              mouse

#
# CORE DEBUGGING OPTIONS
#
log                       0
verbose                   0
update_in_pause           0
debug                     0
debugscript               
debug_internal            0

#
# CORE MISC OPTIONS
#
bios                     
cheat                     0
skip_gameinfo             0
uifont                    default
ramsize                   
confirm_quit              0
ui_mouse                  0

#
# DEBUGGING OPTIONS
#
oslog                     0
watchdog                  0

#
# PERFORMANCE OPTIONS
#
multithreading            1
numprocessors             4
sdlvideofps               0
bench                     0

#
# VIDEO OPTIONS
#
video                     opengl
numscreens                1
window                    0
maximize                  1
keepaspect                1
unevenstretch             1
centerh                   1
centerv                   1
waitvsync                 0
syncrefresh               0
scalemode                 none

#
# OpenGL-SPECIFIC OPTIONS
#
filter                    1
prescale                  1
gl_forcepow2texture       0
gl_notexturerect          0
gl_vbo                    1
gl_pbo                    1
gl_glsl                   0
gl_glsl_filter            1
glsl_shader_mame0         none
glsl_shader_mame1         none
glsl_shader_mame2         none
glsl_shader_mame3         none
glsl_shader_mame4         none
glsl_shader_mame5         none
glsl_shader_mame6         none
glsl_shader_mame7         none
glsl_shader_mame8         none
glsl_shader_mame9         none
glsl_shader_screen0       none
glsl_shader_screen1       none
glsl_shader_screen2       none
glsl_shader_screen3       none
glsl_shader_screen4       none
glsl_shader_screen5       none
glsl_shader_screen6       none
glsl_shader_screen7       none
glsl_shader_screen8       none
glsl_shader_screen9       none
gl_glsl_vid_attr          1

#
# PER-WINDOW VIDEO OPTIONS
#
screen                    auto
aspect                    auto
resolution                auto
view                      auto
screen0                   auto
aspect0                   auto
resolution0               auto
view0                     auto
screen1                   auto
aspect1                   auto
resolution1               auto
view1                     auto
screen2                   auto
aspect2                   auto
resolution2               auto
view2                     auto
screen3                   auto
aspect3                   auto
resolution3               auto
view3                     auto

#
# FULL SCREEN OPTIONS
#
switchres                 0
useallheads               0

#
# SOUND OPTIONS
#
audio_latency             2

#
# SDL KEYBOARD MAPPING
#
keymap                    0
keymap_file               keymap.dat
uimodekey                 SCRLOCK

#
# SDL JOYSTICK MAPPING
#
joy_idx1                  auto
joy_idx2                  auto
joy_idx3                  auto
joy_idx4                  auto
joy_idx5                  auto
joy_idx6                  auto
joy_idx7                  auto
joy_idx8                  auto
sixaxis                   0

#
# SDL LOWLEVEL DRIVER OPTIONS
#
videodriver               auto
audiodriver               auto
gl_lib                    auto
[/source]

Do you need any other files?
« Last Edit: May 30, 2017, 09:33:23 PM by nerdnils »

akafox

  • Hero Member
  • *****
  • Posts: 745
    • View Profile
Re: sdlmame romname instead of game name
« Reply #3 on: May 30, 2017, 02:04:11 PM »
Please post your configs here on the forum not to a 3rd party....(security reasons) so that the info is here to view for others later on.

one thing  I can say to try is delete your list first...then create another one. Don't over write..delete the list then create another one..

the only info I need is your rom paths (the top half) of your mame.ini
People want life easy..then complain about it

nerdnils

  • Jr. Member
  • **
  • Posts: 10
    • View Profile
Re: sdlmame romname instead of game name
« Reply #4 on: May 30, 2017, 09:34:55 PM »
You mean this section?

#
# CORE SEARCH PATH OPTIONS
#
rompath                   /games/mame/roms
hashpath                  hash
samplepath                $HOME/.mame/samples
artpath                   $HOME/.mame/artwork;artwork
ctrlrpath                 $HOME/.mame/ctrlr;ctrlr
inipath                   $HOME/.mame/ini
fontpath                  .
cheatpath                 cheat
crosshairpath             crosshair

I already created 3 new lists, all not having the real name. Only the initial list has BOTH(lists every game twice).

nerdnils

  • Jr. Member
  • **
  • Posts: 10
    • View Profile
Re: sdlmame romname instead of game name
« Reply #5 on: June 06, 2017, 09:17:20 PM »
Please post your configs here on the forum not to a 3rd party....(security reasons) so that the info is here to view for others later on.

one thing  I can say to try is delete your list first...then create another one. Don't over write..delete the list then create another one..

the only info I need is your rom paths (the top half) of your mame.ini

If what I wrote is not what you need, what do you need? Did I misunderstand?

progets

  • Sr. Member
  • ****
  • Posts: 476
    • View Profile
Re: sdlmame romname instead of game name
« Reply #6 on: June 07, 2017, 12:03:38 AM »
I have never run sdlmame but this is what I would try.

1. use the command line of sdlmame to generate the listxml file (called mame.xml)
2. change your mame config emulator file to reference the new mame.xml file and remove the info_source line from the file (to look something like this)
Code: [Select]
# Generated by Attract-Mode v2.2.1-47
#
executable           /usr/bin/sdlmame
args                 -audiodriver pulseaudio [name]
rompath              /games/mame/roms/
romext               .zip;.7z;<DIR>
system               Arcade
import_extras        /home/cab/emulators/catver.ini;/home/cab/emulators/mame.xml
artwork    flyer           
artwork    marquee         $HOME/mame/marquees
artwork    snap            /home/cab/emulators/mame/snap
artwork    wheel           
3. rename your existing romlist (mame.txt) to something like mame.txt.old
4. generate a new romlist for mame

It's just a guess but I think that the new versions of mame that also contain mess take much longer to generate a complete xml list. You're better off doing it once manually.

Deu

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: sdlmame romname instead of game name
« Reply #7 on: June 07, 2017, 09:10:15 AM »
If you find problems to create your MAME.xml you can download from here http://hyperlist.hyperspin-fe.com/

You can use this same method of locating names using all the xml's you see in that web.

Good Luck.

akafox

  • Hero Member
  • *****
  • Posts: 745
    • View Profile
Re: sdlmame romname instead of game name
« Reply #8 on: June 10, 2017, 10:41:32 AM »
If what I wrote is not what you need, what do you need? Did I misunderstand?

no that is what i needed...been very busy I'm sorry.

Oddly I do not see anything wrong with your configs..well except..its looks like you don't have your info source set..

Quote
executable           /usr/bin/sdlmame
args                 -audiodriver pulseaudio [name]
rompath              /games/mame/roms/
romext               .zip;.7z;<DIR>
system               Arcade
import_extras        /home/cab/emulators/catver.ini;/home/cab/emulators/mame.xml

needs to be:

executable           mame
args                 -audiodriver pulseaudio [name]
rompath              /games/mame/roms/
romext               .zip;.7z;<DIR>
system               Arcade
info_source          listxml  <--- this could be your problem
import_extras        /home/cab/emulators/catver.ini;/home/cab/emulators/mame.xml

I'm not sure about your exucutable but if it runs..then leave it...but YOU MUST set a info source for mame. Mame uses short names..thus it uses the xml built into the binary to generate a list. If you don't then you don't get a long name list. Also you MUST be pointing at the right binary (exe) to get the xml list. If you can not run mame with that executabke line then you WILL NOT get a long name list.

With linux you don't need the full path I just make my executable mame..thus:

Code: [Select]
# Generated by Attract-Mode v2.0.0
#
executable           mame
args                 [name]
rompath              $HOME/.mame/roms
romext               .zip
system               Arcade
info_source          listxml
import_extras        $HOME/.mame/catver.ini;$HOME/.mame/nplayers.ini;$HOME/.mame/controls.ini

should work...that's what I use never had a problem. I've not used arch linux..but normally linux is linux
People want life easy..then complain about it

nerdnils

  • Jr. Member
  • **
  • Posts: 10
    • View Profile
Re: sdlmame romname instead of game name
« Reply #9 on: June 11, 2017, 10:10:10 AM »
Hi akafox,

I did all this. My new ~/.attract/emulators/mame.cfg:
Code: [Select]
# Generated by Attract-Mode v2.2.1-50
#
executable           /usr/bin/sdlmame
args                 -audiodriver pulseaudio [name]
rompath              /games/mame/roms/
romext               .zip;.7z;<DIR>
system               Arcade
info_source          listxml
import_extras        /home/cab/emulators/catver.ini;/home/cab/mamexml.xml
artwork    flyer           
artwork    marquee         $HOME/mame/marquees
artwork    snap            /home/cab/emulators/mame/snap
artwork    wheel       

After that I deleted ~/.attract/romlists/mame.tag and I still hat both, the name with the full name but under the full game list all games come again with the shorts… Nothing changed.

akafox

  • Hero Member
  • *****
  • Posts: 745
    • View Profile
Re: sdlmame romname instead of game name
« Reply #10 on: June 11, 2017, 10:54:30 AM »
try not importing the xml..thus:

import_extras        /home/cab/emulators/catver.ini

not

import_extras        /home/cab/emulators/catver.ini;/home/cab/mamexml.xml

may I ask out of curiosity why you have your roms in:

rompath              /games/mame/roms/

and not the default

 rompath              /home/user/.mame/roms

 :o wait...

change your rom path in your mame.ini to:

rompath              /home/user/games/mame/roms/

you don't even have a full path in mame..if mame can't find them you won't get a list because the binary has to know where to look

make sure your mame.ini file is located in /home/user/.mame (notice the dot! it's a hidden folder (ctrl+H)) and in all these change "user" to your user name or you can try $HOME/.mame/roms


People want life easy..then complain about it

nerdnils

  • Jr. Member
  • **
  • Posts: 10
    • View Profile
Re: sdlmame romname instead of game name
« Reply #11 on: June 12, 2017, 12:32:51 AM »
/home/user/games/mame/roms/ is NOT where my roms are. That would be folder which does not even exist. I don't think giving folders which don't exist would solve the problem.
/games/mame/roms/ is and it is the full path. sdlmame can find them and I get a list in sdlmame itself.
I don't think that the name of the path should make a difference, does it? I can create a symlink if that helps
but some programs don't even know how to follow them(SHAME!)...
I can try to not import the xml again... But then it would be the configuration i had at the start of this thread?!?

And to answer the question out of curiosity:
/games is a whole other hdd I have all my games on. /home is a second hdd. This machine has multiple
hdds with different mounting points. /games exists on my system and is the right path!

akafox

  • Hero Member
  • *****
  • Posts: 745
    • View Profile
Re: sdlmame romname instead of game name
« Reply #12 on: June 13, 2017, 03:22:54 PM »
well home /home/user/games/mame/roms is not where your roms are "user" is generic I don't know your user name and don't want to know (something you shouldn't share). User is where you put your user name if My login name is bob the my home path would be /home/bob/  or my mame path name would be  /home/bob/games/mame/roms I am just assuming you understood..or maybe i misunderstood. I was not trying to give you any false information.

If you want to know your FULL path in linux then you can cd to that directory cd games/mame/roms then type pwd what it spits out is your full path.

 All I know is that when I set up my mame I couldn't use the default .mame/roms in the ini file. I had to delete it and put in my full path /home/user/.mame/roms

I find it strange that mame when loaded wiil find your roms fine..as you pointed out that is working so they know where they are at. so the ini seems correct. have you tried to use just "mame" on your executable line instead of the /usr/bin/sdlmame

I have mame direct from the sdl mame ppa NOT from the ubuntu ppa. Also using sdlmame in the command line gets me nothing and ever refers me to the package "mame". using mame however in the command line will start mame.

Thus again change your

executable  /usr/bin/sdlmame

to

executable  mame

 and then don't forget rebuild your list

report back with your findings please
People want life easy..then complain about it

nerdnils

  • Jr. Member
  • **
  • Posts: 10
    • View Profile
Re: sdlmame romname instead of game name
« Reply #13 on: June 13, 2017, 10:43:14 PM »
well home /home/user/games/mame/roms is not where your roms are "user" is generic I don't know your user name and don't want to know (something you shouldn't share). User is where you put your user name if My login name is bob the my home path would be /home/bob/  or my mame path name would be  /home/bob/games/mame/roms I am just assuming you understood..or maybe i misunderstood. I was not trying to give you any false information.

If you want to know your FULL path in linux then you can cd to that directory cd games/mame/roms then type pwd what it spits out is your full path.

Sorry, but I am assuming you misunderstood. I repeat:  /home/user/games/mame/roms does NOT EXIST not matter for which user. It does not exist for any user. The full path is /games/mame/roms nothing before it. It is the full path and it is what pwd returns when you are in it. /games is under the root-folder!

I will try to change the executable and report back :)

akafox

  • Hero Member
  • *****
  • Posts: 745
    • View Profile
Re: sdlmame romname instead of game name
« Reply #14 on: June 14, 2017, 11:08:58 AM »
Ah ok...

aye...I never thought that you would create a games folder from the root..not saying you can't..just never occurred to me that anyone would. I look at it from a "safety" stand point and put as little as possible in my root..but that's just me. However a dedicated mame cabinet...why worry about security..nothing worth in there to "steal" I guess.

Now I understand better..outta curiosity did you compile a current version of mame itself as well?
People want life easy..then complain about it