- Home /
Possible to Read/Write Network session to a file?
I am looking into being able to playback the actions of a game from file. Currently I am using a primitive XML reader/writer but it is quite a chore to maintain.
Since I plan on setting up server-authoritative networking anyway it strikes me that a simple solution would be to write the network data to file as well as (or instead of in single player) sending it across the network. Then playback would be 'just' replaying the contents of the file as if the server were sending it.
Is this possible with current Unity networking?
Answer by Leepo 1 · Nov 18, 2010 at 02:02 PM
With Unity networking natively; no. Unless maybe if you track all rpcs and Onserialize calls yourself (add a call to your recorder, with timestamp, function delegate, variables..). But your better of with some game replay class then instead (e.g. my Game replay project like here: www.m2h.nl/unity)
Your answer
Follow this Question
Related Questions
Saving/storing in a clash of clans type game 0 Answers
Trouble creating a text file 4 Answers
the XML file doesn't work when i install the app from the app store 0 Answers
Saving and Loading Data with a for loop 2 Answers
Load game with Canvas button 1 Answer