otland / forgottenserver

A free and open-source MMORPG server emulator written in C++
https://otland.net
GNU General Public License v2.0
1.6k stars 1.06k forks source link

Bug with movement and executing an action #3464

Open ggruts opened 3 years ago

ggruts commented 3 years ago

Before creating an issue, please ensure:

Expected behaviour

The character moves correctly when using the items and does not have any rollbacks or bugs.

Actual behaviour

If you run using an item or a spell (from what I tested), the character will be immobile and unable to move forward. You can only get out if you go elsewhere. When you try to move forward, nothing happens. (As I tried to reproduce in the gif below). I realized that if the speed of the ground is the same along the route, it happens more often. I tested it several times, and it doesn't always happen. Usually happens when I click on the map to walk.

Reproduction environment

https://imgur.com/H6qWZhR

EPuncker commented 3 years ago

I wasn't able to reproduce the issue with mapclick, the character just stop, but doesn't get stuck

ggruts commented 3 years ago

I went to test again and tried to see more details, and I realized that every time it happened, the character didn't hit anywhere. I made another gif trying to demonstrate what I'm saying. I also tested with OTclient 1.0, and it didn't happen with it. (I don’t know if this information is relevant but it’s good to notify).

https://imgur.com/KMVypju

EPuncker commented 3 years ago

I also tested with OTclient 1.0, and it didn't happen with it. (I don’t know if this information is relevant but it’s good to notify).

yes as you can see in #3411 , it is client sided, on otclient and new tibia clients it works fine, but in old clients it doesn't, and there is nothing we can do 😞

ggruts commented 3 years ago

I continued testing and realized that if you lock the fps at 60, it doesn't happen. If it goes beyond that, it starts to happen. The higher the fps above that, the more recurring it happens. I leave this information here in case it is useful sometime. Thanks for listening!

Zbizu commented 3 years ago

iirc in cipbia casting spells stopped the movement from click entirely. Will test that later today and edit that comment.

edit: I'm wrong. You can spam exura and walk.

edit2: unable to reproduce 1920x1080, 719 fps, asus gtx 1050 ti, both full screen and windowed, dx9, game version 10.98