Out of sync?
- Apothem
- Posts: 2070
- Joined: Sat Nov 29, 2003 7:13 pm
- Location: Performing open heart surgery on an ACS compiler.
Out of sync?
What in the world is getting out of sync? How can I prevent it? And how can I re-sync once it is out of sync without quitting.
Re: Out of sync?
While you're playing a network game, you and your friends' computers are communicating with each other in much the same way Doom processes demos. Instead of recording the movement of every little thing in the game, it only records the keystrokes the player presses, and trusts that the game will execute in exactly the same manner as it did when the demo was recorded. The tiniest change to the way the game works can screw up an entire demo because of this. Likewise, if one of the computers in a game misses the keypress of another player, or does anything different in the gameworld from what the other computers are doing, the game is suddenly playing different for that user. ZDoom detects this and reports that the game is out of sync for one or more players.Apothem wrote:What in the world is getting out of sync?
Unfortunately you can never guarantee that it's not going to happen. Due to the insecure and ever-changing nature of the Internet, packets get lost in transit all the time. Most games and applications which use the Internet are able to recover from a certain amount of loss, but nothing is perfect, and ZDoom in particular has more finicky netcode because of the way it was originally designed.How can I prevent it?
You can try a few command-line options to attempt to minimize the likelihood of a desync, but it's never foolproof. IIRC, adding -netmode 1 -extratic to the command line of all players will send more data, using up more bandwidth but helping to ensure that the data gets through. If that doesn't work, it's likely that you just have a bad connection to the other players.

You can always try SkullTag instead, which supports most of ZDoom's features and has far superior netcode that is not prone to this sort of sync failure.
You can't. Once a single keypress has been missed, ZDoom has to assume that the entire game may be changed for all players. Alot of times, this isn't the case and you can actually continue playing, but there's no way for ZDoom to know whether you're in sync or not.And how can I re-sync once it is out of sync without quitting.
- Cutmanmike
- Posts: 11351
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
- wildweasel
- Posts: 21706
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
- Contact:
- Bio Hazard
- Posts: 4019
- Joined: Fri Aug 15, 2003 8:15 pm
- Location: ferret ~/C/ZDL $
- Contact:
- Cutmanmike
- Posts: 11351
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
- TheDarkArchon
- Posts: 7656
- Joined: Sat Aug 07, 2004 5:14 am
- Location: Some cold place
That's not always a good idea. On WildWeasel's Doom Armory forums, I was browsing through the "moding help and recruitment" forum and in it I saw an old thread in which WildWeasel was asking how to make Immoral Conduct type friends. I replied to it and solved him by ripping part of the Immoral Conduct code and then adding comments to it explaining how it was doneBio Hazard wrote: if old threads werent meant to be posted to, they would be deleted after a date cutoff
- Cutmanmike
- Posts: 11351
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
- wildweasel
- Posts: 21706
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
- Contact:
Bumping threads this old is just fine and dandy if the problem isn't already solved, and the bumper has some kind of seriously crucial information to contribute (like TDA's aforementioned incident on the Doom Armory). One of the inherent flaws of this kind of bumping, however, is the fact that whoever needed a question answered may not be present in the forums anymore. With a little bit of research on the bumper's part, this can be avoided.
This public service announcement brought to you by WildWeasel's Doom Armory.
This public service announcement brought to you by WildWeasel's Doom Armory.
- Chris
- Posts: 2969
- Joined: Thu Jul 17, 2003 12:07 am
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
charris, I've proposed that idea before. That when ZDoom detects a desync, the "host" (player 1, whatever) saves the game, sends the save game to all the other players who load it up and restart playing. Poeple have mentioned the problem of save games being so big, but the majority of the file size in save games is from the image data, which wouldn't be needed in a network game resync.