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

Have you considered creating a savegame demo? #10

Open
saberuster opened this issue Aug 23, 2024 · 5 comments
Open

Have you considered creating a savegame demo? #10

saberuster opened this issue Aug 23, 2024 · 5 comments

Comments

@saberuster
Copy link

Hello,
this project is fantastic!
I have learned a great deal from it.
Have you considered creating a demo that integrates the MassEntity system with SaveGame?

@Ji-Rath
Copy link
Owner

Ji-Rath commented Aug 24, 2024

Hi Saberuster,
I'm glad to hear that! Though persisting Entity data (through the SaveGame system) is theoretically possible, I suspect it may not scale well with many entities.
On that same note, it may be worth considering if you dont plan on having thousands of entities. A more scalable approach may be making the entities deterministic and predictable so that less data has to be stored.

After I finish up my most recent projects, I'll try and prototype a simple save/load for entities. Thanks for the suggestion!

@connortwall
Copy link

I agree! I've learned so much about programming using MassAI from this project 🤯.
It'd be cool to see to save the constructed buildings height and location data after they've been created.
Or to save the number of entities / smart objects in gameplay after any were removed (or added).

@Ji-Rath
Copy link
Owner

Ji-Rath commented Oct 18, 2024

I agree! I've learned so much about programming using MassAI from this project 🤯. It'd be cool to see to save the constructed buildings height and location data after they've been created. Or to save the number of entities / smart objects in gameplay after any were removed (or added).

Appreciate it! I recently developed a simple sample using the built-in save system. It saves the entities and their positions. The code is a bit shaky, but it is one method for saving data. Ill investigate saving buildings and their data. Since they are simply actors, I suspect any method which can save actors will work too.

@Krout1
Copy link

Krout1 commented Nov 11, 2024

Hi, really love your work!
Do you have any idea on how to save and load the statetree status?

@Ji-Rath
Copy link
Owner

Ji-Rath commented Nov 14, 2024

Hi, really love your work!
Do you have any idea on how to save and load the statetree status?

Thanks! Unfortunately I do not have an idea how it may be possible to save the state tree state.
My best guess/alternative would be to consider designing state tree logic that references saveable data (mass fragment, actor, etc) and simply save/load from there.

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

4 participants