Recently I added to a customized script sequence calling my project from cmd line for CI/CD integrations, like:
- "cd /D D:\\Program Files (x86)\\Renpy\\renpy-6.99.4-sdk\\"
- - 'set PROJ_PATHBASE="<path>"'
- 'set PROJ_OUTPUT_FILE= <path>\\results.txt"'
- "renpy.exe %PROJ_PATHBASE% lint %PROJ_OUTPUT_FILE%"
- - 'set PROJ_PATHBASE="<path>"'
At that point, if I run lint, from launcher, for example, it recognizes some settings from the platform, as I perform something like:
## get_target_resolution(source_x, source_y)
## Function for retrieving scaling data for the images.
## Function for retrieving scaling data for the images.
To select the appropiate asset, distinguishing between "_std" for 4:3 resolutions and "_wide" for 16:9 resolutions
But, as long as I am not sending the platform parameter, it is not detecting the "_wide" asset.
Usually the "lint" running from launcher does not complain for that missing files, because its using the "_wide" setting from the platform setting, like:
if renpy.windows:
And so on...
Now, below is an example, which is right, because the file does not exist:
game/im_re_res_reg.rpy:43 Image anime_studio_outdoor_spring_morning uses file 'artwork/bg/static/city/anime_studio/outdoor/anime_studio_outdoor_spring_morning_std.png', which is not loadable.
My question is,
This makes me wonder if there is a way to pass some platform information as "arg" to the cmdline, so it can recognize the information needed.
Such information like platform, and if I can customize some of it to harness some additional testings
This is, in order to extend the current lint on my build process, so I can validate for newer warnings on the code
Thank you!