Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord
    1. Home
    2. DirtBagXon
    3. Posts
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 30
    • Best 6
    • Controversial 0
    • Groups 0

    Posts made by DirtBagXon

    • RE: New Hypseus with overlays and Singe support

      @dirtbagxon said in New Hypseus with overlays and Singe support:

      So, having refreshed myself with the SDL2 documentation now it is back on-line.
      The failure is occurring in SDL_CreateRenderer()

      The default FLAGS for the accelerated renderer currently are:

      g_renderer = SDL_CreateRenderer(g_window, -1, 
      SDL_RENDERER_ACCELERATED |
      SDL_RENDERER_TARGETTEXTURE |
      SDL_RENDERER_PRESENTVSYNC);
      

      These are three of only a few FLAGS documented here: https://wiki.libsdl.org/SDL_RendererFlags

      Can I suggest that you try removing each flag in turn in the source code and recompile?

      The code is located in: src/video/video.cpp (lines 283-285)

      https://github.com/DirtBagXon/hypseus-singe/blob/master/src/video/video.cpp#L283

      Please let me know what FLAG is causing the issue, and what display environment you are using in the new buildroot, and how it differs from previous.

      posted in Your recalbox
      DirtBagXon
      DirtBagXon
    • RE: New Hypseus with overlays and Singe support

      @pitch64 said in New Hypseus with overlays and Singe support:

      • SDL2 2.0.14
      • SDL2 image 2.0.5
      • SDL2 ttf 2.0.15
      • SDL2 gfx 1.0.4
      • SDL2 mixer 2.0.4
      • SDL2 net 2.0.1

      I haven't seen any issues with those versions yet....

      Can you identify if this is due to the later version ?

      If you reset to 2.4.8 (as you used before) does this work on this buildroot?

      git reset --hard df8bab2a400d24c998126646b5d5ed8f15be9e86
      

      Please define 'most' are there specific games that do work?

      Would it be possible to provide me with an image of this buildroot environment (pi4) to test on ?

      Can you expand on these?

      posted in Your recalbox
      DirtBagXon
      DirtBagXon
    • RE: New Hypseus with overlays and Singe support

      @akkeoss said in New Hypseus with overlays and Singe support:

      @dirtbagxon Thanks for your quick return. For the enter key I managed to find yesterday in your keylist.txt file On the other hand, indeed, I had not seen the Windows key. I will look tonight to do the test with your decimal value. Thanks again for your work. Regards

      The decimal values should work on any version. However in the latest versions of Hypseus (2.6.9+) I have attempted to simplify this. So you would be able to use MACRO's instead of the long decimal numbers.

      See here.

      But if you are on an earlier version than 2.6.9, this is for future reference.

      posted in Your recalbox
      DirtBagXon
      DirtBagXon
    • RE: New Hypseus with overlays and Singe support

      @pitch64 said in New Hypseus with overlays and Singe support:

      most games refuses to start, always returning a SDL video error at least on rpi4:

      Please define 'most' are there specific games that do work?

      I see nothing obvious to cause this, I am running 2.6.15-3 on a RPi here with no issues (SDL2 2.0.10+5rpi)

      Would it be possible to provide me with an image of this build environment (pi4) to test on ?

      posted in Your recalbox
      DirtBagXon
      DirtBagXon
    • RE: New Hypseus with overlays and Singe support

      @akkeoss said in New Hypseus with overlays and Singe support:

      Hello @DirtBagXon
      I would need a little help setting up the hyinput.ini file
      Currently I am using a dolphinbar and I am in mode 2. I cannot find the key decimal values ​​for 2 keys. The home key and the plus of the wiimote. I would like to configure the home key (windows according to the doc) to exit the emulator. And the plus key (enter) to start. Can you help me ? Thank you in advance.

      These are SDL2 scancodes, so would come from here: https://wiki.libsdl.org/SDL_Keycode

      Which is conveniently down at the time of looking. 😞

      I have a local copy here: https://github.com/DirtBagXon/hypseus-singe/blob/master/doc/keylist.txt

      Return/Enter = SDLK_RETURN = 13

      So you can use either MACRO or the decimal 13 here.

      The Windows Key (Home) appears to be SDLK_LGUI in SDL2.

      The decimal value for this is: 1073742051

      I will add this key MACRO so you will be able to use SDLK_LGUI in the next release, but for the moment use the decimal: 1073742051

      posted in Your recalbox
      DirtBagXon
      DirtBagXon
    • RE: New Hypseus with overlays and Singe support

      @pitch64 said in New Hypseus with overlays and Singe support:

      Hi,

      On the next future version, we are trying to build the latest version (2.6.15 iirc) but since we updated Buildroot, we have some issues and most games refuses to start, always returning a SDL video error at least on rpi4:

      [video::init_display@285] Could not initialize renderer: Couldn't find matching render driver

      What could be the cause of this error if you have an idea? Thank you 🙂

      This is an error from the low level SDL renderer creation.

      if (g_game->m_sdl_software_rendering) {
                      g_renderer = SDL_CreateRenderer(g_window, -1, SDL_RENDERER_SOFTWARE |
                                                                    SDL_RENDERER_TARGETTEXTURE);
                  } else {
                      g_renderer = SDL_CreateRenderer(g_window, -1, SDL_RENDERER_ACCELERATED |
                                                                    SDL_RENDERER_TARGETTEXTURE |
                                                                    SDL_RENDERER_PRESENTVSYNC);
                  }
      

      This setup function hasn't changed, so must be something else going on here.

      What SDL2 version and display environment is this running on?

      posted in Your recalbox
      DirtBagXon
      DirtBagXon
    • RE: New Hypseus with overlays and Singe support

      Singe ALG Lightgun support - Version 2.6.14:

      Hypseus Singe now has lightgun support via EV_ABS mouse input.

      Verified Sinden and DolphinBar/Wiimote operation.

      See the discussion on the GitHub repo:

      https://github.com/DirtBagXon/hypseus-singe/discussions/21

       

       

      posted in Your recalbox
      DirtBagXon
      DirtBagXon
    • RE: LIGHTGUN / Mac Dog Mc Cree

      DolphinBar/WiiMote issues have been fixed in Hypseus Singe version 2.6.14

      https://github.com/DirtBagXon/hypseus-singe/commit/7928526229d264d73775710ec961b4f4abfaad03

      You will want to push for this version in future releases for optimal Lightgun support.

      posted in Recalbox Général
      DirtBagXon
      DirtBagXon
    • RE: New Hypseus with overlays and Singe support

      For information:

      Version 2.6.6 now makes massive improvements in Singe functionality, with increased accuracy in gun games and increased overlay frame rates for smoother game play.

      Another long standing porting issue resolved in Singe.....

      Unfortunately this doesn't improve the ActionMax support on the Pi..... but improvements elsewhere are significant.

      posted in Your recalbox
      DirtBagXon
      DirtBagXon
    • RE: New Hypseus with overlays and Singe support

      For convenience and at your discretion the patch is to ldp.cpp here:

      https://github.com/DirtBagXon/hypseus-singe/commit/8164aab57b6eeee6743329fd158079591349a5fd#diff-1e03eab49b7f8af8ec4060bda6099a7efb6418c56e88aa772424c25809791b0a

      posted in Your recalbox
      DirtBagXon
      DirtBagXon
    • RE: New Hypseus with overlays and Singe support

      @pitch64

      I should also point out that there was a long standing Singe bug that could have random and strange results with video loops etc.

      This was fixed in version 2.5.6.

      You may or may not hit this issue depending on the game you are trying.

      But there are many improvements in the versions after 2.4.8 some specifically for Singe.

      I understand you have a release cycle but please bear this in mind.

      I can provide a diff for this fix (it's quite small) if you want to go all non-standard for 2.4.8 ?

       

      posted in Your recalbox
      DirtBagXon
      DirtBagXon
    • RE: New Hypseus with overlays and Singe support

      @pitch64

      The way the YUV is rendered in a SDL2 texture within Hypseus made the function that reads the pixels far more difficult than it should be. I made some comments in the README of this repo:

      https://github.com/DirtBagXon/hypseus_singetwo_data/tree/master/actionmax

      You can try using the -nohwaccel option but on the Pi but this will probably lower your framerate to unacceptable levels. At this point I don't have a solution on the Pi until, I currently believe, X11 and SDL2 support is improved. ActionMax works fine on the Linux desktops, Windows and Mac ports.

      However, as you mention versions, from v2.6.1 (very recent) adding Singe support to emulation stations will become vastly simplified using the -retropath argument. This performs on-the-fly LUA path rewrites for singe peripheral data, which removes the need for the singe sub-directory completely. I posted some early data above (which I can no longer edit), but the latest details are commented here:

      https://github.com/DirtBagXon/hypseus-singe/blob/master/src/3rdparty/retropie/RETROPIE.md

      You may want, if you forgive the link, look here too: https://retropie.org.uk/forum/post/263036

      posted in Your recalbox
      DirtBagXon
      DirtBagXon
    • RE: New Hypseus with overlays and Singe support

      Singe integration should now be significantly easier in emulation console environments as of version 2.6.1.

      I have added a new argument (-retropath) to Singe games that will rewrite the LUA data paths, on the fly, to match the standard Daphne folder structure:

      singe/timegal/
      

      to

      singe/../timegal.daphne/
      

      Which, although still requires the ‘singe’ subdirectory, the directory can, and should, remain empty.

      This removes the need for sym linking peripheral data in the subdirectory.

      Further details are in latest RetroPie documentation and implementation is in daphne.sh script.

      posted in Your recalbox
      DirtBagXon
      DirtBagXon
    • RE: New Hypseus with overlays and Singe support

      Further features in line with Daphne.

      CRT, Laserdisc artifacts - Scanlines and Blanking Searches:

      https://www.youtube.com/watch?v=LoFPJxeQI3Y&list=PLRLuhkf2c3OeRoXydn0upKyIBUXNMK13x&index=1

      lair scanlines

      badlands scanlines

      posted in Your recalbox
      DirtBagXon
      DirtBagXon
    • RE: New Hypseus with overlays and Singe support

      @carolynperry said in New Hypseus with overlays and Singe support:

      Indeed, I've seen that you go on improving the emulator. Thanks.

      I try 🙂

      Software Scoreboard

      https://www.youtube.com/watch?v=tprqS8bUDkI&list=PLRLuhkf2c3OeRoXydn0upKyIBUXNMK13x

       

      posted in Your recalbox
      DirtBagXon
      DirtBagXon
    • RE: New Hypseus with overlays and Singe support

      @lmerckx said in New Hypseus with overlays and Singe support:

      @dirtbagxon
       
      Just for information, the patch you imported from "Batocera" to support multiple joysticks and improve them is mine. It has been created for Recalbox and copied by Batocera. 😉

      Arggh, sorry about that, I didn't see them link it back.

      As I said before, many thanks for all the previous improvements before I took a look at hypseus. It would not be what it is today without all the developer input.

      posted in Your recalbox
      DirtBagXon
      DirtBagXon
    • RE: New Hypseus with overlays and Singe support

      For any Windows users out there, there is now a Windows Port of Hypseus Singe:

      https://github.com/DirtBagXon/hypseus-singe/tree/master/win32

      posted in Your recalbox
      DirtBagXon
      DirtBagXon
    • RE: New Hypseus with overlays and Singe support

      @lmerckx said in New Hypseus with overlays and Singe support:

      @DirtBagXon I've tested the joystick patch.

      It works but, indeed, targeting with the joystick is really hard !
      The mouse (touchpad for me) is really simplier.

      But anyway, I will post a merge request to integrate your project in Recalbox.

      Many thanks,

      I have been told that it works well with lightguns and trackball setups, but I don't have the ability to test these.

      It basically uses SDL2 LEFT, RIGHT, UP and DOWN keycodes, so provided the connected device send these (joysticks, trackb***s, lightguns and indeed keyboards) all do so technically it should work.

      The patch is now in the main master and RetroPie branches, so no need to use the sub-branch above.

      A few others have now tested with good responses, so thank you for the idea of adding it 😁

      It does add a new element of difficulty to the games, but a few of the testers have added it to arcade cabinet conversions (which obviously don't have mice), and are giving very positive feedback......

       

      posted in Your recalbox
      DirtBagXon
      DirtBagXon
    • RE: New Hypseus with overlays and Singe support

      @RustyMG said in New Hypseus with overlays and Singe support:

      Could an analogue joypad be "fooled" into operating as a mouse as a work around ?

      If the joystick is supported by linux, and you can see axis movement with jstest: -

      Yes it should now work in the main repo from v2.4.2

       

      I believe the following games work on Singe?

      Crime Patrol
      Crime Patrol 2: Drug Wars
      Mad Dog McCree
      Mad Dog McCree 2: The Lost Gold
      Ninja Hayate
      Space Pirates
      Time Gal
      Time Traveler
      The Last Bounty Hunter
      Who Shot Johnny Rock
      38 Ambush Alley
      Blue Thunder
      HydroSub 2021
      Pops Ghostly
      Sonic Fury

      Yep all these work.... plus....

      TimeGal (Singe 1 and 2 versions)
      Ninja Hayate
      Starblazers
      Platoon (Singe 2)
      Freedom Fighter
      Fire and Ice (Singe 2)
      Dragon's Lair 2 Enhanced Edition (Singe 2)

      Not to forget all the Daphne games...

       

      posted in Your recalbox
      DirtBagXon
      DirtBagXon
    • RE: New Hypseus with overlays and Singe support

      @DirtBagXon said in New Hypseus with overlays and Singe support:

      BTW: Maddog will look optimal with the following argument too:   -blend_singe_sprites

      -blend_singe_sprites now changed to -blend_sprites

      Option has become game (singe) specific....

       

      Also just to clarify, joystick support is now within Hypseus Singe in the branch link above.

      It does not need the wrapper options discussed above.

      posted in Your recalbox
      DirtBagXon
      DirtBagXon