Open Krarilotus opened 4 years ago
@Krarilotus I could not reproduce the workers getting stuck. I created the same layout around the stockpile, and all I managed is to get a child stuck. Which is not the same as the workers. I have run the game in 1000x speed for minutes and no ox got stuck. Sadly, finding and fixing these pathfinding bugs are quite hard, especially if it happens with a worker or peasant because I have to identify the unit somehow, then find its pathfinding loop.
I can confirm the problem with gates that have their entrance placed adjacent to stockpiles. The first problem you stated however occured more times to me than it would be related to the pathfinding and getting stuck bug. Had a game yesterday where Kalif wouldn't recruit their main army but still recruit their harass and sortie troops (aka they had villagers to recruit troops from) while also having about 30k gold. It's hard to determine when that occures (e.g. while or right after an attack) because you don't always notice when they stop recruiting their main army.
@Truetobi91 they stop recruiting their main army, when their army is still in an Attack. But what i ment is, that it started re recruiting main army and stopping in the middle of it for a long long time.
Also pls try this against enemies with open castles, as those prevent AI's getting troops stuck on the map somewhere due to the pathfinding issue, that they cannot reachthe lord and dont move anymore.
@LordHansCapon you can download all the contest files with the marshal castle in it and run it for yourself. You will see that error occur quite frequently. Link to the download: https://drive.google.com/open?id=1XP_tiar3UUXj2YvY_envyrCrgzWahnph
So the main Issue with lag could simply come from gates beeing placed next to the stockpile. Hacksülze discovered it to be replicateable to slow the game down significantly by placing a gate next to a stockpile, while having the gate entrance not correlate to the walkway on the pile itself.
2 bugs which might be related and therefore i ll put them together in this issue:
An AI can start recruiting its main army and then suddenly stop without recruiting any troops anymore. This is wierd as it whould always have an active recruitment at all times.
Workers getting stuck at gates that are somewhat placed in front of the stockpile. The same can happen at corners with Stair5 (lowerst stairs) where people can just walk over the stairs but sometimes get stuck on them and then stack up and dont move anymore. This can reduce the workflow of cruicial economy.
a video demonstrating this is the following: https://www.youtube.com/watch?v=HVrueNulcAQ
i d recommend just going straight to minute 25 to see for yourself what i mean.