New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document how the Godot binary loads projects, and how to load external Godot projects from a Godot launcher with OS.execute #3593
Comments
If you exported both executables in the project root folder, maybe this is because the project data takes priority over the PCK file? Also, did you check the "embed PCK in executable" option in the export dialog? This is a known bug which has been fixed in the 3.2.2 betas. |
Thanks. Embedding the PCK is a good idea but did not solve the problem. The interesting thing is if the target app is not a Godot app, the correct binary is run. The correct binary is also run if I export both apps to Windows and run the exe. So it has to be a bug in the editor/debugger. I'm putting together very simple projects to demonstrate the problem. Will add the zips when I can. |
The correct binary is properly run, but Godot binaries are all the same, it's the presence of a If you want to start a different project from your current Godot project, you can even reuse the current Godot binary ( |
Moving this to |
I'm not trying to disagree, just understand why OS.execute() behaves differently when called by an app run in the editor and when called by the same app once compiled. Attached is a zip containing three folders; two Godot project folders, and a folder for holding exported Windows binaries.
Many thanks for all the great work you folks do. |
Godot version:
v3.2.stable.official
OS/device including version:
N/A
Issue description:
Running "app1" in the Godot editor. App1 calls OS.execute to launch "app2.exe" which is another Godot app created using Windows Desktop export template with debug turned off. Instead of running app2.exe, a second instance of app1 ran.
When I export app1 using the Windows Desktop export template and run the app1.exe, OS.execute launches the correct app (app2.exe)
Steps to reproduce:
Create a simple project and export to "path/app2.exe" using Windows Desktop export template with debug turned off. Verify this app runs correctly when launched manually.
Create a second simple projected called "app1" with a button that when clicked calls OS.execute("path/app2.exe",[],false).
Run app1 in the editor, click the button. A second instance of app1 appears.
Export app1 to "path/app1.exe" using the Windows Desktop export template with debug turned off.
Launch app1.exe and click the button. app2.exe is executed correctly.
Minimal reproduction project:
The text was updated successfully, but these errors were encountered: