CodeOptimist / rimworld-while-youre-up

While You're Up mod for RimWorld. Uses my library: https://github.com/CodeOptimist/rimworld-codeoptimist-library
https://steamcommunity.com/sharedfiles/filedetails/?id=2034960453
GNU Affero General Public License v3.0
4 stars 2 forks source link

Case where opportune hauling should not occur #4

Closed mvadovszki closed 3 years ago

mvadovszki commented 4 years ago

I had a pawn far in the field (next to stone chunks), he wanted to do stonecutting but instead of taking the chunk directly next to him, he chose to opportune haul an random item to a stockpile near the workstation, then run all the way back to where he started to begin the stone-cutting task. Any chance that this can be improved?

CodeOptimist commented 4 years ago

Thanks so much for the report!

Much of RimWorld (and other games) "satisfice" rather than "optimize". That is, take a solution that is easy to compute and "good enough" because computing and determining the actual best choice from all available is a much slower operation.

So unfortunately there will always be scenarios where a pawn seems to take an action that is less than ideal. 🤷‍♂️

Stone chunks are quite heavy, you may have also encountered a scenario where the pawn couldn't hold the heavier item.

There are a few other things that could have occurred as well.

Keep a watchful eye out and if you can consistently reproduce an odd scenario from a save game I will happily look into it. ☺️

mvadovszki commented 4 years ago

haulBug.zip

I thought it might be a fixable case, the issue is that the pawn is looking for hauling towards the workstation rather than towards the ingredients the workstation needs.

CodeOptimist commented 4 years ago

Fixed.

Dude you gave me an amazing save game perfectly illustrating the request and all I did was gaslight you, I'm so sorry! I finally got to looking at it today, after being very productive, and turns out I did indeed just recently solve this with a new "Optimize hauling ingredients" feature. I just tested your save file both before and after and yup, works!

Incredibly helpful of you, sorry for being so dismissive, from your original report I was falsely picturing a big colony and a hundred mods, a scenario I wasn't yet equipped to debug. Please do continue submitting save games with issues like this in the future, it's actually incredibly helpful and I recently put a notice on the Steam page asking for them too.