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 259.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.
    • roslofR
      roslof @Gamesman
      last edited by roslof

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

      You need to update Hypseus Singe to version 2.2.8-RPi - That is v2.2.6-RPi

      That worked. I will test Time Traveler more to make sure it works properly.

      Thank you.

      Hmmm. For me, the intro and such are working, but when you start the game, the video does not play the correct scenes. Were you able to actually play the game?

      FWIW: I don't have an x86 Unix setup, so everything was handled on the Pi 4B, including m2v and ogg conversation using the command-lines listed on @DirtBagXon's updated repo.

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

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

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

        You need to update Hypseus Singe to version 2.2.8-RPi - That is v2.2.6-RPi

        That worked. I will test Time Traveler more to make sure it works properly.

        Thank you.

        Hmmm. For me, the intro and such are working, but when you start the game, the video does not play the correct scenes. Were you able to actually play the game?

        FWIW: I don't have an x86 Unix setup, so everything was handled on the Pi 4B, including m2v and ogg conversation using the command-lines listed on @DirtBagXon's updated repo.

        Where you recode shouldn't matter, will just take a little longer. Unless there is some endian issue.

        There is always this route (untested): https://ffmpeg.org/download.html#build-windows

         

        • And you are using only files from the new repo with these rips?

        • Nothing from the original version of the game ?

        • You saw a new .dat creation on first run ?

         

         
        Sounds like frame timings in the .singe files are not corresponding with the video frames.

         

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

          Another couple of Singe 2 games ported over.

          I am not seeing any sound/video sync issues or wrong scenes on x86_64 except in maddog - but we have the original version working fine so not pursuing this.

           
          Titan AE
          titanae.png

           
          Puss in Boots
          pussinboots.png

           

          Edit:
          Text overlays are now working, but certain games are designed to run at a high resolution overlay in Singe 2, not supported in Singe 1.
          Some tweaking therefore required in .singe and peripheral image file sizes. Elementary resizing merged into repo (see above).

          If you fixup a Singe 2 game .singe/image  file, please fork the repo and push a merge request into the main repo in Github, for everyone to improve upon.

          Please pull 2.2.8-RPi afresh.

          Look forward to feedback from you guys.

           

          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
          • roslofR
            roslof @DirtBagXon
            last edited by roslof

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

            Sounds like frame timings in the .singe files are not corresponding with the video frames.

            Solved. The issue was with my download source. Same content, but encoded differently, so it didn't align with the existing framefile. Coincidentally, I already DL'ed Timegal 2.0 a few weeks ago when the BlueStang started playing with Hypseus, so I was ready to go.

            Also, and good to know, is that the Windows version of ffmpeg worked beautifully. Took about 2 minutes to re-encode for the full video on a Dell G7.

            Will start playing around now...
            Cheers!

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

              Repo updated on getting correct size overlay and resizing images.
              Resizing down by factor of 3 seems to work best....

              timegaloverlay.png

              titanae_overlay.png

              pussinboots.png

              I am updating repo as I improve them....

              Hmmm... must say I prefer original TimeGal overlay...

               

              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 0
              • roslofR
                roslof @DirtBagXon
                last edited by

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

                Repo updated on getting correct size overlay and resizing images.
                Resizing down by factor of 3 seems to work best....

                I like this scale. It's fun. Your overlay fonts and outlines around the "timegal" characters in the lower left look much better than on my Pi 4B (by a lot). Can't seem to get rid of the odd white silhouettes. Yours seem to anti-alias much better. Hard to describe.

                timegal-2021.04.03-14.07.jpg

                DirtBagXonD 2 Replies Last reply Reply Quote 0
                • 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:

                  Repo updated on getting correct size overlay and resizing images.
                  Resizing down by factor of 3 seems to work best....

                  I like this scale. It's fun. Your overlay fonts and outlines around the "timegal" characters in the lower left look much better than on my Pi 4B (by a lot). Can't seem to get rid of the odd white silhouettes. Yours seem to anti-alias much better. Hard to describe.

                  timegal-2021.04.03-14.07.jpg

                  Try the

                  globals.singe:fontQuality(FONT_QUALITY_BLENDED)
                  

                  to FONT_QUALITY_SOLID or FONT_QUALITY_SHADED vice versa....

                   
                  Edit:
                  Being dumb, these are sprites not fonts, so doubt that will change....

                   

                  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 0
                  • roslofR
                    roslof @DirtBagXon
                    last edited by roslof

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

                    Try the
                    globals.singe:fontQuality(FONT_QUALITY_BLENDED)

                    to FONT_QUALITY_SOLID or FONT_QUALITY_SHADED vice versa....
                     
                    Edit:
                    Being dumb, these are sprites not fonts, so doubt that will change....

                    Heh, I tried the same thing earlier, so... we had the same silly thought.
                    No dice, as you expected.
                    I did view the converted images and they look perfectly fine. It's something about how singe is rendering sprites. Antialiasing seems busted. The white silhouette appears around fonts when using blended or shaded, too. FWIW, this is nothing new since this project started. Again, something legacy/inherited.

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

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

                      I like this scale. It's fun. Your overlay fonts and outlines around the "timegal" characters in the lower left look much better than on my Pi 4B (by a lot). Can't seem to get rid of the odd white silhouettes. Yours seem to anti-alias much better. Hard to describe.

                      Try adding -sdl_software_rendering to a timegal.commands file:

                      /home/pi/RetroPie/roms/daphne/timegal.daphne/timegal.commands
                      

                      It might stop game loading completely, I haven't tried on RPi, but also may offer different rendering.....

                      The rendering is changed by SDL when the -fullscreen option is used. Which the RetroPie scripts use by default as I recall. That is why mine look sharper above as they were in a window not SDL_WINDOW_FULLSCREEN_DESKTOP.

                      Google for SDL2 font crappiness , it's rife.

                       

                      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 0
                      • roslofR
                        roslof @DirtBagXon
                        last edited by

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

                        It might stop game loading completely, I haven't tried on RPi, but also may offer different rendering.....

                        Right again. Appreciate the effort.

                        ERROR;5434;0;video::init_display@244;"Could not initialize renderer: Couldn't find matching render driver"
                        
                        DirtBagXonD 1 Reply Last reply Reply Quote 0
                        • 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:

                          It might stop game loading completely, I haven't tried on RPi, but also may offer different rendering.....

                          Right again. Appreciate the effort.

                          ERROR;5434;0;video::init_display@244;"Could not initialize renderer: Couldn't find matching render driver"
                          

                          If you are feeling experimental, search for SDL_WINDOW_FULLSCREEN_DESKTOP in src/video/video.cpp and change all instances (4) to SDL_WINDOW_FULLSCREEN.

                          https://wiki.libsdl.org/SDL_WindowFlags

                          https://stackoverflow.com/questions/50893271/whats-the-difference-between-sdl-window-fullscreen-and-sdl-window-fullscreen-de

                          Then recompile copy over daphne.bin

                          To revert your changes (thought I better add this):

                          git checkout src/video/video.cpp
                          

                          recompile again..... etc....

                          Another route: change to SDL_WINDOW_MAXIMIZED

                          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 0
                          • roslofR
                            roslof @DirtBagXon
                            last edited by

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

                            Then recompile copy over daphne.bin

                            I always feel experimental. :)
                            No noticeable change using SDL_WINDOW_FULLSCREEN.
                            ...and because I'm silly, tried SDL_WINDOW_OPENGL, too. Still no change. Thought that would have caused trouble, but nothing special happened.

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

                              @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:

                              Then recompile copy over daphne.bin

                              I always feel experimental. :)
                              No noticeable change using SDL_WINDOW_FULLSCREEN.
                              ...and because I'm silly, tried SDL_WINDOW_OPENGL, too. Still no change. Thought that would have caused trouble, but nothing special happened.

                              SDL_WINDOW_MAXIMIZED ?

                              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

                                if (g_fullscreen) sdl_flags |= SDL_WINDOW_MAXIMIZED | SDL_WINDOW_BORDERLESS;
                                

                                This might work ?

                                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

                                  @roslof

                                  I think this will do it:

                                  Revert the other changes:

                                  git checkout src/video/video.cpp
                                  

                                  Then search for SDL_HINT_RENDER_SCALE_QUALITY

                                  And change from linear to nearest

                                  There are two instances...

                                   
                                  git blame points the finger:

                                  6de2b462 (vanfanel       2017-08-01 18:34:34 +0200  254)                     SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");
                                  

                                   
                                  If this does it for you, I could add another argument to allow you to switch this on a per game basis. Let me know.

                                   

                                  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 0
                                  • roslofR
                                    roslof @DirtBagXon
                                    last edited by roslof

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

                                    Then search for SDL_HINT_RENDER_SCALE_QUALITY
                                    And change from linear to nearest
                                    There are two instances...

                                    That got rid of the nasty white outlines. Global impact. Happiness ensues. :)

                                    If this does it for you, I could add another argument to allow you to switch this on a per game basis. Let me know.

                                    I don't think there is any benefit to per-game settings here. Linear seems good for nothing. This has been the #1 global, visual problem for Singe-specific games on the pi, and this seems to solve it.

                                    So it looks like there is still an issue with alpha blending (appears black around edges) but this is a HUGE improvement.

                                    Time Gal Assets:
                                    lives.png

                                    directional_arrow.png

                                    Time Traveler Font:

                                    Solid:
                                    timetraveler-2021.04.03-17.18.03.png

                                    Blended
                                    timetraveler-2021.04.03-17.24.24 BLENDED.png

                                    roslofR DirtBagXonD 2 Replies Last reply Reply Quote 0
                                    • roslofR
                                      roslof @roslof
                                      last edited by roslof

                                      This post is deleted!
                                      1 Reply Last reply Reply Quote 0
                                      • DirtBagXonD
                                        DirtBagXon @roslof
                                        last edited by DirtBagXon

                                        @roslof

                                        Ok, so here is your next challenge, add the lines with the + at the beginning in src/game/singe/singeproxy.cpp

                                        Near lines 996 and 1228

                                        @@ -996,6 +996,7 @@ static int sep_say_font(lua_State *L)
                                        dest.x = dest.x - ((g_se_overlay_width + (dest.x * 1.5))/28);
                                         
                                                         SDL_SetColorKey(textsurface, SDL_TRUE|SDL_RLEACCEL, 0);
                                        +                SDL_SetSurfaceBlendMode(textsurface, SDL_BLENDMODE_NONE);
                                                         SDL_BlitSurface(textsurface, NULL, g_se_surface, &dest);
                                                         SDL_FreeSurface(textsurface);
                                                        }
                                        @@ -1228,6 +1229,7 @@ static int sep_sprite_draw(lua_State *L)
                                                            if (dest.w == 137 && dest.h == 28) // SP
                                                                 SDL_SetColorKey(g_spriteList[sprite], SDL_FALSE|SDL_RLEACCEL, 0x000000ff);
                                         
                                        +                        SDL_SetSurfaceBlendMode(g_spriteList[sprite], SDL_BLENDMODE_NONE);
                                                                 SDL_BlitSurface(g_spriteList[sprite], NULL, g_se_surface, &dest);
                                                             }
                                               }
                                        

                                        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 roslof

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

                                          Ok, so here is your next challenge...

                                          Ooh, you make this sound like a game!

                                          ...add the lines with the + at the beginning in src/game/singe/singeproxy.cpp
                                          Near lines 996 and 1228

                                          Done. BOOM!

                                          lives_fixed.png

                                          directional_arrow_fixed.png

                                          So, MUCH improved. You can tell by the directional arrow that it's still catching a little of the alpha blending (and turning it black) but again, HUGE improvement!

                                          EDIT: Tried SDL_BLENDMODE_BLEND which I'm assuming was default, 'cause was effectively back to square 1. Tried SDL_BLENDMODE_ADD and SDL_BLENDMODE_MOD, which resulted in nothing rendering.

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

                                            @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:

                                            Ok, so here is your next challenge...

                                            EDIT: Tried SDL_BLENDMODE_BLEND which I'm assuming was default, 'cause was effectively back to square 1. Tried SDL_BLENDMODE_ADD and SDL_BLENDMODE_MOD, which resulted in nothing rendering.

                                            Yep, saw same result.

                                            I agree this setting is better, but the optimal look is with this Singe blending off SDL_BLENDMODE_NONE and SDL_HINT_RENDER_SCALE_QUALITY linear back on.

                                            Flicking through Daphne games (unaffected by the BLEND), nearest provided too stark a rendering to me on lair scoreboards etc..

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