nanoMMO

Trying to cheat in my own C++ MMORPG

A red-team client for our C++ MMORPG breaks the client's rules one at a time, finds that the server already stops most of them, finds one that hits about twice as often, and the server gets its fix in this episode.

Watch on YouTube

Server-side anti-cheat for our MMORPG, in C++, by trying to cheat. The client runs on the player's machine, so anything it sends can be made up. So we write the server's red-team client: a player without a window that breaks the client's rules one at a time, and prints what it gets for it. More inputs than the server has ticks, a direction a thousand times too long or not a number, a swing at a monster twenty metres away and a skill sent ten times a tick all get nothing, as the server checks them against the world as it has it. Putting the sword in the bag as each blow lands, and back a moment later, cuts the swing short, for about twice the hits, so a skill now keeps the timings of the weapon it started with, and a decision record says why the server checks what a client asks for. This is episode 72 of a series about building an MMORPG from scratch in C++, with the focus on the engineering around the game.

Topics: Testing, Security

The code

Each step on screen is a tag in the game's repository. The code at the end of the episode is ep072/end.

  1. 2:12ep072/step-1A red-team clientBrowseChanges
  2. 13:28ep072/step-2What the server already stopsBrowseChanges
  3. 22:42ep072/step-3Cutting a swing shortBrowseChanges
  4. 25:33ep072/step-4Fixing the serverBrowseChanges
  5. 29:53ep072/endWriting it downBrowseChanges

Transcript

Intro

0:00 Hello and welcome back to episode seventy-two, where we're going to try to cheat in our own game, with a client that breaks the rules on purpose. We'll see what the server already stops, and find a cheat that gets through, which we fix in the server before the episode is over. Before we build it, let's see the cheat that works.

0:18 On the right, the red-team client puts its sword in the bag as each blow lands, and back two ticks later, and gets more than a hit a second. On the left, it swings the way our client does, and gets six to eight tenths, about half as many. Of everything the red-team client tries in this episode, this is the one that works, until the server gets its fix.

0:47 As always, the code is open source, and the series' website links to it on GitHub, with a page for each episode, where you can browse the code at each of its steps.

Last time

0:56 Last time, we wrote down why the game is built the way it is. The game got a folder of twenty-four decision records, from C++ in episode one to the delta worlds of episode seventy, each with what forced the choice, what we picked, what else we weighed and what it costs us. An accepted record isn't rewritten, so raylib's supersedes the one for Vulkan. And from now on, an episode that makes a choice like these writes its record, which is where today ends.

Today

1:23 Our client runs on the player's machine, which the player controls, so they can change our client, or write one of their own that speaks our protocol. So anything a client sends us can be made up. Our server has decided what happens in the world since episode three, but nobody has tried each of the client's rules from the other side, and I don't really trust a check that nobody has tried to break. So we're going to write a client that breaks them on purpose, which is called red-teaming, after the side that plays the attacker in a security exercise. It breaks one rule at a time, such as sending more inputs than the server has ticks, and prints what it gets for it, from what the server sends back. Whatever works gets its fix in this episode, so the red-team client doesn't go public ahead of the fix. Right, let's start with how it measures what it gets.

A red-team client

2:12 The red-team client gets a folder of its own, called cheat, and first, a header file called measure, for what it measures. It has its guard and our namespace, and brings in deque, as we keep a second of places, adding new ones at the back and dropping the oldest from the front. A Speedometer says how fast the server moves a player, from where its worlds put them, which is what a client that breaks the rules gets for it. We measure from the worlds, as the server's word is the one that counts. Add takes where a world had the player, with when it was sent, in seconds on the server's clock. Metres a second is the distance along the way the player went, over the last second, so that turning back doesn't count against it, and zero before two worlds. Inside, a Place is a world's time and where it had the player, along x and z. And places is the deque of them, oldest first. In measure, we bring in c math, for hypot, and c std def, for size t. Over is a second, the stretch of worlds we measure across, so that a tick that comes late doesn't swing the speed. Add leaves out a world sent at or before the newest place, as that one's old news, and pushes the rest on the back, with designated initialisers naming each field. While the places from the second one on still span a second, the oldest comes off the front. Metres a second gives zero with fewer than two places, and otherwise adds up the hypot of each step, from one place to the next, and divides by the time from the first place to the last. Adding up the steps is what keeps a walk that turned back from looking like standing still.

3:49 Next, the red-team client's main, in the cheat folder too. We bring in chrono, for its clocks, as the client sends its inputs on the server's tick. This program is a player without a window, who breaks the client's rules one by one, and prints what it gets for it. It runs with an account of its own, which it makes the first time, and takes a name, a password and the cheat to try. Walk sends one running input a tick, as the client does, to compare with, and speed sends three, and each runs east and back west, three seconds each way. Then the rest of the standard headers: c std int, iomanip, for printing to one decimal, i o stream, memory, string, and thread, for sleeping between polls. From Abseil, status or, for a value or an error, and asio's SSL context, for TLS. Then our measure header, and the client's own connection, which I like a lot: the red-team client speaks the protocol with the game client's code, so to the server, it's one more client. The rest come from the protocol library, like in the bots. In an unnamed namespace go the two servers' ports and Ember, the world we play in, then the server's tick, fifty milliseconds, and three seconds for each way of a walk. Ask takes the TLS context and a login request, the request by const reference, as it's read and not changed. It sends the request with log in, from the login client, which opens a TLS connection to the login server on localhost, and hands back the reply. A reply that came back but says no becomes a permission denied error, with the server's reason in it. That way, the caller can tell a refusal from a server that isn't up yet, which comes back as an error of its own. Enter does what the bots do: it makes the account the first time, and a character in Ember named after it, and hands back the token for the world. The first request carries the name, the password and our version, as the login server has turned away a client of another minor version since episode fifty-nine. If that's refused, the name and the password didn't match an account, so we ask again with new account set, which makes the account. Any other error goes straight back to the caller. Mine is a lambda, with nothing to capture, that loops over the characters a reply lists, and hands back the id of the one in Ember, or zero for none. The next request carries the session from the reply, which is how the login server knows it's us, without the password again. Without a character in Ember yet, we copy that request, and set create character, the world and the name, so the login server makes one, and mine finds it in the new reply. Then we ask to enter, with that character's id, and the token in the reply is what the world server takes from us when we connect. Us finds where the world has us, and it loops over the players the world carries, and hands back the one the world calls you, or a null pointer before the world has us at all. In main, the usage names the three arguments. Without all three, we print it on standard error and return two, the usual code for a command used wrong. Then we take the name, the password and the cheat, each into a string of its own. Each tick counts the running inputs we send a tick: one for walk, three for speed, and any other cheat prints the usage again. We set up TLS with our certificate authority's file, from its setting, the way the client does, and print the error if that fails. The token comes from a loop of up to sixty tries, half a second apart, so for up to thirty seconds, as the servers may still be starting. Each try calls Enter, and the loop stops once it has a token. If there's still no token after that, it says it couldn't enter, with the error, and returns one. With the token, we connect to the world server, with false for UDP, so the worlds come over TCP, in order and complete. Each failure on the way prints its error, with cheat in front of it, and returns one, so a script can tell that it failed. Once we're in, it prints that the character is in Ember, and which cheat it's trying, which is the first line you see in its terminal. Then the loop's state: the speedometer, the inputs' sequence number, how many we've sent this second, the last world we measured, and on the steady clock, when we started, the next tick and the last print. The loop runs while we're connected, and polls the connection, which reads whatever the server has sent. When a new world has come, the speedometer gets where it has us, with its time in seconds, as the server stamps its worlds in microseconds. Once a tick is due, the next one moves on fifty milliseconds from the last, so the ticks don't drift, and east holds for the first three seconds, then not for the next three, and so on. And here's the cheat, each tick's worth of inputs, one, or three for speed. Each runs east or west, with run held, and carries the next sequence number, as the client's inputs have done since episode sixty-eight, and seen, the newest world we have whole, from episode seventy. Once a second, it prints how many inputs it sent in that second, and the speed the server gave it, to one decimal, with std fixed and set precision, and the count starts again. Then it sleeps five milliseconds before it polls again, which keeps it from spinning a core while staying well inside a tick. And when the server closes the connection, it says so and returns zero.

9:02 To build it, the top CMake file moves the project on to version zero point seventy-two, for this episode's code, and adds the cheat folder, after the client's. The cheat folder's own CMake file puts measure in a library, nanommo cheat core, with the project's folder on its include path, so that the program and its tests share it. Nanommo cheat is the program, built from main, and linked with the client's core, for the connection. Then nanommo cheat tests holds the tests of the measurements, which we're going to write once we've seen it run. It's linked with gtest main and registered with gtest discover tests, like the others, so CTest runs them with the rest of the game's tests. And in the Dockerfile's lint stage, clang format and cpplint check the cheat folder too, as they do the rest, so CI holds the red-team client to the style guide as well.

More inputs than ticks

9:55 In the game at the first step, with arthur in Ember, the red-team client's terminals are underneath. In the first one, we run it as gawain, with walk, which keeps the client's rules, and in the second, as mordred, with speed. Each makes its account, comes in where new players start, and runs east and then back west, the way our client would if you held a key. Gawain sends twenty inputs a second, one for each tick, and runs at three point one metres a second, which is running speed. Mordred sends sixty a second, and runs at three point one as well. Since episode sixty-eight, the server queues numbered inputs and applies one each tick, so the extra ones wait their turn, and once more than a few are waiting, the oldest go.

10:49 Now, let's pin down the measurements with a few quick tests, in a test file of their own, which brings in measure and gtest. The first checks that it measures the last second of worlds. Before any world, it says zero, and after twenty worlds a second for two seconds, running along x, it says three point one, give or take a thousandth. The second goes three metres out in one second, and three back in the next, which has to be three metres a second, and not zero, as the walks turn back after three seconds. And the third adds worlds at one and two seconds, three metres apart, then a world sent at one and a half, a hundred metres away. It's old news, so the speed stays at three, where counting it would have taken the speed far past running. Then in the server's tests, we bring in c math, for hypot, and the walking header file, for the run speed. This one checks from the server's side that more inputs than ticks don't run faster, with the real server and a test player that logs in over TLS. Alice logs in, and we run the event loop until she sees herself. A lambda called place, capturing by reference, finds where her newest world has her, as a pair of x and z, or two zeros if it doesn't have her. A structured binding unpacks the pair into from x and from z. The test sends three running inputs each world, for two seconds, where the client sends one a tick, and the server still applies one a tick. From is when the world we start from was sent, last is the newest world we've seen, and sequence numbers the inputs. Then we run the event loop until a lambda says we're done. It waits for a new world, and once two seconds of them have gone by, it stops. Otherwise, three inputs, each running along x, and numbered one after another, go out together in one write, with send together, so the server has all three at once. Once that's done, speed is the distance she covered, over the time from the first world to the last, in seconds. It has to be over half of running speed, so we know she ran at all, and no more than five percent over it, which leaves room for the timing of the worlds.

12:52 We build the tests at this step and run the cheat's three. They need no servers, so dash dash no deps leaves the databases out, and grep keeps the lines of the tests that passed. The build takes a while, as the image builds the whole game. All three pass, the way there and back among them. Then the server's test, which runs from the image we've just built. It needs MySQL and Redis, as Alice logs in for real, so this time Compose starts them first, with the migrations. Three inputs a tick run Alice no faster than one, so it passes.

What the server already stops

13:29 Next, three more of the client's rules, which I expect the server to keep already: a direction too long or not a number, a swing from twenty metres, and a skill sent ten times a tick. Two of those are fights, so first, we count hits, and in the measure header file, we bring in c std int, for the damage. Hits counts the hits a player lands, and their damage, from the events the server sends, which is what a cheat earns in a fight. Add takes a hit that did an amount, at a time in seconds on our own clock, as the events don't carry the server's. Per second and damage per second are over the last five seconds to now, as a swing takes about one, and a single second would hold one hit or none. A Hit keeps its time and its amount, and hits keeps them in a deque, like the places. In measure, hits over is five seconds, which goes in the unnamed namespace next to over. Add puts the hit on the back, and drops the hits more than five seconds older than it from the front. Per second goes through the hits with a count, adding one for each hit that's recent enough. So it counts the hits in the five seconds before now and divides by five, so the rate falls once the hits stop, even with nothing added. And damage per second adds up their amounts over those five seconds, and divides by five as well.

14:51 In the cheat's main, the list at the top becomes the cheats, each with what it's after, so you can see what each one tries before reading any of its code. Walk and speed stay as they were, the baseline and the one that runs too fast. Teleport sends a direction a thousand times the client's, and then one that isn't a number, east and then west, to go further than running would. Reach picks a monster about twenty metres away, and swings at it, to hit it from where it stands. Fight goes for the nearest monster and uses the first skill each time it's ready, as the baseline, and rapid does that too, but with the skill ten times a tick, to use it more often. The walks still go east and back west, three seconds each way. We bring in c math, for hypot and abs, and limits, for the largest float and for a not a number. Monster finds a monster in the world by its id, or a null pointer when the world doesn't have it, say once it's out of view. It loops over the monsters the world carries, the way Us does over the players. Pick finds the live monster whose distance from us is nearest to away, or zero for none. With away at zero, that's the nearest monster, and with twenty, the one closest to twenty metres off. It keeps the best so far, starting from the largest float. For each monster, off is the gap between its distance from us and away, and a live one, with health left, that's closer to it than the best so far becomes the pick, with its off as the new best. The cheats become a scoped enum, so a typo in one is a compile error, and not a string that quietly fails to match. The usage lists all six, and named is the cheat as it was typed, which a chain of ifs turns into the enum. Each name sets its value, from walk to rapid, and any other name prints the usage and returns two, as before. Walk is where the cheat starts, before the chain sets it, so it always has a value. The chain is long, but it reads plainly, and I'd take that over a map from names to cheats, which is more code for six of them. With twenty of them, I'd change my mind. Fights is true for the three that go for a monster, reach, fight and rapid, and the line that says we're in prints the named cheat. Next to the speedometer, hits counts what we land, and target is the monster we picked, or zero while we have none. In the loop, now moves up to the top, with seconds, the time since we started, which a duration of doubles gives us in seconds, for the hits. Us comes up here too, as both the speedometer and the fights need where we are. Then each event the connection has taken in since the last poll: a hit that we landed goes into hits, with its damage. A fight picks its monster once it sees us, and again when the one it had is dead or gone. Monster looks up our target in the world, and if the world doesn't have it, or its health is down to zero, Pick chooses again, from twenty metres for reach, and the nearest for the others. Ways is how many three-second stretches have gone since we started, and east is still the even ones. Teleport sends each way as a thousand for three seconds, and then as not a number for three, so far is plus a thousand for the first two stretches, and minus a thousand for the next two. Then, each tick, the keys go out numbered, once, or three times for speed. Teleport sets x to far, or to a quiet not a number, with run held. A fight sends its target, and holds attack while it has one, which is Space in our client, the swing of what we hold. The walks run east or west, as before. A skill goes in an input of its own, without a number, as the client sends one. It's the first of our skills, which for a new player is Thrust, and ready means the world lists no cooldown for it. Rapid sends it ten times each tick, fight once when it's ready, and the others not at all. Each use is an input with the skill and nothing else, sent straight away, and it counts towards the inputs we've sent this second. Last, the line we print once a second, which still starts with how many inputs went out. Teleport then says which x it's sending, a thousand, minus a thousand, or not a number, before the speed it ran at. The walks say how fast they ran, as before, to one decimal. The fights look their monster up again, and if the world still has it, and us, they say how far it is, with hypot of the difference between the two places. After that come how many times a second they've hit, over the last five seconds, and the damage a second, from hits.

19:22 At the second step, two of the cheats run at once, as neither gets in the other's way. In the first terminal, mordred runs teleport, with a direction a thousand times too long, and in the second, morgan runs reach, which goes for the monster closest to twenty metres away. Mordred's x changes three seconds at a time, from a thousand to not a number, then to minus a thousand and not a number again, and it runs at three point one metres a second. The fifteens aren't the cheat: each stretch of not a number happens to take it through a gate in the stones, into the Crypt or back out, and the jump from one gate to the other counts as running. A direction longer than one is scaled back to a length of one, so that moving diagonally isn't faster, and one that isn't a number is ignored, so the last keys go on. Morgan's monsters turn out nearer than twenty metres, the skeletons by where players come in, and each time it picks one, its distance drops to a little over a metre. The server checks a swing's reach against the world as it has it, and runs the player up to the monster first, as it has since episode fifty-one.

20:24 And the cooldown, in two worlds side by side, as two players going for one skeleton would muddle each other's numbers. On the left, gawain runs fight, which uses the skill once its cooldown is over, and on the right, mordred runs rapid, with the skill ten times a tick. Both go for the nearest skeleton and swing at it as well. Rapid sends about two hundred and twenty inputs a second, where fight sends about twenty. And yet rapid hits less often than fight, at most two tenths of a hit a second, where fight gets up to about eight tenths. A skill the server gets while it's cooling down is dropped. Rapid has one waiting each tick, so holding attack hardly ever starts a swing, and all it lands is the skill, once each cooldown. The client shows a cooldown for the player, and the server keeps it.

21:15 Back in the measurements' tests, a quick one at the end of the file, that hits counts the last five seconds, and leaves out the older ones. It's a plain test, without a fixture, as hits needs nothing set up around it, and it starts from an empty one. Then a loop adds a hit of ten each second, from the first second to the eighth. At eight seconds, the five seconds before hold the hits from four to eight, five of them, so per second has to be one, and damage per second ten. Three seconds on, at eleven, the five seconds before it hold the hits at seven and eight, which is two in five, or nought point four a second.

21:49 After building at this step, we run the cheat's four tests, again without the databases, as they need no servers at all. Hits counts the last five seconds, and the speedometer's three pass as they did before.

Cutting a swing short

22:02 Now for one that I expect to work. Holding Space swings what we hold, and with the sword a new player starts with, a swing takes one point one seconds, with its blow landing at about half a second. The next swing can't start until this one is over. Since episode forty, putting the weapon away ends a swing, so that nobody swings a sword they no longer hold. So the red-team client is going to put the sword in the bag as soon as each blow lands, and back a couple of ticks later, so the server has a whole tick without it. With attack still held, the server starts the next one once the sword is back, which should come to about twice the hits. In most other games, players call this animation cancelling.

22:42 In the cheat's main, two more cheats go in the list at the top. Swing goes for the nearest monster with the weapon alone, as the baseline. Cancel does that too, but puts the weapon away after each hit, and back a moment later, to end the swing early and start the next one sooner. We bring in optional, for a value that's either there or not, as cancel's weapon is either in the bag or in hand. The enum takes swing and cancel in after rapid, from walk down to cancel. Move makes an input that moves whatever is in one place to another, the message our client sends when you drag an item between the bag and what you wear. The server can't tell it from a drag. It sets the input's item move, and copies the from and the to places into it, through the mutable accessors that protobuf generates for us. Free slot finds the first slot of the bag with nothing in it, counting up from zero until the bag has no item there. The usage gets the two new names, the chain of ifs turns them into the enum, and fights takes them in too, as both go for a monster. Next to target, away is where cancel put its weapon, empty while it's in hand, and back is when it goes back. Then the cheat, where a hit we landed comes in. Once the blow has landed, the weapon goes into the bag, and back two ticks later, so that the server sees a whole tick without it. We look at the inventory as the server last sent it, and hand is the main hand's slot as a number, the way the worn map keys it. If we're cancelling, with the weapon in hand and not away already, away becomes the first free slot of the bag. One input moves the weapon there, and back is two ticks from now, a tenth of a second. Then, each time round the loop, once it's time, an input moves the weapon from the bag back to the hand, and away is empty again. Each move counts as an input we sent. Last, the skill goes for fight and rapid alone now, so that swing and cancel use the weapon and nothing else, and the two can be compared.

24:41 Now cancel, against the server at step three, seen from a little way off. Mordred goes for the nearest skeleton, and swings at it with the sword it starts with. As each blow lands, the sword goes into the bag, and comes back two ticks later, each move an input of its own, which the server applies as it arrives. The terminal shows up to one point six hits a second, about twice as often as a swing the way our client sends it, which gets six to eight tenths. The server does end a swing when its weapon goes away, as it should before the blow lands. However, it ends it after the blow too, so the swing ends early, and with attack held, the server starts the next one once the sword is back. So this one works, and it's been possible since episode forty.

Fixing the server

25:34 So, let's first see how the server ends a swing today. In the world, Dress works out what a player wears and holds whenever their gear changes. At its end, if they're in the middle of a weapon's swing, and the weapon in hand isn't the one they had, the swing is over, whether its blow has landed or not. And each tick, Act works out how long the skill takes from the weapon in hand right then, so a tick without the sword would end the swing as well. So in the world's header file, a player gets the effect of the skill they're using, as it was when it started, with the weapon in hand then, so that changing the weapon doesn't change how long it takes. Next to it goes that weapon, as a weapon skill's blows are going to need it in hand. In the world, at the top of Dress, before the stats are cleared, we work out whether the swing has landed its first blow. Landed starts false, and says whether the skill they're using has landed its first blow, with the weapon they held for it. While they're using a skill, its effect is the one it started with, and landed is whether the cast has got as far as its first blow, or its hit, for a skill without blows of its own. Then, at the end, a swing ends with its weapon put away while it hasn't landed. After its blow, a swing plays out with the effect it started with, as putting the weapon away and back would end it early, for the next swing to start sooner. In Act, the effect is the player's own now, in place of working it out each tick. Armed says whether a blow can land: any skill that isn't a weapon's, or one with the weapon it started with still in hand. So a weapon skill with a second blow, which we've not got yet, can't land it from the bag. And Start keeps the skill's effect, worked out with the weapon in hand, and that weapon, and Aim takes its reach from the effect. I like a fix like this, which keeps the rule we wanted and takes away what a client could get from it. A swing before its blow still ends when the sword goes away, so you can still change your mind.

27:32 Next, a test in the world's tests, that putting the weapon away after its blow doesn't swing sooner. It starts from a world with the test content's gear. Join puts player one half a metre along z, and spawn puts a skeleton a metre along x, a little over a metre away, within the sword's reach. They pick it, with attack held, as Space would, and one tick in, the first swing has started, as casts says one. We step the world until the skeleton's health drops below fifty, which is the blow landing, for up to forty ticks, which is two seconds, and we assert that it did. Then the sword goes into bag slot five, the world steps a tick without it, and it goes back to the main hand, as a client that wants its next swing sooner would. Move item takes the player, where from and where to, and both moves have to succeed. After one more tick, the player is still in a skill, and casts is still one. We check the count, as with attack held, a swing that ended early would start the next one once the sword was back, and the motion would say skill either way.

28:36 We run it with the world's older test that a swing needs a weapon in hand, which also checks that putting the sword away before the blow ends the swing. Neither needs a database, so dash dash no deps leaves the databases out. The build comes first, as the server's code has changed. A swing before its blow still ends with its sword put away, and one after its blow plays out, so both pass.

29:01 And the cancel run once more, with the fix in the server. Mordred goes for the nearest skeleton, and puts the sword in the bag as each blow lands, and back two ticks later, as before. This time, it gets between four and eight tenths of a hit a second, like a swing without the cheat, where it got up to one point six before the fix. The moves still go through, but the swing keeps the timings of the sword it started with, and plays out to its end, as a swing that keeps the rules does, so the client gets nothing for it any more.

Writing it down

29:54 Last, the game's docs, starting with the networking page. It gets a section on what a modified client can try, with a table of what each cheat sends, and what it gets. Speed gets running speed, as the server applies one input a tick, and so does teleport, as a direction is scaled back to a length of one, and one that isn't a number is ignored. Reach gets no hit from where it stands, and rapid gets no more hits than using the skill once it's ready. And cancel gets nothing from this version on, as a skill keeps the timings of the weapon it started with, where before, the next swing started as soon as the sword was back, about twice as often. Like any choice from now on, this one gets decision record twenty-five. The server checks what a client asks for, and a red-team client tries it. Its context is that nobody had tried each of the client's rules from the other side, until this episode found the swing cancel. The decision is that everything a client sends is taken as made up, and checked on the server, against the world as the server has it. The red-team client lives in the repo with the game, and a cheat that works gets its fix and its test in the release that finds it. That way, a cheat it finds is fixed before anyone can read the code for it, which is the part I'd defend hardest. The obvious alternative is anti-cheat in the client, as most other games ship, though no episode weighed it. It runs on a machine the player controls, so it can be patched out, and to work, it has to watch the player's computer, which I'm not keen on either. The other is trusting the client and catching cheaters afterwards, from the logs, once the damage is done. What it costs us is a check on the server for each new kind of input, and a check the client also does, such as a cooldown it shows, is done twice. It goes in the index too, as the twenty-fifth row.

Wrap-up

31:42 Today, we wrote the server's red-team client, a player without a window that breaks the client's rules one at a time and prints what it gets for it. More inputs than ticks, a direction that's too long or not a number, a swing from twenty metres and a skill ten times a tick all got nothing a rule-keeping client doesn't. Putting the sword in the bag as each blow landed got about twice the hits, so now a skill keeps the effect it started with, and a swing whose blow has landed plays out. And record twenty-five says why the server checks what a client asks for.

Playing it

33:07 Let me know in the comments what you'd like to see next, and if you want to follow along with the series, subscribe to the channel. I hope you find this useful, and thanks for watching.