Previous Thread
Next Thread
Print Thread
Page 3 of 4 1 2 3 4
Joined: Sep 2000
Posts: 286
Senior Member
Senior Member
Joined: Sep 2000
Posts: 286
Sorry, doesn't work.
"Error: unknown option: -keymapfile"

I did try "-keymap_file" like written in SDLMAME.txt but didn't work either...

Last edited by Marc Mame; 11/01/08 03:20 AM.
Joined: Feb 2007
Posts: 507
C
Senior Member
Senior Member
C Offline
Joined: Feb 2007
Posts: 507
Put something like the following in your mame.ini:
Code
# Keymap support

keymap					  1
keymap_file				  /mnt/mfhome/xmame/keymaps/km-de.txt
That is working for me since I wrote it.

Joined: Sep 2000
Posts: 286
Senior Member
Senior Member
Joined: Sep 2000
Posts: 286
I did, without any success unfortunately.

Code
#
# SDL KEYBOARD MAPPING
#
keymap                    1
keymap_file               /Volumes/MacOS9/MacMAME/SDLMame/sdlmame0128u1/keymaps/km-fr-OSX.txt


Joined: Feb 2007
Posts: 507
C
Senior Member
Senior Member
C Offline
Joined: Feb 2007
Posts: 507
mame -v
and post output here, please.

Joined: Sep 2000
Posts: 286
Senior Member
Senior Member
Joined: Sep 2000
Posts: 286
There you go :

Code
Last login: Sat Nov  1 13:27:30 on ttys000
bgnxx-x-xx-xx-xx-xx:~ MarcV$ /Volumes/MacOS9/MacMAME/SDLMame/sdlmame0128u1/mame  -v
Parsing mame.ini
Parsing mame.ini
Setting SDL_VIDEO_GL_DRIVER = '/System/Library/Frameworks/OpenGL.framework/Libraries/libGL.dylib' ...
Build version:      0.128u1 (Oct 24 2008)
Build architecure:  SDLMAME_ARCH= 
Build defines:      SDLMAME_UNIX=1 SDLMAME_MACOSX=1 SDLMAME_DARWIN=1 LSB_FIRST=1 NDEBUG=1 
SDL/OpenGL defines: SDL_COMPILEDVERSION=1213 USE_OPENGL=1 USE_DISPATCH_GL=1 
Compiler defines A: __GNUC__=4 __GNUC_MINOR__=0 __GNUC_PATCHLEVEL__=1 __VERSION__="4.0.1 (Apple Inc. build 5465)" 
Compiler defines B: __i386__=1 
SDL Device Driver     : Mac OS X display
SDL Monitor Dimensions: 1280 x 1024
Using SDL single-window soft driver (SDL 1.2)
Keymap: Start reading keymap_file keymap.dat
Keymap: Unable to open keymap keymap.dat, using default
Input: Adding Kbd #1: System keyboard
Input: Adding Mouse #1: System mouse
Joystick: Start initialization
Joystick: End initialization
Audio initialized - driver: coreaudio, frequency: 48000, channels: 2, samples: 512
sdl_create_buffers: creating stream buffer of 57344 bytes
ouput: unable to open output notifier file /tmp/sdlmame_out
bgnxx-x-xx-xx-xx-xx:~ MarcV$ 

Joined: Sep 2000
Posts: 484
Likes: 2
M
Senior Member
Senior Member
M Offline
Joined: Sep 2000
Posts: 484
Likes: 2
I think I may have a better understanding of the problem -

Let's say that Marc has his .ini file configured correctly (and from what I see, this looks to be the case).

If that .ini file is moved, deleted, or bypassed (after being run once or twice via the command line) would the change to the keyboard mapping stick?

I ask because MAMETunes has a setting called 'SDLMAME Easy Settings' (which I use). At the bottom of the window, it says that 'If you disable, use initial settings of SDLMAME'.

I assume that this bypasses the mame.ini file in favor of settings specified in the preference dialog if the option is checked (I don't know how EmuLaunch deals with this).

So my question now would be does SDLMAME depend on the .ini file to configure the keymap on every launch, or does the .ini file flip some sort of internal 'switch' that is remembered until something changes it again?


The following statement is true...
The preceding statement is false.
Joined: Sep 2000
Posts: 286
Senior Member
Senior Member
Joined: Sep 2000
Posts: 286
Originally Posted by MAMEBase
I ask because MAMETunes has a setting called 'SDLMAME Easy Settings' (which I use). At the bottom of the window, it says that 'If you disable, use initial settings of SDLMAME'.
Good point. I use it too...
But MameTunes won't find any romset if easy setting is disabled, even after filling every path (Roms/sample/art/...) in mame.ini

Odly enough, my mame.ini file was created by SDL in my home folder (at root) not in the SDL's ini folder.... confused

Joined: Feb 2007
Posts: 507
C
Senior Member
Senior Member
C Offline
Joined: Feb 2007
Posts: 507
Originally Posted by Marc Mame
There you go :

Code
Last login: Sat Nov  1 13:27:30 on ttys000
Keymap: Start reading keymap_file keymap.dat
Keymap: Unable to open keymap keymap.dat, using default 


mame does not read your modified mame.ini

please run mame as

mame -v -inipath /exact/path/to/folder/with/mame/ini

This should give output like
Code
Keymap: Start reading keymap_file /mnt/mfhome/xmame/keymaps/km-de.txt
Keymap: Mapped <SDLK_CARET> to <ITEM_ID_TILDE> with ui-text <^>
Keymap: Mapped <SDLK_WORLD_63> to <ITEM_ID_MINUS> with ui-text <�>

Joined: Sep 2000
Posts: 286
Senior Member
Senior Member
Joined: Sep 2000
Posts: 286
Originally Posted by couriersud
Originally Posted by Marc Mame
There you go :

Code
Last login: Sat Nov  1 13:27:30 on ttys000
Keymap: Start reading keymap_file keymap.dat
Keymap: Unable to open keymap keymap.dat, using default 


mame does not read your modified mame.ini
Yes he does.
Sorry, I should have let you know that I've revert the keymap path back to it's default : keymap.dat (which doesn't exist btw)

Joined: Sep 2000
Posts: 286
Senior Member
Senior Member
Joined: Sep 2000
Posts: 286
Again, with correct path :

Looks like it's loading this time. We're getting somewhere... smile

Code
Last login: Sat Nov  1 18:45:18 on console
bgnxx-x-xx-xx-xx-xx:~ MarcV$ /Volumes/MacOS9/MacMAME/SDLMame/sdlmame0128u1/mame -v
Parsing mame.ini
Parsing mame.ini
Setting SDL_VIDEO_GL_DRIVER = '/System/Library/Frameworks/OpenGL.framework/Libraries/libGL.dylib' ...
Build version:      0.128u1 (Oct 24 2008)
Build architecure:  SDLMAME_ARCH= 
Build defines:      SDLMAME_UNIX=1 SDLMAME_MACOSX=1 SDLMAME_DARWIN=1 LSB_FIRST=1 NDEBUG=1 
SDL/OpenGL defines: SDL_COMPILEDVERSION=1213 USE_OPENGL=1 USE_DISPATCH_GL=1 
Compiler defines A: __GNUC__=4 __GNUC_MINOR__=0 __GNUC_PATCHLEVEL__=1 __VERSION__="4.0.1 (Apple Inc. build 5465)" 
Compiler defines B: __i386__=1 
SDL Device Driver     : Mac OS X display
SDL Monitor Dimensions: 1280 x 1024
Using SDL single-window OpenGL driver (SDL 1.2)
Loaded opengl shared library: /System/Library/Frameworks/OpenGL.framework/Libraries/libGL.dylib
OpenGL: NVIDIA Corporation
OpenGL: NVIDIA GeForce 8800 GT OpenGL Engine
OpenGL: 2.0 NVIDIA-1.5.30
OpenGL: texture rectangle supported
OpenGL: non-power-of-2 textures supported (new method)
OpenGL: vertex buffer supported
OpenGL: pixel buffers supported
OpenGL: framebuffer object supported
OpenGL: GLSL supported, but disabled
OpenGL: max texture size 8192 x 8192
Keymap: Start reading keymap_file /Volumes/MacOS9/MacMAME/SDLMame/sdlmame0128u1/keymaps/km-fr-OSX.txt
Keymap: Mapped <SDLK_AMPERSAND> to <ITEM_ID_1> with ui-text <&>
Keymap: Mapped <SDLK_WORLD_0> to <ITEM_ID_2> with ui-text <?>
Keymap: Mapped <SDLK_QUOTEDBL> to <ITEM_ID_3> with ui-text <">
Keymap: Mapped <SDLK_QUOTE> to <ITEM_ID_4> with ui-text <'>
Keymap: Mapped <SDLK_LEFTPAREN> to <ITEM_ID_5> with ui-text <(>
Keymap: Mapped <SDLK_WORLD_1> to <ITEM_ID_6> with ui-text <?>
Keymap: Mapped <SDLK_WORLD_3> to <ITEM_ID_7> with ui-text <?>
Keymap: Mapped <SDLK_EXCLAIM> to <ITEM_ID_8> with ui-text <!>
Keymap: Mapped <SDLK_WORLD_2> to <ITEM_ID_9> with ui-text <?>
Keymap: Mapped <SDLK_WORLD_4> to <ITEM_ID_0> with ui-text <?>
Keymap: Mapped <SDLK_RIGHTPAREN> to <ITEM_ID_MINUS> with ui-text <)>
Keymap: Mapped <SDLK_MINUS> to <ITEM_ID_EQUALS> with ui-text <->
Keymap: Mapped <SDLK_MINUS> to <ITEM_ID_EQUALS> with ui-text <->
Keymap: Processed 15 lines
Input: Adding Kbd #1: System keyboard
Input: Adding Mouse #1: System mouse
Joystick: Start initialization
Joystick: End initialization
Audio initialized - driver: coreaudio, frequency: 48000, channels: 2, samples: 512
sdl_create_buffers: creating stream buffer of 57344 bytes
ouput: unable to open output notifier file /tmp/sdlmame_out
OpenGL: VBO supported
OpenGL: PBO supported
OpenGL: FBO supported
OpenGL: using vid filter: 1
bgnxx-x-xx-xx-xx-xx:~ MarcV$ 

Page 3 of 4 1 2 3 4

Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
0 members (), 628 guests, and 6 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,399
Posts122,883
Members5,092
Most Online3,327
Nov 10th, 2025
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Powered by UBB.threads™ PHP Forum Software 8.0.0