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
Ubuntu 21.10, Linux 5.15, GLES3, NVIDIA 495.46, GTX 2070,
Issue description
The FileDialog cannot open files from res:// when the file is in a sub directory, when the project is exported. Files are opened fine when they are in the root of res://.
Not being able to open them means that a file in a sub directory cannot be 'confirmed'. The 'Open' button or double clicking simply does nothing.
This only happens when the project is exported. Running from the editor works fine. I'm assuming this has to do with reading from the .pck file.
Steps to reproduce
See the attached project. Export with *.txt as non-resource, to include it in the export.
Run the project from the editor:
Opening res://text.txt and res://sub/text.txt works fine.
Well maybe not strictly speaking a duplicate as this one is about FileAccess and not DirAccess, though it's probably the same underlying bug (which I tried to address or might have introduced myself in #31440). CC @RandomShaper
timvisee
changed the title
Cannot open res:// file from directory in exported project
Cannot open res:// file from directory in exported project through FileDialog
Jan 13, 2022
Godot version
v3.4.2.stable.official [45eaa2d]
System information
Ubuntu 21.10, Linux 5.15, GLES3, NVIDIA 495.46, GTX 2070,
Issue description
The
FileDialog
cannot open files fromres://
when the file is in a sub directory, when the project is exported. Files are opened fine when they are in the root ofres://
.Not being able to open them means that a file in a sub directory cannot be 'confirmed'. The 'Open' button or double clicking simply does nothing.
This only happens when the project is exported. Running from the editor works fine. I'm assuming this has to do with reading from the
.pck
file.Steps to reproduce
See the attached project. Export with
*.txt
as non-resource, to include it in the export.Run the project from the editor:
res://text.txt
andres://sub/text.txt
works fine.Run the exported project:
res://text.txt
works fineres://sub/text.txt
fails and does nothingMinimal reproduction project
godot-res-error.zip
The text was updated successfully, but these errors were encountered: