Run Command suggestion
-
@iCLint I liked the idea. And then I thought in NES clone controllers... How could they access runcommand menu?
-
Nintendo controllers can't do much of anything to be honest....try saving a game, or loading a save (the two most common hotkeys). This has been the bane of my existence for a couple weeks now and I STILL can't figure out how to remap hotkeys for Nintendo controllers, so I just don't use them anymore, sadly (as I had original controllers all hooked up with USB adapters and all ;)
-
@Dochartaigh its easy to set up the save states for your nes controllers. Open up /opt/retropie/configs/all/retroarch-joypads/nAMEoFyOURnEScONTROLLER.cfg and add these lines:
input_load_state_axis = "-0" input_save_state_axis = "+0" input_state_slot_increase_axis = "-1" input_state_slot_decrease_axis = "+1"
Also back this file up. Because if you reconfigure your controller in emulationstation you lose these settings.
-
Now where were you on my other two topics about this which nobody could solve??!?! Thank you so much! I will try this when I get home.
I'm assuming this will let me use Select+ up/down/left/right to save/load games and advance/decrease the save state slot? Is there any way to make the hotkey Start instead of Select? (I've been playing Castlevania III recently and Select is used in that game extensively...).
I think my problem is how I had been editing the individual retroarch.cfg file for the NES system which was doing NOTHING in regards to changing hotkeys. I will try editing the individual "NESPCGamePadNESPCGamePad.cfg" config for for these original NES controllers.
-
@Dochartaigh i am not sure how i missed the topics but yes the d-pad is used for all that stuff.
-
It doesn't have to be Hold L+R it could be hold A+B or any other combination point being to just make it hard to accidently activate. Even hold A for 2sec or sonething.
-
@edmaul69 said in Run Command suggestion:
@Dochartaigh i am not sure how i missed the topics but yes the d-pad is used for all that stuff.
It worked! Thank you so much again. Any idea how to switch the hotkey from being Select to Start (so it's Start+ up/down/left or right)? This is my current NES controller config:
[code] (how do you get this code to go in a nice black box, BTW???)
input_device = " NES PC Game Pad NES PC Game Pad "
input_driver = "udev"
input_start_btn = "3"
input_exit_emulator_btn = "3"
input_up_axis = "-1"
input_a_btn = "0"
input_b_btn = "1"
input_reset_btn = "1"
input_down_axis = "+1"
input_right_axis = "+0"
input_left_axis = "-0"
input_select_btn = "2"input_enable_hotkey_btn = "2"
input_load_state_axis = "-0"
input_save_state_axis = "+0"
input_state_slot_increase_axis = "-1"
input_state_slot_decrease_axis = "+1"
[/code]You would think that when I change the "enable_hotkey_btn" from "2" (which is Select) to "3" (which is the number they have for the start button), it would change the hotkey from Select to Start...but it doesn't...and hitting Start then exits the ROM.
When I do the above changes AND delete the "input_exit_emulator_btn = "3"" line, it'll switch the hotkey from Select to Start like I want, but I can no longer hit Select+Start to exit the game.
...what programming language is this anyway? I know HTML pretty well and CSS (albeit technically a 'markup language'), and Javascript enough to modify scripts for my means, but to me this code doesn't seem to follow logic a lot of the time.
-
@Dochartaigh if swapping the numbers on exit and hotkey isnt working correctly it means you have overriding commands in files in /opt/retropie/configs/nes. Or possibly in /opt/retropie/configs/all/retroarch.cfg. You need to go through those files and remove any input_enable_hotkey_btn or input_exit_emulator_btn commands you added in those files.
-
@Dochartaigh said in Run Command suggestion:
When I do the above changes AND delete the "input_exit_emulator_btn = "3"" line, it'll switch the hotkey from Select to Start like I want, but I can no longer hit Select+Start to exit the game.
sounds like you mapped both "start" and "hotkey" to the same button hence when you press you quit the game.
@Dochartaigh said in Run Command suggestion:
...what programming language is this anyway?
It's not, its just a text file of variables for the emulator to read.
-
@iCLint good catch. I missed that. @Dochartaigh yeah as iclint stated you need to change the exit emulator to the select keys number. You cant have both exit and hotkey be 3.
-
OK, I'm all set now. Got everything working. Going to post it here and on my original topic just in case it helps anyone. My actual code switches Select and Start, but most people won't want that so this is the normal way to be able to save on a 2-button NES controller. Thank you to all who helped!
[code]
input_device = " NES PC Game Pad NES PC Game Pad "
input_driver = "udev"input_up_axis = "-1"
input_down_axis = "+1"
input_left_axis = "-0"
input_right_axis = "+0"
input_start_btn = "3"
input_select_btn = "2"
input_a_btn = "0"
input_b_btn = "1"input_enable_hotkey_btn = "2"
input_reset_btn = "1"
input_exit_emulator_btn = "3"input_load_state_axis = "-0"
input_save_state_axis = "+0"
input_state_slot_increase_axis = "-1"
input_state_slot_decrease_axis = "+1"
[/code]
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.