The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 66 - File: global.php(961) : eval()'d code PHP 8.0.30 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/global.php(961) : eval()'d code 66 errorHandler->error_callback
/global.php 961 eval
/showthread.php 28 require_once
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 43 - File: showthread.php(1617) : eval()'d code PHP 8.0.30 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1617) : eval()'d code 43 errorHandler->error_callback
/showthread.php 1617 eval

Solved & Confirmed 0.11.2 BT - Pathfinding issue on surface world with many portals close to each other
Solved with the next version!

The issue was that if another portal that wasn't closest to the rally flag was closer to the creatures than the other portal, then the creature decent into the that one because it had a higher job priority.
So if portal "A" has a distance 10 to the rally flag, and portal "B" has a distance 15 to the rally flag and distance 5 to portal "A".
* Then the creatures will use portal "A" to reach the surface.
* And on the surface they will prioritize jobs depending on distance.
- Portal "A" has distance 0 from the creature, but it is disabled because it is the one closest to the rally flag.
- Portal "B" has distance 5 from the creature and it is NOT disabled.
- Rally flag has distance 10.
* So the creatures will goto Portal "B" as it has the closest distance.
* And when they are in the dungeon they will goto portal "A" and around it goes.
It was not just a matter of changing the priority because if the rally flag moves to a location that makes portal "B" closer to it, then I want the creatures that are on the surface to go down to the dungeon through portal "A" and then back to the surface through portal "B".
So what I did was that I blocked portal "B" if the creatures were closer to portal "A" that than to portal "B".

Solved with the next version!

Messages In This Thread
RE: - by Rasmus - 17-11-2017, 03:49 PM
RE: - by Rasmus - 19-11-2017, 03:34 PM
RE: - by Rasmus - 23-11-2017, 09:20 PM
RE: - by Mello Tonin - 25-11-2017, 04:38 AM
RE: - by Rasmus - 25-11-2017, 02:47 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)