Cobra Command on Daphne Joystick Orientation
-
@Wampa I'll look into that. Thank you!
-
@Wampa I want to make sure I understand correctly. Probably going to need more clarification.
You want me to add the -keymapfile line to the cobraab.commands file. Then place the flightkey.ini file in the cobraab.daphne folder?
-
@Retro-Arcade-Fan said in Cobra Command on Daphne Joystick Orientation:
You want me to add the -keymapfile line to the cobraab.commands file. Then place the flightkey.ini file in the cobraab.daphne folder?
The simplest method to add a second config file in RetroPie would be as follows:
- Add the new config file to the
daphne
config folder, alongside the other config files (hypinput.ini ) etc:
/opt/retropie/configs/daphne/flightkey.ini
- You then need to link this new config file from the CONF ($md_conf_root) to the HOME ($md_inst) directory of the emulator:
sudo ln -sf /opt/retropie/configs/daphne/flightkey.ini /opt/retropie/emulators/hypseus/flightkey.ini
- Then you just need to define the new config in the
.commands
file for the game, so in your casecobraab.commands
in thecobraab.daphne
folder. The syntax for this filename would be:
-keymapfile flightkey.ini
- Add the new config file to the
-
Yeah that's pretty much what I did.
-
@Wampa @DirtBagXon said in Cobra Command on Daphne Joystick Orientation:
-keymapfile flightkey.ini
Unfortunately still not working. I copied the flightkey.ini file and placed it in the stated folder. I executed the command in line 2. I edited the flightkey.ini file and replaced the first two lines under keyboard with the ones below to reverse the joystick up and down. I edited the cobraab.commands file and added -keymapfile flightkey.ini to the end (complete command line below)
-nocrc -noissues -nolog -noserversend -latency 950 -x 1920 -y 1080 -blank_searches -min_seek_delay 1000 -seek_frames_per_ms 20 -bank 0 00000000 -bank 1 01000000 -keymapfile flightkey.ini
Still not working. Joystick is still reversed and credit, start and shoot buttons do nothing.
-
@Retro-Arcade-Fan said in Cobra Command on Daphne Joystick Orientation:
Still not working. Joystick is still reversed and credit, start and shoot buttons do nothing.
Did you actually configure the file to your controller?
You have Daphne working? What does the dapinput.ini file look like?
What does filghtkey.ini look like ?
"I edited the flightkey.ini file and replaced the first two lines under keyboard with the ones below to reverse the joystick up and down."
This sounds like you changed the axis back to original values, the flightkey.ini file you copied already has them reversed, if that is what you copied?
-
@Wampa ah, I wasn't aware the flightkey.ini file was already reversed. Thank you. The joystick is working perfectly now. (yes the game works in Daphne minus the joystick being reversed). The last remaining problem I have now is the game won't shoot.
I've tried the flightkey.ini default
KEY_UP = SDLK_DOWN 0 0 +002
KEY_DOWN = SDLK_UP 0 0 -002
KEY_LEFT = SDLK_LEFT 0 0 -001
KEY_RIGHT = SDLK_RIGHT 0 0 +001
KEY_COIN1 = SDLK_5 0 0
KEY_COIN2 = SDLK_6 0 0
KEY_START1 = SDLK_1 0 0
KEY_START2 = SDLK_2 0 0
KEY_BUTTON1 = SDLK_LCTRL 0 0
KEY_BUTTON2 = SDLK_LALT 0 0
KEY_BUTTON3 = SDLK_SPACE 0 0
KEY_SKILL1 = SDLK_LSHIFT 0 0
KEY_SKILL2 = SDLK_z 0 0
KEY_SKILL3 = SDLK_x 0 0
KEY_SERVICE = SDLK_9 0 0
KEY_TEST = SDLK_F2 0 0
KEY_RESET = SDLK_0 0 0
KEY_SCREENSHOT = SDLK_F12 0 0
KEY_QUIT = SDLK_ESCAPE 0 0
KEY_PAUSE = SDLK_p 0 0
KEY_CONSOLE = SDLK_BACKSLASH 0 0
KEY_TILT = SDLK_t 0 0and the hypinput.ini default
KEY_UP = SDLK_DOWN 0 0 +002
KEY_DOWN = SDLK_UP 0 0 -002
KEY_COIN1 = SDLK_5 0 1
KEY_COIN2 = SDLK_6 0 0
KEY_START1 = SDLK_1 0 4
KEY_START2 = SDLK_2 0 0
KEY_BUTTON1 = SDLK_LCTRL SDLK_a 14
KEY_BUTTON2 = SDLK_LALT SDLK_s 15
KEY_BUTTON3 = SDLK_SPACE SDLK_d 16
KEY_SKILL1 = SDLK_LSHIFT SDLK_w 0
KEY_SKILL2 = SDLK_z SDLK_i 0
KEY_SKILL3 = SDLK_x SDLK_k 0
KEY_SERVICE = SDLK_9 0 0
KEY_TEST = SDLK_F2 0 0
KEY_RESET = SDLK_0 0 0
KEY_SCREENSHOT = SDLK_F12 0 0
KEY_QUIT = SDLK_ESCAPE SDLK_q 17
KEY_PAUSE = SDLK_p 0 0
KEY_CONSOLE = SDLK_BACKSLASH 0 0
KEY_TILT = SDLK_t 0 0 -
Ok, you didn't paste you
dapinput.ini
but the last part is easy.Look at your working
dapinput.ini
the 3rd field is the button assignment, which you have said is working:Example
dapinput.ini
(Use yours)KEY_BUTTON1 = 306 97 14 <- This last (3rd) value of 14 is button KEY_BUTTON2 = 308 115 15 <- etc KEY_BUTTON3 = 32 113 16 KEY_START1 = 49 0 4 KEY_START2 = 50 0 0 KEY_COIN1 = 53 0 1 KEY_COIN2 = 54 0 0
Then transfer these values, for all assigned buttons in Daphne, to the
hypinput.ini
andflightkey.ini
file:KEY_COIN1 = SDLK_5 0 1 KEY_COIN2 = SDLK_6 0 0 KEY_START1 = SDLK_1 0 4 KEY_START2 = SDLK_2 0 0 KEY_BUTTON1 = SDLK_LCTRL SDLK_a 14 <- put it here KEY_BUTTON2 = SDLK_LALT SDLK_s 15 <- ... KEY_BUTTON3 = SDLK_SPACE SDLK_d 16 ...
Then just make sure the axis is switched in the correct file and done.
-
@Wampa I'm sorry Wampa, but I'm not quite following. This is my dapinput.ini file
KEY_UP = 273 114 2
KEY_DOWN = 274 102 2
KEY_LEFT = 276 100 1
KEY_RIGHT = 275 103 1
KEY_BUTTON1 = 306 97 1
KEY_BUTTON2 = 308 115 2
KEY_BUTTON3 = 32 113 3
KEY_START1 = 49 0 7
KEY_START2 = 50 0 0
KEY_COIN1 = 53 0 6
KEY_COIN2 = 54 0 0
KEY_SKILL1 = 304 119 0
KEY_SKILL2 = 122 105 0
KEY_SKILL3 = 120 107 0
KEY_SERVICE = 57 0 0
KEY_TEST = 283 0 0
KEY_RESET = 284 0 0
KEY_SCREENSHOT = 293 0 0
KEY_QUIT = 27 113 8How did you want me to finalize the lfightkey.ini file with those numbers?
-
Just taking those last numbers, done a quick and dirty transfer for you.
[KEYBOARD] KEY_UP = SDLK_DOWN 0 0 +002 KEY_DOWN = SDLK_UP 0 0 -002 KEY_LEFT = SDLK_LEFT 0 0 -001 KEY_RIGHT = SDLK_RIGHT 0 0 +001 KEY_COIN1 = SDLK_5 0 6 KEY_COIN2 = SDLK_6 0 0 KEY_START1 = SDLK_1 0 7 KEY_START2 = SDLK_2 0 0 KEY_BUTTON1 = SDLK_LCTRL 0 1 KEY_BUTTON2 = SDLK_LALT 0 2 KEY_BUTTON3 = SDLK_SPACE 0 3 KEY_SKILL1 = SDLK_LSHIFT 0 0 KEY_SKILL2 = SDLK_z 0 0 KEY_SKILL3 = SDLK_x 0 0 KEY_SERVICE = SDLK_9 0 0 KEY_TEST = SDLK_F2 0 0 KEY_RESET = SDLK_0 0 0 KEY_SCREENSHOT = SDLK_F12 0 0 KEY_QUIT = SDLK_ESCAPE 0 8 KEY_PAUSE = SDLK_p 0 0 KEY_CONSOLE = SDLK_BACKSLASH 0 0 KEY_TILT = SDLK_t 0 0 END
I ignored your UP/DOWN/LEFT/RIGHT button values in the
dapinput.ini
as they look blatantly wrong. -
@Wampa Thank you for the very quick responses and all of your patience. That did the trick exactly. Game is working perfectly now. Thank you again!
-
@Retro-Arcade-Fan said in Cobra Command on Daphne Joystick Orientation:
@Wampa Thank you for the very quick responses and all of your patience. That did the trick exactly. Game is working perfectly now. Thank you again!
No problem, I went through a similar switch recently :)
-
@Wampa So, I read that there was an update to Hypseus for the American Laser Game games, so I ran it. Tested them and all work fine. Unfortunately, this seems to have reverted the fix we did for Cobra Command (up is down again and I can't shoot). This is strange because the config files in the configs/daphne folder seem unchanged. And the config files in the roms/daphne folder are unchanged. So I don't see why the update broke the fix.
Have you updated Hypseus recently?
-
@Retro-Arcade-Fan said in Cobra Command on Daphne Joystick Orientation:
@Wampa So, I read that there was an update to Hypseus for the American Laser Game games, so I ran it. Tested them and all work fine. Unfortunately, this seems to have reverted the fix we did for Cobra Command (up is down again and I can't shoot). This is strange because the config files in the configs/daphne folder seem unchanged. And the config files in the roms/daphne folder are unchanged. So I don't see why the update broke the fix.
Have you updated Hypseus recently?
After the update the symlink probably got wiped. Just redo it:
sudo ln -sf /opt/retropie/configs/daphne/flightkey.ini /opt/retropie/emulators/hypseus/flightkey.ini
-
@Wampa said in Cobra Command on Daphne Joystick Orientation:
sudo ln -sf /opt/retropie/configs/daphne/flightkey.ini /opt/retropie/emulators/hypseus/flightkey.ini
You are my absolute hero. Thank you so much!!
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.