RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    [Tutorial] OpenBOR - the complete guide

    Scheduled Pinned Locked Moved Ideas and Development
    openborcyperghost
    112 Posts 22 Posters 68.5k 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.
    • BiZzAr721B
      BiZzAr721
      last edited by

      Default OpenBor Controller Mapping

      0_1533523725666_OpenBor_Default_Layout.png

      cyperghostC hansolo77H 2 Replies Last reply Reply Quote 2
      • cyperghostC
        cyperghost @BiZzAr721
        last edited by cyperghost

        @bizzar721 I link this to first posting ;) Really nice

        1 Reply Last reply Reply Quote 0
        • hansolo77H
          hansolo77 @BiZzAr721
          last edited by

          @bizzar721 I like this picture..Makes it very straight forward. Is this the same layout used in Streets of Rage (via RetroArch/etc)?

          Who's Scruffy Looking?

          BiZzAr721B 1 Reply Last reply Reply Quote 0
          • dishinsD
            dishins
            last edited by

            Hello, the PS3 controller joypad config is not working for me, controls get all funny, i have Sony Original PS3 controllers, is there any way i can sorta debug this? i tried some other input configs also but none of them are working for me.

            BiZzAr721B 1 Reply Last reply Reply Quote 0
            • BiZzAr721B
              BiZzAr721 @hansolo77
              last edited by

              It stays pretty consistent with Streets of Rage. I did some research when I set up Streets of Rage Remix, and this seems to be fairly similar with what people prefer.

              1 Reply Last reply Reply Quote 1
              • BiZzAr721B
                BiZzAr721 @dishins
                last edited by

                @dishins Use a keyboard to navigate/select and remap using your controller. Is it genuine PS3 or after market? Wired or Bluetooth? When you get it a all set up we'd love it if you could upload your config to add it to the controller database. In the first post you'll find a image with the preffered controller layout.

                dishinsD 1 Reply Last reply Reply Quote 1
                • dishinsD
                  dishins @BiZzAr721
                  last edited by

                  @bizzar721 Thanks for replying. Its a genuine PS3 controller, bluetooth with ps3controllerdriver. ATM i dont have a keyboard here, but as soon as i get one i will manually remap and upload my config :)

                  1 Reply Last reply Reply Quote 0
                  • BiZzAr721B
                    BiZzAr721
                    last edited by

                    @cyperghost
                    Here is another one to add to the Joypad list
                    PS3 Controller Bluetooth(BiZzAr721)

                    @dishins Rename this file to master.bor.cfg and put it in \RETROPIE\roms\ports\openbor then use the Joypad configuration script to copy master config ---> game config
                    (or just wait until it gets added to the joypads.txt)
                    Thanks for testing out wired PS3 over Bluetooth =)

                    cyperghostC 1 Reply Last reply Reply Quote 1
                    • cyperghostC
                      cyperghost @BiZzAr721
                      last edited by cyperghost

                      @bizzar721 Added the bluetooth config file, thank you
                      So the first PS3 was the wired config?

                      @dishins Maybe you can use the "Emergency setting" if this won't work for you. The emergency settings just got up/down movement and two buttons for confirment. So you can try to navigate through the menu with this and setup your joypad. It's not the best way to do this. Keyboard would be first choice if all controller settings will fail.

                      I hope that the PS3 config from @BiZzAr721 is working for you.

                      1 Reply Last reply Reply Quote 0
                      • BiZzAr721B
                        BiZzAr721
                        last edited by

                        The first controller config was wired. I didn't install PS3 BT drivers since I wasn't using it anymore. I realize now inputs are different wired/wireless.

                        1 Reply Last reply Reply Quote 1
                        • cyperghostC
                          cyperghost
                          last edited by cyperghost

                          @BiZzAr721 Perfect! Changed description to wired and bluetooth connection

                          1 Reply Last reply Reply Quote 0
                          • BiZzAr721B
                            BiZzAr721
                            last edited by BiZzAr721

                            I just wanted to make mention of the issue I have had where joy2key keeps running in the background while OpenBOR is running, causing D-pad Left to exit back to Emulation Station. A quick fix was to exit to ES, then open Terminal.
                            Type ps -a to list running processes
                            Note the process ID number of joy2key
                            Then type kill 1234 where 1234 is the PID of joy2key

                            EDIT
                            Just enter pkill joy2key to kill joy2key - no need for doing the above Thanks Cyperghost

                            It seems to have something to do with hitting input buttons causing joy2key to load when it shouldn't.
                            I hope this will help anyone that may encounter this bug.
                            A thread with more information about this issue can be found here.

                            I will update this post if I find a solution to stop this from happening in the first place.

                            1 Reply Last reply Reply Quote 0
                            • D
                              Denver Gamer
                              last edited by

                              Hey guys, any chance you can help a noob out with my Windows configuration? This retropie forum is literally the ONLY place I can find any useful information. I am unpacking the pak files and naming the directories gamename.bor etc... But, when I launch a game from ES I am getting a message "No mods in paks folder". Here is what my config file looks like:

                              <system>
                              	<name>openBOR</name>
                              	<fullname>openBOR</fullname>
                              	<path>D:\OpenBOR\Paks</path>
                              	<extension>.pak .PAK .bor .BOR</extension>
                              	<command>D:\OpenBOR\OpenBOR.exe "%ROM%"</command>
                              	<platform>pc</platform>
                              	<theme>btmups</theme>
                              </system>
                              

                              What am I doing wrong? Thanks in advance for helping a noob. I am a youtuber and would love to do a video on this.

                              cyperghostC 1 Reply Last reply Reply Quote 0
                              • cyperghostC
                                cyperghost @Denver Gamer
                                last edited by cyperghost

                                @denver-gamer This won't work as long you did not compile the changes that were done by @darknior to the OpenBOR source code on your own build. Only this will give the ability for command line calls. You can visit darkniors github account and just copy the changes to the windows source code and compile it.

                                There are surly other methods like renaming files .... but these are only workarounds.

                                Thanks in advance for helping a noob. I am a youtuber and would love to do a video on this.

                                What's a youtuber?

                                C D 2 Replies Last reply Reply Quote 1
                                • C
                                  CapNinja @cyperghost
                                  last edited by

                                  @cyperghost said in [Tutorial] OpenBOR - the complete guide:

                                  What's a youtuber?

                                  A miserable little pile of video data. But enough talk… Have at you!

                                  1 Reply Last reply Reply Quote 1
                                  • D
                                    Denver Gamer @cyperghost
                                    last edited by

                                    @cyperghost My YouTube is Denver Gamer brother

                                    1 Reply Last reply Reply Quote 0
                                    • hansolo77H
                                      hansolo77
                                      last edited by hansolo77

                                      My computer died on me. Literally. Actually, our cat stepped on the power cord and unplugged it, causing a chain reaction burn out of the mobo and ram. I just now got everything up and running with a new system from scratch.

                                      Anyway, I'm back at this and trying to make OpenBOR work with more games. The first thing I did was try to launch a game so I could re-familiarize myself with it. Wouldn't you know? It doesn't work! ARGH! Not sure where the problem is, but (for instance) Asterix crashes right after showing "Act 1-1". I only have 2 games installed, Asterix and Balance of Power. Balance of Power crashes right after selecting the player (as I indicated awhile ago on the compatibility spreadsheet).

                                      The /dev/shm log wasn't very helpful. It just showed that the game had exited, even though I don't press anything. So I went back through and verified all my controller settings were right. Didn't fix it. I then tried just REINSTALLING it, by choosing to Update from Source in the RetroPie-Setup. That didn't make any difference either. So then I thought maybe the whole thing got corrupted or something, and decided to just start all over again. I uninstalled it through RetroPie-Setup, then re-downloaded the "patch" to the install script (wget http://raw.githubusercontent.com/crcerror/RetroPie-OpenBOR-scripts/master/openbor.sh -O /home/pi/RetroPie-Setup/scriptmodules/ports/openbor.sh). I then rebooted and started the install process again. It looked the same as before, with errors and what not. After it finished, I rebooted and tried to launch the program from the Ports menu. It loads up just fine, and shows the 2 games on the list. After picking one though, it crashes back to the EmulationStation screen. I do get an error though:

                                      Parameters: 
                                      Executing: pushd /opt/retropie/ports/openbor; /opt/retropie/ports/openbor/OpenBOR ""; popd
                                      /opt/retropie/ports/openbor ~
                                      Warning: couldn't load OpenGL library (No dynamic GL support in video driver)
                                      ~
                                      

                                      This isn't always the case though. Sometimes I can get it to load the game and can navigate the menus. However, once I get it going and it displays (in Asterix for example..) Act 1-1, I get a different error:

                                      Posted at pastebin to reduce post size here:
                                      https://pastebin.com/9ii6Kf4V

                                      This is pretty crappy. It was all working fine before! What am I missing?


                                      EDIT
                                      I've partially figured it out. It looks like it's choking on the number of controller adapters I have connected to the system. When I disconnected everything except the keyboard, everything loads and plays (the actual game not just menus) fine. The same is true when I connect the Xbox dongle. When I connect JUST 1 more adapter, either the Raphnet NES or the Mayflash SEGA, it still works ok. But if I have BOTH of them connected, it crashes back to ES. I don't actually have controllers connected to those adapters, they're just adding ports. But the system configures itself as if they're already connected. It looks like OpenBOR is choking when I try to add a 4th device type.

                                      I should be able to get around all this with XBOXDRV. I just need to add some extra configurations to disable the other adapters. Fingers Crossed this is where my problem is. I'm too tired to mess with it tonight. I'll find out tomorrow night after work if I'm not too tired then too.

                                      Who's Scruffy Looking?

                                      1 Reply Last reply Reply Quote 0
                                      • hansolo77H
                                        hansolo77
                                        last edited by

                                        Calling @mediamogul !!!
                                        APB on @mediamogul !!!

                                        I still can't get this to run with 3 input devices being detected. My thoughts were that if I use XBOXDRV to detach the kernel drivers (not not map them to anything) it should then work to hide them from OpenBOR from trying to map them. My theory so far has come up empty. Any idea why this doesn't work?

                                        if [ "$1" = "openbor" ]
                                        then
                                        sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv > /dev/null 2>&1 \
                                            --evdev /dev/input/by-id/usb-©Microsoft_Xbox_360_Wireless_Receiver_for_Windows_E1594E70-event-joystick \
                                            --detach-kernel-driver \
                                            --silent \
                                            --force-feedback \
                                            --deadzone-trigger 15% \
                                            --deadzone 4000 \
                                            --mimic-xpad \
                                            --dpad-as-button \
                                            --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RX=x2,ABS_RY=y2,ABS_Z=lt,ABS_RZ=rt \
                                            --evdev-keymap BTN_SOUTH=a,BTN_EAST=b,BTN_NORTH=x,BTN_WEST=y,BTN_TL=lb,BTN_TR=rb,BTN_THUMBL=tl,BTN_THUMBR=tr,BTN_MODE=guide,BTN_SELECT=back,BTN_START=start,BTN_TRIGGER_HAPPY3=du,BTN_TRIGGER_HAPPY4=dd,BTN_TRIGGER_HAPPY1=dl,BTN_TRIGGER_HAPPY2=dr \
                                            --ui-buttonmap x=KEY_F,a=KEY_A,b=KEY_D,lb=KEY_Z,Y=KEY_S,rb=KEY_X \
                                            --ui-buttonmap guide=KEY_F12,start=KEY_ENTER,back=KEY_ESC \
                                            --ui-buttonmap du=KEY_UP,dd=KEY_DOWN,dl=KEY_LEFT,dr=KEY_RIGHT \
                                        &
                                        sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv > /dev/null 2>&1 \
                                            --evdev /dev/input/event0 \
                                            --detach-kernel-driver \
                                        &
                                        sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv > /dev/null 2>&1 \
                                            --evdev /dev/input/event1 \
                                            --detach-kernel-driver \
                                        &
                                        sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv > /dev/null 2>&1 \
                                            --evdev /dev/input/by-id/usb-Mayflash_Ltd_Mayflash_MD_USB_Adapter-event-joystick \
                                            --detach-kernel-driver \
                                        &
                                        sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv > /dev/null 2>&1 \
                                            --evdev /dev/input/by-id/usb-Mayflash_Ltd_Mayflash_MD_USB_Adapter-if01-event-joystick \
                                            --detach-kernel-driver \
                                        &
                                        fi
                                        

                                        Maybe I need to just go at this a different way. Back to my original plans of just disabling them completely during the run, then runcommand-onend.sh revert them back. Perhaps just a quick and dirty sudo mv /dev/input/blahblah /home/pi. That should work right? Gets it out of the input folder and somewhere safe until I can return it?

                                        Who's Scruffy Looking?

                                        mediamogulM 1 Reply Last reply Reply Quote 0
                                        • mediamogulM
                                          mediamogul Global Moderator @hansolo77
                                          last edited by mediamogul

                                          @hansolo77 said in [Tutorial] OpenBOR - the complete guide:

                                          My thoughts were that if I use XBOXDRV to detach the kernel drivers (not not map them to anything) it should then work to hide them from OpenBOR from trying to map them.

                                          It's a good notion, but unfortunately, I don't think this particular method will work to hide the controllers. In doing this, they're always still there and able to be fully discovered by any software. It's more like they remain in a sort of null state that won't interfere with outside mapping. I can't speak to the potential effectiveness of moving the events, but it's worth a shot.

                                          RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                                          1 Reply Last reply Reply Quote 0
                                          • hansolo77H
                                            hansolo77
                                            last edited by

                                            Thanks. :) I was working up an edit to my last post when I saw you had replied. I couldn't make it work by moving out the events. I might have the scripting wrong.. It should be a simple thing, but when I was logged in through SSH I noticed the events all stayed when I launched the game. Int this particular script, does it matter if I'm using &'s after each line, or if I use the backslashes \ ? I thought in our previous thread you had said the backslashes were there to let the script know you're continuing the same command but rather than have it really long you can use that to shorten it onto multiple lines. So if my mv command will all fit on one line cleanly, I don't think I would need them. But the &'s have me wondering if I need one after each mv or if I can make it work with back to back lines. I guess it's something I'll have to figure out later. Got to get to bed.

                                            Who's Scruffy Looking?

                                            hansolo77H cyperghostC 2 Replies Last reply Reply Quote 1
                                            • First post
                                              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.