suriyun-production / mmorpg-kit-docs

This is document for MMORPG KIT project (https://www.assetstore.unity3d.com/#!/content/110188?aid=1100lGeN)
https://suriyun-production.github.io/mmorpg-kit-docs
49 stars 10 forks source link

Problem again with Hit Detection in new patch + Bugs in updated A* 2 ISSUES #2412

Closed anthonyselias closed 9 months ago

anthonyselias commented 9 months ago

Hey, Suri!

ISSUE 1

Recently you fixed an issue I had with hit detection, and after the fix it worked perfectly. With the new patch, the problem is back.

https://github.com/suriyun-production/mmorpg-kit-docs/assets/134556081/92db3c5a-b1bc-4566-a1bf-3793adf2776d

image

The problem is back again.

ISSUE 2

Updated to the latest A Star on github, breaks the game, i had to look in my backups and copy and paste older version to fix it

https://github.com/suriyun-mmorpg/UnityMultiplayerARPG_2DAI

https://github.com/suriyun-production/mmorpg-kit-docs/assets/134556081/89f9e38a-6158-4a4d-bf9a-de3fc4d65039

insthync commented 9 months ago

This one ? https://github.com/suriyun-mmorpg/UnityMultiplayerARPG_2DAI/commit/e9bf2201f8608ff7bb49aa3f958ed8b111c422b4

If it is, then did you try to rebuild your server?

insthync commented 9 months ago

There is no error message in console log?

anthonyselias commented 9 months ago

Player.log

here it is

anthonyselias commented 9 months ago

& yes, i did rebuild the server

anthonyselias commented 9 months ago

https://github.com/suriyun-production/mmorpg-kit-docs/assets/134556081/ce0d5b7b-74de-4ee7-b673-3d157d9f55b6

I replaced the A* with the old one while u fix the new one, but I wanted to show you another video of the combat issue

insthync commented 9 months ago

From what I seen from your video, it is not starts an attacking I guess that it is because the character stops before it reach target at client, it might stopping because it have to stop on the grid, but it won't starts an attacking because start attacking distance is not long enough to target, you have to try to increase damage info -

attack distance

insthync commented 9 months ago

Which old Astar? Whats are difference?

insthync commented 9 months ago

You should copy logs from server folder / log, not that one, it is hard to find issues.

anthonyselias commented 9 months ago

The updates from 4 days ago on https://github.com/suriyun-mmorpg/UnityMultiplayerARPG_2DAI breaks the game. i have a backup of the files before the change 4 days ago that works fine.

I just copied the new files back to the project so i can troubleshoot it for you some more.

Once again, this is what it does

image

Here are the logs from server file Logs.zip

I have tried changing the attack distance on both the monster and the unarmed prefab, it did not change the problem. From what i can see, after trying a million times, is it gets stuck like that when I am attacking a monster that is about to move. So if the monster tries to wander exactly when I try to attack, this happens.

The fix that you sent me, just a couple days ago, made it work perfectly. But when I upgraded to new kit, I started having this issue.

anthonyselias commented 9 months ago

Old Files that work

Old2DAI.zip

New files that don't work UnityMultiplayerARPG_2DAI-master (3).zip

anthonyselias commented 9 months ago

OK, I have checked my gamedatabase, and for some reason when I put the new A*, it replaced my mapinfos. So, the new one actually works.

I still have the issue of it not attacking properly, i have changed the distance on both the monster and player and I get the same results

anthonyselias commented 9 months ago

I will close this issue, and create a new one so this wont be confusing.