How to get the latest move and the state for every move #1175
Unanswered
customautosys
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am trying to implement replay capabilities for recorded games and saved games. Also I want my current graphics system to be able to play all state changes received from multiplayer.
I was trying to use deltalog but it seems that deltalog is undefined. After some debugging I discovered that the reducer is returning before the deltalog is set as NoClient is true when there is an event (e.g. endStage). Currently I'm trying to use the latest log entry which is a MAKE_MOVE in the log of the ClientState but it appears that this may not be accurate because sometimes multiple new log entries are created in each call to the update function passed to subscribe.
How do I get:
What are the different moves played since the last call to the update function passed to subscribe?
What are the G states returned for each of these moves (I noticed that the stateID has changed but it doesn't seem possible to retrieve the states with earlier stateIDs)?
Beta Was this translation helpful? Give feedback.
All reactions