PathFinding

Path finding API, used by other plugins only

Total Downloads: 13,570 - First Release: Mar 31, 2015 - Last Update: Apr 19, 2018

5/5, 14 likes
  1. I am also getting:
    Code:
    [Oxide] 5:54 PM [Error] Failed to call hook 'FindBestPath' on plugin 'PathFinding v0.0.8' (ArgumentOutOfRangeException: Argument is out of range.
    Parameter name: Index out of range)
    Any ideas on what is causing it?
     
  2. Soooo where are the instructions for this. I watched the vid and couldnt really understand how the path is created and or how to apply it to the npc. Is there something im missing...
     
  3. +1

    [Oxide] 10:58 AM [Error] Failed to call hook 'FindBestPath' on plugin 'PathFinding v0.0.8' (ArgumentOutOfRangeException: Argument is out of range.
    Parameter name: Index out of range)
     
  4. As I understand it, the pathfinding is already applied to NPC; it has to do with when they leave their post/spawn point/waypoint to attack only- if there are errors, most likely the cause is a set of stairs or some other immovable object which interferes with that path so it finds another- I believe default is 500 times before it resets but I may be wrong on that. You'll get the error message each time it fails to find a direct path as the npc begins to wend it's way to target... pretty sure that's how it works.
     
  5. *DELETED*
     
  6. Any further updates to this for the NPC? my NPC's are walking through walls and doors and such, and cannot follow anyone when they climb a ladder, as well as when ladders are climbed, the NPC totally looses track of the player.
     
  7. Nogrod updated PathFinding with a new update entry:

    1.0.0

     
  8. this is causing a huge delay when logging out, users are reporting they are found sleeping outside their homes.
     
  9. not sure if its user error or the plugin, but it is using decimals and keeps searching over and over and over forever for a path for each npc bringing the server fps from 260 to 4. today was dedicated to redoing the npcs and i really need a fix for this. Thank you

    Edit: Sorry i forgot to mention it makes 6 attempts says waypoint: 0 for "name"
    ArgumentOutOfRangeException: Argument is out of range.
    Parameter name: index

    They are in the water treatment plant.
     
    Last edited by a moderator: Apr 12, 2016
  10. Nogrod updated PathFinding with a new update entry:

    1.0.1

     
  11. report

    Code:
    [04/15/2016 14:00:10] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:10] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:10] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:10] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:11] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:11] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:11] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:11] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:11] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:11] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:11] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:11] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:11] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:11] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:11] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:11] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:11] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:11] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:11] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:11] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:12] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:12] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:12] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:12] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:12] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:12] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:12] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:12] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:12] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:12] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:12] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:12] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:12] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:12] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:12] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:12] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:13] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:13] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:13] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:13] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:13] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:13] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:13] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:13] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:13] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:13] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
    [04/15/2016 14:00:13] ArgumentException: Object type UnityEngine.Quaternion cannot be converted to target type: UnityEngine.Vector3
    Parameter name: val
     
  12. Code:
    (18:29:23) | [Oxide] 18:29 [Warning] [PathFinding] Hit MaxDepth!
     
  13. No idea from where these messages come from.

    Try changing MaxDepth config if that message occurs repeatedly. Means that your npcs tries to find longer paths than allowed.
     
  14. Thank you Nogrod sir!
     
  15. got the same but after like 10 message server crash
    (09:24:01) | [Oxide] 09:24 [Warning] [PathFinding] Hit MaxDepth!

    (09:24:03) | [Oxide] 09:24 [Warning] [PathFinding] Hit MaxDepth!

    (09:24:05) | [Oxide] 09:24 [Warning] [PathFinding] Hit MaxDepth!

    (09:24:07) | [Oxide] 09:24 [Warning] [PathFinding] Hit MaxDepth!
     
  16. doubt that it was the cause, nothing changed just warning was added...and it only tells you that your npcs try to find a path further than allowed in your config
     
  17. i get this message 100 times in a row "[Oxide] 19:15 [Warning] [PathFinding] Hit MaxDepth!" and players report some laggs ... can the server lagg because of spamming this message?
     
  18. Okay, now I think I understand the max depth warning. If I set max depth at zero, the NPC's only find me after I shoot them if I'm on the same altitude level as them. If I go on a rock and shoot them they stand there when max depth is set to zero.
    If I set it to 1000, I can be at higher altitude and they still come at me. If I am on my 9 story roof, I get the max depth warning because I'm beyond 1000 depth, I think? I also notice it doesn't have to be 9 stories up. It gets the warning if I'm not standing on the edge of the roof, and the NPC's don't come at me.
    Setting it to 10000, seems to be the same as 1000. I guess 1000 is the highest I can set it at?
     
    Last edited by a moderator: May 1, 2016
  19. After using the /path a, in the console constantly ArgumentException: Object type UnityEngine.Quaternion can not be converted to target type: UnityEngine.Vector3
    Parameter name: val