marathon wrote: ↑Fri Feb 07, 2020 3:02 pm
When your DUC unit finishes its whatever task (your scout exploring for example) it stays idle for X seconds before moving with auto pilot (tasked as explorer or TSA unit). Setting sn-consecutive-idle-unit-limit to zero, it eliminates this useless time. I believe it is set at 15 for lower difficulty vs novice humans.
Ah ok, thanks, that's useful indeed.
I don't know about your improved sheep collecting code. I noticed that the sheep that villagers gather from does not move under TC but rather next to it. Also the rest of the sheep seem exposed.
I used to move it directly under the tc but this was sometimes causing pathing issues with 7-8 vills eating the sheep because the tc building itself got in the way. So I moved their gather point 1 tile in the -x direction to give them a bit of room around the sheep, which is still mostly under the tc (most of the vills eating it are still under the tc) but they don't get in each other's way as much. I've now moved it back under the tc though, as the 2-3 vills who had to walk a tile to drop off their meat are almost as bad as sometimes having some pathing issues anyway.
The rest of the sheep were moved a bit out of the way because I used to only DUC the vills every 3 seconds and sometimes when a new vill pops out he immediately kills another sheep before being DUC'd to the current sheep. Hence why I moved the sheep out of the way a bit. I later changed the villager DUC to run every rule pass instead of every 3 seconds so this isn't strictly necessary anymore, but I've left it in as it doesn't harm either and I kind of like it this way.
I will copy some stuff from your AI. Still fixing my messy dark age and your tricks will help me.
Serve yourself, it's open source for a reason
I wouldn't copy the boar luring code though, a couple of posts above in this thread TheMaximalBeing suggested a much better way of doing it than I'm doing right now.