dansan / spring-replay-site

Website to upload, comment and download replays from/for the SpringRTS engine
http://replays.springrts.com/
GNU General Public License v3.0
11 stars 1 forks source link

tag desynced games #82

Open abma opened 9 years ago

abma commented 9 years ago

would be nice if demos with a logged desync could be tagged as such so they can be investigated.

not sure whats best to detect a desync, easiest would be to grep for "sync error", not sure if there is a better approach.

abma commented 9 years ago

relevant code: https://github.com/spring/spring/blob/develop/rts/Net/GameServer.cpp#L767 https://github.com/spring/spring/blob/develop/rts/System/MsgStrings.h#L20

abma commented 9 years ago

idk if NETMSG_SYNCRESPONSE from all players is written to demo, if so it could be compared for each frame when parsing which is more reliable.

https://github.com/spring/spring/blob/develop/rts/Net/Protocol/BaseNetProtocol.cpp#L257