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

    Atari 5200: New version of Atari800 (Beta): two triggers (Moon Patrol!!!), hat start and exit buttons

    Scheduled Pinned Locked Moved Ideas and Development
    409 Posts 26 Posters 177.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.
    • future.childF
      future.child @zerojay
      last edited by

      @zerojay
      I just ran your script after removing both /etc/kat5200/kat5200.db3 and $home/pi/.kat5200/kat5200.db3 and in my case only /etc/kat5200/kat5200.db3 gets created.

      afaik /etc/kat5200/kat5200.db3 always gets created during "make install", at least on all installations i have performed so far.

      In my script i included "rm /etc/atari5200/atari5200.db3" after which a wget is done for a pre-configured config file (which has the bios path's setup) for this reason.

      Z 1 Reply Last reply Reply Quote 0
      • Z
        zerojay @future.child
        last edited by

        @future-child Alrighty, I'll make that change myself then.

        future.childF 1 Reply Last reply Reply Quote 0
        • future.childF
          future.child @zerojay
          last edited by

          @zerojay thanks

          1 Reply Last reply Reply Quote 0
          • darkniorD
            darknior
            last edited by

            I have copy the /etc/kat5200/kat5200.db3 file to /home/pi/.kat5200/kat5200.db3 manually, give it the good PI privileges.
            It scanning again 25 min ... and finally i can exit the emulator.
            I launch a game with it, RETURN and configure BIOS, GAMEPAD (x360) and USER interface key.
            Now it really working fine :)

            • Mario Bros : detect game and working fine.
            • Pengo : working fine with same settings
            • Ms Pacman : WF
            • Popeye : WF
            • Star Wars : WF

            So excellent :)
            Now we have a perfect A800 emulator, and a perfect A5200 emu too :)

            • To exit i must use XBOX button, but if we can found the solution to use SELECT + START it will be better.
            • An other problem when we configure JOYSTICK it use real KEY ID and not RETROARCH generic ID like Amy Berry do now too.
              If some one other use your settings, or if you have many game pad at home, it is a real problem for direct play :(
              I don't know if it can be fixed by shell script, but i think the better solution was if some one know how to modify emulator source code like Amy Berry do.

            Life is game, just play it !

            future.childF 1 Reply Last reply Reply Quote 0
            • hansolo77H
              hansolo77
              last edited by

              ^_^ Still trying to follow this... if a perfect solution is finally worked out, would somebody be willing to write up a simple step-by-step for me and other users? I've been very busy with work and home life stuff and haven't had much time to sit and play around with figuring new stuff out. I'm eager to A800 and A5200 working better than it is, and this sounds like a good solution.

              Who's Scruffy Looking?

              1 Reply Last reply Reply Quote 0
              • Z
                zerojay
                last edited by

                @future-child said in Atari 5200: New version of Atari800 (Beta): two triggers (Moon Patrol!!!), hat start and exit buttons:

                rm /etc/atari5200/atari5200.db3

                The change is in now.

                1 Reply Last reply Reply Quote 1
                • future.childF
                  future.child @darknior
                  last edited by

                  @darknior START + SELECT are already hardcoded (controller ID-0, button id's 8 & 9) for emulator exit, this only works if the joystick device is actually being opened (at least one button assigned a function to it).
                  The KEY-ID is indeed an issue, only way i see around this is to create a update to the database prior to starting the emulator based off retroarch config. This is for the time being beyond me as i still have to delve deeper into the database layout and learn to interact with it, the emulator does seem to allow for sql updates via commandline.

                  @hansolo77 it's all still experimental but working, eventually i expect the quirks will be gotten rid off and doc's will arrive as well.

                  @zerojay it works but I'd suggest instead of removing /etc/kat5200/atari5200.db3 to move the file over to $home/pi/.kat5200/ and change ownership to user pi. This because not all tables get recreated and result in strange errors.
                  Also, as a sidenote, would it not be an idea to create a update section in the menu so the scriptmodules can be updated from within retropie ?

                  Z 2 Replies Last reply Reply Quote 0
                  • darkniorD
                    darknior
                    last edited by

                    @future-child said in Atari 5200: New version of Atari800 (Beta): two triggers (Moon Patrol!!!), hat start and exit buttons:

                    START + SELECT are already hardcoded (controller ID-0, button id's 8 & 9) for emulator exit, this only works if the joystick device is actually being opened (at least one button assigned a function to it).

                    Do you speak about the A800 emu ? I'm ok for it and it's cool :)
                    On the A5200 emu it don't work. Or it don't because i change the pad mapping ?

                    The KEY-ID is indeed an issue, only way i see around this is to create a update to the database prior to starting the emulator based off retroarch config. This is for the time being beyond me as i still have to delve deeper into the database layout and learn to interact with it, the emulator does seem to allow for sql updates via commandline.

                    Yes it is a problem because you hard code for x360 pad but now i have more 8bitDo controllers, there are really better and perfect for old games. And each of them use different ID :(
                    The only solution is to update the two emulators source code.
                    Have you the source code ?

                    https://github.com/gabomdq/SDL_GameControllerDB

                    This library permit to an emulator to works fine with all the controllers we want. like Retroarch do <3
                    And the Joystick database is easier to update. PPSSPP use this library i think because i have add it my x360 Apator Receiver ID
                    If we add this options to these two emulators there are already perfect. Working fine 100%.
                    Maybe they they also miss Borders like on Retroarch :p

                    it works but I'd suggest instead of removing /etc/kat5200/atari5200.db3 to move the file over to $home/pi/.kat5200/ and change ownership to user pi. This because not all tables get recreated and result in strange errors.

                    It's what i do, and i think it's the best solution.

                    Also, as a sidenote, would it not be an idea to create a update section in the menu so the scriptmodules can be updated from within retropie ?

                    For sure, for some emulators or games in retropie Setup it can be really cool to alone update settings and not install again all the emulator :(
                    Here it can help, when we already install it, to update alone the BDD and other settings file.

                    Life is game, just play it !

                    future.childF 1 Reply Last reply Reply Quote 0
                    • Z
                      zerojay @future.child
                      last edited by zerojay

                      @future-child said in Atari 5200: New version of Atari800 (Beta): two triggers (Moon Patrol!!!), hat start and exit buttons:

                      @zerojay it works but I'd suggest instead of removing /etc/kat5200/atari5200.db3 to move the file over to $home/pi/.kat5200/ and change ownership to user pi. This because not all tables get recreated and result in strange errors.
                      Also, as a sidenote, would it not be an idea to create a update section in the menu so the scriptmodules can be updated from within retropie ?

                      I'll do that, but that also sounds like an upstream bug that should be reported.
                      Done: https://github.com/zerojay/RetroPie-Extra/commit/7328c1d00514cdeb33678f8e233f8d662d8f2bb0

                      future.childF 1 Reply Last reply Reply Quote 0
                      • Z
                        zerojay @future.child
                        last edited by

                        @future-child said in Atari 5200: New version of Atari800 (Beta): two triggers (Moon Patrol!!!), hat start and exit buttons:

                        Also, as a sidenote, would it not be an idea to create a update section in the menu so the scriptmodules can be updated from within retropie ?

                        https://github.com/zerojay/RetroPie-Extra/issues/243

                        1 Reply Last reply Reply Quote 0
                        • future.childF
                          future.child @darknior
                          last edited by future.child

                          @darknior said in Atari 5200: New version of Atari800 (Beta): two triggers (Moon Patrol!!!), hat start and exit buttons:

                          @future-child said in Atari 5200: New version of Atari800 (Beta): two triggers (Moon Patrol!!!), hat start and exit buttons:

                          START + SELECT are already hardcoded (controller ID-0, button id's 8 & 9) for emulator exit, this only works if the joystick device is actually being opened (at least one button assigned a function to it).

                          Do you speak about the A800 emu ? I'm ok for it and it's cool :)
                          On the A5200 emu it don't work. Or it don't because i change the pad mapping ?

                          It's hardcoded in both Atari800 and Kat5200, altough kat5200 only works for controller id-0 and when this controller has been assigned a function to it (unless it's assigned as input in the configuration it all keypresses are ignored).

                          The KEY-ID is indeed an issue, only way i see around this is to create a update to the database prior to starting the emulator based off retroarch config. This is for the time being beyond me as i still have to delve deeper into the database layout and learn to interact with it, the emulator does seem to allow for sql updates via commandline.

                          Yes it is a problem because you hard code for x360 pad but now i have more 8bitDo controllers, there are really better and perfect for old games. And each of them use different ID :(
                          The only solution is to update the two emulators source code.
                          Have you the source code ?

                          The source code for Atari800 is located here.
                          The source code for Kat5200 is located here.
                          The source code for Kat5200 does get adjusted by my script as follows:

                          sed -i -e '230d' /tmp/src/interface/ui.c
                          sed -i '1221 a\
                                  if ((SDL_JoystickGetButton(g_pc_joy[0].joy_ptr,8) == SDL_PRESSED) && (SDL_JoystickGetButton(g_pc_joy[0].joy_ptr,9) == SDL_PRESSED))
                          

                          https://github.com/gabomdq/SDL_GameControllerDB

                          This library permit to an emulator to works fine with all the controllers we want. like Retroarch do <3
                          And the Joystick database is easier to update. PPSSPP use this library i think because i have add it my x360 Apator Receiver ID
                          If we add this options to these two emulators there are already perfect. Working fine 100%.
                          Maybe they they also miss Borders like on Retroarch :p

                          Both Atari800 and Kat5200 use SDL for joystick support, i'm not sure if changing libraries is feasable, but you're welcome to try.
                          Edit: I see it's not a replacement for SDL but a sort of lookup table, i'll look in to it.

                          it works but I'd suggest instead of removing /etc/kat5200/atari5200.db3 to move the file over to $home/pi/.kat5200/ and change ownership to user pi. This because not all tables get recreated and result in strange errors.

                          It's what i do, and i think it's the best solution.

                          Also, as a sidenote, would it not be an idea to create a update section in the menu so the scriptmodules can be updated from within retropie ?

                          For sure, for some emulators or games in retropie Setup it can be really cool to alone update settings and not install again all the emulator :(
                          Here it can help, when we already install it, to update alone the BDD and other settings file.

                          1 Reply Last reply Reply Quote 0
                          • future.childF
                            future.child @zerojay
                            last edited by

                            @zerojay said in Atari 5200: New version of Atari800 (Beta): two triggers (Moon Patrol!!!), hat start and exit buttons:

                            @future-child said in Atari 5200: New version of Atari800 (Beta): two triggers (Moon Patrol!!!), hat start and exit buttons:

                            @zerojay it works but I'd suggest instead of removing /etc/kat5200/atari5200.db3 to move the file over to $home/pi/.kat5200/ and change ownership to user pi. This because not all tables get recreated and result in strange errors.
                            Also, as a sidenote, would it not be an idea to create a update section in the menu so the scriptmodules can be updated from within retropie ?

                            I'll do that, but that also sounds like an upstream bug that should be reported.
                            Done: https://github.com/zerojay/RetroPie-Extra/commit/7328c1d00514cdeb33678f8e233f8d662d8f2bb0

                            Thanks, for so far i have tested i found no other problems.
                            I do believe the author intended for the database to be moved as it comes pre configured with a lot of data (settings based on rom-crc, input keycodes etc), so i think a bug report is not needed but will add it to the list of questions i am preparing.

                            1 Reply Last reply Reply Quote 1
                            • darkniorD
                              darknior
                              last edited by

                              WOAW lr-a800 is out :D
                              I have try some A800 games and A5200 and they works fine :)
                              With all the cool Retroach feature ;)
                              But for the moment i have a strange bug, the image has like a white filter. Not really beautiful :(

                              Life is game, just play it !

                              future.childF 1 Reply Last reply Reply Quote 0
                              • future.childF
                                future.child @darknior
                                last edited by future.child

                                @darknior Where is it ?

                                Edit: the white filter over your image sounds like the gamma is set too high.
                                Edit2: found it... but what makes this one (asside it being built as a single binary libretro core) differ from the one already available in scriptmodules/emulators ?

                                darkniorD 1 Reply Last reply Reply Quote 0
                                • darkniorD
                                  darknior @future.child
                                  last edited by

                                  @future-child said in Atari 5200: New version of Atari800 (Beta): two triggers (Moon Patrol!!!), hat start and exit buttons:

                                  Edit: the white filter over your image sounds like the gamma is set too high.

                                  But where do you change it ? i don't found the option :(

                                  Edit2: found it... but what makes this one (asside it being built as a single binary libretro core) differ from the one already available in scriptmodules/emulators ?

                                  I don't know or understand what about you speak ?
                                  I don't have any A800/5200 emulator in retroarch before.
                                  But is it work fine with good gamma it let us use Boder, Joypad RA Mapping, Savestate, and maybe Fast and rewind ... i don't take time to try it many more ...

                                  Life is game, just play it !

                                  future.childF 1 Reply Last reply Reply Quote 0
                                  • future.childF
                                    future.child @darknior
                                    last edited by

                                    @darknior said in Atari 5200: New version of Atari800 (Beta): two triggers (Moon Patrol!!!), hat start and exit buttons:

                                    @future-child said in Atari 5200: New version of Atari800 (Beta): two triggers (Moon Patrol!!!), hat start and exit buttons:

                                    Edit: the white filter over your image sounds like the gamma is set too high.

                                    But where do you change it ? i don't found the option :(

                                    In the config file is a entry to adjust gamma COLOURS_PAL_GAMMA=0.3 and COLOURS_NTSC_GAMMA=0.3.
                                    See this link.

                                    Edit2: found it... but what makes this one (asside it being built as a single binary libretro core) differ from the one already available in scriptmodules/emulators ?

                                    I don't know or understand what about you speak ?
                                    I don't have any A800/5200 emulator in retroarch before.

                                    It was available as a retropie optional install (see above link).

                                    But is it work fine with good gamma it let us use Boder, Joypad RA Mapping, Savestate, and maybe Fast and rewind ... i don't take time to try it many more ...

                                    This is new then, the normal Atari800 did not have (all of) this.
                                    I'll do an install just for the fun of it and see what's what.

                                    darkniorD 1 Reply Last reply Reply Quote 0
                                    • darkniorD
                                      darknior @future.child
                                      last edited by

                                      @future-child said in Atari 5200: New version of Atari800 (Beta): two triggers (Moon Patrol!!!), hat start and exit buttons:

                                      In the config file is a entry to adjust gamma COLOURS_PAL_GAMMA=0.3 and COLOURS_NTSC_GAMMA=0.3.
                                      See this link.

                                      You're not understand me. I don't have any problem with Atari800 emu.
                                      From the beginning i speak about the LIB RETRO ATARI 800 v3.1.0 emu, available from yesterday.

                                      https://github.com/r-type/libretro-atari800
                                      from
                                      https://atari800.github.io/index.html
                                      https://github.com/atari800/atari800

                                      Like i don't found any think to fix GAMMA problem i try to use shader, it's only a proof of concept, because i never work on shader, but i can change GAMMA with it ... maybe it is the solution for us. You can try it as exemple ...

                                      Create and use crt-gamma-pi.glclp

                                      shaders = "1"
                                      shader0 = "shaders/crt-pi.glsl"
                                      filter_linear0 = "true"
                                      wrap_mode0 = "clamp_to_border"
                                      mipmap_input0 = "false"
                                      alias0 = ""
                                      float_framebuffer0 = "false"
                                      srgb_framebuffer0 = "false"
                                      parameters = "MASK_BRIGHTNESS;BLOOM_FACTOR;INPUT_GAMMA;OUTPUT_GAMMA"
                                      MASK_BRIGHTNESS = "0.700000"
                                      BLOOM_FACTOR = "0.300000"
                                      INPUT_GAMMA = "2.400000"
                                      OUTPUT_GAMMA = "1.200000"
                                      

                                      Life is game, just play it !

                                      future.childF 1 Reply Last reply Reply Quote 0
                                      • future.childF
                                        future.child @darknior
                                        last edited by

                                        @darknior said in Atari 5200: New version of Atari800 (Beta): two triggers (Moon Patrol!!!), hat start and exit buttons:

                                        You're not understand me. I don't have any problem with Atari800 emu.
                                        From the beginning i speak about the LIB RETRO ATARI 800 v3.1.0 emu, available from yesterday.
                                        https://github.com/r-type/libretro-atari800

                                        I think i do understand, this lib retro atari 800 v3.1.0 is a repackaged (port) version of the original Atari800 emulator.
                                        It still functions in the same way as the original does, using a config file, cmd options, gui or keyboard shortcuts.
                                        Try pressing F1 on your keyboard, it should show you the menu where you also can change gamma.

                                        1 Reply Last reply Reply Quote 1
                                        • darkniorD
                                          darknior
                                          last edited by

                                          @future-child said in Atari 5200: New version of Atari800 (Beta): two triggers (Moon Patrol!!!), hat start and exit buttons:

                                          Try pressing F1 on your keyboard, it should show you the menu where you also can change gamma.

                                          Really really strange ... it is not in the RA philosophy ... maybe because the port is not done ...
                                          All the F1 options must move to the RA CORE options.

                                          I have try and my Keyboard and Joystick move to fast in the menu :(
                                          And i don't found the GAMMA option in th menu.
                                          And i don't found the CFG file on the PI, i don't know where is it saved to modify it manually.
                                          I think you know this emulator better than me.

                                          Life is game, just play it !

                                          future.childF 1 Reply Last reply Reply Quote 0
                                          • future.childF
                                            future.child @darknior
                                            last edited by

                                            @darknior

                                            Really really strange ... it is not in the RA philosophy ... maybe because the port is not done ...
                                            All the F1 options must move to the RA CORE options.

                                            That's one thing i don't get about it, as far as i can tell it's just the regulator emulator packaged as a core.
                                            There is still much work to be done, like having configuration done by RA, hotkey support, A5200 analog, various bugs etc.
                                            I chose to switch over to kat5200 because i saw no way to do these things without a huge rewrite.

                                            I have try and my Keyboard and Joystick move to fast in the menu :(
                                            And i don't found the GAMMA option in th menu.
                                            And i don't found the CFG file on the PI, i don't know where is it saved to modify it manually.
                                            I think you know this emulator better than me.

                                            Normaly the .atari800.cfg file is located in /home/pi, you could do sudo find / -name *atari800.cfgto find it.
                                            In the menu you should be able to find it under 'display settings' you could also try the following keyboard shortcuts :

                                            LAlt+LShift+1     Decrease tint (also called hue)
                                            LAlt+1            Increase tint
                                            LAlt+LShift+2     Decrease saturation (like TV Colour control)
                                            LAlt+2            Increase saturation
                                            LAlt+LShift+3     Decrease contrast (also called white level)
                                            LAlt+3            Increase contrast
                                            LAlt+LShift+4     Decrease brightness (also called black level)
                                            LAlt+4            Increase brightness
                                            LAlt+LShift+5     Decrease gamma adjustment
                                            LAlt+5            Increase gamma adjustment
                                            LAlt+LShift+6     Decrease color delay (Atari color adjustment potentiometer)
                                            LAlt+6            Increase color delay
                                            
                                            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.