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

Save/Load from File #70

Closed
thombruce opened this issue Oct 29, 2023 · 0 comments · Fixed by #71
Closed

Save/Load from File #70

thombruce opened this issue Oct 29, 2023 · 0 comments · Fixed by #71
Labels
core New feature or request
Milestone

Comments

@thombruce
Copy link
Owner

Related to #34 and #18 and should probably precede both.

I want a way to eventually load certain configurations from files. Not just settings, not just save games, but also character and ship builds, known star and planetary systems, story scripts and dialogues, i18n translations, etc.

To do this, I'm looking at the bevy_common_assets crate: https://github.com/NiklasEi/bevy_common_assets

This probably starts with ship configurations, but will be easily extended to planetary configurations and other features.

Because these will then be loaded from the asset server, it should also then be quicker to iterate after making changes.

We might also consider moving many of our constants and world variables to such files for ease of changing them and seeing results quickly.


Note that I have attempted to setup bevy_common_assets previously and found myself facing a struggle to get it working. I hope that this was inexperience with Bevy and Rust that I am now better capable of overcoming.


I also want to use such files to write and load the credits for the game. Unfortunately CSV is not listed as a supported format (this is the format exportable from Ko-fi, Patreon and GitHub Sponsors), so... I wonder if it's extensible at all. I might eventually want to load supporters from a CSV file (possibly several). If not... a CSV crate does exist for Rust. Consider looking at how bevy_easy_localize utilises it for direction on implementing something similar: https://github.com/0crispy/bevy_easy_localize/

@thombruce thombruce added this to the v0.1.0 milestone Oct 29, 2023
@thombruce thombruce added the core New feature or request label Oct 29, 2023
This was referenced Oct 30, 2023
@thombruce thombruce added this to Verse Nov 6, 2023
@thombruce thombruce moved this to Done in Verse Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant