Bizzare Courier AI/Pathfinding
JetStorm91 opened this issue ยท 8 comments
Is there an existing issue for this?
- I have searched the existing issues.
Are you using the latest MineColonies Version?
- I am running the latest beta/release version of MineColonies for my Minecraft version.
I am also running the latest versions of other mods that are part of my problem.
Did you check on the Wiki? or ask on Discord?
- I checked the MineColonies Wiki and made sure my issue is not covered there. Or I was sent from discord to open an issue here.
What were you playing at the time? Were you able to reproduce it in both settings?
- Single Player
- Multi Player
Minecraft Version
1.20
MineColonies Version
1.1.694
Structurize Version
1.0.760
Related Mods and their Versions
- Forge: 47.3.11
- Block ui: 1.0.156
- Domun Ornamentum: 1.0.186
Current Behavior
After updating from Minecolonies version 1.1.677, a majority of the couriers seem to idle around the level 3/4 warehouse i'm using, the Minecolonies pack version that has the built in courier huts, they often leave the warehouse but go only around 10 blocks away before heading back inside, they also stand on the racks on the ground floor of the warehouse for a short while before moving away and repeating the behavior, even when the warehouse has tasks for them to complete, as of writing the first warehouse has 7 tasks, i have around 11 couriers in total over 3 warehouses and only 3 of the couriers do any work at a time, mainly 1 from my first warehouse and the 2 from my newest warehouse.
Expected Behavior
Couriers are to idle around the warehouse only if there are no tasks to do before, if one or multiple tasks are activated in the warehouse, the required couriers are to go off and perform those tasks.
Reproduction Steps
- downgrade minecolonies mod version to 1.1.677
- start a new game
- build a colony until a warehouse reaches at least level 4
- update mod to 1.1.694 or later
- relaunch game
Logs
https://gist.github.com/JetStorm91/21ca5640ecd548761d322d4c65818229
Anything else?
No response
Footer
Viewers
- Add a thumbs-up to the bug report if you are also affected. This helps the bug report become more visible to the team and doesn't clutter the comments.
- Add a comment if you have any insights or background information that isn't already part of the conversation.
Quick update for clairity, and to beat anyone who'll suggest it, firing and re-hiring the couriers will help, but only for 1 or 2 tasks, that's it, then they go right back to idling
Hmm, I can not reproduce this locally, can you send us a world export?
i'll do you one better, i'm providing you the forge file with the world save included, if you can't replicate it, it might be a compatability issue with one of the other mods
It's a rack on the second level of the warehouse, looks like it's failing to path properly to the 2nd floor.
However I saw one of the courrier pathing up there earlier...
EDIT: Breaking that rack + 4 more racks at the bottom (the ones they were getting stuck on) solved the problem and they're now pathfinding correctly to the top floor.
The logs should have the position they are trying to get to, what is at that position?
Exact same issue in my ATM10 server (1.21.1) which is running Minecolonies-1.1.817 with structurize-1.0755.
Issue started appearing when I upgraded to warehouse level 3 (Medieval Spruce); they were doing fine at level two and one. Was initially only with 1 out of 3 couriers but this behavior is now happening with all of them. /mc colony requestsystem-reset fixes the issue for one or two requests but then they go back to idling and wandering around the warehouse. Fired them, paused and restarted them, punched them, no troubleshooting steps seem to resolve this. I also increased the number of threads for pathfinding to 4 from 1 but issue is still occurring.
Video of the behavior with logs attached of me starting up the server and filming.
Logs (which unfortunately are not particularly helpful from what I can see):
https://gist.github.com/dorner-dev/9db28c79a053cfeb11fe18d7f67f90bd
when you use the /mc citizens trackpath command, for the stuck couriers, where in the warehouse are they trying to path to?
Seems like they're pathing directly on the rack itself, maybe the rack is not oriented properly in the structure?
Logs of the path tracking: https://gist.github.com/dorner-dev/571b350a3783f04b6f4c87502b521296