Post
by Mike » Wed Jan 13, 2021 3:23 pm
The main thing I have deducted in the comments so far is, basically, prayer and hit calculations work fine on PkHonor but when you have a high ping it can lead to issues because you cannot pray in time.
Many Europeans probably have a ping of about 100 - 200ms since our server is located in North America. As a European, I once tried to play League of Legends on a North America server and my ping was about 200ms, making the game much harder to play for me, despite otherwise having a stable connection. In OSRS and in RSPS, it's far less noticeable, because 200ms is a third of a game tick (600ms). That also means European players on an American server will barely notice this delay.
However, it can indeed be an issue for switching prayers in time. If you have a 200ms ping and you see an animation being performed by an NPC, that actually means the animation was already being performed 200ms earlier. Then even if you immediately click to activate your prayer, it'll take another 200ms before that prayer activation reaches the server. In other words, because of the slowness of the animation visual to reach you and the prayer activation to reach the server, that 200ms ping just caused your prayer activation to arrive 400ms later, or close to a full game tick later than it would for a North American player.
Either way, except for Jad, if you see the enemy perform an animation, it's already too late to pray against it.
If our server does indeed work correctly in terms of timing and when damage is calculated, I believe the best solution might be to add a slight delay (for example 1 game tick) between starting the attack animation and doing the calculation of the damage. This means that XP drops will be delayed by 1 tick, but also give the defender 1 extra game tick to switch prayers in time for an incoming hit.
Do you think this approach would solve the issues, or is there more to this? Or might this lead to issues, for example North American players being able to pray against an attack that they should not have been allowed to pray against in the first place?