[BUG] Can't build because an area is Too Dangerous
Moderator: NBJeff
-
DrFunkenstein
- level0
- Posts: 6
- Joined: Thu Sep 27, 2012 7:34 pm
- Location: United States
[BUG] Can't build because an area is Too Dangerous
I'm not sure how to reproduce this, but I had some toilets with prisoners in them overflow, so I designated a grate to be built. It was flagged as too dangerous to build. I think went back to work on my office complex interior walls, and they too were designated Too Dangerous and eventually auto-canceled. There was no danger around the empty office building.
-
RabidZombie
- level5

- Posts: 2414
- Joined: Fri Nov 18, 2005 10:09 pm
-
FatFreddie
- level1

- Posts: 21
- Joined: Wed Sep 26, 2012 5:19 pm
- gsuberland
- level2

- Posts: 161
- Joined: Wed Sep 26, 2012 7:29 pm
- Location: United Kingdom
- Contact:
I think I've worked out the cause of this. The "too dangerous" flag is set on the job if any region that the worker's shortest path intersects is considered dangerous. When the worker starts moving, it's fine, but if an area in his path becomes dangerous after the path is calculated, he'll simply refuse to move into that area and the job will be cancelled. This is why cancelling and re-creating works - it resets the path to an area outside the danger zones.
A more optimal solution would be to have the game re-calculate the worker's path if they reach a danger zone, or pre-emptively re-calculate the path every time a new danger zone is created.
A more optimal solution would be to have the game re-calculate the worker's path if they reach a danger zone, or pre-emptively re-calculate the path every time a new danger zone is created.
Who is online
Users browsing this forum: No registered users and 2 guests

