Author Topic: Infinite range  (Read 8198 times)

MadMan

  • Posts: 96
  • Faggot Crusher.
    • View Profile
Infinite range
« on: October 06, 2013, 11:44:55 AM »
I know you can change the range of the actor, but how do you make it infinite? I tried changing the aggro range and range to 9999999999999999999999999, but they don't seem to find me wherever i am. Any help?

Heretic

  • Moderator
  • Posts: 305
  • Castle Runner
    • View Profile
Re: Infinite range
« Reply #1 on: October 06, 2013, 03:41:40 PM »
I believe if the aggro range is higher than the "max-range" which is the maximum distance they will let someone get from them before giving up the chase. Also make sure there are no obstacles and such in the way that might prevent their pathing from getting to you.

MadMan

  • Posts: 96
  • Faggot Crusher.
    • View Profile
Re: Infinite range
« Reply #2 on: October 06, 2013, 07:04:05 PM »
I have found out that it impossible to do this. Actors have a certain path-find, and it will be limited to this, no matter what the range is set to.

Heretic

  • Moderator
  • Posts: 305
  • Castle Runner
    • View Profile
Re: Infinite range
« Reply #3 on: October 07, 2013, 03:43:03 AM »
I'm able to change mine a bit, but haven't tried very long ranges. Have you found what the max is?

NekoBaron

  • Posts: 124
  • Scripting Wizard
    • View Profile
Re: Infinite range
« Reply #4 on: October 07, 2013, 01:53:06 PM »
I know pretty much every enemy on the survival level has a aggro-range and max-range of 20 and the boss lich himself has 40 for both if you wanted to compare.

MadMan

  • Posts: 96
  • Faggot Crusher.
    • View Profile
Re: Infinite range
« Reply #5 on: October 07, 2013, 05:59:30 PM »
I'm not sure exactly what the range is. I'd think around 80-100, after i set my range to 1000000000000, and the mobs not being able to find me. I look on the map, it seems as it is around 80, not sure exactly, but setting the values high just sets it to the max.

Heretic

  • Moderator
  • Posts: 305
  • Castle Runner
    • View Profile
Re: Infinite range
« Reply #6 on: October 08, 2013, 05:47:19 AM »
Yeah I imagine the path finding is only capable of a few screens in length or something. If I may ask, what propose did you have for the range being so high?

MadMan

  • Posts: 96
  • Faggot Crusher.
    • View Profile
Re: Infinite range
« Reply #7 on: October 08, 2013, 05:43:53 PM »
I am making a giant survival map, very big, if the mobs cant find me, it makes everything more complicated. I can script it, so mobs spawn in the area your in, but i cba :P.  I guess i have to now...

Hipshot

  • Developer
  • Posts: 455
  • Level Designer
    • View Profile
Re: Infinite range
« Reply #8 on: October 10, 2013, 08:28:23 AM »
There's a maximum value to those, I think you can't set them above 20 or 30 right now. The max range and aggro that is.

MadMan

  • Posts: 96
  • Faggot Crusher.
    • View Profile
Re: Infinite range
« Reply #9 on: October 10, 2013, 11:57:48 AM »
Will you even think about increasing this maximum range so it it possible to make it infinite?

Myran

  • Developer
  • Posts: 183
    • View Profile
Re: Infinite range
« Reply #10 on: October 10, 2013, 12:23:06 PM »
So the reason there is a limit on the range is because we have a limit on how long a unit is allowed to pathfind, increasing that limit will hurt performance. I will look in to increasing it and running longer pathfinding at a lower priority though.

NekoBaron

  • Posts: 124
  • Scripting Wizard
    • View Profile
Re: Infinite range
« Reply #11 on: October 10, 2013, 12:57:22 PM »
Have you considered like an alternative to let the map editor help the AI, like you can place an AI node in main areas to make it so if the player is too far it will try to nave to a node instead?

Like if player distance > 30 then do a quick nav mesh from custom placed nodes, I reckon you might be able to work something like this but in general most people aren't going to be using AI to nav from miles away. Though an invincible Minotaur chasing you through a maze would be entertaining.

Myran

  • Developer
  • Posts: 183
    • View Profile
Re: Infinite range
« Reply #12 on: October 14, 2013, 09:39:25 AM »
I've avoided techniques like that because of how much the scripting can change the map, so if you open up a new path you'd have to activate a new path node or nav mesh.