RimWorld

RimWorld

Choose Your Medicine
 Denne tråd er blevet fastgjort, så den er sikkert vigtig
Kopp  [udvikler] 22. feb. 2023 kl. 6:13
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.
Sidst redigeret af Kopp; 28. juli kl. 20:51
< >
Viser 1-15 af 75 kommentarer
Schadenfreude 24. feb. 2023 kl. 9:58 
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
Sidst redigeret af Schadenfreude; 24. feb. 2023 kl. 9:58
Kopp  [udvikler] 24. feb. 2023 kl. 10:28 
@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  [udvikler] 24. feb. 2023 kl. 10:32 
@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 24. feb. 2023 kl. 17:15 
@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.
Sidst redigeret af Schadenfreude; 24. feb. 2023 kl. 17:16
Wolfette 24. feb. 2023 kl. 18:39 
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  [udvikler] 25. feb. 2023 kl. 0:24 
@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  [udvikler] 25. feb. 2023 kl. 12:01 
@Δ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 25. feb. 2023 kl. 14:38 
@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 25. feb. 2023 kl. 14:40 
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  [udvikler] 25. feb. 2023 kl. 21:51 
@Δ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?
Sidst redigeret af Kopp; 25. feb. 2023 kl. 22:09
ΔTØM 26. feb. 2023 kl. 16:32 
@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  [udvikler] 26. feb. 2023 kl. 21:25 
@Δ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 13. mar. 2023 kl. 3:31 
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
Sidst redigeret af Schadenfreude; 13. mar. 2023 kl. 3:32
Kopp  [udvikler] 13. mar. 2023 kl. 4:00 
@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  [udvikler] 13. mar. 2023 kl. 4:03 
@Schadenfreude
If you are willing to send me the save, I would need the mods config file, too.
< >
Viser 1-15 af 75 kommentarer
Per side: 1530 50