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

    New Hypseus and lr-Daphne to add on Retropie-Setup

    Scheduled Pinned Locked Moved Ideas and Development
    daphnelaserdischypseusdaphne confighypseus config
    501 Posts 33 Posters 227.4k 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.
    • DarksaviorD
      Darksavior @DirtBagXon
      last edited by

      @dirtbagxon Is it normal for these long load times? Both Time Gal and Ninja Hayate have around 1min 20sec of load time when it first starts and when you die its at least 35 seconds of waiting. I only have these two singe games and it happens with both.

      Dragons Lair 2 is jittery. Dragons lair 1 and Space Ace seem to be fine. It's not jittery with daphne. I'm using the dex77 rips if it matters.

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

        @darksavior said in New Hypseus and lr-Daphne to add on Retropie-Setup:

        @dirtbagxon Is it normal for these long load times? Both Time Gal and Ninja Hayate have around 1min 20sec of load time when it first starts and when you die its at least 35 seconds of waiting. I only have these two singe games and it happens with both.

        Hmmm, no one else has mentioned this, but I think I know what it is:

        Copy this to a file called patch.diff

        --- a/src/game/singe/loslib.c
        +++ b/src/game/singe/loslib.c
        @@ -72,11 +72,7 @@ static int os_getenv (lua_State *L) {
         
         
         static int os_clock (lua_State *L) {
        -#ifdef __x86_64__
           lua_pushnumber(L, (((lua_Number)clock())/(lua_Number)CLOCKS_PER_SEC)*LUA_64BIT_CLOCK_SKEW);
        -#else
        -  lua_pushnumber(L, ((lua_Number)clock())/(lua_Number)CLOCKS_PER_SEC);
        -#endif
           return 1;
         }
        

        Then patch -p1 < patch.diff in the repo root, then recompile make and copy new binary over daphne.bin

        cp build/hypseus /opt/retropie/emulators/daphne/daphne.bin
        

         

        This is an inherit from the old Singe which has LUA os_clock issues, might not be needed on this port.... Let me know and I'll push fix.

        Also anyone else seeing this, to be sure it's not specific?

         

        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 DarksaviorD 2 Replies Last reply Reply Quote 0
        • DirtBagXonD
          DirtBagXon @DirtBagXon
          last edited by

          @Darksavior

          Ok,

          I don't see a 1m 20s delay, but I do see a delay of more than should be.

          I have pushed fix, grab latest repo merge.

          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
          • DarksaviorD
            Darksavior @DirtBagXon
            last edited by

            @dirtbagxon I might've patched it wrong or did a process wrong. Daphne games still load but none of the singe games load anymore. Back to the old errors of missing files and this time my compression app is not to blame.

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

              @darksavior said in New Hypseus and lr-Daphne to add on Retropie-Setup:

              @dirtbagxon I might've patched it wrong or did a process wrong. Daphne games still load but none of the singe games load anymore. Back to the old errors of missing files and this time my compression app is not to blame.

              Clean it down and start again.

              Re the lair2 issue, I can't replicate this, so maybe a file encoding issue and the newer mpeg libraries......

              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

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

                @dirtbagxon Tried again, and the errors aren't going away. No singe games will load now. Kinda late so maybe I'm probably missing steps. I'll start over fresh after a good night sleep.

                Parameters: 
                Executing: SDL1_VIDEODRIVER=dispmanx SDL_DISPMANX_WIDTH=1920 SDL_DISPMANX_HEIGHT=1080 /opt/retropie/emulators/daphne/daphne.sh "/home/pi/RetroPie/roms/daphne/timegal.daphne"
                [console] Setting alternate home dir:
                [console] /opt/retropie/emulators/daphne
                2021-03-28 12:32:30.074 INFO  [21533] [reset_logfile@323] Version v2.0.2.4-RPi
                2021-03-28 12:32:30.074 INFO  [21533] [reset_logfile@327] Command line: /opt/retropie/emulators/daphne/daphne.bin singe vldp -framefile /home/pi/RetroPie/roms/daphne/timegal.daphne/timegal.txt -script /home/pi/RetroPie/roms/daphne/timegal.daphne/timegal.singe -homedir /opt/retropie/emulators/daphne -fullscreen 
                2021-03-28 12:32:30.074 INFO  [21533] [reset_logfile@328] CPU : UnknownCPU || Mem : 1856 megs
                2021-03-28 12:32:30.074 INFO  [21533] [reset_logfile@329] OS : Linux 5.10 || Video : Unknown video
                2021-03-28 12:32:30.074 INFO  [21533] [reset_logfile@330] RGB2YUV Function: C
                2021-03-28 12:32:30.074 INFO  [21533] [reset_logfile@336] Line Blending Function: C
                2021-03-28 12:32:30.074 INFO  [21533] [reset_logfile@343] Audio Mixing Function: C
                2021-03-28 12:32:32.035 INFO  [21533] [ldp_vldp::read_frame_conversions@1038] Framefile parse succeeded. Video/Audio directory is: /home/pi/RetroPie/roms/daphne/timegal.daphne/./
                2021-03-28 12:32:32.056 INFO  [21533] [printline@95] Starting Singe version 1.14
                2021-03-28 12:32:32.059 INFO  [21533] [printline@95] SINGE: Unable to load sprite singe/timegal/arrowup.png!
                2021-03-28 12:32:32.059 INFO  [21533] [printline@95] SINGE: Unable to load sprite singe/timegal/arrowdown.png!
                2021-03-28 12:32:32.059 INFO  [21533] [printline@95] SINGE: Unable to load sprite singe/timegal/arrowleft.png!
                2021-03-28 12:32:32.059 INFO  [21533] [printline@95] SINGE: Unable to load sprite singe/timegal/arrowright.png!
                2021-03-28 12:32:32.059 INFO  [21533] [printline@95] SINGE: Unable to load sprite singe/timegal/action.png!
                2021-03-28 12:32:32.059 INFO  [21533] [printline@95] SINGE: Unable to load sprite singe/timegal/button.png!
                2021-03-28 12:32:32.059 INFO  [21533] [printline@95] SINGE: Unable to load sprite singe/timegal/selarrow.png!
                2021-03-28 12:32:32.060 INFO  [21533] [printline@95] SINGE: Unable to load sprite singe/timegal/num00.png!
                2021-03-28 12:32:32.060 INFO  [21533] [printline@95] SINGE: Unable to load sprite singe/timegal/num01.png!
                2021-03-28 12:32:32.060 INFO  [21533] [printline@95] SINGE: Unable to load sprite singe/timegal/num02.png!
                2021-03-28 12:32:32.060 INFO  [21533] [printline@95] SINGE: Unable to load sprite singe/timegal/num03.png!
                2021-03-28 12:32:32.060 INFO  [21533] [printline@95] SINGE: Unable to load sprite singe/timegal/num04.png!
                2021-03-28 12:32:32.060 INFO  [21533] [printline@95] SINGE: Unable to load sprite singe/timegal/num05.png!
                2021-03-28 12:32:32.060 INFO  [21533] [printline@95] SINGE: Unable to load sprite singe/timegal/num06.png!
                2021-03-28 12:32:32.060 INFO  [21533] [printline@95] SINGE: Unable to load sprite singe/timegal/num07.png!
                2021-03-28 12:32:32.060 INFO  [21533] [printline@95] SINGE: Unable to load sprite singe/timegal/num08.png!
                2021-03-28 12:32:32.060 INFO  [21533] [printline@95] SINGE: Unable to load sprite singe/timegal/num09.png!
                2021-03-28 12:32:32.060 INFO  [21533] [printline@95] SINGE: Unable to load font.
                2021-03-28 12:32:32.060 INFO  [21533] [printline@95] SINGE: Could not open singe/timegal/ring01.wav: Couldn't open singe/timegal/ring01.wav
                2021-03-28 12:32:32.060 INFO  [21533] [printline@95] SINGE: Could not open singe/timegal/credit.wav: Couldn't open singe/timegal/credit.wav
                2021-03-28 12:32:32.060 INFO  [21533] [printline@95] SINGE: Could not open singe/timegal/select.wav: Couldn't open singe/timegal/select.wav
                2021-03-28 12:32:32.060 INFO  [21533] [printline@95] SINGE: Could not open singe/timegal/ring02.wav: Couldn't open singe/timegal/ring02.wav
                2021-03-28 12:32:32.060 INFO  [21533] [printline@95] SINGE: Could not open singe/timegal/right.wav: Couldn't open singe/timegal/right.wav
                2021-03-28 12:32:32.060 INFO  [21533] [printline@95] SINGE: Could not open singe/timegal/wrong.wav: Couldn't open singe/timegal/wrong.wav
                2021-03-28 12:32:32.060 INFO  [21533] [printline@95] SINGE: Could not open singe/timegal/blip.wav: Couldn't open singe/timegal/blip.wav
                2021-03-28 12:32:32.060 INFO  [21533] [printline@95] SINGE: Could not open singe/timegal/teedo.wav: Couldn't open singe/timegal/teedo.wav
                
                
                roslofR 1 Reply Last reply Reply Quote 0
                • roslofR
                  roslof @Darksavior
                  last edited by

                  @DirtBagXon good news, for what it's worth, everything is still running well for me post change.

                  @Darksavior once you're back up, the timing of Singe games are well improved with the latest commit. Time Gal boot + new life is zippy. Mad Dog "shooting gallery" scenes are as fast as the original arcade version.

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

                    @Darksavior @roslof

                    I have added another option to disable the lair2 overlays in case it's that that is causing the stuttering issue on the PI.

                    In RetroPie docs at: https://retropie.org.uk/docs/Daphne/

                    You have the ability to issue game specific config via <gamename>.commands

                    So in this case, in thelair2.daphne directory create a file: lair2.commands and add -nolair2_overlay to it.

                    cat /home/pi/RetroPie/roms/daphne/lair2.daphne/lair2.commands
                    -nolair2_overlay
                    

                    It's in the latest repo merge.

                    Let me know results.

                     

                    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

                    roslofR 1 Reply Last reply Reply Quote 1
                    • roslofR
                      roslof @DirtBagXon
                      last edited by

                      @dirtbagxon said in New Hypseus and lr-Daphne to add on Retropie-Setup:

                      Let me know results.

                      For what it's worth, I have never had issues with Lair2, either with KMS or FKMS. Using 720p videos derived from the Digital Leisure product. Thanks again @DirtBagXon. Still, loving all of these new improvements. Daphne has been dead for far too long.

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

                        @roslof said in New Hypseus and lr-Daphne to add on Retropie-Setup:

                        @dirtbagxon said in New Hypseus and lr-Daphne to add on Retropie-Setup:

                        Let me know results.

                        For what it's worth, I have never had issues with Lair2, either with KMS or FKMS. Using 720p videos derived from the Digital Leisure product. Thanks again @DirtBagXon. Still, loving all of these new improvements. Daphne has been dead for far too long.

                        Well, it's an option, not enabled by default - but if issues arise it's there....

                        If 720p videos work it does imply an encoding issue.....

                         
                        Edit: I have had lair2 attract mode running on a Pi4 for last few hours, I occasionally see some stuttering, but bearable to me.

                        It is probably the Pi drivers, if (moving forward) you have the KMS options this may improve. In the meantime if it bugs you, turn the overlay off as above.

                        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

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

                          @dirtbagxon Alright, I found out I wasn't creating the symlink for singe. Huge improvements when i tested time gal. ~30sec for the first load. ~10 when I die.

                          With lair2, I previously tested with the kms and fkms driver and got the same jittery results. I can verify that -nolair2_overlay fixes the problem.

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

                            @darksavior said in New Hypseus and lr-Daphne to add on Retropie-Setup:

                            With lair2, I previously tested with the kms and fkms driver and got the same jittery results. I can verify that -nolair2_overlay fixes the problem.

                            So the only different between you and @roslof is the video files....

                            Think that may point a finger.

                            Also I note that lair2 is listed with issues on the compatibility list:

                            https://docs.google.com/spreadsheets/d/1Hy2VpPXgs4a9imeu0_w3SpehKEkhUNOLzD1jhcgwS3o/edit#gid=0

                            Glad you are all sorted :)

                             

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

                              @Darksavior @roslof

                              Deleted the origin request, as I have now managed to replicate the stuttering, which is in fact due to the video file encoding on this version:

                               67838539 Nov 28  2019 dl211.vob.m2v
                              
                              Video
                              Format                                   : MPEG Video
                              Format version                           : Version 2
                              Format profile                           : Main@Main
                              Format settings                          : CustomMatrix / BVOP
                              Format settings, BVOP                    : Yes
                              Format settings, Matrix                  : Custom
                              Format settings, GOP                     : Variable
                              Format settings, picture structure       : Frame
                              Duration                                 : 1 min 30 s
                              Bit rate mode                            : Variable
                              Bit rate                                 : 6 000 kb/s
                              Maximum bit rate                         : 7 200 kb/s
                              Width                                    : 640 pixels
                              Height                                   : 480 pixels
                              Display aspect ratio                     : 4:3
                              Frame rate                               : 29.970 (30000/1001) FPS
                              Standard                                 : NTSC
                              Color space                              : YUV
                              Chroma subsampling                       : 4:2:0
                              Bit depth                                : 8 bits
                              Scan type                                : Interlaced
                              Scan order                               : Bottom Field First
                              Compression mode                         : Lossy
                              Bits/(Pixel*Frame)                       : 0.652
                              Time code of first frame                 : 00:00:00:00
                              Stream size                              : 64.7 MiB (100%)
                              Writing library                          : TMPGEnc 2.525.64.184
                              Color primaries                          : BT.601 NTSC
                              Transfer characteristics                 : BT.601
                              Matrix coefficients                      : BT.601
                              
                              sha1sum dl211.vob.m2v
                              580c1beb00788e96386015b879ccaaffe32a7f7d  dl211.vob.m2v
                              

                              I grabbed the 1080p HD lair2 files and it was no longer evident even at higher resolution. This ties up with what @roslof stated.

                              I did also take the opportunity to heavily optimise the lair2 overlay code and ensure that alignment is correct on HD (4:3) videos.

                              I know the Pi won't support these HD videos smoothly, I didn't actually bother with HD previously, but having now seen them, I would be looking to encode these myself to a size that will run on the Pi.

                               

                              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

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

                                @dirtbagxon I tried this 1080p 4:3 version of lair2 and I saw the jitter as well. Using -nolair2_overlayalso fixes it. I'm still using the build from my last post. I did not know someone went ahead and did a somewhat proper 1080p release and they look nice so I'll replace mine with those. I was deeply discouraged by some 16:9 singe v2 timegal release.

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

                                  @darksavior said in New Hypseus and lr-Daphne to add on Retropie-Setup:

                                  @dirtbagxon I was deeply discouraged by some 16:9 singe v2 timegal release.

                                  I hear you there....

                                  There are some new lair2 overlay improvements in the repo, if you feel inclined, but I'm not sure what is going on with your jittering now to be honest.

                                  Maybe my eyes are just too old now 8)

                                  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

                                  DarksaviorD 1 Reply Last reply Reply Quote 1
                                  • DarksaviorD
                                    Darksavior @DirtBagXon
                                    last edited by Darksavior

                                    @dirtbagxon New problem with these 1080p versions. Both lair1 and ace get a black screen eventually but I can hear the audio. I haven't finished the first level in lair2 but I didn't get it with that one. I can see some text for a brief second..something about video parsing. Is there a way to force hypseus to parse everything again? I can only find info about deleting some dat file which I'm not sure what it's called or where it's located.

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

                                      @darksavior said in New Hypseus and lr-Daphne to add on Retropie-Setup:

                                      @dirtbagxon New problem with these 1080p versions. Both lair1 and ace get a black screen eventually but I can hear the audio. I haven't finished the first level in lair2 but I didn't get it with that one. I can see some text for a brief second..something about video parsing. Is there a way to force hypseus to parse everything again? I can only find info about deleting some dat file which I'm not sure what it's called or where it's located.

                                      Delete the .dat files in each on their directories.

                                      cd lair.daphne
                                      rm *.dat           <- Check that command carefully
                                      
                                      cd ../ace.daphne
                                      rm *.dat
                                      
                                      cd ../lair2.daphne
                                      rm *.dat
                                      

                                      You should see the regeneration of the .dat files next time you start each game.

                                      Trying to run these 1080p videos on a RPi will be problematic, you may want to re-encode the resolution down a little.

                                      I believe you are a Mac user, so ffmpeg maybe your route here:

                                      ffmpeg -i dl-slates-orig.m2v -vf scale=800:600 -codec:v mpeg2video -b 4182k dl-slates.m2v
                                      

                                      But we are getting into a whole different arena here, maybe do some reading up on this.

                                       

                                      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

                                      DarksaviorD 1 Reply Last reply Reply Quote 1
                                      • DarksaviorD
                                        Darksavior @DirtBagXon
                                        last edited by

                                        Ah, I needed to get rid of all of the dat files, thanks.

                                        @dirtbagxon said in New Hypseus and lr-Daphne to add on Retropie-Setup:

                                        Trying to run these 1080p videos on a RPi will be problematic, you may want to re-encode the resolution down a little.

                                        How so? I tested all 3 games for almost an hour and they don't seem to have any problems? My pi4 is overclocked. 2Ghz for cpu, and 750Mhz for gpu.

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

                                          @darksavior said in New Hypseus and lr-Daphne to add on Retropie-Setup:

                                          Ah, I needed to get rid of all of the dat files, thanks.

                                          @dirtbagxon said in New Hypseus and lr-Daphne to add on Retropie-Setup:

                                          Trying to run these 1080p videos on a RPi will be problematic, you may want to re-encode the resolution down a little.

                                          How so? I tested all 3 games for almost an hour and they don't seem to have any problems? My pi4 is overclocked. 2Ghz for cpu, and 750Mhz for gpu.

                                          Oh OK, perfect - happy days!!

                                          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

                                            @roslof

                                            The Timetraveler font misalignment issue:

                                            Copy the ds-digib.ttf as a backup from Timetraveler folder, then load it in:

                                            http://www.glyphrstudio.com/online/

                                            Then immediately save it as an OTF font, it will be named MyFont-Bold.otf.

                                            Rename this .otf file to overwrite ds-digib.ttf.

                                            Thank me later.......

                                            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

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