Jump to content

X-Arcade Dual Setup Guide For HyperLaunch etc.


hengey

Recommended Posts

  • Replies 58
  • Created
  • Last Reply
  • 1 month later...

Ps when you create these alternate key presses in HLHQ all you are doing is creating an ahk script and running it either before a system is active or before you run a particular game and swaps the keys . If you want to use them outside of HL just copy the code and save it elsewhere eg code.ahk

If you run the script it will sit in the task bar and be active. You can add code that makes sure it only works when certain windows are active or in focus. I know this sounds daunting but a little bit of ahk research makes this simple...HL does all that for us....just for info

From ahk program you can convert ahk scripts to exe files too.

Link to comment
Share on other sites

  • 3 weeks later...
Sure, I can do that, but remember that I am a n00b at this as well, so it might not be the correct way or even intended this way =)

First: The downside! Doing it this way means you have to launch your emulators through HyperLaunch. If you start them manually or with any other launcher, the keys will be all wrong of course.

In HyperLaunchHQ, select your system you want to remap on the left.

Go to Settings and make sure "Ahk Method" is set to "Internal". This enables the whole thing.

Also in the Keymapper field, make sure the other settings are false.

So in other words:

Enabled: false

Keymapper: Empty

JoyIds Enabled: false

Ahk Method: Internal

I have actually not used any other keymapper at the same time. Might work I guess =)

Still with your system selected, go to Keymapper

In the AutoHotKey tab (first one), click Add (green cross) if you want to make changes to all games for the whole system.

If you only want the settings for a particular game in that system, press the little arrow next the the green + and select "Game Profile" instead. Those changes will only be for that game that you select then.

If you use multiple emulators for the same system and only want the changes for a specific emulator, click the Emulator profile instead.

Now that we have created an AHK profile, select it in the list below.

You now have two ways to configure the remapping.

1: In the bottom field, just click the green plus and it will tell you how it works (basically, press original key and then press the key it should act as instead).

Keep pressing + for evey key.

2: Free edit mode. You can jump to this mode whenever you want. If you add a key with the first method first, you'll see how you should type it out manually (orgkey::newkey).

Even if you've used method one but want to change a key, switch to Free Edit Mode and edit or delete the key as you want.

When done, remember to click the "Save current Ahk profile" button that is only lit up in Free Edit Mode (and only needed in Free Edit Mode).

Some keys, of course, does not type anything when pressed, such as control. Just change out of Free Edit Mode and do the first method for it, then you'll see what you have to type for it ( remapping left control to n, for example, is LControl::n )

When you are finished, you can click the green lightning icon (test selected ...) at the top to test your settings.

Some things I've noticed with the x-arcade. Sometimes it shows a weird code instead, like vkA2sc01D::c. That seems to work as well, but its ugly as I have no idea what vkA2sc01D is. When that happens, I just switch to free edit mode, remove it and try again. Usually its correct on the second try.

Sometimes it works in HyperLaunchHQ but not in the emulator I start, or only some keys work. When this happens (only happened once or twice), I simply remove the profile and restart. That at least worked for me. Edit: See Edit2 at the end.

Now then, I guess you need to configure your new keys in the emulator. The problem is that if you start the emulator through HyperLaunch and make changes, they are not always saved. The guides say that you should configure your emulator outside of HyperLaunch, but how do you do that when your new keybindings are only in effect if you launch it through HyperLaunch?

Two ways:

1: Either just hit the new keys manually in the emulator but then you have to remember which keys you've remapped to what. Not always easy.

2: Go back to the KeyMapper and press the green lightning to test your settings. Now, the new keymappings are actually used EVERYWHERE while the test window is up, so while its up, start your emulator manually and do the keybindings.

If you want to setup the exact same keymappings for another system, you can copy the old settings in Free Edit Mode and just paste them into the other system (also in Free Edit mode).

Edit: This is the one I use for the SSF (Sega Saturn Emulator) as its kinky as hell on which buttons work.

; One / Two Player buttons
1:
2:

; Joy 1 directions.
Numpad8::Up
Numpad4::Left
Numpad2::Down
Numpad6::Right
; Joy1 buttons
LControl::q
LAlt::w
Space::e
LShift::r
z::t
x::y
c::u
5::i

; Joy 2 directions
r::a
d::s
f:
g::f
; Joy 2 buttons.
a::g
s::z
q::x
w::c
e::v
vkDDsc01A::b
vkBAsc01B::n
6::m

Edit2: One last thing. I dont know if this is a bug or not. You can NOT remap keys set as your "Exit Emulator key". If you have, say "a" as an exit key, you can not remap it. Also seems that you can not set a different exit key per system, only global, so do not try to remap any keys that you use as an exit key right now.

http://www.hyperspin-fe.com/forum/showthread.php?34562-Keymapper-AutoHotKey-not-always-kick-in-when-launching

Yeah, I have a problem mapping start (player 1) to keyboard 1. Would this be possible with your method?, thanks.

*currently using mouse button 1 for start hehe :/

thomas

Link to comment
Share on other sites

Yes sure. The default setup for the X-Arcade is to press 1 for the Player 1 button, but as you can see from my example above, I've remapped button 1 to actually press "o"

I don't have the X-Arcade but is there a ini file or cntlr file for the X-Arcade I can use for SSF?

I think I looked for an ini/config file for SSF but unfortunately couldn't find one to change to '1'

thomas

Link to comment
Share on other sites

  • 4 weeks later...

Late reply but.. no, not really. Remapping the keys in SSFs config files is possible, but next to impossible =)

Thats why we use this method to remap the keys in HyperLaunch so that the key you press are translated into pressing another key that SSF actually accepts.

I've updated the guide a little bit in this Wiki article.

http://www.rlauncher.com/wiki/index.php?title=Internal_remapping_of_keys_%28for_SSF_and_similar%29

Link to comment
Share on other sites

  • 2 weeks later...

Thanks for the guide Turranius. I've gone through an followed it 100% i believe. It seems for me, that the ahk file is not being loaded when i launch an emulator from Hyperspin. The newly setup keys do not work. When i go into the directory with the .ahk files for each system and launch it from there, i can open notepad up an have the right keys be pressed. So i know that i "programmed" it right. Just appears the profile doesnt get loaded when an emulator launches. I have ahk set to internal for each emaulator in HLHQ. any help would be appreciated, thanks.

edit: one thing i noticed just now. I ran one of my ahk's, opened mame outside of hyperspin and my buttons still dont register in the system. i can do tab, go into controls (this game or general) and they are correctly assigned. Even if i try to update it such as player 1 up and i hit up on my joystick, it registers the new button i assigned but it still does not work in the game.

Link to comment
Share on other sites

No idea to be honest. But you can enable the Troubleshooting log in HyperLaunchHQ and run it. Then have a look at the log. You should see this (I have a emulator keymapper profile for just SSF)

08:51:15:809 | HL |     INFO  | +32    | Main - Loading Internal AHK Keymapping
08:51:15:811 | HL |     INFO  | +0     | GetProfileAHK - Started
08:51:15:814 | HL |   DEBUG2  | +0     | GetProfileAHK - Searching for: I:\Arcade\HyperLaunch\Profiles\AHK\Sega Saturn\A+M+O+K (USA).ahk
08:51:15:818 | HL |   DEBUG2  | +0     | GetProfileAHK - Searching for: I:\Arcade\HyperLaunch\Profiles\AHK\Sega Saturn\SSF.ahk
08:51:15:821 | HL |     INFO  | +15    | GetProfileAHK - Ended and found: I:\Arcade\HyperLaunch\Profiles\AHK\Sega Saturn\SSF.ahk
08:51:15:824 | HL |   DEBUG2  | +0     | Main - Attaching AHK remaps to module using: I:\Arcade\HyperLaunch\Profiles\AHK\Sega Saturn\SSF.ahk
08:51:15:828 | HL |   DEBUG2  | +0     | Main - Finished building Internal AHK remaps

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...