9 ms·
1500 Archers on a 28.8: Network Programming in Age of Empires and Beyond (2001)
- password4321 8y agoI've forgotten all the auto-taunts except "Sure, blame it on your ISP!"
- wild_preference 8y ago14: start the game already!
- MarkTerrano 8y agoMy personal favorite. !14 !14 !14
- BigJono 8y agoMy friends always used to do: A) Build a navy! B) Stop building a navy! A) Build a navy! B) Stop building a navy!
- VinzO 8y ago11.
- dgritsko 8y agoNice town. I'll take it.
- mrkeen 8y agoIf only it scaled to 300 archers over broadband. This game is amazing and has aged so well. The only downside is the network pauses and out-of-sync errors that inevitably happen 40 minutes into a two-player game. I can't remember the last time I didn't set the population limit to 75 in an effort to alleviate network issues.
- cdiddy2 8y agoplay on voobly instead, its so much more stable
- voltagex_ 8y agoWhy? What has Steam done that makes it so bad?
- mrkeen 8y agoNo I found the Steam version to be a faithful reproduction of the original. I had these out-of-sync issues back in the days of passing age2 around as a folder at LANs.
- cdiddy2 8y agoIts not really steam that is bad, but the AOE2 games netcode that is poor. There are a lot less 'wait for sync' issues with it. https://www.youtube.com/watch?v=WfXg3QQymaU https://www.youtube.com/watch?v=WfXg3QQymaU
- red_admiral 8y agoFrom another Ensemble Studios interview with Gamasutra (emphasis mine): "6. We did not plan for a patch. The version 1.0a patch, even though it was a success, was problematic in that as a company we had not planned for it. THE GENERAL ARGUMENT IS THAT IF YOU KNOW YOU ARE GOING TO NEED TO RELEASE A PATCH, THEN YOU SHOULDN'T BE SHIPPING THE GAME IN THE FIRST PLACE." Those were the days!
- SketchySeaBeast 8y agoWhich is a ridiculous statement - I remember the number of 90's games that were utterly unplayable in that they'd crash constantly or do other ridiculous things (The remake of Temple Of Elemental Evil would actually delete your C: drive upon uninstall). I feel like things haven't gotten worse as far as the need for day 1 patches, they've just gotten more pragmatic on their deployment.
- rm_-rf_slash 8y agoUgh, the constant bugs and crashes were the reason I never finished Fallout 2. I gladly accept the occasional 10gb update in return for a game that doesn’t crash multiple times a day or week.
- SketchySeaBeast 8y agoYeah, it's rare I drop out of a game due to an error now, but during DirectX 5 it would happen multiple times an hour.
- lucb1e 8y agoThat almost-relevant username. Anyway, I don't get how updates are so big these days. The games as well, but I guess with some lazy programming... but the updates? I really wonder how hard it is to reliably patch a binary without replacing the whole binary, since apparently it outweighs the additional bandwidth cost for pretty much every company that does any sort of software patching.
- 8y ago
- borellini 8y agoAnd in 2018 with Internet connections a bit better than a 28.8k modem and hardware slightly more powerful than Pentium 90, the HD remake of AoE2 fails to deliver a reliable multiplayer gameplay, having lag of multiple seconds and at least as many out-of-sync bugs as the original game did 20 years ago. It should be closer to 150 than 1500 archers with the HD edition.
- lucb1e 8y agoThis is one of the many reasons why I refuse to buy AoE2. The "new" version does not offer multi-platform support, it does not offer a stable multiplayer, it requires half a gigabyte of RAM instead of the previous 32MB, and it still costs as much as I pay these days for some of the smaller but brand new games (not one they made profit on for almost twenty years already without any maintenance).
- chaosbutters314 8y agoif you play it on voobly versus steam, there is almost no lag and plays super smooth
- chaosbutters314 8y agothe unreliable gameplay is mainly on steam. if you go play aoe2 on voobly, the lag basically disappears and feels smooth as butter. If you own the hd version, there is a patch to freely convert it to voobly.
- yvdriess 8y agoThis might be a side-effect of CPUs being much less deterministic than the older hardware, leading to even harder to track down out-of-sync bugs.
- Robin_Message 8y agoCPU timing might be more non-deterministic, but the result should still be the same...
- addicted 8y agoThe competitive community is very small, but it's growing (which is amazing for a game released almost 2 decades ago).
- deleted 8y ago[deleted]
- adamson 8y ago> Part of the difficulty was conceptual -- programmers were not used to having to write code that used the same number of calls to random within the simulation Can anyone grok this? I can't see why this (each player's simulation making the same number of calls to random) would ever not be the case if all players are running the same patch of the game and are executing the same commands.
- toast0 8y agoYou might want something randomized in animation -- and you might therefore only run it if something is onscreen. If you're using a global random pool, you've descyned here unless all players have the same thing on screen.
- monocasa 8y agoFor instance, anything that's based on the current user's window rather than global state.
- adamson 8y agoAh yep, that makes sense. I wasn't thinking in terms of what had to happen for actual gameplay, just simulation state.
- deleted 8y ago[deleted]
- fl0wenol 8y agoWhat they mean is that if you're doing anything that samples random, don't do it inside of something like a loop whose length is dependent on the local game state that isn't sync'd on the current turn; especially in the graphics engine for doing particle effects or picking random animation frames. Like if you sample random every animation update frame to pick which fire graphic to use on a torch or bonfire (very common), but you suffer graphic slowdown and sample it not enough or too many times, that could vary between clients unintentionally. Once it comes time to simulate that next turn, if you have something different than other clients because of a missed update or graphics lag, even if object positions and the random seed going to be "fixed" by another turn update, all future interactions with any objects that over- or under-sampled random will be wrong and could create further sync problems.
- lordnacho 8y agoAs a low latency coder, I found it fascinating. It turns out the game is synchronized by each player having the commands for each 200ms "turn" a couple of turns in advance, and then playing the actions so that the same happens on all player's machines. That includes sending random seeds around. And then there's a load of provisions for lost packets, slow machines and thus forth. Is this how most games do it? I would think something like WoW couldn't do this, and indeed sometimes I'd see glitches where a character would blink (like the spell) to somewhere new.
- adamson 8y agoMy understanding was that WoW would do essentially what's described here for the player's character and entities in the immediate area (simulate them for the next few frames), but the server also maintained a view of the world. The client would occasionally sync with the server, and that's when you would see the blinks. If you're curious, this[0] is an actively maintained implementation of a WoW server. [0] https://github.com/mangoszero/server https://github.com/mangoszero/server
- mtinkerhess 8y agoIt depends on the genre and the specific game. RTSs can do it this way and some fighting games do, although some fighting games use a variation that involves predicting player input and rewinding the game state on misprediction in order to reduce perceived latency. FPSs tend to use a totally different model that involves sending only the most recent relevant information to each player and trying to balance server authoritative cheat-prevention with allowing clients a little leeway in order to make the twitchy gameplay feel better. There's a great paper on Tribes' networking model that is still largely relevant for FPSs.
- kqr2 8y agoFor reference: https://archive.org/details/tribes-networking-model https://archive.org/details/tribes-networking-model
- p1necone 8y agoI believe wow (and most MMO's) instead take input from each player and run the simulation completely on the server. Although often enemy and NPC positions aren't synchronized exactly between players. There's also much more tolerance for latency in crowded situations - it doesn't really matter if the ~30 other player characters lag behind their actual position in a town by even 5 or 10 seconds, you only need players in your party or who are fighting against you to be low latency.
- loser777 8y ago>For RTS games, 250 milliseconds of command latency was not even noticed -- between 250 and 500 msec was very playable, and beyond 500 it started to be noticeable. I wonder if the rise of competitive RTS has changed this guideline. In SC2 people will start to complain if their ping to the server is more than about 130ms, and anything above 150ms starts to become painfully noticeable. In Brood War being able to play on "LAN Latency" was a always a huge deal---to the point that unauthorized third party ladder systems enabled players to play at "LAN Latency" even when battle.net official didn't support it.
- raziel2p 8y agoThe "command latency" you feel in RTS games is more closely related to RTT than ping, so those numbers are doubled already. Besides, people's expectations of performance and low latency have changed the last 20 years.
- Kenji 8y agoA command latency over 30ms hurts a lot. And I don't even play competitively. 250ms was not noticed? Absolute nonsense. A quarter of a second is gigantic when it comes to latency.
- qop 8y agoBut that was a time when sub 100ms latency for networked gaming had never really been experienced. If you never played faster you wouldn't notice it when it's slower, I'd think.
- MarkTerrano 8y agoPeople played lan games all the time with very low latency - I actually had to patch the code specially for the exhibition match at the AOK ReleaseToManufacture party because the Lan they were using had <1 msec latency - we had never had close to that even in our office so my code didn't handle it well and performed poorly on that optimal network.
- banachtarski 8y agoDon't try this at home kids. Floating point determinism is a huge problem, especially with different chips/architectures/compilers out there.
- yvdriess 8y agoI wouldn't be surprised if their game state ran completely on integer types to avoid the awful x87 instructions.
- JanisL 8y agoI'd love to hear more about this, any links I can look at?
- banachtarski 8y agohttps://gafferongames.com/post/floating_point_determinism/ https://gafferongames.com/post/floating_point_determinism/ Here's a decent primer on it. In general chips implement floating point math differently and you could google terms like "floating point register" and "floating point stack" to get you started. Most importantly, floating point math is not generally commutative due to precision/rounding.
- JanisL 8y agoThanks!
- sparky_ 8y agoFor the interested, the unannounced game referenced in the article, "RTS3", is in fact Age of Mythology, released in 2002.
- chaosbutters314 8y agoFor anyone complaining about aoe2 lag, it is mainly just the version on steam. if you apply the compatibility patch, you can load your steam copy onto voobly for free and play with next to no lag. The difference is night and day plus better features with Voobly.
- executesorder66 8y agoThanks. Is there any reason why don't they just fix the steam version?
- EamonnMR 8y agoA classic. I've been working on doing a minimal Python implementation of some of the concept here: https://github.com/eamonnmr/openlockstep https://github.com/eamonnmr/openlockstep
- JanisL 8y agoNice! Is this in a working state?
- nwmcsween 8y agoWould it be possible to apply Delta CRDT's to something like game netcode?
- specialist 8y agoI've been wondering the same. Thanks for asking.
- _Codemonkeyism 8y agoMy first 'network' game was Fire Power on the Amiga - must have felt exploring a new world writing those early network games.