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 102.6k 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.
    • shavecatS
      shavecat @DirtBagXon
      last edited by

      @DirtBagXon
      thanks will give it a try

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

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

        @DirtBagXon
        thanks will give it a try

        One other and last thought,.....

        /bin/bash /media/usb0/roms/daphne/singe/maddog.sh
        

        Prefix the script on the usb stick with the 'bash' interpreter so it's called as an argument..

        But to be clear, the script that is making the above bash call will need to exist on the Pi sd card and will need the executable bit set. So a bit of a chicken and egg scenario. But this is then similar to your DOSBox setup...

        Might work for you....

        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

          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

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