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

    OpenBOR on ubuntu x64

    Scheduled Pinned Locked Moved General Discussion and Gaming
    openbor ubuntu64-bit
    2 Posts 1 Posters 1.0k 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.
    • M
      MrCoolSpan
      last edited by MrCoolSpan

      I have made the openBOR install script work on ubuntu retropie x64
      just edit ~/RetroPie-Setup/scriptmodules/ports/openbor.sh and add this

      #!/usr/bin/env bash
      
      # This file is part of The RetroPie Project
      #
      # The RetroPie Project is the legal property of its developers, whose names are
      # too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
      #
      # See the LICENSE.md file at the top-level directory of this distribution and
      # at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
      #
      
      rp_module_id="openbor"
      rp_module_desc="OpenBOR - Beat 'em Up Game Engine"
      rp_module_help="OpenBOR games need to be extracted to function properly. Place your pak files in $romdir/ports/openbor and then run $rootdir/ports/openbor/extract.sh. When the script is done, your original pak files will be found in $romdir/ports/openbor/originals and can be deleted."
      rp_module_licence="BSD https://raw.githubusercontent.com/rofl0r/openbor/master/LICENSE"
      rp_module_section="exp"
      rp_module_flags="!mali !kms"
      
      function depends_openbor() {
          getDepends libsdl1.2-dev libsdl-gfx1.2-dev libogg-dev libvorbisidec-dev libvorbis-dev libpng-dev zlib1g-dev yasm
      }
      
      
      
      function sources_openbor() {
          gitPullOrClone "$md_build" https://github.com/rofl0r/openbor.git
      }
      
      function build_openbor() {
          if uname -m |grep "x86_64"; then
          sed -i 's/-fsigned-char/-fsigned-char -fasm -g -no-pie /g' Makefile
          make
          else
          local params=()
          ! isPlatform "x11" && params+=(NO_GL=1)
          make clean
          make "${params[@]}"
          fi
          cd "$md_build/tools/borpak/"
          ./build-linux.sh
          md_ret_require="$md_build/OpenBOR"
      }
      
      function install_openbor() {
          md_ret_files=(
             'OpenBOR'
             'tools/borpak/borpak'
             'tools/unpack.sh'
          )
      }
      
      function configure_openbor() {
            addPort "$md_id" "openbor" "OpenBOR - Beats of Rage Engine" "$md_inst/openbor.sh"
      #   addPort "$md_id" "openbor" "OpenBOR - Beats of Rage Engine" "pushd $md_inst; $md_inst/OpenBOR %ROM%; popd"
      
          mkRomDir "ports/$md_id"
          setDispmanx "$md_id" 1
      
          cat >"$md_inst/openbor.sh" << _EOF_
      #!/bin/bash
      pushd "$md_inst"
      ./OpenBOR "\$@"
      popd
      _EOF_
          chmod +x "$md_inst/openbor.sh"
      
          cat >"$md_inst/extract.sh" <<_EOF_
      #!/bin/bash
      PORTDIR="$md_inst"
      BORROMDIR="$romdir/ports/$md_id"
      mkdir \$BORROMDIR/original/
      mkdir \$BORROMDIR/original/borpak/
      mv \$BORROMDIR/*.pak \$BORROMDIR/original/
      cp \$PORTDIR/unpack.sh \$BORROMDIR/original/
      cp \$PORTDIR/borpak \$BORROMDIR/original/borpak/
      cd \$BORROMDIR/original/
      for i in *.pak
      do
        CURRENTFILE=\`basename "\$i" .pak\`
        ./unpack.sh "\$i"
        mkdir "\$CURRENTFILE"
        mv data/ "\$CURRENTFILE"/
        mv "\$CURRENTFILE"/ ../
      done
      
      echo "Your games are extracted and ready to be played. Your originals are stored safely in $BORROMDIR/original/ but they won't be needed anymore. Everything within it can be deleted."
      _EOF_
          chmod +x "$md_inst/extract.sh"
      
          local dir
          for dir in ScreenShots Logs Saves; do
              mkUserDir "$md_conf_root/$md_id/$dir"
              ln -snf "$md_conf_root/$md_id/$dir" "$md_inst/$dir"
          done
      
          ln -snf "$romdir/ports/$md_id" "$md_inst/Paks"
      }
      

      use right ALT+Enter for full screen

      M 1 Reply Last reply Reply Quote 0
      • M
        MrCoolSpan @MrCoolSpan
        last edited by MrCoolSpan

        @MrCoolSpan If you change the
        gitPullOrClone "$md_build" https://github.com/rofl0r/openbor.git
        to
        gitPullOrClone "$md_build" https://github.com/darknior/openbor.git
        and follow this guide
        [Tutorial] OpenBOR - the complete guide
        you get openbor to launch games directly from Emulationstation
        the only problem i hade is that my ps3 controler did not work with the pre config so i needed to set it up en every game.

        and remember to change every /home/pi/ to you username like / home/username/
        also in every file downloadet

        1 Reply Last reply Reply Quote 0
        • 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.