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 99.9k 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?]

      <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
                          • DirtBagXonD
                            DirtBagXon @pjft
                            last edited by DirtBagXon

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

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

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

                            Pah, next time....

                            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.

                            Yep, I have been following Scott's project, he was even kind enough to star my current singe repo too :)

                            He seems to be getting there... I don't envy him that job....

                            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

                            T 1 Reply Last reply Reply Quote 1
                            • Stuart2773S
                              Stuart2773
                              last edited by Stuart2773

                              SINGE 2.0 is now available

                              1 Reply Last reply Reply Quote 2
                              • T
                                TreasureFingers @DirtBagXon
                                last edited by

                                @dirtbagxon

                                I saw scott had a zip file with an executable for raspberry pi. Is there anyway we can grab this https://kangaroopunch.com/api/files.ssjs?call=download-file&dir=singe&file=s200p32.zip in terminal and install it in retropie? (i was gonna follow your steps but then 2.0 showed up) . Thanks for all you have done so far.

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

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

                                  @dirtbagxon

                                  I saw scott had a zip file with an executable for raspberry pi. Is there anyway we can grab this https://kangaroopunch.com/api/files.ssjs?call=download-file&dir=singe&file=s200p32.zip in terminal and install it in retropie? (i was gonna follow your steps but then 2.0 showed up) . Thanks for all you have done so far.

                                  Heya @TreasureFingers,

                                  You can grab the Singe v2 file via wget in a terminal on your RetroPie.

                                  wget "https://kangaroopunch.com/api/files.ssjs?call=download-file&dir=singe&file=s200p32.zip" -O s200p32.zip
                                  
                                  unzip s200p32.zip
                                  

                                  I don't think anyone has posted a procedure to set it up in RetroPie yet..

                                  Feel free to play and post back here.

                                  FYI: I finally figured out how to get the original Time Gal and Ninja Hayate bytecode .singe files working in version 1.18.
                                  So there is now no need to switch timegal.singe, hayate.singe to the ones in the repo, as detailed above.

                                  The new Singe v2 games seems to have updated overlays , which are very cool, but do move away from the original arcade game look and feel somewhat.
                                  So I think version 1.18 might still be a route for the traditionalists at this point.

                                  But I am sure all this will change as v2 develops.....

                                  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

                                  T 1 Reply Last reply Reply Quote 1
                                  • T
                                    TreasureFingers @DirtBagXon
                                    last edited by TreasureFingers

                                    @dirtbagxon

                                    i managed to run the executable and it only popped out these two items 1. Menu.sh and 2. a folder called singe and
                                    inside the folder were these contents

                                    • controls.cfg.example

                                    • framework.singe

                                    • freesansbold.ttf

                                    • menu.signe

                                    • menuBackground.mkv

                                    What should be my next steps?

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

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

                                      What should be my next steps?

                                      I just downloaded some of the v2 games from kangaroopunch and unzipped them in the same directory. Then ran ./Menu.sh

                                      The new games are packaged and configured to run in v2.

                                      Running v1 games involves playing with the CLI commands:

                                      Usage:  Singe-v2.00-Pi-armv6 [OPTIONS] scriptName{.singe}
                                      
                                        -a, --aspect=N:D               force aspect ratio
                                        -c, --showcalculated           show calculated framefile values for debugging
                                        -d, --datadir=PATHNAME         alternate location for written files
                                        -e, --volume_nonvldp=PERCENT   specify sound effects volume in percent
                                        -f, --fullscreen               run in full screen mode
                                        -h, --help                     this display
                                        -k, --nologos                  kill the splash screens
                                        -l, --volume_vldp=PERCENT      specify laserdisc volume in percent
                                        -m, --nomouse                  disable mouse
                                        -n, --nocrosshair              request game not display gun crosshairs
                                        -s, --nosound, --mutesound     mutes all sound
                                        -t, --trace                    trace script execution to screen and file
                                        -u, --stretch                  use ugly stretched video
                                        -v, --framefile=FILENAME       use an alternate video file
                                        -w, --fullscreen_window        run in windowed full screen mode
                                        -x, --xresolution=VALUE        specify horizontal resolution
                                        -y, --yresolution=VALUE        specify vertical resolution
                                        -z, --noconsole                zero console output
                                      

                                      Something like this (with appropriate paths):

                                      ./Singe-v2.00-Pi-armv6 [OPTION] -v timegal.txt timegal.singe

                                      Although I had varying success here.

                                      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

                                      T 1 Reply Last reply Reply Quote 1
                                      • T
                                        TreasureFingers @DirtBagXon
                                        last edited by TreasureFingers

                                        @dirtbagxon
                                        oh ok so the ./Menu.sh builds a menu in terminal and not in the emulationstation/retropie gui hmm i wonder what its gonna take to get it in emulationstation. Also Dirtbagxon you been pretty great with your help so far just wanted to mention that. is it 'its own thing now or does it still rely on daphne?

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

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

                                          @dirtbagxon
                                          Is it 'its own thing now or does it still rely on daphne?

                                          Both v2 and my v1.18 repo are standalone Singe.

                                          Pleasure helping out, but I'm afraid I don't know the Emulationstation interface to help there.

                                          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
                                          • S
                                            shift
                                            last edited by shift

                                            @dirtbagxon

                                            First install the correct tools and libraries:

                                            sudo apt-get install git make build-essential libasound2-dev libcaca-dev libglew-dev libglib2.0-dev libogg-dev libpcre3-dev libpcre32-3 libpng-dev  libpng-tools libpulse-dev libsdl-image1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libslang2-dev  libvorbis-dev libxi-dev pkg-config
                                            

                                            After this point there is the result (I have translated from Italian to english error message):

                                            To continue? [Y / n] Y
                                            Selected package libjbig-dev: armhf not previously selected.
                                            dpkg: fatal unrecoverable error, exit:
                                              the file with the file list of the "raspi-config" package is missing the final newline
                                            E: Sub-process / usr / bin / dpkg returned an error code (2)
                                            

                                            I continued ignoring the error

                                            cd ~
                                            git clone https://github.com/DirtBagXon/singe.git singe
                                            

                                            Here everything is ok.

                                            cd singe
                                            cd src/vldp2
                                             ./configure --disable-accel-detect
                                             make -f Makefile.linux
                                            

                                            Here everything is ok.

                                             cd ../game/singe
                                             make -f Makefile.linux
                                            

                                            After this command instead the error was this:

                                            g++  -fPIC  -c -o singeproxy.o singeproxy.cpp
                                            In file included from singeproxy.cpp:23:
                                            singeproxy.h:36:10: fatal error: SDL/SDL_image.h: File o directory non esistente
                                             #include <SDL/SDL_image.h>
                                                      ^~~~~~~~~~~~~~~~~
                                            compilation terminated.
                                            make: *** [<incorporato>:  singeproxy.o] Error 1
                                            

                                            I used a raspberry pi 4 with 4GB**** with Retropie 4.7.1

                                            Can you figure out how to correct the problem?

                                            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.