#File system

9 messages · Page 1 of 1 (latest)

sand jacinth
#

Hello, I'm looking if there's a way for Godot to package assets, sounds, and other game files alongside the game executable in a way that makes them easily accessible and editable to the player. What I mean is how games made with HaxeFlixel store their files alongside the .exe, allowing users to modify them. If there is no current way of doing something like this please do tell me.

dim forge
#

you have a few options. One, the godot format is documented; see https://docs.godotengine.org/en/stable/tutorials/export/exporting_pcks.html . If you give a human a pck file, they can pick it apart and do stuff with it, and using godot specifically, repackage it afterwards

#

so you might call that good enough? But you might not 😄

#

The other option is that all resources you've interacted with so far used the res:/ prefix -- resources

#

but you can use the user:/ prefix instead, and that's actually the user's filesystem (as visible to the godot engine yadda yadda)

#

so if your game preferentially stores & loads content from that location, you can use the user's modified (,downloaded,etc) files instead.

#

I think you have to do a lot more of the work in that version though, because you either need to try to load all files twice ("check for user: override and if missing fall back to res:") or have an initial install phase where you dump content into the user: space

#

but depending on the user experience you want, that could easily be worth it!

sand jacinth
#

I see thank you