Dwelvers Forum

Full Version: 0.11.18 - Creature's patwhay portal-to-portal loop
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Here's the save file of what I meant in thread title - basically wherever I place my rally flag close to portals creatures instead going there in this particular terrain decides to walk from one portal to another.

Sebt If its one tile to the whole that your creatures climb up and down, i wonder if thats just the confusing part of path. See if you with the mouse can find a tree to chop down first before placing the flag so close to the portal hole Tongue
So you managed to call creatures to rally flag placed the south from these portals? I cut trees that could be obstacles, but than they still were going from one portal to another. There was an issue reported earlier where portals were too close to each other and creatures were marching in a loop cycle through these two portals. Here I couldn't order creatures to meet with rally flag to the south of these portals around. Also earlier Rasmus made that creatures won't go through surface from one portal to another, but by underground pass to ensure their safety, I wonder if that somehow cause the issue in cases like reported here.
Thank you Smile I've added it to the list of Bugs/Issues & Crashes!
Found the issue.

You had a lot of surface portals that weren't reachable by the creatures on the surface. And what the creatures do on the surface is to measure distances between themselves and the portals, and distances between themselves and the rally flags. If one is closer to another they will decide weather to go down a portal or go to the rally flag. The problem here was that if a portal isn't reachable the distance it returns to the creature (in code) is -1, and I didn't take into account that the portal should be ignored if the distance is equal to -1. Instead the unreachable portals became the closest portals...

The main reason here is actually that some of the portals you took over actually was under water and were therefore unreachable, but this has been fixed now as well if you restart the level with the same seed.

Solved with the next version!
Dwelvers v0.11.19 has now been released. This bug is solved but need confirmation Smile