Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't save to default slot using release build & clean slate #18

Open
paperman5 opened this issue Aug 26, 2024 · 0 comments
Open

Can't save to default slot using release build & clean slate #18

paperman5 opened this issue Aug 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@paperman5
Copy link
Contributor

The problem

Describe the bug
After exporting a release build of my game, deleting all files from the user:// folder, and running the game, Dialogic can't save its data to the default slot because the user://dialogic folder doesn't exist. This is due to DialogicResources.init_dialogic_files() (which creates this directory) only being called through the editor.

To Reproduce
Steps to reproduce the behavior:

  1. Create some basic code that makes Dialogic save on pressing a hotkey or something
  2. Export as a release build
  3. Remove the dialogic folder from the user:// dir, wherever that is on your PC
  4. Run the exported project and notice it does not save

Expected behavior
Dialogic should save properly in this situation.

Screenshots
N/A

System (please complete the following information):

  • OS: Linux (Fedora 40)
  • Godot Version: 3.5.3
  • Dialogic Version: Latest commit (159b2ae)

Solutions

I have solved the issue by manually generating the user://dialogic directory in my game manager startup script. I'm sure there's a better way to do it that can be integrated into the plugin, and I can make a PR for it but it will be a few weeks probably.

@paperman5 paperman5 added the bug Something isn't working label Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant