#after exporting a project godot renames resources with .remap suffix
14 messages · Page 1 of 1 (latest)
changing this project setting to false will prevent the file system from being converted, at the cost of larger file size and slightly longer load times (according to them, haven't tested if there is a significant difference)
but well i don't really understand why you have a problem with removing .remap. i mean i also don't understand why that conversion even exists, but just using 1 additional String operation when checking file paths doesn't sound too tedious.
i dont know. renaming files back just feels kinda wrong. so i was thinking maybe theres an intended solution.
thank you ❤️
i guess the intended "solution" is to just not search inside the resource directory during the game and have all the paths presaved. you are correct about this feeling wrong, as its often stated you shouldn't use "dynamic load methods" like load() during the exported game as they supposedly don't work anymore (at least with that setting turned on). i however weren't able to find any issue aside from the shown filenames not being identical to the ones you have to use to load them.
btw since 4.4 you can use ResourceLoader.list_directory() instead of DirAccess, the ResourceLoader one will already return loadable resource paths (+ directories) without extra string mangling needed
I think that's the more intended solution since it will preserve behavior between editor and export, and also it will work with even imported resources
oh yeah, no idea how i forget that all the time 😅
so that's probably the intended way to do it at the moment.
ohh thank you. this seems much better.
but why is it working? it says its "returning all resources contained within" but im just getting file names like "___.tscn" without .remap. at least it works with load() somehow
if you strip the .remap yourself, that's the old workaround
still works since that hasn't changed in a long time and there's no plans to change it, but list_directory is supposed to keep up with changes if they're made
okay thanks. i think im just confused because i thought you HAVE to rename it to load() it