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

    Sega Model 3: Scriptmodule added to RetroPie-Setup

    Scheduled Pinned Locked Moved General Discussion and Gaming
    supermodel3segamodel3emu2-playerlightgun
    19 Posts 3 Posters 2.2k 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.
    • DirtBagXonD
      DirtBagXon @rogg23
      last edited by

      @rogg23 said in Sega Model 3: Scriptmodule added to RetroPie-Setup:

      @DirtBagXon said in Sega Model 3: Scriptmodule added to RetroPie-Setup:

      https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/57cdcfbad0f8bb42518283a30e9f1c345000f845/scriptmodules/emulators/supermodel3.sh

      Renamed Assets to Assets_old, reran with the new scriptmodule in your link. The Assets directory is created, but it is empty.

      I dunno then, I don't have a Retropie setup to check, the BASH globbing check worked fine in my local machines. Maybe there are RetroPie helper checks someone can add to the PR to look for empty folders, I don't see any in https://retropie.org.uk/api/helpers_8sh.html

      Otherwise It'll have to wait until I get a Retropie setup at some point.

      Hypseus Singe for RetroPie: https://github.com/DirtBagXon/hypseus-singe
      Hypseus Singe Games: https://github.com/DirtBagXon/hypseus_singe_data
      Hypseus Discord: https://discord.gg/dgCsCfmRfJ

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

        @DirtBagXon I'll take a look. Ideally you'd want that folder copied everytime. Does it need to be in $conf_dir or the emulator looks also under $inst_dir/Assets ?

        DirtBagXonD 2 Replies Last reply Reply Quote 0
        • DirtBagXonD
          DirtBagXon @mitu
          last edited by

          @mitu said in Sega Model 3: Scriptmodule added to RetroPie-Setup:

          @DirtBagXon I'll take a look. Ideally you'd want that folder copied everytime. Does it need to be in $conf_dir or the emulator looks also under $inst_dir/Assets ?

          @rogg23 said he created it in:

          /opt/retropie/configs/arcade/supermodel3/Assets

          So I guess that's under $conf_dir

          Hypseus Singe for RetroPie: https://github.com/DirtBagXon/hypseus-singe
          Hypseus Singe Games: https://github.com/DirtBagXon/hypseus_singe_data
          Hypseus Discord: https://discord.gg/dgCsCfmRfJ

          1 Reply Last reply Reply Quote 0
          • DirtBagXonD
            DirtBagXon @mitu
            last edited by

            @mitu said in Sega Model 3: Scriptmodule added to RetroPie-Setup:

            Ideally you'd want that folder copied everytime.

            I did initially, but then though if someone adds their own custom crosshair, it probably shouldn't overwrite....

            Hypseus Singe for RetroPie: https://github.com/DirtBagXon/hypseus-singe
            Hypseus Singe Games: https://github.com/DirtBagXon/hypseus_singe_data
            Hypseus Discord: https://discord.gg/dgCsCfmRfJ

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

              @DirtBagXon said in Sega Model 3: Scriptmodule added to RetroPie-Setup:

              I did initially, but then though if someone adds their own custom crosshair, it probably shouldn't overwrite....

              Are the filenames hardcoded or they can be customized (haven't looked at the config file to see) ? If they can be customized, then users can choose a different name.

              DirtBagXonD 1 Reply Last reply Reply Quote 0
              • DirtBagXonD
                DirtBagXon @mitu
                last edited by

                @mitu said in Sega Model 3: Scriptmodule added to RetroPie-Setup:

                @DirtBagXon said in Sega Model 3: Scriptmodule added to RetroPie-Setup:

                I did initially, but then though if someone adds their own custom crosshair, it probably shouldn't overwrite....

                Are the filenames hardcoded or they can be customized (haven't looked at the config file to see) ? If they can be customized, then users can choose a different name.

                Yeah, you would think there was an option to customize names, but there isn't:

                p1crosshair.bmp
                p2crosshair.bmp

                Src/OSD/SDL/Crosshair.cpp:    const std::string p1CrosshairFile = Util::Format() << FileSystemPath::GetPath(FileSystemPath::Assets) << "p1crosshair.bmp";
                Src/OSD/SDL/Crosshair.cpp:    const std::string p2CrosshairFile = Util::Format() << FileSystemPath::GetPath(FileSystemPath::Assets) << "p2crosshair.bmp";
                

                In reality I'm not certain who would customize them, but...

                 

                Hypseus Singe for RetroPie: https://github.com/DirtBagXon/hypseus-singe
                Hypseus Singe Games: https://github.com/DirtBagXon/hypseus_singe_data
                Hypseus Discord: https://discord.gg/dgCsCfmRfJ

                DirtBagXonD 1 Reply Last reply Reply Quote 0
                • DirtBagXonD
                  DirtBagXon @DirtBagXon
                  last edited by DirtBagXon

                  I'm gonna take a guess, but I think I may have needed to use $md_build instead of $md_inst for the copy, as Assets is never copied to the install dir.

                      if isPlatform "x86"; then
                          # "main" repo has an Assets folder for custom crosshairs
                          mkUserDir "$conf_dir/Assets"
                          # If the folder is empty, populate it.
                          if [ -z "$(ls -A $conf_dir/Assets)" ]; then  
                              cp -f "$md_build/Assets/"* "$conf_dir/Assets/"
                          fi   
                      fi
                  

                  Just a hunch.

                  Hypseus Singe for RetroPie: https://github.com/DirtBagXon/hypseus-singe
                  Hypseus Singe Games: https://github.com/DirtBagXon/hypseus_singe_data
                  Hypseus Discord: https://discord.gg/dgCsCfmRfJ

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

                    @DirtBagXon $md_build is only available on source installs, to make sure this works for binary installs/distributions, Assets needs to be included in the installation. Something like this works - it always copies the bitmaps, overwriting any custom files added by the user though.

                    DirtBagXonD 1 Reply Last reply Reply Quote 0
                    • DirtBagXonD
                      DirtBagXon @mitu
                      last edited by

                      @mitu said in Sega Model 3: Scriptmodule added to RetroPie-Setup:

                      @DirtBagXon $md_build is only available on source installs, to make sure this works for binary installs/distributions, Assets needs to be included in the installation. Something like this works - it always copies the bitmaps, overwriting any custom files added by the user though.

                      Ok, I see, didn't think about the binary installs. I have searched and I can't see any repos, or forum posts, with other/alternate crosshair graphics, and they are a fairly specific .bmp format, so I think it's pretty safe to just overwrite them. Seems to just have fulfilled the PR authors wants. I would just go with that, makes sense.

                      Hypseus Singe for RetroPie: https://github.com/DirtBagXon/hypseus-singe
                      Hypseus Singe Games: https://github.com/DirtBagXon/hypseus_singe_data
                      Hypseus Discord: https://discord.gg/dgCsCfmRfJ

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

                        @DirtBagXon said in Sega Model 3: Scriptmodule added to RetroPie-Setup:

                        I would just go with that, makes sense.

                        Sure, PR already opened.

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

                          @mitu said in Sega Model 3: Scriptmodule added to RetroPie-Setup:

                          Sure, PR already opened.

                          .. and merged. From now on, the Assets folder will also be copied during installation/update.

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