Skip to content
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

Grounded NPC flying over gap and crossing boundaries (mmap issue) [$75 awarded] #2688

Closed
BarbzYHOOL opened this issue Feb 20, 2020 · 10 comments · Fixed by #3658
Closed

Grounded NPC flying over gap and crossing boundaries (mmap issue) [$75 awarded] #2688

BarbzYHOOL opened this issue Feb 20, 2020 · 10 comments · Fixed by #3658
Labels
Confirmed CORE Related to the core Mmaps/Vmaps Issues with maps/vmaps/los

Comments

@BarbzYHOOL
Copy link
Member

BarbzYHOOL commented Feb 20, 2020

SMALL DESCRIPTION:

Mobs can fly over a gap, or climb up/down a wall while it's impossible normally.

EXPECTED BLIZZLIKE BEHAVIOUR:

NPCs should follow the laws of nature, like the player characters do.

CURRENT BEHAVIOUR:

Mobs can fly over a gap, climb up/down a mountain or a wall etc... it's gamebreaking and visually horrible and screams "BUG" to the players' ears.

STEPS TO REPRODUCE THE PROBLEM:
  1. .cheat god
  2. .go cr 90632 (inside BRD)
  3. Attack this mob but do not kill it, at around 20% he will flee and join the other side on the right and will pull all the mobs which is normally impossible and will wipe your group. This is kinda gamebreaking (and ugly to see).
  4. You can also jump below and they will all follow you.
BRANCH(ES):

master

AC HASH/COMMIT:

8760a9f

OPERATING SYSTEM:

Deb 9


The $75 bounty on this issue has been claimed at Bountysource.

@Maurowin
Copy link
Contributor

Confirm!

@BarbzYHOOL
Copy link
Member Author

I almost want to put priority critical for this

@Yehonal Yehonal changed the title Grounded NPC flying over gap and crossing boundaries (mmap issue) Grounded NPC flying over gap and crossing boundaries (mmap issue) [$25] Aug 22, 2020
@Yehonal Yehonal added the Bounty label Aug 22, 2020
@Goatform
Copy link
Contributor

@BarbzYHOOL , have a look at something like this, maybe it could be corrected in a similar way like this one? I've done this one long time ago and I forgot what was it about in specific but perhaps can be related to this one in some way.

OregonCore/OregonCore@55d9bdc

@Helias
Copy link
Member

Helias commented Aug 23, 2020

This is awful, I will test the changes from oregoncore too

image

@Helias
Copy link
Member

Helias commented Aug 23, 2020

the problem still persist after that changes (I re-extracted the mmaps)

image

@Yehonal Yehonal changed the title Grounded NPC flying over gap and crossing boundaries (mmap issue) [$25] Grounded NPC flying over gap and crossing boundaries (mmap issue) [$50] Sep 16, 2020
@FALL1N1
Copy link
Contributor

FALL1N1 commented Nov 2, 2020

OregonCore/OregonCore@55d9bdc should be backported as it improves the pathfinding in general a lot, here is an example http://prntscr.com/vc4fct, without it (the stock values) the path would be like this: http://prntscr.com/vc4ga8

@FALL1N1
Copy link
Contributor

FALL1N1 commented Nov 2, 2020

yeah, that fixes the issue, http://prntscr.com/vc4mk7 - they will stop at the edge and not going to fall underground...

In addition, I have added this for testing purposes, not sure if it's related and fixes it, but it's still worth the try - https://gist.github.com/FALL1N1/5d6ec1874303587ab61abbf68ab782d1

That may also be the solution:

i_nextCheckTime.Reset(500);
to
i_nextCheckTime.Reset(100);

in FleeingMovementGenerator.cpp @ L45

@Goatform
Copy link
Contributor

Goatform commented Nov 2, 2020

That commit is quite an old one so I can't fully recall what it improves exactly when I committed it back in days ... 1 thing I recall is that npc pathing should be slightly smoother And @FALL1N1 , regard changing i_nextCheckTime from 0.5s down to 0.1s ... is a little bit scary. I suggest checking how expensive are those movement checks for i_nextCheckTime. Technically, it may improve some scenarios but at what cost?

@FALL1N1
Copy link
Contributor

FALL1N1 commented Nov 2, 2020

I'll benchmark it later and see how it performs, they are already .1s/.2s at Trinity, so it shouldn't have that heavy impact. @Goatform

@FALL1N1
Copy link
Contributor

FALL1N1 commented Nov 3, 2020

RAM remained the same, cpu as well, I did not see any performance drops so did the VS debugger, so it's fine to be tested.

@Yehonal Yehonal changed the title Grounded NPC flying over gap and crossing boundaries (mmap issue) [$50] Grounded NPC flying over gap and crossing boundaries (mmap issue) [$75] Nov 7, 2020
@Si1ker Si1ker unpinned this issue Dec 2, 2020
@Yehonal Yehonal changed the title Grounded NPC flying over gap and crossing boundaries (mmap issue) [$75] Grounded NPC flying over gap and crossing boundaries (mmap issue) [$75 awarded] Apr 17, 2021
@Azcobu Azcobu added Bounty Priority - High Mmaps/Vmaps Issues with maps/vmaps/los CORE Related to the core Confirmed labels Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Confirmed CORE Related to the core Mmaps/Vmaps Issues with maps/vmaps/los
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants