-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Error] Monster walking behaviour #39
Comments
Thanks again 👍 You're probably the first one who tried to learn and perform a skill on the OpenMU server 🥇 Just a wild guess:
The evil spirit skill could cause some area skill hit packets for these monsters at 0,0 when they're visible (or in range) on client side. Currently there is no check on the server yet to prevent such hits. About the walking in general: Monsters are allowed to walk outside of their spawn area. At the original game (global server) it was possible to lure monsters across the whole map. |
I made some fixes for area skills... they should find the monsters in range now - provided they are inside a bucket which is in range. Time to sleep now 😴 |
I found the issue... As soon as a Monster is doing a "RandomMove", it moves towards 0,0. The reason is, that RandomMove doesn't set the WalkTarget. |
The X and Y are set to the WalkTarget in BucketAreaOfInterestManager.MoveObjectOnMap. See also #39.
Another thing "not so far from moving" is monster respawn. Seems to be packet isssue. If one create a small spawnarea (or point spawnarea for better example) -> as soon as you kinn those monsters you will not see new spawned monsters but on the map at the admin panel you can see them. |
The OldBucket has to be null before adding it to the bucket of the map. Otherwise, the players ObserverToWorldViewAdapter will return early, because it thinks it already observes the oldBucket (='where the object came from'). See also #39.
Fixed the respawn issue. However, I noticed something related again. When monsters attack, they don't seem to be in the correct coordinate or looking at the right direction. |
Tested the fix. |
Oh, that's strange... Anyways, thanks for the test :) |
Tested only ingame. Deactivate Walk timer + random move = no issue. |
I think this issue has been fixed with #47.
I'll create an issue, if that's still occuring. |
Overview:
Observation:
3.1) If you want to hit them with DirectHit spell - hit them - they will die, you will get exp/zen. No drop.
4.1) If you want to hit them with AreaHit spell - try to - the will act like being hit but no damage would be done. Therefore as we can see from debugging - system doesn't detect monsters around you in the specified skill range.
Ideas:
2(+ 3-4)) Didn't debug it well yet, just shortlooked. But first ideas and observations were:
When on server side monsters walked to 0,0 but on client side they are displayed on other places. (take a look at the map in the admin panel - all monsters are on correct places but ingame - they are not).
Why we can hit them with DirectHit spells - because client send the data about monster and it is ok to calculate hit.
Why we cannot hit them with AreaHit spell - because non-target spell use being sent to the server and the server should determine monsters being hit int the spell range around the caster.
PS. I would investigate it deeper this eve and add comments about to make it more detailed.
The text was updated successfully, but these errors were encountered: