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

    (REQUEST) Add Daphne Singe emulator?

    Scheduled Pinned Locked Moved Ideas and Development
    daphnesinge
    298 Posts 21 Posters 106.1k 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 @shavecat
      last edited by

      @shavecat said in (REQUEST) Add Daphne Singe emulator?:

      @DirtBagXon

      pi@retropie:~ $ /bin/bash /media/usb0/roms/daphne/singe/maddog.sh
      /media/usb0/roms/daphne/singe/maddog.sh: line 1: cd: maddog: No such file or dir                                                                                        ectory
      /media/usb0/roms/daphne/singe/maddog.sh: line 2: ./run.sh: No such file or direc                                                                                        tory
      
      

      for some reason

      On the first line of your maddog.sh script, you need to change to the directory from where you want to start .

      cd /media/usb0/roms/daphne/singe/
      

      ? or whatever it is.

      The script is trying to cd into a subdirectory from that point.

      This is where your script writing skills start ;)

      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

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

        @DirtBagXon
        having that sh file -

        cd /media/usb0/roms/daphne/singe/maddog
        ./run.sh maddog
        

        but still getting that -

        Hello logfile - runcommand-onstart checking in here
        Parameters:
        Executing: "/home/pi/RetroPie/roms/daphne/singe/maddog.sh"
        /home/pi/RetroPie/roms/daphne/singe/maddog.sh: line 2: ./run.sh: No such file or directory
        Hello logfile - runcommand-onend checking in here
        
        DirtBagXonD 1 Reply Last reply Reply Quote 0
        • DirtBagXonD
          DirtBagXon @shavecat
          last edited by

          @shavecat said in (REQUEST) Add Daphne Singe emulator?:

          ./run.sh: No such file or directory

          ./run.sh: No such file or directory./run.sh: No such file or directory
          

          You are in the wrong place to run that run.sh script, it isn't where you think it is....

          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

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

            @DirtBagXon

            cd /media/usb0/roms/daphne/singe/maddog/
            /home/pi/singe/run.sh maddog
            
              GNU nano 3.2                /dev/shm/runcommand.log
            
            Hello logfile - runcommand-onstart checking in here
            Parameters:
            Executing: "/home/pi/RetroPie/roms/daphne/singe/maddog.sh"
            Singe Launcher : Script dir is /home/pi/singe
            
            Missing file: /home/pi/.daphne/singe/maddog/maddog.singe ?
                          /home/pi/.daphne/singe/maddog/maddog.txt ?
            
            Hello logfile - runcommand-onend checking in here
            
            
            DirtBagXonD 1 Reply Last reply Reply Quote 0
            • DirtBagXonD
              DirtBagXon @shavecat
              last edited by

              @shavecat said in (REQUEST) Add Daphne Singe emulator?:

              Missing file: /home/pi/.daphne/singe/maddog/maddog.singe ?
              /home/pi/.daphne/singe/maddog/maddog.txt ?

              It's all there:

              Missing file: /home/pi/.daphne/singe/maddog/maddog.singe ?
                            /home/pi/.daphne/singe/maddog/maddog.txt ?
              

              Looking at the wrong place.

              Are you specifying the correct path for -homedir and -datadir - that you had when you ran it from the cli in that script...

              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

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

                @DirtBagXon
                Im trying to run the sh file to the directory of /media/usb0/roms/daphne/singe .

                and not from /home/pi/.daphne/singe/maddog/
                cause its not there ....

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

                  @shavecat said in (REQUEST) Add Daphne Singe emulator?:

                  @DirtBagXon
                  Im trying to run the sh file to the directory of /media/usb0/roms/daphne/singe .

                  and not from /home/pi/.daphne/singe/maddog/
                  cause its not there ....

                  That's fine, but you have to tell the singe.bin where it can find the files it needs by the correct arguments, at the moment your script is telling it they are in the wrong place.

                  The errors will tell you where it's trying to load them, you need to find and alter the bits in your scripts to correct that.

                  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

                  shavecatS 2 Replies Last reply Reply Quote 1
                  • shavecatS
                    shavecat @DirtBagXon
                    last edited by

                    @DirtBagXon
                    Thanks a lot again :)
                    will try to play with that

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

                      @DirtBagXon
                      Sorry to drive u nuts ;)..
                      but i did that -

                      <extension>.singe .sh .SINGE .SH</extension>
                      

                      from my hard drive .
                      and even .singe dosent let me load it .
                      with the some error on the log (no promotion ) that's really weird

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

                        @shavecat said in [(REQUEST) Add Daphne Singe emulator?]

                        <extension>.singe .sh .SINGE .SH</extension>
                        

                        I have no knowledge of what this is?

                        Despite being on this forum, I'm afraid I have never setup RetroPie.
                        I only came here to help @Darksavior on the original step....

                        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

                        shavecatS 1 Reply Last reply Reply Quote 1
                        • shavecatS
                          shavecat @DirtBagXon
                          last edited by

                          @DirtBagXon
                          Got u
                          thanks a lot for your time :) <3 :))

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

                            @pjft said in (REQUEST) Add Daphne Singe emulator?:

                            @DirtBagXon thanks for testing and for the links. Learning something every day indeed:)

                            @pjft - Could you test this as the proper fix for Badlands in Daphne?

                            We should not be using global char assignment (-fsigned-char), as we read, it is bad practice and performance impacting on ARM.

                            diff --git a/src/cpu/mc6809.cpp b/src/cpu/mc6809.cpp
                            index 15b7497..90ac497 100644
                            --- a/src/cpu/mc6809.cpp
                            +++ b/src/cpu/mc6809.cpp
                            @@ -228,7 +228,7 @@ static unsigned char fetch_buffer[MC6809_FETCH_BUFFER_SIZE];
                             
                             /* le caract<E8>re 8-bit du MC6809 impose l'utilisation de char
                                pour la manipulation des opcodes qui sont des octets sign<E9>s */
                            -static char *op;
                            +static signed char *op;
                             static int ad;
                             static int *regist[4], *exreg[16];
                             static int illegal_instruction_flag;
                            @@ -2006,7 +2006,7 @@ unsigned int mc6809_StepExec(unsigned int ncycles)
                             
                                     /* on remplit le buffer de fetch */
                                     FetchInstr(pc, fetch_buffer);
                            -        op=(char*) fetch_buffer;
                            +        op=(signed char*) fetch_buffer;
                             
                                     /* on d<E9>code l'instruction */
                                     r=(*(op++))&0xFF;
                            @@ -2051,7 +2051,7 @@ int mc6809_TimeExec(mc6809_clock_t time_limit)
                             
                                     /* on remplit le buffer de fetch */
                                     FetchInstr(pc, fetch_buffer);
                            -        op=(char*) fetch_buffer;
                            +        op=(signed char*) fetch_buffer;
                             
                                     /* on d<E9>code l'instruction */
                                     r=(*(op++))&0xFF;
                            

                            https://github.com/DirtBagXon/daphne/compare/7d4bf3cdaff98a795ef2e51a823555e25f574ff9..e2cf886b3ce29f21c423205adff9616f38af855e

                            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

                            G 1 Reply Last reply Reply Quote 1
                            • G
                              gomisensei @DirtBagXon
                              last edited by

                              @DirtBagXon said in (REQUEST) Add Daphne Singe emulator?:

                              @pjft said in (REQUEST) Add Daphne Singe emulator?:

                              @DirtBagXon thanks for testing and for the links. Learning something every day indeed:)

                              @pjft - Could you test this as the proper fix for Badlands in Daphne?

                              You should not need the global -fsigned-char which as we saw is kinda bad and performance impacting.

                              can confirm this fix makes badlands work on Raspberry Pi4.

                              thanks for the work.

                              shavecatS DirtBagXonD 2 Replies Last reply Reply Quote 1
                              • shavecatS
                                shavecat @gomisensei
                                last edited by

                                @gomisensei
                                i still getting a black screen ..
                                do i need to reinstall daphne aggin now ?

                                G 1 Reply Last reply Reply Quote 0
                                • G
                                  gomisensei @shavecat
                                  last edited by

                                  @shavecat said in (REQUEST) Add Daphne Singe emulator?:

                                  @gomisensei
                                  i still getting a black screen ..
                                  do i need to reinstall daphne aggin now ?

                                  Yeah, you probably need to wait till someone adds the changes in the install script though... I made the changes manually and recompiled just to test.

                                  1 Reply Last reply Reply Quote 1
                                  • shavecatS
                                    shavecat
                                    last edited by

                                    Anyway i can make the Daphne / American laser games
                                    Full screen ? 16/9
                                    and not 4:3...

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

                                      @gomisensei said in (REQUEST) Add Daphne Singe emulator?:

                                      can confirm this fix makes badlands work on Raspberry Pi4.
                                      thanks for the work.

                                      Cool, I'll let @pjft make the pull request to the retropie repo, as he led me down the correct debug path.

                                      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

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

                                        @DirtBagXon Great to hear it worked and that it helped.

                                        Please, by all means, do submit the PR over there, it's perfectly fair game. The alternative will still be for me to go and cherry-pick your commit there - it'll always be your original commit :)

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

                                          @pjft said in (REQUEST) Add Daphne Singe emulator?:

                                          @DirtBagXon Great to hear it worked and that it helped.

                                          Please, by all means, do submit the PR over there, it's perfectly fair game. The alternative will still be for me to go and cherry-pick your commit there - it'll always be your original commit :)

                                          @pjft - right you are sir.

                                          I couldn't get Github to let me fork retropie as I had a fork from a mutual parent repo, which it kept linking me to. Github being annoyingly clever....

                                          In the end I gave up and created a new account to fork within, but got there eventually lol. Pull request from the all new DirtBagZon...

                                          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

                                          pjftP T 2 Replies Last reply Reply Quote 0
                                          • pjftP
                                            pjft @DirtBagXon
                                            last edited by

                                            @DirtBagXon Hah :) Yes, it's a pain.

                                            In the past I followed this with some success - https://gist.github.com/bhumphrey/3764983 .

                                            Thanks for looking into it, and happy singe-ing .

                                            By the way, the original Singe developer seems to be back at it, and working on a version 2.0 of the emulator, so if that's something that interests you, it should be worth looking out for.

                                            DirtBagXonD 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.