PDA

View Full Version : Mame joystick controller mapping?????



Kris
03-24-2011, 11:58 AM
Hello everyone. I'm new to emulators and hyperspin but am self teaching myself with good results so far.
I have a problem to do with controller mapping. I'm using an xbox360 tekken6 fight stick. It works fine. I want to remap my joystick to my preferences. I do this by entering a game and selecting INPUT GENERAL. I remap my stick and it works fine with my remapped controls. However when i exit the game and go back into it, or another game, the controlls revert back to the original settings. Am i right in thinking that it should save my remapped controls? Because at the moment i have to remap my fight stick EVERY time i go into a game which is getting annoying. I've searched a lot of forums with no success so far.
I'm using MAME0141b_64bit and HyperSpin GUI. Any help would be greatly appreciated. Here is a copy of my config file.
CHEERS.

<UNADORNED0>

#
# CORE CONFIGURATION OPTIONS
#
readconfig 0
writeconfig 1

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

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

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

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

#
# 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

#
# 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.0
flicker 0

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

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

#
# 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 joystick
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

#
# WINDOWS DEBUGGING OPTIONS
#
oslog 0
watchdog 0
debugger_font "Lucida Console"
debugger_font_size 9

#
# WINDOWS PERFORMANCE OPTIONS
#
priority 0
multithreading 1
numprocessors auto
profile 0
bench 0

#
# WINDOWS VIDEO OPTIONS
#
video d3d
numscreens 1
window 0
maximize 1
keepaspect 1
prescale 1
waitvsync 1
syncrefresh 0

#
# DIRECTDRAW-SPECIFIC OPTIONS
#
hwstretch 0

#
# DIRECT3D-SPECIFIC OPTIONS
#
d3dversion 9
filter 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
#
triplebuffer 1
switchres 0
full_screen_brightness 1.0
full_screen_contrast 1.0
full_screen_gamma 1.0

#
# WINDOWS SOUND OPTIONS
#
audio_latency 2

#
# INPUT DEVICE OPTIONS
#
dual_lightgun 0

kevin_lane
03-24-2011, 12:30 PM
turn hyperlaunch off in HQ

Kris
03-24-2011, 12:37 PM
BRILLIANT!!!!!!!!!!!!!!!!!! That worked. Thanks so much mate. Out of interest.....why was having Hyperlaunch on giving me problems (just so i know and understand the issue)
Cheers again mate.

kevin_lane
03-24-2011, 12:45 PM
Don't quote me, cause I'm still very novice in this arena, but I believe hyperlaunch is using a script that does not update when you update your keys in the MAME menu....so even though you make the changes there, and it works, once you relaunch MAME its uses the preset script.....

I'm sure there are thousands of other people that can explain this better then I can, but in a nutshell, I believe that is why.

I ran into this very same issue early on and the guys here helped me clear it up.

Kev

Kris
03-24-2011, 12:52 PM
I see, that makes sense. Thanks for helping me and solving my problem.
Cheers Kev.

Kris.

Jay Ace
03-24-2011, 12:54 PM
I believe it has to do how MAME is being closed. HL is forcing MAME to exit which does not allow it to shut down gracefully and thus not allowing it to save changes. You will run into the same issue with hi scores.

Kris
03-24-2011, 01:06 PM
Ok, thanks for the info. Will my hi scores be saved as well now then, because i have deactivated HL? (was'nt checking if they were saving or not). I've just started entering names for hi scores (last week or so). Me and my mates are having massive old skool sessions now and we definately wanna keep our hi scores saved. I have'nt been checking if they have been saving so far cos we've been bouncing from game to game. CHEERS.

chillinwater
03-24-2011, 01:11 PM
When using Hyperlaunch's exitemulatorkey=esc (by default) or whatever you have subsequetly configured to your preference,

The script flat out kills Mame which doesnt give Mame the chance to save the settings\changes you made.

Here is a couple other ways around this in addition to
hyperlaunch=false (option #1 which turns off hyperlaunch)

\\\Option #2\\\
turn hyperlaunch on
hyperlaunch=true
and disable this line in the Mame section of Hyperlaunch.ahk
exitemulatorkey=esc (or whatever)

by adding ";" in front of it.
;exitemulatorkey=esc

save changes and compile.
now you can use any exit key (even esc) that you have configured in Mame

\\\Option #3\\\
turn hyperlaunch on
hyperlaunch=true
and "Dont" disable the line mentioned above.
From here you want to make sure that Hyperlaunchs'
exitemulatorkey=esc (or whatever)
is not the same as what you have configured in Mame
and then "ONLY" use Mames configured exit key.

This allows Mame to close itself down while saving its settings (while using Hyperlaunch).

\\\Why go to all that trouble you may ask?\\\
For Mame you really dont have to.
but you may run into this problem in the future with other emus that need Hyperlaunch so its good to know.

i.e. some emus that mount cd-roms (PC Engine) require "daemontools" to work properly and HL allows you to do that but if you edit settings and quit nothing will save unless you look into the other options.

Also,
you can add other bells and whistles to Hyperlaunch that way for example "CPWizard"
(this isnt the case if using HL 2.0 cuz its bulit in)
but other programs can be launch if wanted when mame launches like "MarqueeMagician" if you have a second screen.
(may also become outdated with HS 2.0 and BBB's new Marquee program)

Kris
03-24-2011, 01:31 PM
Cool, now i fully understand. Thats spot on, cos ESC is still my exit key and thats always when i lose my settings......when i press ESC to change game or go back to HyperSpin menu. Thanks for the alternative options too :) I'll give em a try.

Cheers guys :)

kevin_lane
03-25-2011, 10:15 AM
oh good, now I also fully understand. Thank you thank you