RimWorld

RimWorld

Choose Your Medicine
 This topic has been pinned, so it's probably important
Kopp  [developer] Feb 22, 2023 @ 6:13am
Bugs and issues
Please make sure that the bug/issue is caused by the mod before reporting.
Or tell me the mod combination that is causing the issue.
Post a hugslib log, describe the problem and if possible, tell me how to reproduce it.
Last edited by Kopp; Jul 28 @ 8:51pm
< >
Showing 1-15 of 75 comments
Schadenfreude Feb 24, 2023 @ 9:58am 
As someone else pointed out, there seem to be some issue that makes this mod, or it's interaction with others, brick the debug action menu.

Clicking the button just doesn't do anything anymore.

https://gist.github.com/a3f92b9c1bfd9e069f4d9bb190245bbd
Last edited by Schadenfreude; Feb 24, 2023 @ 9:58am
Kopp  [developer] Feb 24, 2023 @ 10:28am 
@Schadenfreude

Thanks for the report!

As far as I can see you are not using the mod "Mod Medicine Patch", right?
The error seems to happen because my/some code tries to access a part of that mod, which should not happen if it is not loaded and therefore obviously wont work.
I can not reproduce the error with only my mod loaded, so I may need to find out which mod combination is causing the issue to be able to fix it.
I will investigate tomorrow.
Kopp  [developer] Feb 24, 2023 @ 10:32am 
@Schadenfreude
Is it happening all the time/reproducible?
When you start the game, load a save, does the dev mode button work and stops working later on?
Schadenfreude Feb 24, 2023 @ 5:15pm 
@Kopp
Correct, I'm not using "Mod Medicine Patch".

It stops working as soon as the game is loaded, starting in the main menu, before a save even is loaded.
Last edited by Schadenfreude; Feb 24, 2023 @ 5:16pm
Wolfette Feb 24, 2023 @ 6:39pm 
https://gist.github.com/7b0c4f29f095216fa433a081046ae13d

I guess I forgot to hit enter last time, lol? Either way when enabled the mod gives me an error when trying to access any dev mode menu.
Kopp  [developer] Feb 25, 2023 @ 12:24am 
@Wolfette
Thanks for taking the time to do a second report!
Should be the same problem as the one above, I am on it.
Kopp  [developer] Feb 25, 2023 @ 12:01pm 
@ΔTØM
Just to make sure we dont have a misunderstanding:
If you say "emergencial no medicine tend" you mean tending a pawn with rightclick: "Tend xy (without medicine)"?
If yes, the red errors should be fixed by now. Tell me if I am wrong.
If not, please explain the steps to reproduce the errors as simple and straight forward as you can and give me a hugslib log with the error.
Thanks!
ΔTØM Feb 25, 2023 @ 2:38pm 
@Kopp emergencial no medicine tend = drafted pawn "tend XXX (with no medicine)" right click option. If u dont determine how to treat at least one injury, right clicking downed hostile pawn automatically open an error window, and no tab with right click options shows up.

Second, after deciding wich treatment for all injuries, my doctor only treat one. If I want all treated, in a hostile, must click a lot of times to work.

third, my dog got an infection, I determined no medicine, just doctor, and even this way my doctor took an herbal medicine.
ΔTØM Feb 25, 2023 @ 2:40pm 
And, even before update, lots of errors in start debug log, as follows

Could not execute post-long-event action. Exception: System.AggregateException: One or more errors occurred. ---> System.TypeLoadException: Could not load type of field 'ChooseYourMedicine.MedicalCareDropdownMenu_ModMedicinePatch+<>c__DisplayClass2_1:med' (0) due to: Could not resolve type with token 0100002a (from typeref, class/assembly ModMedicinePatch.ModMedicine, Mod Medicine Patch, Version=1.84.0.0, Culture=neutral, PublicKeyToken=null) assembly:Mod Medicine Patch, Version=1.84.0.0, Culture=neutral, PublicKeyToken=null

Exception filling window for VisualExceptions.ExceptionInspector: System.TypeInitializationException: The type initializer for 'Toddlers.Toddlers_Init' threw an exception. ---> System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.

Error in Choose Your Medicine, assembly name: ChooseYourMedicine, method: <DynMedGenerateMenuOperation>d__14:System.Collections.Generic.IEnumerable<Verse.Widgets.DropdownMenuElement<RimWorld.MedicalCareCategory>>.GetEnumerator, exception: System.BadImageFormatException: Could not resolve field token 0x0400007f, due to: Could not load type of field 'ChooseYourMedicine.MedicalCareDropdownMenu_ModMedicinePatch+<DynMedGenerateMenuOperation>d__14:<localMedList>5__2' (6) due to: Could not resolve type with token 0100002a (from typeref, class/assembly ModMedicinePatch.ModMedicine, Mod Medicine Patch, Version=1.84.0.0, Culture=neutral, PublicKeyToken=null) assembly:Mod Medicine Patch, Version=1.84.0.0, Culture=neutral, PublicKeyToken=null type:ModMedicinePatch.ModMedicine member:(null) signature:<none> assembly:data-000001E7A9451B00 type:<DynMedGenerateMenuOperation>d__14 member:(null) signature:<none>

Error in Choose Your Medicine, assembly name: ChooseYourMedicine, method: <DynMedGenerateMenuOperation>d__14:System.Collections.IEnumerator.get_Current, exception: System.BadImageFormatException: Could not resolve field token 0x04000080, due to: Could not load type of field 'ChooseYourMedicine.MedicalCareDropdownMenu_ModMedicinePatch+<DynMedGenerateMenuOperation>d__14:<localMedList>5__2' (6) due to: Could not resolve type with token 0100002a (from typeref, class/assembly ModMedicinePatch.ModMedicine, Mod Medicine Patch, Version=1.84.0.0, Culture=neutral, PublicKeyToken=null) assembly:Mod Medicine Patch, Version=1.84.0.0, Culture=neutral, PublicKeyToken=null type:ModMedicinePatch.ModMedicine member:(null) signature:<none> assembly:data-000001E7A9451B00 type:<DynMedGenerateMenuOperation>d__14 member:(null) signature:<none>

Error in Choose Your Medicine, assembly name: ChooseYourMedicine, method: <DynMedGenerateMenuOperation>d__14:System.Collections.Generic.IEnumerator<Verse.Widgets.DropdownMenuElement<RimWorld.MedicalCareCategory>>.get_Current, exception: System.BadImageFormatException: Could not resolve field token 0x04000080, due to: Could not load type of field 'ChooseYourMedicine.MedicalCareDropdownMenu_ModMedicinePatch+<DynMedGenerateMenuOperation>d__14:<localMedList>5__2' (6) due to: Could not resolve type with token 0100002a (from typeref, class/assembly ModMedicinePatch.ModMedicine, Mod Medicine Patch, Version=1.84.0.0, Culture=neutral, PublicKeyToken=null) assembly:Mod Medicine Patch, Version=1.84.0.0, Culture=neutral, PublicKeyToken=null type:ModMedicinePatch.ModMedicine member:(null) signature:<none> assembly:data-000001E7A9451B00 type:<DynMedGenerateMenuOperation>d__14 member:(null) signature:<none>

Error in Choose Your Medicine, assembly name: ChooseYourMedicine, method: MedicalCareDropdownMenu_ModMedicinePatch:DynMedGenerateMenuStandard, exception: System.BadImageFormatException: Could not resolve field token 0x0400005c, due to: Could not load type of field 'ChooseYourMedicine.MedicalCareDropdownMenu_ModMedicinePatch+<DynMedGenerateMenuStandard>d__5:<localMedList>5__2' (6) due to: Could not resolve type with token 0100002a (from typeref, class/assembly ModMedicinePatch.ModMedicine, Mod Medicine Patch, Version=1.84.0.0, Culture=neutral, PublicKeyToken=null) assembly:Mod Medicine Patch, Version=1.84.0.0, Culture=neutral, PublicKeyToken=null type:ModMedicinePatch.ModMedicine member:(null) signature:<none> assembly:data-000001E7A9451B00 type:<DynMedGenerateMenuStandard>d__5 member:(null) signature:<none>

Error in Choose Your Medicine, assembly name: ChooseYourMedicine, method: <DynMedGenerateMenuEasy>d__2:System.Collections.Generic.IEnumerator<Verse.Widgets.DropdownMenuElement<RimWorld.MedicalCareCategory>>.get_Current, exception: System.BadImageFormatException: Could not resolve field token 0x0400004c, due to: Could not load type of field 'ChooseYourMedicine.MedicalCareDropdownMenu_ModMedicinePatch+<DynMedGenerateMenuEasy>d__2:<localMedList>5__2' (6) due to: Could not resolve type with token 0100002a (from typeref, class/assembly ModMedicinePatch.ModMedicine, Mod Medicine Patch, Version=1.84.0.0, Culture=neutral, PublicKeyToken=null) assembly:Mod Medicine Patch, Version=1.84.0.0, Culture=neutral, PublicKeyToken=null type:ModMedicinePatch.ModMedicine member:(null) signature:<none> assembly:data-000001E7A9451B00 type:<DynMedGenerateMenuEasy>d__2 member:(null) signature:<none>

LOG https://gist.github.com/80dc425564b89fbe281f909112ef994b
Kopp  [developer] Feb 25, 2023 @ 9:51pm 
@ΔTØM
Thanks a lot for your time and effort, I appreciate it!

Your log says in line 61:
Choose Your Medicine(Kopp.ChooseYourMedicine): ChooseYourMedicine(1.0.0)
But the version number should be 1.0.1.
It seems like steam did not update the mod.

You should either try to unsubscribe -> wait a little bit -> resubsribe,
or right click on RimWorld in you steam library -> properties -> local files -> verify integrity of game cache

Second: Drafted tending does only tend one time right now, will fix asap
Third: Works on my end. Did you change to "no medicine" in the mods gui (tab: colony animals) or did you assign "no medicine" manually in the animals health tab?
Last edited by Kopp; Feb 25, 2023 @ 10:09pm
ΔTØM Feb 26, 2023 @ 4:32pm 
@KoppThanks for the update. Drafted now working properly. Hope these red errors disappeared now. No, for my dog, just checked in his health tab, no the one in the mods gui.
Kopp  [developer] Feb 26, 2023 @ 9:25pm 
@ΔTØM
I am afraid I may not be able to help you with your dog, as it is working for me.
You can try to set every stage (easy, standard, ...) for infections in the "colony animals" tab to "no medicine" and see if the doctor still wants to use herbal.
Then you can load only this mod and try again.
But from your log it seems like the relevant methods are not patched by other mods, so its unlikely that another mod is interfering.
Schadenfreude Mar 13, 2023 @ 3:31am 
A pawn just received 3 gunshot wounds, so far doctors have been applying medicine according to the rules I've set, but now instead of using Industrial Medicine for Gunshot wounds, for some reason they're opting to settle for Herbal Medicine.

The pawn has best medicine allowed, Gunshot Wounds for colonists is set to Inudstrial quality.

https://gist.github.com/27828825a9486ee157dbcb2a4366c552
Last edited by Schadenfreude; Mar 13, 2023 @ 3:32am
Kopp  [developer] Mar 13, 2023 @ 4:00am 
@Schadenfreude

Thanks for including the log!

As you are the third by now that says the mod is not using the correct medicine, I start to think there is something to that.

Without a way to reproduce the issue, I can only go through the code and hope to find the issue, which is tedious and no fun.
And if any kind of mod compatibility is the issue, I can not find the cause that way.
But according to your log there is no other mod that is patching the relevant methods.

Do you have a save where the issue is happening? Where you can draft/undraft the doctor to restart the tending job and it will take the wrong medicine again?
Would be nice if you would send it to me. Send me a friend request if you dont want to post it here.
Maybe I can load the save with just a few mods and then add some debug lines to the code to see what is going wrong...
Kopp  [developer] Mar 13, 2023 @ 4:03am 
@Schadenfreude
If you are willing to send me the save, I would need the mods config file, too.
< >
Showing 1-15 of 75 comments
Per page: 1530 50