RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Relative paths for overlays in rom config

    Scheduled Pinned Locked Moved Help and Support
    overlaybezelpath
    10 Posts 4 Posters 2.7k 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.
    • cosmo0C
      cosmo0
      last edited by cosmo0

      Hello

      I'm trying to simplify my installation of arcade rom overlays.

      In the roms/arcade folder, I have a 1942.zip.cfg file containing this:

      input_overlay = "overlays/1942.cfg"
      video_shader = "overlays/shaders/zfast_crt_curve_vertical.glslp"
      
      video_fullscreen_x = 1920
      video_fullscreen_y = 1080
      
      aspect_ratio_index = 22
      video_force_aspect = true
      video_scale_integer = false
      
      input_overlay_enable = true
      input_overlay_opacity = 1.000000
      input_overlay_scale = 1.000000
      
      video_shader_enable = true
      
      custom_viewport_width = "539"
      custom_viewport_height = "701"
      custom_viewport_x = "704"
      custom_viewport_y = "179"
      

      And in the roms/arcade/overlays folder I have my overlay files.

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

      I know the rom cfg is loaded, because the custom viewport positions are used.
      However, the overlay is not displayed.

      If I open the Retroarch menu, go to Settings > Onscreen Display > Overlay > and browse for the cfg, it is displayed, so I assume my overlay works.

      If I change the input_overlay path to absolute /home/pi/RetroPie/roms/arcade/overlays/1942.cfg it works, but I really don't want that.

      Is there a way to load the overlays with a relative path ?

      Thanks

      mituM 1 Reply Last reply Reply Quote 0
      • C
        ChuckyP
        last edited by

        You may need to add an overlay_opacity= 1.0 not sure if that is the correct format off my top of my head.

        cosmo0C 1 Reply Last reply Reply Quote 0
        • cosmo0C
          cosmo0 @ChuckyP
          last edited by

          @chuckyp Thanks but it already has that. I have updated my post with the full content of the file.

          1 Reply Last reply Reply Quote 0
          • C
            ChuckyP
            last edited by

            Ok. I’m sure, like you said it’s the relative path problem. There isn’t enough that states the location of the overlay.

            Someone will drop the correct code in here soon I’m sure. I’m not near my PI right now.

            1 Reply Last reply Reply Quote 0
            • C
              ChuckyP
              last edited by

              Try using

              input_overlay = "~/.overlays/1942.cfg"
              
              

              Good chance that's not quite right though

              cosmo0C 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @cosmo0
                last edited by mitu

                @cosmo0 Enable verbose logging in RA and see how it looks for the files. It might be that the actual run path is incorrect w.r.t. the overlay's relative paths.

                1 Reply Last reply Reply Quote 0
                • cosmo0C
                  cosmo0 @ChuckyP
                  last edited by

                  @mitu how do I enable verbose logging ? And where does it outputs ?
                  Thanks :)

                  rbakerR 1 Reply Last reply Reply Quote 0
                  • rbakerR
                    rbaker @cosmo0
                    last edited by

                    @cosmo0

                    By entering the runcommand menu before the rom loads https://github.com/retropie/retropie-setup/wiki/runcommand and choosing the option to Launch with verbose logging.

                    then look at /dev/shm/runcommand.log This normally tell me whats happening but for your issue, not sure.

                    1 Reply Last reply Reply Quote 0
                    • cosmo0C
                      cosmo0
                      last edited by

                      @rbaker Thanks!

                      Unfortunately, there is absolutely no difference between the logs when it works (paths are absolute) and when it doesn't (paths are relative).
                      Running a diff against both files only gets me differences for the shader (which is not loaded with relative paths). The rest is identical.

                      What I see in the logs, however, makes me think the ".zip.cfg" file is not loaded, but #included in the general config:

                      [INFO] Config: appending config "/home/pi/RetroPie/roms/arcade/1942.zip.cfg"
                      

                      Which would point towards "the path must be relative to the original config", which is... ?

                      Absolute paths: https://pastebin.com/QrxBB5Ak
                      Relative paths: https://pastebin.com/708vFDkM

                      1 Reply Last reply Reply Quote 0
                      • C
                        ChuckyP
                        last edited by

                        The usual location for overlays is "/opt/retropie/configs/all/ retroarch/overlay". Maybe there is something there that is overriding your settings.

                        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.