Attract-Mode Support Forum
Attract-Mode Support => General => Topic started by: nerdnils 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
-
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.
-
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?
-
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
-
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).
-
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?
-
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)
# 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.
-
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.
-
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..
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:
# 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
-
Hi akafox,
I did all this. My new ~/.attract/emulators/mame.cfg:
# 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.
-
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
-
/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!
-
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
-
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 :)
-
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?
-
The security is not in where the files are(in this case if you got a webserver or similar running on the machine you can't say this to every location). This is more about permissions and who you want the files to see/execute/write.
I did not compile mame myself. I am using the package from archlinux. Very close. Newest version 1or 2 days after release.
My PC does not know "mame" so I inserted "sdlmame" without the path. Sad to say that nothing changed after rebuilding the list.
-
Update:
Found out in every other list I am having(I create most of them using matches to filter the games I want) the name get's in. But when I update my sdlmame the name get's reduced to the short name. Is it possible for them to stay? no news on why every game is twice in the main list, though[BUT I have .zip and .7z... let me try to have only one perhaps that is my mistake… let me try something and put a shame on me).
-
Ok..wow did I learn a TON today! I installed arch in a vb and got everything compiled! RAY-- UPDATE THE WIKI for compiling attract on arch! ;)
ok..well it seems that I WAS confused. So I have to ask you: Did you make a "standard user"? As far as I can tell you cannot make a list as root at all..I have tried. You need to have a normal user and a home folder. Logging in as "root" and trying to make a list gives me rom names every time. A "normal user" works as it should every time. Granted you are not connected to the "big bad internet" after installing everything. Using root as a user is very bad practice even if you are not connected.
So again make a standard user..just give that user the ability to sudo. Then try to make a list and report :)