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
file.replace("//", "/") seems to crash the app on mac OS export, and resources just won't load on android.
It used to work before, and my mobile app is in production. Panic!
On export, some things get loaded, some others do not. Maybe it has to do with how the strings are composited. I have been testing for hours, your solution works for a simple test.
Any other idea?
I want to point out that these issue happens even when loading any regular path that starts with "res://" in gdscript
EDIT: fixed
at times I had to use
file=file.replace("//", "/")
very clunky, but thanks for putting me on the right path
Godot version
3.3.3.stable
System information
Manjaro 21.1.1 Pahvo, GLES2, Radeon RX 5500 XT (NAVI14, DRM 3.40.0, 5.10.60-1-MANJARO, LLVM 12.0.1)
Issue description
If you use "//" in file name instead of "/" while in editor and run - all works fine.
If you export project - it would won't work anymore.
Accidentally hit this issue because I was constructing file path with string operations.
Steps to reproduce
Minimal reproduction project
New Game Project.zip
The text was updated successfully, but these errors were encountered: