Thanks for the detailed answer you've given here, I hadn't though about using the server ticks to wind back the state. I had made a start by saving the JSONPatch on each state change from the current state to the previous state to a stack and then popping them to rewind the changes. My problem now is when i do an undo it triggers the broadcast patch and then I save a new undo action which would undo the undo i just performed! Struggling to find a way to not save the change made by the undo, but the ticks might help me here.
Many thanks.
Posts made by saiph
RE: How best to implement an undo/rewind on the server?
posted in Questions & Help •
How best to implement an undo/rewind on the server?
posted in Questions & Help •
Hi,
I'm trying to work out the best way of implementing an undo or rewind function on the server. I realise the JSONPatch stuff gives a delta of what changed but not what it previously was.
Is there a way to rewind the changes to the state or can anyone advise on the best way to implement one?
Many thanks.
Trouble connecting unity example to heroku hosted server
posted in Questions & Help •
Hi, I'm having trouble connecting my client to a server hosted on heroku.
If i run it locally using 'heroku local web' it works fine. But when I host it on heroku it hangs when connecting and never comes back. If i tail the heroku logs i can see connections when I try to access it via a web page, but nothing when trying to connect via the unity code.