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

    testing custom script

    Scheduled Pinned Locked Moved Help and Support
    scriptingscripttesting
    5 Posts 2 Posters 568 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.
    • ExarKunIvE
      ExarKunIv
      last edited by

      im working on teaching myself how to make my own install scripts for ports that i managed to get working.

      i did find some help here with what different commands do what. and of course im looking at other scripts that people have made.

      my question is now to i manually run the script to see if it will work or not. i know i have errors in it, but i dont know what so its hard for me to pin point it.

      i did drop it in to the RetroPie setup, but it shows a error for a splt second when i go in the setup menu to try to install it, so thats not much help and due to the error its not in the list for me to try and run

      thanks for any pointers

      RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
      RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
      Maintainer of RetroPie-Extra .

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        You can run 'run' the script from the command line by using the retropie_packages.sh script, adding the name of your script and - optionally - the function to be called. For instance

        cd $HOME/RetroPie-Setup
        
        # installing dependencies for package `hatari`
        sudo ./retropie_packages.sh hatari depends
        
        # downloading sources
        sudo ./retropie_packages.sh hatari sources
        
        # building the package
        sudo ./retropie_packages.sh hatari build
        
        # installing the package
        sudo ./retropie_packages.sh hatari install
        
        # configuring the package
        sudo ./retropie_packages.sh hatari configure
        
        # removing the package, will run configure with $md_mode set to  `remove`
        sudo ./retropie_packages.sh hatari remove
        
        # running with no parameter will run depends,sources,build and configure at once
        sudo ./retropie_packages.sh hatari
        
        ExarKunIvE 1 Reply Last reply Reply Quote 0
        • ExarKunIvE
          ExarKunIv @mitu
          last edited by

          @mitu thank you that does help

          question

          if there is something else that a port needs to run that needs to be installed, like a different program all together. does it need to be in its own script or can it be combined into one

          like with openMW. you need to have OSG installed for openMW to even compile, and OSG is something that you make install.

          i just dont know if for the sake of making things more streamline if it can be done in one shot

          RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
          RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
          Maintainer of RetroPie-Extra .

          1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator
            last edited by

            You can combine both installations if there's a dependency, though I'd probably look to see if the dependency already has a package in Debian/Raspbery Pi OS that can be installed via depends.

            ExarKunIvE 1 Reply Last reply Reply Quote 0
            • ExarKunIvE
              ExarKunIv @mitu
              last edited by

              @mitu i dont think its a dependency. it is something that the guys who made OpenMW, built to help with the running the game

              this is what quicksliver said about in on the forum page about installing OpenMW

              Also a couple notes about running OpenMW on the raspberry pi. You cant use open scene graph from the apt repository, it has to be manually compiled against OpenGL NOT OpenGL ES otherwise the game will not run. OpenMW devs recommend using their fork of OSG for better performance though that is not strictly necessary (I used their fork and it works great https://github.com/OpenMW/osg). The following cmake arguments can be used to prevent building unneeded OSG plugins and prevent bloat

              RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
              RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
              Maintainer of RetroPie-Extra .

              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.