The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

0 votes

There is really no way to access any DB without recompiling whole engine?

I think it could be helpful to implement it.

Becouse reading/writing from files in old style is too tricky in some type of games, when there is SQL that do everything for you.

in Engine by (32 points)

1 Answer

+2 votes

If it is just this(and we're not talking about really intensive DB access like in big apps)
You should write everything in dictionaries instead and then use the method dictionary.to_json, after that, just save the content on a file with the File Class.

To import, you'd just need to load the file and load its contents as a string, then use the method dictionary.parse_json

I used this to create a custom language system, where the translations are loaded from a json file I created before...

Have a look over Dictionaries page at the docs

by (234 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.