Open follower opened 1 year ago
[Update: Oh, actually, turns out export template binaries won't run a --script script without an associated .pck or project path. I think I'm going to stop now. :D ]
You can create an empty PCK using touch <binary name>.pck
as a workaround. This should likely be fixed though.
Godot version
v4.0.rc5.official.6296b4600
System information
N/A
Issue description
The following environment variables are unset unconditionally in certain circumstances:
DISABLE_MANGOHUD
(mangohud related)DISABLE_RTSS_LAYER
DISABLE_VKBASALT
This is due to https://github.com/godotengine/godot/commit/12817543a9e55b132da252a55f08ab11f9a02724 which was part of https://github.com/godotengine/godot/pull/71515.
In the process of creating this issue I discovered this was mentioned as a known issue in a comment on the original PR https://github.com/godotengine/godot/pull/71515/commits/12817543a9e55b132da252a55f08ab11f9a02724#r1073217244 but I hadn't seen it previously because the comment isn't visible when viewing the commit directly via https://github.com/godotengine/godot/commit/12817543a9e55b132da252a55f08ab11f9a02724.
While I recognize this isn't a high priority issue (so feel free to close/low-prio it) I decided I'd finish creating an issue so that at least if some other weirdo :D notices/runs into this in future they might find a pointer to the original comment.
Also, FWIW, this also leads to differing behaviour when using
--headless
(e.g. with--script
) via an editor binary vs export template binary but I don't know if this is a general known issue or not. [Update: Oh, actually, turns out export template binaries won't run a--script
script without an associated.pck
or project path. I think I'm going to stop now. :D ]Steps to reproduce
or:
DISABLE_MANGOHUD
is set:Depending on whether the binary is an editor binary (or other tools-enabled binary) or export template binary (and whether script is standalone or scene attached and whether or not
--headless
is used and whether or not a project path is given) the output will contain one of three possible outputs:(Also, to view the behaviour before this change was made
Godot_v4.0-beta12_linux.x86_64
can be used.)Minimal reproduction project
N/A
P.S. Thanks to everyone for all their work on 4.0. :)