Monsters hitting you after you run away
Posted: 12 Apr 2008, 10:59
This is an old problem, but I *may* have found a fix for it.
From tracing through the code, it appears that what is happening is that after you take a hit from a monster, the server enforces a delay before you are allowed to move. The client, however, has no awareness of this, and moves the character immediately.
I've tried understanding the code involved, but to date the only result is a headache
But while digging through this, I ran into this configuration option in "conf/battle_athena.conf"
I've tried setting "player_damage_delay" to "no" on my local server, and haven't seen this problem since.
1. Could some devs try this change on their test servers, and see if they get the same results? It may have been that I've just been lucky during my tests.
2. If these tests are successful, I would recommend that this change be made to the main server. While the notion of a player *always* being able to escape from a battle may or may not be what the developers have in mind, until such time as the client correctly deals with this situation, it makes more sense to leave this disabled on the server.
From tracing through the code, it appears that what is happening is that after you take a hit from a monster, the server enforces a delay before you are allowed to move. The client, however, has no awareness of this, and moves the character immediately.
I've tried understanding the code involved, but to date the only result is a headache
But while digging through this, I ran into this configuration option in "conf/battle_athena.conf"
Code: Select all
// If a player is attacked, will they have a delay in being able to move? (Note 1)
// (Setting to no will be like always endure)
player_damage_delay: yes
// Damaged delay rate (Note 2)
player_damage_delay_rate: 100
1. Could some devs try this change on their test servers, and see if they get the same results? It may have been that I've just been lucky during my tests.
2. If these tests are successful, I would recommend that this change be made to the main server. While the notion of a player *always* being able to escape from a battle may or may not be what the developers have in mind, until such time as the client correctly deals with this situation, it makes more sense to leave this disabled on the server.