Save game button in menu
Voltaism
What if we make a package to do that
T
Timmy
Voltaism: Modularity next feature?
Nogitsu
Voltaism: totally agree with you
Voltaism
Timmy: I just copy the Duplicate entity code and instead save the data to disk haha
O
Olivato
Voltaism: That's the perfect solution, I even used this "SAVE" feature sometimes to create maps in sandbox and export them to another place. It's basically iterating through everything and saving the position and rotation. There is one problem, saving custom classes and already executed functions. i.e. "actors attached to each other" or a custom class lets say "fire" the correct would be to save entities that are on fire, OR all packages that wants a save feature should export a way to be saved?
Voltaism
Olivato: Modularity DuplicateEntity goes beyond anything.
For native classes : gets all needed properties and pass them again when recreating a new entity according to the docs api.
Custom classes can register their class to be duplicated by Modularity with some parameters and a function used to Duplicate additional stuff.
For custom classes that aren't registered it will have a default behavior trying to copy the entity itself.
(This feature is not yet in Modularity but i'll code it)
d
donald.mason23
Voltaism: it seems to me that in the future this feature should be added to the official Sandbox mode, after the errors are fixed
Voltaism
donald.mason23: We can make a bridge between the packages, allowing to save with a button in the sandbox if you are the server host. The sandbox don't have to be modified directly