RimWorld

RimWorld

Smart Medicine
Issue Taking Medicine From Patient Inventory
Found a rare red error that shows in dev mode - in normal the pawn will stop moving:


May not actually be relevant:

If a pawn has a carry limit of 3, and has on them 3 meds, this will be seen as conditions met to fill the stock. This is all well and good - however, if the pawn has to treat someone with restricted medication, they will spaz out if it is lower quality than that carried. The pawn will be stuck in a stand position complaining about attempting a ton of jobs at once as they are unable to pick up meds required due to carry limit.

Temporary fixes are:

- up the carry to 4; manually drop meds and re-aquire them, or set the the patient med level up. However, this will not prevent future issues as the pawn doesn't have enough brains to figure out if they put down one carried item, they could pick it up the medicine required.

A possible fix: the mod's "Return items if not available" option may be a tart for a making a "return item if no space" mechanic

Further to below: It appears that this may be some other problem. I have "use medicine from patients inventory" and they have 3 meds of the required type. I thought the doctor wasn't using them due to carry restriction, but when I force-dropped meds from the patient's inventory the doctor picked them up and started working

This implies the issue lies elsewhere, and the "use from patients inventory" mechanic is not working correctly. Welp, below is a link to the error report:


On further investigation, it looks like the above was not the actual issue, and likely had no impact on it at all. Rather than scrub away the theory however, I have left it as is, but struck-through in case there is something useful there for a fix.

The pawn in question was not standing still attempting to tend the patient. They were attempting to take meds from the patient's inventory. Switching of this function allowed the pawn to instead take medicine from elsewhere and complete the tend.

The problem is that when I attempted to replicate the issue with just Smart Medicine running, it did not recur. I am not sure the reason behind this, and so do not wish to claim it's down to incompatibility with another mod It could just as possibly be that all the conditions to replicate it had not been met, whether they be mod related, or not.

Regardless, switching off that function is more of a band-aide than a fix, so this matter probably need to be further looked into.