Major upcoming NPC pathfinding update

All of PkHonor's news will be posted here.
Programmer
User avatar
Posts: 5472
Joined: Sun Nov 01, 2009 8:00 pm
Location: PkHonor HQ

Major upcoming NPC pathfinding update

Postby Mike » Wed Oct 10, 2018 5:12 pm

I've been working a lot on the code related to NPC pathfinding in order to address several issues that have been brought to my attention. I'm hoping I got everything right, but I would like the community to test these changes before bringing them live to the production server. If all of these changes have been successfully implemented, NPC pathfinding should now be exactly the same as in OSRS.

The changes are as follows:
  • NPC's no longer dance around you (or around obstacles) in order to try to reach you. They will follow a simple straight path toward you. If an obstacle, player or other NPC is in the way, they will get stuck behind it
  • NPC's that can attack from a distance will no longer walk up to players, but stay at a distance instead
  • Fixed a bug where certain NPC's could hit with melee attacks from a distance
  • Players and NPC's can no longer hit through fences with melee attacks, only with ranged and magic attacks
  • NPC's can no longer hit you from a diagonal corner, only when they are standing directly north, east, south or west of you. When they are standing diagonally, they will sidestep if possible

It is also possible that a few other bugs related to player pathfinding have been fixed with these changes, but I cannot confirm this due to my inability to reproduce said bugs.

The test server can be accessed at https://client.pkhonor.net/PkHonor_testclient.jar. Please report any of your findings about NPC pathing here.

Happy bughunting!

Image


[Edit 1]
Thank you very much for all your feedback! I've now performed these updates on the test server:
  • GWD bosses (Kree'arra, Commander Zilyana, General Graardor, K'ril Tsutsaroth and Nex) will now always move into melee distance, unlike other NPC's that can attack from a distance
  • Fixed pet pathfinding
  • Fixed broken max hit dummies
  • Fixed player to NPC pathfinding (walking up to NPC's instead of running, standing diagonally from them, not being able to interact with them, ...). Basically, I have reverted player pathfinding to what it was before

Premium Donator
User avatar
Posts: 17339
Joined: Wed Apr 10, 2013 1:42 am
Location: Over there in that one place

Re: Major upcoming NPC pathfinding update

Postby Azu rite » Wed Oct 10, 2018 5:31 pm

If this was fixed it will help a lot, but is it only for NPCs or does this also apply to players?
Image

Helper
User avatar
Posts: 1953
Joined: Wed Apr 10, 2013 8:47 pm

Re: Major upcoming NPC pathfinding update

Postby Thoby » Wed Oct 10, 2018 5:49 pm

Sweet, this can open up quite a few new PvM tactics.
EDIT: Wow, the accounts on the testserver are from 2017 or so, right?
Last edited by Thoby on Wed Oct 10, 2018 5:51 pm, edited 1 time in total.
Image
Thanks to The Builder for the amazing siggy!

Honor Player
User avatar
Posts: 404
Joined: Sun Jul 20, 2014 1:05 pm

Re: Major upcoming NPC pathfinding update

Postby Sit skillz » Wed Oct 10, 2018 5:49 pm

Mike, you're a fucking champ. Really looking forward to this, zombies don't aggro you in the minigame as of but hopefully that'll change! Good timing as well mate, no faults with this one. Can't emphasise how happy I am with the update.
Image

Senior Moderator
User avatar
Posts: 1092
Joined: Fri Dec 02, 2016 9:56 pm

Re: Major upcoming NPC pathfinding update

Postby Respire1337 » Wed Oct 10, 2018 6:18 pm

I really appreciate the fact that you're opening this up to players! We can surely find all the bugs (if there are any of course). But...I'll start with one...
Image

Edit 1 :
Image

Edit 2 : When you click to attack an npc, you always walk even if run energy is on, and you always walk from the diagonal and can only hit only when you're face to face with the respective npc. (NOTE : this happens when interacting with any npc, seems to be happening when you want to trade them, like the junk store dude for example).
Image

Edit 3 : Pet pathing is...amazing...Your pet acts like any other npc it seems like it.
Image
Image

Head Wiki Editor
User avatar
Posts: 4824
Joined: Mon Aug 26, 2013 8:50 pm
Location: Lithuania.

Re: Major upcoming NPC pathfinding update

Postby Jonas » Wed Oct 10, 2018 6:47 pm

Things I'm noticing so far:

Not in combat: Interacting with NPC's results in the player walking to and standing near it diagonally, interacting if possible (for example: attack/talk) and then going face to face with them.

In combat: Melee: And if you're 6+ squares away, and you're trying to run at them from a stand still, results in you walking to them when you're close to them (4'ish tiles). If you're 6+ squares away, and you're trying to run at them, while initiating the running action before hand, you'll run at them normal.
Range/Mage: if you're 6+ squares away, and you're trying to run at them (from a stand still or running before hand), results in you walking to them when you're close to them (6'ish tiles).

Sidestepping always results in the player walking and not running.

Max hit dummies are broken, even though they should be NPC's you cannot attack them
Last edited by Jonas on Wed Oct 10, 2018 7:12 pm, edited 2 times in total.
Image

Premium Donator
Posts: 649
Joined: Thu Mar 16, 2017 2:56 am

Re: Major upcoming NPC pathfinding update

Postby Thelategamer » Wed Oct 10, 2018 7:05 pm

Looking forward to some testing. Would this effect the way risky barrows is played? seeing as it's best that all the barrows brothers come at you and you attack them in a square formation with blood barrage, if ahrims and karils don't come up to you I can see how it would effect the minigame.
Image

Head Wiki Editor
User avatar
Posts: 4824
Joined: Mon Aug 26, 2013 8:50 pm
Location: Lithuania.

Re: Major upcoming NPC pathfinding update

Postby Jonas » Wed Oct 10, 2018 7:19 pm

Thelategamer wrote:Looking forward to some testing. Would this effect the way risky barrows is played? seeing as it's best that all the barrows brothers come at you and you attack them in a square formation with blood barrage, if ahrims and karils don't come up to you I can see how it would effect the minigame.

no shit.
Image

Premium Donator
Posts: 649
Joined: Thu Mar 16, 2017 2:56 am

Re: Major upcoming NPC pathfinding update

Postby Thelategamer » Wed Oct 10, 2018 8:32 pm

Nex doesn't follow you anymore unless it goes in to do a melee attack.
Image

Premium Donator
User avatar
Posts: 17
Joined: Tue Oct 09, 2018 2:13 pm
Location: End of the world

Re: Major upcoming NPC pathfinding update

Postby Lol trade me » Wed Oct 10, 2018 8:33 pm

Will love to see this in the update :D
Image
Image


Next

Return to News

Who is online

Users browsing this forum: No registered users and 15 guests