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

Export: Import/export generated world #5

Open
Flokey82 opened this issue Jan 18, 2023 · 2 comments
Open

Export: Import/export generated world #5

Flokey82 opened this issue Jan 18, 2023 · 2 comments

Comments

@Flokey82
Copy link
Owner

Allow the import/export of the world state as binary, so we can re-use the planet or store the state for iterative generation.

@voidshard
Copy link
Collaborator

We could also have a storage interface? How much memory does a large world take up?

@Flokey82
Copy link
Owner Author

Well, right now I think 1 million regions take about 950 MBs if the in-memory struct is directly written to disk, but I am pretty confident that this can be shrunk by a lot :)
I'm planning to first focus on exporting the geography and climate stuff as one file and then flora/fauna as another... and the third component is everything related to civilization.

It'd be great to first be able to generate a great world and then be able to experiment with civilization w/o having to re-generate the planet, ocean currents, and climate every single time. :)

I was also thinking about writing some custom marshaller, but then it might just dump all values to disk, even if we don't need some stuff like the cached "this region is a mountain" "this region is a waterfall" maps, which I can easily infer from the flux, elevation, etc :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants