2shady4u / godot-sqlite

GDExtension wrapper for SQLite (Godot 4.x+)
MIT License
850 stars 76 forks source link

Doesn't work when exported #176

Closed scotmcp closed 2 months ago

scotmcp commented 2 months ago

Environment: Linux Mint 21.3 Godot 4.2.2

Issue description: When running the game in the editor, works fine when running the game from the project manager screen, works fine when I export the game, the gdsqlite doesn't seem to be touching the file at all, db reads and writes fail.

I copied the database to the target location manually. I tested that godot is writing files to the correct location (using a test FileAccess.WRITE function)

Minimal reproduction project: It's a huge project.

2shady4u commented 2 months ago

Hello @scotmcp,

If you export the game in DEBUG mode and run the exported game through the linux terminal, are there any errors reported?

scotmcp commented 2 months ago

CLosing this issue as not to do with gdsqlite, the problem lies elsewhere.....I got it working when running straight from terminal, it's when the server is started as a daemon that is causing the issue, and FileAccess.WRITE also breaks in this case, so it's something else entirely.

I would say it's permissions, but the daemons are running as root. :-/

Thank you!!!