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

crt-pi shader users - reduce scaling artifacts with these configs in lr-mame2003, lr-fbalpha, lr-nestopia (and more to come)

Scheduled Pinned Locked Moved Ideas and Development
crt-pi shadercrt-picrt-pi-verticalshaderslr-mame2003
385 Posts 42 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.
  • T
    twd Banned @davej
    last edited by 17 Sept 2016, 21:18

    @davej ahh ok thanks bro just going to make it ...if there is 50 games I will be happy

    1 Reply Last reply Reply Quote 0
    • D
      dankcushions Global Moderator
      last edited by 17 Sept 2016, 21:26

      i'm going mad :) here's what i said earlier:

      if you open the zip you can see the total number of files/games. ~1500

      that's ~1500 vertical games in mame2003. if you open up that zip file you'll see ~1500 files. one file for each vertical game.

      @GreenHawk84 you're on your own here. i've no idea what you've done to your system. i just wanted to make some cfg override files for vertical games :/

      T G 2 Replies Last reply 17 Sept 2016, 22:12 Reply Quote 0
      • T
        twd Banned @dankcushions
        last edited by 17 Sept 2016, 22:12

        @dankcushions thanks buddy ... 1500 is a lot i don't have a pc to hand on a iPad so I cannot download the zip to check so thanks for the info...

        1 Reply Last reply Reply Quote 0
        • G
          GreenHawk84 @dankcushions
          last edited by GreenHawk84 17 Sept 2016, 22:49

          @dankcushions thats okay, I at least got "per game core" to save as "off" however "save on exit" will not hold if I try to set it off.

          Back to your instructions on vertical shader; I went in with WinSCP and to the folders you suggested. However, I did not see a Mame2003 folder as said at the end of your folder path: /opt/retropie/configs/mame-libretro/MAME 2003/

          1 Reply Last reply Reply Quote 0
          • P
            Pyjamarama
            last edited by 21 Sept 2016, 15:03

            How do I install this shader to RetroPie? How do I update the existing crt-pi shader?

            Thank you!

            D 1 Reply Last reply 21 Sept 2016, 15:42 Reply Quote 0
            • D
              dankcushions Global Moderator @Pyjamarama
              last edited by 21 Sept 2016, 15:42

              @Pyjamarama said in crt-pi shader users - automatic usage of crt-pi-vertical in vertical games in lr-mame2003:

              How do I install this shader to RetroPie? How do I update the existing crt-pi shader?

              Thank you!

              it is already included in the latest retropie image. if you don't have that, you should update retroarch via binary: https://github.com/retropie/retropie-setup/wiki/Updating-RetroPie#updatinginstalling-individual-packages

              1 Reply Last reply Reply Quote 1
              • P
                Pyjamarama
                last edited by 22 Sept 2016, 19:48

                @dankcushions Can you confirm the paths plz? I have no MAME 2003 folder inside /opt/retropie/configs/mame-libretro/

                I put the configs in /opt/retropie/configs/mame-libretro/ but no change...still user crt-pi

                thank you

                D 1 Reply Last reply 22 Sept 2016, 20:07 Reply Quote 0
                • D
                  dankcushions Global Moderator @Pyjamarama
                  last edited by 22 Sept 2016, 20:07

                  @Pyjamarama you create the directory.

                  1 Reply Last reply Reply Quote 0
                  • P
                    Pyjamarama
                    last edited by Pyjamarama 22 Sept 2016, 20:50

                    Hmmm...I did but did not make the trick.

                    What did it is...I put them in the folder where I have the roms and renamed them from filename.cfg files to filename.zip.cfg (just a batch rename using TotalCommander)

                    It worked smooth like Kylie's @@@ :)

                    Thank you for your help (and your configs!!)

                    1 Reply Last reply Reply Quote 0
                    • G
                      GreenHawk84
                      last edited by 23 Sept 2016, 12:25

                      I could not get this to work, even by creating the MAME 2003 folder in either configs directory. So I just renamed the files I needed with .zip as Floob suggested and all is well. Hopefully this can be implemented automatically at some point.

                      D 1 Reply Last reply 24 Sept 2016, 07:04 Reply Quote 0
                      • D
                        dankcushions Global Moderator @GreenHawk84
                        last edited by 24 Sept 2016, 07:04

                        @GreenHawk84 @Pyjamarama
                        in my first post:

                        please check if it works and confirm, as i'm not sure what version the overrides functionality arrived in retroarch. it should be in retropie 4.x but i'm not sure.

                        without knowing what version of retropie you're using i won't know anything about your problem. if it's the latest, i guess it's only in very new retroarch builds. you could update retroarch from source to test that theory.

                        also, please post the full path of an example game and appropriate override config so i can be sure you have it set up right.

                        using zip.cfg files in the rom directory is the retropie way of doing it. my way uses retroarch functionality, which IMO we should move toward. read this for more details: https://retropie.org.uk/forum/topic/4055/idea-use-retroarch-s-built-in-per-rom-config-functionality-rather-than-runcommand-and-appendconfig/5

                        1 Reply Last reply Reply Quote 1
                        • M
                          Mamemeister
                          last edited by Mamemeister 18 Oct 2016, 22:22

                          Guys, I did this and found it didn't look great so tried to disable it but despite turning off all the shaders options in Retropie options AND deleting the Mame2003 folder with the config files the scan lines are still enabled, any ideas how to turn them off would be wicked thanks.

                          Update / discovered if I went into the individual emulator options ie Arcade and FBA and turned off the video shader that works.

                          1 Reply Last reply Reply Quote 1
                          • R
                            Rion
                            last edited by 19 Oct 2016, 10:43

                            @dankcushions

                            Thank you for all your hard work.

                            I edited the mame2003-crt-pi-vertical-overrides and created one with the names changed to .zip.cfg so these can go right in to the roms folder.

                            Here mame2003-crt-pi-vertical-overrides-cfg (Put in roms\mame-libretro)

                            Here is also one with mame2003-crt-pi-curvature-vertical-overrides

                            And last one mame2003-crt-pi-curvature-vertical-overrides-cfg (Put in roms\mame-libretro)

                            FBNeo rom filtering
                            Mame2003 Arcade Bezels
                            Fba Arcade Bezels
                            Fba NeoGeo Bezels

                            R 1 Reply Last reply 19 Oct 2016, 15:15 Reply Quote 2
                            • R
                              Riverstorm @Rion
                              last edited by 19 Oct 2016, 15:15

                              @Rion said in crt-pi shader users - automatic usage of crt-pi-vertical in vertical games in lr-mame2003:

                              @dankcushions

                              Thank you for all your hard work.

                              I edited the mame2003-crt-pi-vertical-overrides and created one with the names changed to .zip.cfg so these can go right in to the roms folder.

                              Here mame2003-crt-pi-vertical-overrides-cfg (Put in roms\mame-libretro)

                              Here is also one with mame2003-crt-pi-curvature-vertical-overrides

                              And last one mame2003-crt-pi-curvature-vertical-overrides-cfg (Put in roms\mame-libretro)

                              These are nice additions to Dank's work, thank you!

                              1 Reply Last reply Reply Quote 1
                              • R
                                Rion @dankcushions
                                last edited by 19 Oct 2016, 16:20

                                @dankcushions said in crt-pi shader users - automatic usage of crt-pi-vertical in vertical games in lr-mame2003:

                                for the curious, i created a little script that went through the lr-mame2003 source-code and pulled out the list of roms that are rotated, and from that it created the relevant .cfg files. we could potentially do the same for other arcade emulators but i'll leave that for someone else.

                                I'm interested in how you did this. I have several plans for creating cfg's for games that are not vertical and add a standard arcade overlay beazel for them.

                                Same for fba neogeo only roms and so on.

                                FBNeo rom filtering
                                Mame2003 Arcade Bezels
                                Fba Arcade Bezels
                                Fba NeoGeo Bezels

                                D 1 Reply Last reply 19 Oct 2016, 16:35 Reply Quote 0
                                • D
                                  dankcushions Global Moderator @Rion
                                  last edited by 19 Oct 2016, 16:35

                                  @Rion said in crt-pi shader users - automatic usage of crt-pi-vertical in vertical games in lr-mame2003:

                                  @dankcushions said in crt-pi shader users - automatic usage of crt-pi-vertical in vertical games in lr-mame2003:

                                  for the curious, i created a little script that went through the lr-mame2003 source-code and pulled out the list of roms that are rotated, and from that it created the relevant .cfg files. we could potentially do the same for other arcade emulators but i'll leave that for someone else.

                                  I'm interested in how you did this. I have several plans for creating cfg's for games that are not vertical and add a standard arcade overlay beazel for them.

                                  Same for fba neogeo only roms and so on.

                                  with mame(2003) it was easy as the source code has easy to find strings for all the vertical games. eg:

                                  https://github.com/libretro/mame2003-libretro/blob/7b55725e744ac9702db092f996e2fca2276146b2/src/drivers/pacman.c#L4356

                                  GAME( 1981, maketrax, crush,    pacman,   maketrax, maketrax, ROT270, "[Kural] (Williams license)", "Make Trax (set 1)" )
                                  GAME( 1981, maketrxb, crush,    pacman,   maketrax, maketrax, ROT270, "[Kural] (Williams license)", "Make Trax (set 2)" )
                                  GAME( 1981, korosuke, crush,    pacman,   korosuke, korosuke, ROT90,  "Kural Electric", "Korosuke Roller" )
                                  GAME( 1981, mbrush,   crush,    pacman,   mbrush,   0,        ROT90,  "bootleg", "Magic Brush" )
                                  GAME( 1981, paintrlr, crush,    pacman,   paintrlr, 0,        ROT90,  "bootleg", "Paint Roller" )
                                  GAME( 1982, ponpoko,  0,        pacman,   ponpoko,  ponpoko,  ROT0,   "Sigma Enterprises Inc.", "Ponpoko" )
                                  GAME( 1982, ponpokov, ponpoko,  pacman,   ponpoko,  ponpoko,  ROT0,   "Sigma Enterprises Inc. (Venture Line license)", "Ponpoko (Venture Line)" )
                                  

                                  anything with ROT90 or ROT270, i know is a rotated CRT screen so is a vertical game. you can get the zip name from the same string. i used some REGEX in a little python script to get the info (i think... i can't find it now). i then wrote this python script to go through that list and build the .cfgs:

                                  fileName = "rotatedgames.txt"
                                  myFile = open(fileName, "r" )
                                  print('opened file', fileName)
                                  
                                  for gamename in myFile:
                                  	# strip line breaks
                                      gamename = gamename.rstrip()
                                      print('creating .cfg for', gamename)
                                  
                                      # create cfg file
                                      cfgFileName = gamename + '.cfg'
                                      newCfgFile = open(cfgFileName, 'w')
                                      newCfgFile.write("# Auto-generated crt-pi-vertical.glslp .cfg\n")
                                      newCfgFile.write("# Place in /opt/retropie/configs/mame-libretro/MAME 2003/\n")
                                      newCfgFile.write("video_shader_enable = \"true\"\n")
                                      newCfgFile.write("video_shader = \"/opt/retropie/emulators/retroarch/shader/crt-pi-vertical.glslp\"\n")
                                  
                                  myFile.close()
                                  

                                  i had a quick look at FBA and the code didn't lend itself to the same approach i think.

                                  D 1 Reply Last reply 20 Oct 2016, 09:42 Reply Quote 1
                                  • R
                                    Rion
                                    last edited by Rion 20 Oct 2016, 00:21

                                    @dankcushions

                                    Thank you for posting you script but for me this is useless because i don't know how to use python.. Yet.

                                    But maybe you can help me nonetheless .

                                    I have here a complete list of all the neogeo roms present in FBA 0.2.97.39 (New version right around the corner)

                                    Can you help me create or guide me to how i can make cfg files with these templates?

                                    Content of 2020bb.cfg In /home/pi/RetroPie/roms/mame-libretro/ "for example"

                                    video_shader = "/opt/retropie/emulators/retroarch/shader/crt-pi-curvature.glslp"
                                    video_shader_enable = "true"
                                    
                                    input_overlay = /home/pi/RetroPie/roms/mame-libretro/overlays/2020bb.cfg
                                    input_overlay_enable = true
                                    input_overlay_opacity = 0.800000
                                    input_overlay_scale = 1.000000
                                    
                                    aspect_ratio_index = "0"
                                    
                                    video_scale_integer = true
                                    

                                    Content of 2020bb.cfg In /home/pi/RetroPie/roms/mame-libretro/overlays/

                                    overlays = 1
                                    
                                    overlay0_overlay = Final_Arcade_NeoGeo_Horizontal.png
                                    
                                    overlay0_full_screen = true
                                    
                                    overlay0_descs = 0
                                    

                                    I was thinking about using this as an overlay Final_Arcade_NeoGeo_Horizontal

                                    FBNeo rom filtering
                                    Mame2003 Arcade Bezels
                                    Fba Arcade Bezels
                                    Fba NeoGeo Bezels

                                    FloobF 1 Reply Last reply 20 Oct 2016, 08:20 Reply Quote 0
                                    • FloobF
                                      Floob @Rion
                                      last edited by 20 Oct 2016, 08:20

                                      @Rion I may be mis-understanding, but all you have to do to get the config to work (if you dont want to use the original method posted at the top) is to rename 2020bb.cfg to 2020bb.zip.cfg and put it in the rom directory.
                                      You could batch rename a whole set if you dont want to do it manually.

                                      Please read the Docs before asking a new question.
                                      RetroPie Help Guides: https://goo.gl/3gcNsT

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        dankcushions Global Moderator @dankcushions
                                        last edited by 20 Oct 2016, 09:42

                                        @Rion said in crt-pi shader users - automatic usage of crt-pi-vertical in vertical games in lr-mame2003:

                                        @dankcushions

                                        Thank you for posting you script but for me this is useless because i don't know how to use python.. Yet.

                                        But maybe you can help me nonetheless .

                                        I have here a complete list of all the neogeo roms present in FBA 0.2.97.39 (New version right around the corner)

                                        Can you help me create or guide me to how i can make cfg files with these templates?

                                        that's basically what my script above does. do you want me to keep re-writing it in different languages until you find one you like? ;)

                                        R T 2 Replies Last reply 20 Oct 2016, 11:15 Reply Quote 0
                                        • R
                                          Rion @dankcushions
                                          last edited by 20 Oct 2016, 11:15

                                          @Floob said in crt-pi shader users - automatic usage of crt-pi-vertical in vertical games in lr-mame2003:

                                          @Rion I may be mis-understanding, but all you have to do to get the config to work (if you dont want to use the original method posted at the top) is to rename 2020bb.cfg to 2020bb.zip.cfg and put it in the rom directory.
                                          You could batch rename a whole set if you dont want to do it manually.

                                          @Floob Yes i know i posted some edited cfg files a few post up for this. I looked at you files on how to do this from you're rp-video-manager.

                                          What i wanted to do was to create cfg files for every NeoGeo games on that list and that is something i don't know how to do using python.

                                          @dankcushions said in crt-pi shader users - automatic usage of crt-pi-vertical in vertical games in lr-mame2003:

                                          @Rion said in crt-pi shader users - automatic usage of crt-pi-vertical in vertical games in lr-mame2003:

                                          @dankcushions

                                          Thank you for posting you script but for me this is useless because i don't know how to use python.. Yet.

                                          But maybe you can help me nonetheless .

                                          I have here a complete list of all the neogeo roms present in FBA 0.2.97.39 (New version right around the corner)

                                          Can you help me create or guide me to how i can make cfg files with these templates?

                                          that's basically what my script above does. do you want me to keep re-writing it in different languages until you find one you like? ;)

                                          Sorry i will try to figure it out on my own..

                                          FBNeo rom filtering
                                          Mame2003 Arcade Bezels
                                          Fba Arcade Bezels
                                          Fba NeoGeo Bezels

                                          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.

                                            This community forum collects and processes your personal information.
                                            consent.not_received