A dash is ready on my screen but refused by the host
Cooldowns measured in seconds drift apart between the two computers, so the button lights up before the host agrees. Counting in game steps makes both sides agree exactly, and stamping the request with its own step stops cheaters from reordering time. Here is the check, with the three ways a request can be refused.
Why this works
Two clocks never agree exactly, but a count of game steps is the same number everywhere. Judging by the step on which the button was pressed makes delay harmless, and refusing impossible stamps closes the door on lying about when.
When not to use it
It is overkill for long waits like a ten minute ability, where a few steps of difference do not matter. Use a plain timer on the host and just show the client what is left.
In the full entry
- What to build, step by step
- Starting values and the reason for each
- 3 common mistakes and the fix
- 19 lines of example code with 4 checks that pass
- How your AI shows you that it works
Say this to your AI
Use the Spielerando entry "A dash is ready on my screen but refused by the host" (read_entry online-dash-cooldown-counted-in-steps) in my game. Build it step by step, and show me how you checked that it works.Or skip this and connect the MCP: your AI then finds all of this by itself.Connect the MCP