Relative paths for overlays in rom config
-
Hello
I'm trying to simplify my installation of arcade rom overlays.
In the
roms/arcade
folder, I have a1942.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
-
You may need to add an overlay_opacity= 1.0 not sure if that is the correct format off my top of my head.
-
@chuckyp Thanks but it already has that. I have updated my post with the full content of the file.
-
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.
-
Try using
input_overlay = "~/.overlays/1942.cfg"
Good chance that's not quite right though
-
@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.
-
@mitu how do I enable verbose logging ? And where does it outputs ?
Thanks :) -
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. -
@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 -
The usual location for overlays is "/opt/retropie/configs/all/ retroarch/overlay". Maybe there is something there that is overriding your settings.
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.