Noob Question Regarding Save/Load
Gtobi
✭
in Photon Bolt
Hi All, first apologies if this has been asked before.
Whats the process of saving player instantiated objects in a bolt server, then loading back up its position etc when the player next joins. (Like placing a block down, etc)
I'd imagine I would need a external server elsewhere, though is there a detailed procedure on setting it up in bolt?
Cheers for any support.
Whats the process of saving player instantiated objects in a bolt server, then loading back up its position etc when the player next joins. (Like placing a block down, etc)
I'd imagine I would need a external server elsewhere, though is there a detailed procedure on setting it up in bolt?
Cheers for any support.
0
Best Answer
-
Ripped out some code from another sample to make something that should make it more clear to you what to do https://hastebin.com/wepesojidi.cpp
You just need to serialize the data in the saveData function once its done getting all the data, and load
in SceneLoadDone on server. You can use BinarySerializer, JSON, protobuf, whatever you want.5
Answers
-
Ripped out some code from another sample to make something that should make it more clear to you what to do https://hastebin.com/wepesojidi.cpp
You just need to serialize the data in the saveData function once its done getting all the data, and load
in SceneLoadDone on server. You can use BinarySerializer, JSON, protobuf, whatever you want.5