RimWorld

RimWorld

Smart Medicine - 1.5 Pawn Freeze Fix + Pharmacist Fix + ReTend + Hemogen
41 Comments
SpaceGhost 16 Jan @ 7:41am 
Hey man! I asked over on the main mod as well, but would it be possible to get a search in the stock up popup? I know Awesome Inventory adds it's own loadout system but I really don't want to use that whole thing just so I can have a search box for the stock up screen.
Shadow Wolf 14 Jan @ 6:06pm 
@fyodord if the pawn is bleeding or the immunity of the infection meter is NOT 10% higher than infection the treatment will be treated as critical and will use the best medicine.
fyodord 10 Jan @ 9:37pm 
Do I actually need to install your Pharmacist with this? I tried not this because the original mod says it's redundant, but as tribal I see pawns use medicines that are too advanced for injuries
Kubik 2 Dec, 2024 @ 2:22am 
Seems to be a bug with Anomaly DLC. Entities cannot be tended with any medicine except for the most basic one with no medicine. If any type of the medicine is selected, then an entity cannot be right-clicked at all. Maybe there is a conflict with some other mod, but after removing this one things are ok
burritoexspress2006 17 Nov, 2024 @ 6:20am 
This is likely what i've been looking for thank you!!
Rex705 30 Oct, 2024 @ 7:02am 
Can I get an option to turn off the med spot graphic?
VeryPog 22 Sep, 2024 @ 2:40pm 
For me, the mod added not only compatibility with retend but also bugs. Pawns do not replenish their stocks of drugs after using them. When returning to the original mod, at first nothing happens either, but the pawns replenish their stocks after about a few hours, then they begin to react faster to changes in the configuration of drug stocks. (I checked on the same save, with this mod, pawns go for several days without drugs with red inscriptions in the inventory, with the original, everything works after a few hours).
Une ptite Tomate 9 Jul, 2024 @ 1:27am 
Thank you very much for this mod, but I encoutered a bug.
I play with CE and my pawn have medecines affected in their loadouts.
When they drop a medecin for being tended, they lack the medecine for their loadout and they go to get one more, cancelling the tending .
I don't know if anything can be done because it looks like a serious conflict
Creneis 7 Jul, 2024 @ 2:16pm 
Hi, I wonder, can it be run with awesome inventory ?
LunarstarPony 5 Jul, 2024 @ 2:28am 
Hmmm Is Custom Care for each injury available on this version?
Cyber 28 Jun, 2024 @ 12:28pm 
Hey, @DomB, I just wanted to say I've seen your work everywhere lately. A lot of mods that I use, you've been updating while the original authors are unavailable. Just wanted you to know it's not gone unnoticed, and I and many others appreciate you. Thanks you!

I'm a mod author as well. Although, I'm not as well versed in C# and Harmony patches. I come from the land of C++, so I can read the source and get by, but syntax nuances can be tricky. That to say, if you'd like some help with anything, I'd lend my time. Just shoot me a message here on Steam. Thanks again!
DomB  [author] 25 Jun, 2024 @ 2:51pm 
@Moskar

If you activate Dev Mode, a new button will appear on the StockUp window - "Stock Anything".
You can click this and find meals here, assign as required to pawn, then disable dev mode.

This should then let you stock meals.

I did look at adding meals as default, but due to multiple types of them it's going to add a lot - I am considering making this feature as a mod option, stay tuned.
DomB  [author] 25 Jun, 2024 @ 7:40am 
@Moskar

Yeah that should be doable - I'll take a look shortly
Moskar 21 Jun, 2024 @ 1:37pm 
Is there any way to add an option for meals? Would be much appreciated.
W 7 Jun, 2024 @ 2:54am 
1.4?
DomB  [author] 2 Jun, 2024 @ 7:41pm 
Translations

If you would like any translation changes, please see the following topic:

https://steamproxy.net/workshop/filedetails/discussion/3256317028/4336483106370065279/
DomB  [author] 2 Jun, 2024 @ 7:40pm 
@Buye

Sorry, this is probably also an issue in the original mod - not all languages are fully supported. In this fork I only really support code changes / bugfix.

If you would like to improve the Chinese translation, then please create a GitHub pull request with the changes you want, and I will update the mod.

https://steamproxy.net/workshop/filedetails/discussion/3256317028/4336483106370065279/

I hope this is ok, thanks
BUyue 1 Jun, 2024 @ 10:36pm 
I just use the default settings, and I think about one tenth of the Chinese characters are still not displayed.
BUyue 31 May, 2024 @ 4:12am 
Maybe need to adjust slightly. Thanks for your work.:steamthumbsup:
BUyue 31 May, 2024 @ 3:11am 
Still in such issue after I redownload the mod.
DomB  [author] 30 May, 2024 @ 11:31pm 
@BUyue

Fixed I think. Translated using Google so I hope it is OK.
BUyue 30 May, 2024 @ 10:15pm 
Hello. The text in health tab is too big after translating into Chinese. Hope some adjustments.
DomB  [author] 30 May, 2024 @ 8:40pm 
Update

Fixed:
- ReTend compatibility issue

PR to original Smart Medicine:
https://github.com/alextd/RimWorld-SmartMedicine/pull/31
DomB  [author] 30 May, 2024 @ 8:28pm 
@The Bard of Hearts

Quit game, unsub, resub. You should see steam downloading. Otherwise, to be really sure, manually delete:

C:\Program Files (x86)\Steam\steamapps\workshop\content\294100\3256317028

(or your equivalent path)

Then resub, you should get latest version
The Bard of Hearts 30 May, 2024 @ 8:03pm 
I don't see the hemogen packs showing up in the stock-up menu
DomB  [author] 30 May, 2024 @ 6:45pm 
@SP4RTAN

Thanks for reporting - looks like an incompatibility here with ReTend. I think I know where it's coming from, which I've shared over on ReTend comments. Will try recreate & fix as think it's only small

I will add it to Known Issues / Incompatibilities for now
SP4RTAN 30 May, 2024 @ 6:13pm 
So when using this or the original with the ReTend mod, if I tell a pawn that already has medicine in their inventory to retend a pawn I get a "Exception filling window for Verse.FloatMenu: System.ArgumentException: SplitOff with count <= 0 Parameter name: count" error.

Without smart medicine installed I don't get this error

https://gist.github.com/HugsLibRecordKeeper/b3d6916bcec944998948f04aa3fe69ce

Might be something that needs to be fixed by the ReTend author but Idk
DomB  [author] 30 May, 2024 @ 1:29pm 
Update:

Added:
- Hemogen pack to Stock Up

Enjoy!
DomB  [author] 30 May, 2024 @ 9:55am 
Update:

Known Issues:
- Stock Up feature - FIXED (I think!)

I've tested Stock Up after recent changes, it seems to be functioning OK now

Let me know if you have any issues
DomB  [author] 30 May, 2024 @ 8:06am 
Update:

Known Issues:
- Stock Up feature
- There is currently a bug where, if the "Allow Medicine" setting for a given pawn is lower than the custom Tend option (Smart Medicine) that you've selected on a given injury, then pawn will stand still whilst a job loop occurs and causes error - FIXED

I have added a workaround fix to this bug - now, if the selected custom Tend option (Smart Medicine) is higher than the pawns "Allow Medicine" setting, then this setting will change as required before trying to start the job.

This means if you wanted a specific pawn "Allow Medicine" setting to remain lower than prescribed with Smart Medicine after tending is complete, then you would have to change it back manually after treatment.

But no more errors & pawn freezing = WIN

I recommend using Pharmacist alongside this mod, then you can always rely on a good combination of pharmacist settings for sensible default treatment!
DomB  [author] 30 May, 2024 @ 7:55am 
@Jaggid Edje

Great to know you've found my work useful & it's solved your problem!

Thank you very much for your comment and appreciation :steamhappy:
Jaggid Edje 29 May, 2024 @ 10:07pm 
I can't thank you enough for this mod and the Pharmacist fork as well.

I've been trying for 2 to 3 weeks to find a mod or combination of mods for medicine/treatment and carrying of them which also work together and with all of my other mods and this is the first combo that actually does the job and doesn't give me problems.

You deserve many awards.
DomB  [author] 28 May, 2024 @ 11:16pm 
@The Bard of Hearts

Yes this mod does add a section above the medical settings on a pawns health tab. I have not changed anything there from the original, where the font is slightly large but not normally two lines.


I think your issue was due to the languages files as mentioned below, as when a reference is not found then the Key is displayed, (so much more text). Fixed now
DomB  [author] 28 May, 2024 @ 11:07pm 
Functionality/Compatibility is about 50% there, which is better than 0%. I'm now working on fixing some known issues, let me know if there's any more.

Known Issues:
- Stock Up feature
- There is currently a bug where, if the "Allow Medicine" setting for a given pawn is lower than the custom Tend option (Smart Medicine) that you've selected on a given injury, then pawn will stand still whilst a job loop occurs and causes error
DomB  [author] 28 May, 2024 @ 11:02pm 
I've fixed the languages files now, they were not being referenced for some reason. It should resolve your UI issue with text
SP4RTAN 28 May, 2024 @ 10:08pm 
Oh yeah. something is wrong with the stock up feature
The Bard of Hearts 28 May, 2024 @ 8:52pm 
Is this mod trying to add something above the medical settings in a pawn's health tab? For me the font its trying to show it in is enormous and also trying to cover 2 lines. Can't tell what its saying but it offers a Check/Ex (on/off) option. I only have a couple mods that deal with medicine so I'm trying to figure out where the problem is coming from.
DomB  [author] 28 May, 2024 @ 6:12pm 
After update, I got 1 error on loading save:

Failed to find Verse.ThingDef named TempSleepSpot.

Save > Reload and error has gone
DomB  [author] 28 May, 2024 @ 5:15pm 
@SP4RTAN - Thanks for your comment, this is fixed now please try again, might need to unsub + resub
SP4RTAN 28 May, 2024 @ 2:48pm 
When using your version I get a few new errors:
Could not resolve cross-reference to RimWorld.PawnColumnDef named UnlimitedSurgery (wanter=columns)

Failed to find Verse.ThingDef named TempSleepSpot. There are 6538 defs of this type loaded.

Failed to find Verse.JobDef named StockUp. There are 477 defs of this type loaded.

Failed to find Verse.JobDef named StockDown. There are 477 defs of this type loaded.

Here's the full log as well:
https://gist.github.com/HugsLibRecordKeeper/5e3a209ed55d99f561892cbd664997b8
DomB  [author] 28 May, 2024 @ 8:48am 
Compatible with Pharmacist (my 1.5 fork here):
https://steamproxy.net/sharedfiles/filedetails/?id=3256204706