You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It does work the same for any kind of binary. It's just that the Godot binary itself doesn't work the way you expect it to - or in general, binaries might not work the way you think they did.
A binary that depends on external files needs to be able to locate them, and this can be done by looking either in the binary's own folder, or the location of the caller (which is likely your project's location, or wherever the user's shell is current at).
You may see this happen if you take any of your installed games (not necessarily Godot-made), move its executable to a different folder, and then try to run that executable: it won't work. But if you cd to the game folder and try to run the executable from there, it might work as many executables look for their dependency in the current working directory (the location of the caller).
Godot uses these features in a way which you may think unconventional, but which makes sense for our use cases of having a pre-compiled binary (the export template) that gets exported without modification and should then be able to locate a data pack for the game it's meant to run. The same binary can be used to run any project if it's made for a compatible version of Godot. You can make a launcher for many different Godot games, all using the same executable (that's actually what Godot itself is).
Yes, I understand how it works. However, if I export with embedded PCK then I expect that PCK should be the default used which doesn't appear to be the case.
And once again, I want to thank all the Godot developers for the hard work. It is a great product.
However, if I export with embedded PCK then I expect that PCK should be the default used which doesn't appear to be the case.
Well as @Calinou mentioned in godotengine/godot-docs#3593 (comment), this was a bug which has since been fixed in 3.2.2 beta 3. You're using 3.2, so you don't have that bugfix yet.
Godot version:
v3.2.stable.official
OS/device including version:
Windows 8.1
Issue description:
OS.execute() has different behavior if the execute target is an exported Godot binary.
This was pointed out in issue (godotengine/godot-docs#3593) which was determined to be a documentation issue (A.K.A "a feature").
This doesn't seem to make sense, OS.execute() should behave the same whether run within the editor or within an exported binary.
I've created an ugly work-around by using a Windows .bat file which then executes the target binary.
Steps to reproduce:
Minimal reproduction project:
osexec_oddness.zip
The text was updated successfully, but these errors were encountered: