Open
Description
Tested versions
Reproducible in: v4.4.1.stable.mono.official [49a5bc7]
System information
Godot v4.4.1.stable.mono - Ubuntu 22.04.5 LTS 22.04 on Wayland - X11 display driver, Multi-window, 1 monitor - OpenGL 3 (Compatibility) - AMD RS880 (DRM 2.50.0 / 6.5.0-21-generic, LLVM 15.0.7) - AMD Phenom(tm) II X4 945 Processor (4 threads)
Issue description
A project exported to Android gets an incorrect path when the main scene path in project.godot
is relative, such as:
$ cat project.godot
[...]
run/main_scene="main.tscn"
[...]
Now, the relevant part of the generated project.binary
file looks like this:
[...]
00000140: 0000 0400 0000 0900 0000 706f 6e67 2e74 ..........main.t
00000150: 7363 6e00 0000 1b00 0000 6170 706c 6963 scn.......applic
[...]
And when you run the app, it attempts to open main.tscn
in the root directory:
$ adb logcat -s godot
[...]
06-22 01:19:11.737 20936 21044 E godot : ERROR: Cannot open file '/main.tscn'.
06-22 01:19:11.737 20936 21044 E godot : at: load (scene/resources/resource_format_text.cpp:1388)
[...]
Steps to reproduce
- Create a new project
- Create a scene
- Save the scene as
main.tscn
- Open the
project.godot
file in a text editor - Change the main path to
run/main_scene="main.tscn"
- Return to the Godot editor.
- Reload the
project.godot
file from disk when prompted. - Export your project.
Minimal reproduction project (MRP)
Metadata
Metadata
Assignees
Type
Projects
Status
For team assessment