WolfRAT wiki › Lag compensation

🎯 Lag compensation

Proper, modern lag compensation for Joint Ops. Players hit what they see on their screen, the same way today's shooters do it. It goes into your running server from WolfRAT: retail or TAC, no onHook, no exe change, and players download nothing.

New in WolfRAT 2.10.34: knife stabs and crew mates. A lagged player's knife stab now counts when it reached someone on his screen (see Knife), and people riding in the shooter's own vehicle are never rewound, so a door gunner's bullets no longer land on his own passengers. The old Best rewind figures and the Use suggested button are gone from the page.

2.10.28: auto-tune per player. Each player gets their own setting, learned from their own shots (see Auto-tune per player). Claymore shrapnel is never rewound, and !mycomp only gives a number when it means something.

Since 2.10.24 it covers everyone: low-ping players are compensated too, bots (AI) are rewound, and the recommended settings are set for you once (see Recommended settings). You'll find it on the Server tab, on the 🎯 Lag compensation page. It has been running live on the FMJ UK server since 2.9.7, with players from the UK, the US, Venezuela and China.

Why Joint Ops needs it

In Joint Ops the server decides every hit, and it checks each bullet against where people are on the server right now. A player on 200 ping sees everyone a fifth of a second in the past. When they aim straight at a running man and fire, the server says he has already moved on, and the shot misses. That is why high-ping players have always had to lead their targets, guessing how far ahead to aim, and why the game never felt fair from the other side of the world.

What it does

The server now remembers where every player and bot was for the last second. When a player fires, the bullet is checked against where the target was on that player's screen when they pulled the trigger, not where the target is on the server now.

Shoot what you see, and it counts. No more leading.

This is the method modern shooters use, known as server-side rewind. Counter-Strike and Valve's other games work this way. Joint Ops came out in 2004 without it. This is a fresh build for JO's own engine, written from how the game really checks its bullets, not a ping equaliser or a delay added on top.

Does it really help? The numbers

Every shot from a rewound player is checked twice: once with the rewind and once the old way. That gives a straight answer to "would that shot have hit without it?". These are real nights on the FMJ UK server:

NightHits with itHits the old wayGain
Thursday 15 October (Hamshop, elk road, A-99, Oscar, Angel and more, pings up to 280+)1,2011,003+20%
Saturday 17 October (fewer high pings that night)511474+8%
Friday 30 October (5 hours, 4,352 close shots)3,0452,576+18%
Saturday 31 October (19 players peak, auto-tune live)4,3054,016+7% (lost hits cut by 63%)
Friday 20 November (4½ hours, 11 players peak, everyone compensated, dead bodies no longer counted)4,1043,649+12%

Only shots from players over the minimum ping are counted. The more lag your players have, the more it gives them. The players could feel it too. On Thursday night they told us they didn't need to lead any more.

On the 20 November night, with every player compensated, the gain by the shooter's ping was:

Shooter's pingHits with itHits the old wayGain
Under 501,7431,621+8%
50-79 (four players, few shots)299347-14%
100-1491,5401,274+21%
150-199522407+28%

Low-ping players were not hit more for it either: bullets that came close to an under-50 player hit about 10% more often than plain Joint Ops would have allowed, against 12 to 19% for everyone else. The 50-79 row is nearly all one player on one map and too small to judge; we are watching it.

What it never does

Players can check their own: !mycomp

From 2.10.14 any player can type !mycomp to see what lag compensation is doing for them. The answer goes to everyone (Joint Ops has no private reply), so it starts with their name:

The counts start when the player joins (or changes name) and when the counters restart (switching it on, changing a setting, or Reset); a map change doesn't clear them. Each player can ask once every 30 seconds. Long names are cut short to fit the chat line; the numbers always stay whole.

Switching it on

  1. Run WolfRAT on the same PC as the game server and connect to it. It has to be the same machine, because WolfRAT puts the lag compensator into the running server.
  2. Go to the Server tab, then the 🎯 Lag compensation page.
  3. Tick On. The line underneath turns green and shows the setting in use. Since 2.10.13 it is on by default: updating to 2.10.13 switched it on once for every server, and if you turn it off afterwards it stays off.

A map change keeps it. A server restart or a crash takes it away, so the server is back to normal Joint Ops. To have WolfRAT put it back automatically, tick Put it back on by itself after a server restart. WolfRAT has to be running for that.

If WolfRAT ever can't switch it on, the On box stays ticked: the line underneath says NOT running and why, and WolfRAT tries again until it works: every 5 seconds for the first minute, then every 30 seconds (since 2.10.24; every 30 seconds since 2.10.9). Before that, a failure unticked the box, and the server could quietly run without lag compensation until someone noticed.

It works on retail Joint Ops servers and TAC servers alike. Nothing is written to your game files. Close WolfRAT and the lag compensator keeps running until the server restarts.

The first time you start 2.10.24, WolfRAT moves your lag compensation settings to the ones we recommend: Minimum ping 0 (everyone), Maximum rewind 300 ms, Auto-tune on Watch, Extra +70 ms. It happens once per install, and the log on the page says what moved.

2.10.28 adds one more step, done the same way: if Auto-tune was set to On (apply), it moves to Watch once, because Auto-tune now means auto-tune per player and that starts by watching. Off stays Off, and Watch stays Watch.

The settings

SettingWhat it meansStart with
ExtraHow far back the server looks is the player's ping plus this. The player's screen is a little older than their ping alone, because the game also takes time to draw frames and process server ticks. The Extra covers that. With auto-tune per player on On, a player can have their own Extra instead.70 ms
Auto-tune per playerLearns each player's own Extra from their own shots (2.10.28). Off: every player uses the Extra above. Watch: learns and shows each player's Extra, changes no hits. On: each player gets their own (within limits). See Auto-tune per player.Watch
Minimum pingPlayers below this ping aren't rewound at all. 0 means everyone is compensated.0 (80 ms before 2.10.24)
Maximum rewindNobody is rewound further than this, however bad their ping is.300 ms (400 before 2.10.24)
KnifeHow a lagged player's knife stab is judged (2.10.34). On: a stab that reached someone on the stabber's screen counts. Watch: counts what it would change, moves no stab. Off: stabs are plain Joint Ops. See Knife.On
Watch onlyCounts everything but changes no hits. Use it on a first night to see what it would do on your server before you switch it on for real.Off

For example, a player on 125 ping is checked against where people were 195 ms ago (125 + 70), and a player on 30 ping against 100 ms ago (30 + 70).

Auto-tune per player (2.10.28)

One Extra for the whole server can't suit everyone: one player hits most with a bit more rewind, another with a bit less. So WolfRAT learns each player's own Extra from their own shots.

The old auto-tune for the whole server (one Extra for everyone, from the last 450 close shots) is gone, and from 2.10.34 so are the Best rewind figures and the Use suggested button. To check your Extra, use the What if table below.

Knife (2.10.34)

A knife stab used to be judged like a bullet without lag compensation: the server checked it against where people are now, so a lagged player could stab a runner on his screen and get nothing. Now a stab is checked the same way as a shot.

2.10.35: in 2.10.34 the knife part never switched on. 2.10.35 fixes that. The new lag compensator is loaded the next time the server starts, or when you tick the lag compensation box again.

The live numbers

The page shows how it's doing as you play, refreshed every second:

An empty server doesn't run it. The page says "Waiting for players" until someone joins.

If the page says something else

It saysWhat to do
Needs WolfRAT on the same PC as the game serverRun WolfRAT on the server PC and connect to the server on the Server connection page.
Waiting for write access to the serverRun WolfRAT as administrator.
Something else already changes the game's hit codeYour server already has lag compensation from somewhere else, such as the onHook DLL's own LagCompEnabled setting. WolfRAT leaves it alone, so use one or the other.
On, from another WolfRAT versionWolfRAT was updated while the server kept running. It moves lag compensation to this version by itself and the numbers start again. If it doesn't, tick the box.
On, run by another WolfRAT that is open nowA second WolfRAT is connected to this server and is running it. This one leaves it alone. Close the other one, or tick the box here to take it over.
Auto-tune per player ... needs lag compensation helper version 6The server still runs the lag compensator from an older WolfRAT, so every player uses the Extra above. Tick the box again to load the new one.
Knife: not available on this server / Riding with the shooter: not available on this serverWolfRAT didn't find what it needs for that part in your server's exe, so stabs stay plain Joint Ops (or crew mates are rewound like anyone else, as before 2.10.34). Everything else works as normal.
Knife: needs a newer lag compensation helperThe server still runs the lag compensator from an older WolfRAT. Tick the box again to load the new one.
On this server exe claymores cannot be told apart and are still rewoundYour server's exe is one where WolfRAT can't spot a claymore's shrapnel, so claymores are rewound like any shot, as before 2.10.28. Everything else works as normal.