Opened 6 years ago
Last modified 5 years ago
#4902 new defect
Unreachable entity test
Reported by: | elexis | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Backlog |
Component: | Maps | Keywords: | |
Cc: | Patch: |
Description
A terrain tile is considered impassable if the slope is too steep.
On many atlas maps there are trees and the like on impassable tiles. Then units that try to gather the trees will forever try to reach the entities but fail to do so.
It should be possible to discover unreachable trees when the map is loading and throw a warning message.
So we don't have to test manually anymore to find those unreachable trees and we can remove them easily by the reported entity ID.
Attachments (4)
Change History (9)
comment:1 by , 6 years ago
by , 6 years ago
Attachment: | screenshot2799.png added |
---|
by , 6 years ago
Attachment: | 2017-12-20_0005 unreachable tree.zip added |
---|
by , 6 years ago
Attachment: | screenshot2800.png added |
---|
by , 6 years ago
Attachment: | 2017-12-03_0004 unreachable tree.zip added |
---|
comment:2 by , 6 years ago
Thanks for the uploads.
The tree at the map border is on the skirmish map Persian Highlands (4)
, so not a rmgen bug, but a good example for this ticket. Atlas could warn if it doesn't make it impossible to place gatherable resources outside of the map territory.
comment:4 by , 5 years ago
In case of the map border: Trees (or actually all entities) placed inside the map border could be replaced by the corresponding actors - in Atlas on save (informing the user with a waring or something) and on random maps at map export.
comment:5 by , 5 years ago
We could easily expose an 'IsTargetReachable' function after Phab:D1835 which would make this a bit less of a problem as entities could discard unreachable resources.
This functionality could be implemented on save in Atlas instead of on every game check unless you meant it for random maps ? If it's run before every map it ought to be optional for performance concerns.
I'm not sure on how to to convert PMP files to heightmap to perform those checks though.