• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Find My Coding Problem- Win My Praise! Retroarch.cfg anarchy

Scheduled Pinned Locked Moved Help and Support
mame 2003cfgretroarch
5 Posts 3 Posters 419 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    CtotheVizza
    last edited by mitu 1 Mar 2020, 15:16 3 Jan 2020, 14:55

    Hi all, it's the making an arcade box for my buddy guy again. I earlier posted about a weird problem I was having with the controls- essentially in Mame 2003 run games the buttons are almost all wack-a-doo. I have 8 buttons - 6 main and a select/start duo running off a retropie 4.5 on a raspberry pi 3b+. In m2003 when I assign my third button in an in-game (tab) menu it registers as the 2nd and the third button. This is also the case for 2 other buttons where they register as two or three different buttons when I try to assign them. It's all fine in JStest and everything works fine/properly in the other emulators (SNES etc).
    After some time I decided that it was just a weird software quirk and that I can live with it by moving any 3+ button game to run on AdvMame. I did this and yes, it works. I'm missing a few games that won't run on AdvMame but I/my friend can live with it......
    But it still bugs me. I have messed off and on with the retroarch.cfg file within my /arcade folder. By deleting mad chunks of the code and just leaving some button assignments the buttons work but then the joystick will register as a movement AND a button. Something within this mish mosh of words I've cobbled together seems to be the problem. If anyone can figure out what I did or how I can fix it you will earn my love forever. I just want the following to be:
    input_player1_b_btn = 1
    input_player1_a_btn = 0
    input_player1_x_btn = 2
    input_player1_y_btn = 3
    input_player1_l_btn = 4
    input_player1_r_btn = 5

    But when I put that in things get wonky. I'm at a loss and can give it to him like it is but it will bug me forever. If anyone can figure this out please let me know whenever. I'm at deadline to give present time and I have to leave town for most of the day so any hellp will be gobbled up tonight greedily. Thanks! Here is my mess of retroarch,cfg:

    # Settings made here will only override settings in the global retroarch.cfg if placed above the #include line
    
    input_remapping_directory = "/opt/retropie/configs/arcade/"
    
    input_device_p1 = "0"
    input_player1_b_btn = 1
    input_player1_a_btn = 0
    
    
    
    input_disk_eject_toggle = "nul"
    input_disk_eject_toggle_axis = "nul"
    input_disk_eject_toggle_btn = "nul"
    input_disk_eject_toggle_mbtn = "nul"
    input_disk_next = "nul"
    input_disk_next_axis = "nul"
    input_disk_next_btn = "nul"
    input_disk_next_mbtn = "nul"
    input_disk_prev = "nul"
    input_disk_prev_axis = "nul"
    input_disk_prev_btn = "nul"
    input_disk_prev_mbtn = "nul"
    input_driver = "udev"
    input_duty_cycle = "3"
    input_enable_hotkey = "nul"
    input_enable_hotkey_axis = "nul"
    input_enable_hotkey_btn = "6"
    input_enable_hotkey_mbtn = "nul"
    input_exit_emulator = "escape"
    input_exit_emulator_axis = "nul"
    input_exit_emulator_btn = "7"
    input_exit_emulator_mbtn = "nul"
    input_max_users = "1"
    input_menu_toggle = "f1"
    input_menu_toggle_axis = "nul"
    input_menu_toggle_btn = "1"
    input_menu_toggle_gamepad_combo = "0"
    input_menu_toggle_mbtn = "nul"
    
    input_osk_toggle = "f12"
    input_osk_toggle_axis = "nul"
    input_osk_toggle_btn = "nul"
    input_osk_toggle_mbtn = "nul"
    input_overlay = "~/.config/retroarch/overlay/arcade/mame2003/horizontal3.cfg"
    input_overlay_enable = "true"
    input_overlay_enable_autopreferred = "true"
    input_overlay_hide_in_menu = "false"
    input_overlay_next = "nul"
    input_overlay_next_axis = "nul"
    input_overlay_next_btn = "nul"
    input_overlay_next_mbtn = "nul"
    input_overlay_opacity = "0.800000"
    input_overlay_scale = "1.000000"
    input_overlay_show_physical_inputs = "false"
    input_overlay_show_physical_inputs_port = "0"
    input_pause_toggle = "p"
    input_pause_toggle_axis = "nul"
    input_pause_toggle_btn = "nul"
    input_pause_toggle_mbtn = "nul"
    
    input_player1_joypad_index = "0"
    input_player1_l = "q"
    input_player1_l2 = "o"
    input_player1_l2_axis = "nul"
    input_player1_l2_btn = "nul"
    input_player1_l2_mbtn = "nul"
    input_player1_l3 = "nul"
    input_player1_l3_axis = "nul"
    input_player1_l3_btn = "nul"
    input_player1_l3_mbtn = "nul"
    input_player1_l_axis = "nul"
    input_player1_l_btn = "4"
    input_player1_l_mbtn = "nul"
    input_player1_l_x_minus = "nul"
    input_player1_l_x_minus_axis = "-0"
    input_player1_l_x_minus_btn = "nul"
    input_player1_l_x_minus_mbtn = "nul"
    input_player1_l_x_plus = "nul"
    input_player1_l_x_plus_axis = "+0"
    input_player1_l_x_plus_btn = "nul"
    input_player1_l_x_plus_mbtn = "nul"
    input_player1_l_y_minus = "nul"
    input_player1_l_y_minus_axis = "-1"
    input_player1_l_y_minus_btn = "nul"
    input_player1_l_y_minus_mbtn = "nul"
    input_player1_l_y_plus = "nul"
    input_player1_l_y_plus_axis = "+1"
    input_player1_l_y_plus_btn = "nul"
    input_player1_l_y_plus_mbtn = "nul"
    input_player1_left = "left"
    input_player1_left_axis = "-0"
    input_player1_left_btn = "nul"
    input_player1_left_mbtn = "nul"
    input_player1_mouse_index = "0"
    input_player1_r = "w"
    input_player1_r2 = "nul"
    input_player1_r2_axis = "nul"
    input_player1_r2_btn = "nul"
    input_player1_r2_mbtn = "nul"
    input_player1_r3 = "nul"
    input_player1_r3_axis = "nul"
    input_player1_r3_btn = "nul"
    input_player1_r3_mbtn = "nul"
    input_player1_r_axis = "nul"
    input_player1_r_btn = "5"
    input_player1_r_mbtn = "nul"
    input_player1_r_x_minus = "nul"
    input_player1_r_x_minus_axis = "nul"
    input_player1_r_x_minus_btn = "4"
    input_player1_r_x_minus_mbtn = "nul"
    input_player1_r_x_plus = "nul"
    input_player1_r_x_plus_axis = "nul"
    input_player1_r_x_plus_btn = "5"
    input_player1_r_x_plus_mbtn = "nul"
    input_player1_r_y_minus = "nul"
    input_player1_r_y_minus_axis = "nul"
    input_player1_r_y_minus_btn = "3"
    input_player1_r_y_minus_mbtn = "nul"
    input_player1_r_y_plus = "nul"
    input_player1_r_y_plus_axis = "nul"
    input_player1_r_y_plus_btn = "2"
    input_player1_r_y_plus_mbtn = "nul"
    input_player1_right = "right"
    input_player1_right_axis = "+0"
    input_player1_right_btn = "nul"
    input_player1_right_mbtn = "nul"
    input_player1_select = "rshift"
    input_player1_select_axis = "nul"
    input_player1_select_btn = "6"
    input_player1_select_mbtn = "nul"
    input_player1_start = "enter"
    input_player1_start_axis = "nul"
    input_player1_start_btn = "7"
    input_player1_start_mbtn = "nul"
    input_player1_turbo = "nul"
    input_player1_turbo_axis = "nul"
    input_player1_turbo_btn = "nul"
    input_player1_turbo_mbtn = "nul"
    input_player1_up = "up"
    input_player1_up_axis = "-1"
    input_player1_up_btn = "nul"
    input_player1_up_mbtn = "nul"
    input_player1_x = "s"
    input_player1_x_axis = "nul"
    input_player1_x_btn = "2"
    input_player1_x_mbtn = "nul"
    input_player1_y = "x"
    input_player1_y_axis = "nul"
    input_player1_y_btn = "3"
    input_player1_y_mbtn = "nul"
    
    # video_shader = ""
    #include "/opt/retropie/configs/all/retroarch.cfg"
    
    
    1 Reply Last reply Reply Quote 0
    • M
      mitu Global Moderator
      last edited by 3 Jan 2020, 15:17

      When posting large portion of configuration/logs, it's better to use pastebin.com. I've added code tags to your configuration file, for readability.

      C 1 Reply Last reply 4 Jan 2020, 01:36 Reply Quote 0
      • D
        dankcushions Global Moderator
        last edited by 3 Jan 2020, 16:36

        if you don't have ANY of your rebinds in that pasted retroarch.cfg (presumably this is /opt/retropie/configs/arcade/retroarch.cfg or maybe /opt/retropie/configs/mame2003/retroarch.cfg), what happens? your action buttons may not be to your preference, but it should at least allow you to play 3 button games by default.

        if it's still messed up then, then it sounds like you've made some MAME or other config overrides, but to advice on that we need you to fill out https://retropie.org.uk/forum/topic/3/read-this-first with a specific example of a badly functioning game.

        1 Reply Last reply Reply Quote 0
        • C
          CtotheVizza @mitu
          last edited by 4 Jan 2020, 01:36

          @mitu thanks- yeah sorry I'm half-witted usually and like 1/8 witted currently. I wondered how to do that.

          1 Reply Last reply Reply Quote 0
          • C
            CtotheVizza
            last edited by 4 Jan 2020, 02:29

            SOLVED!- it was in the coding- I had buttons double-coded so to speak and had a bunch assigned to R_X/Y plus&minus (input_player1_r_x_plus_btn = "5" for example) as well as what they should've been assigned. HUGE weight off my back- I've been poking around like a blind squirrel.

            1 Reply Last reply Reply Quote 0
            5 out of 5
            • First post
              5/5
              Last post

            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.

              This community forum collects and processes your personal information.
              consent.not_received