边缘世界 RimWorld

边缘世界 RimWorld

Only If 'Tolerance' Below in Drug Policy
61 条留言
Saruto 9 月 14 日 下午 4:34 
Ah nevermind, moving this mod to near the top of my mod list seems to have fixed whatever the issue was.
Saruto 9 月 14 日 下午 12:47 
I think there might be a bug where certain colonists lose all their passions. It happened on a Harana and a Devilspider, both of which are xenotypes with genetic drug dependencies, which I imagine is relevant (it didn't happen to any of my other colonists).

I have a large mod list (including Vanilla Skills Expanded, Vanilla Brewing Expanded, and the two race mods I mentioned above) that might be playing a part, so this is more of a heads-up rather than a real bug report. If I get more info I'll post about it here.

Thanks for the update btw, this is one of my must-have mods!
Futstub 9 月 9 日 上午 11:02 
I love you so much right now!
VitaKaninen 9 月 9 日 上午 6:11 
Thanks!
cherry-wave 9 月 9 日 上午 4:12 
YAY WE ARE BACK =D
SeoHyeon  [作者] 9 月 9 日 上午 2:35 
1.6 updated! sorry for i'm late because yesterday was busy :)
now requires an "Updated" Prepatcher
Futstub 9 月 8 日 上午 11:37 
Hell yeah.
chitoseender 9 月 8 日 上午 5:24 
Love you!
VitaKaninen 9 月 7 日 下午 6:27 
Thanks!
SeoHyeon  [作者] 9 月 7 日 下午 6:25 
Ah I found the fork, I'll work on it today. :steamhappy:
chitoseender 9 月 7 日 上午 6:48 
yeah! Prepatcher updated!
VitaKaninen 9 月 4 日 上午 6:06 
Would you consider updating your mod, now that there is a working prepatcher fork available?
Futstub 8 月 19 日 下午 11:53 
All my pawns become alcoholics... D:
ic0612 8 月 2 日 下午 2:24 
@SeoHyeon Prepatcher fork 버전을 확인했습니다. 이걸로 가능한가요?
https://github.com/jikulopo/Prepatcher
SeoHyeon  [作者] 7 月 11 日 下午 7:50 
Prepatcher (dependency mod) is not updated yet
ic0612 7 月 11 日 上午 6:34 
1.6?
Evono 5 月 16 日 上午 3:54 
Log with error Right in the menu
{链接已删除}

Log Without error in menu and this mod removed
{链接已删除}
Evono 5 月 16 日 上午 3:47 
This mod throws this error on boot "1x) Error while instantiating a mod of type DrugPolicyEnhanced.Mod: System.Reflection.TargetInvocationException

DrugPolicyEnhanced.Mod"
Evono 5 月 14 日 上午 4:29 
thanks for making it
ggfirst 2024 年 12 月 20 日 上午 12:47 
글씨가 깨지고 내성수치 설정을 못합니다.
Save outfit... 쓰고있었어서 뺴고 다시한번 해봤는데도 그래요 ㅠㅜ
Micah 2024 年 7 月 26 日 下午 11:31 
@VitaKaninen Yes, you are correct. The mod doesn't currently do anything about overdosing. My original request was to add overdose protection support. If you look back 1 page on the comments you can see the previous discussion I had with @SeoHyeon on the subject.
VitaKaninen 2024 年 7 月 26 日 上午 4:36 
@Micah I would guess that the mod does exactly what it says. It allows a pawn to take the drug when the tolerance is under the specified value. If the Mod author had added special checks for the hidden overdose effect, I think he would have told you when you asked him. He said he didn't know, so I think you can assume there are no checks in place to ensure that the pawn is not under a hidden overdose effect.
Micah 2024 年 7 月 26 日 上午 4:04 
I'm getting back into the game and noticed that you responded to my previous comment:
> @Micah I'm not sure about that.

Which part aren't you sure about? The overdosing behavior is well documented on the wiki, the only part I'm uncertain about is the exact code underlying the mechanic and how a mod would be able to interact with the hidden overdose value.
cherry-wave 2024 年 7 月 24 日 上午 11:34 
This mod prevents alcoholics if you have many different alcohol-type drugs, thanks <3
VoiD 2024 年 4 月 28 日 上午 11:25 
Working for me, too. Thank you for the update! I can see the slider now in QHD.
VitaKaninen 2024 年 4 月 28 日 上午 8:05 
Works again, thanks!
SeoHyeon  [作者] 2024 年 4 月 28 日 上午 7:40 
== update ==
- fixed error when loaded [1.5][KV] Save Storage, Outfit, Crafting, Drug, & Operation Settings

@VoiD
If you don't see the slide bar, it's perhaps related to your screen resolution. In FHD, the slider is visible.
SeoHyeon  [作者] 2024 年 4 月 24 日 下午 8:06 
@VoiD
I have exams until this week. I will check after this
VoiD 2024 年 4 月 24 日 下午 7:03 
Thanks for the quick response, SeoHyeon.

No, i don't use Yayocombat3. Here is my modlist and a link to the log. Error starts at line 478.

https://imgur.com/a/czxN1nC

gist.github.com/HugsLibRecordKeeper/e2c131620591652e20fb73aa30306851
SeoHyeon  [作者] 2024 年 4 月 24 日 下午 4:42 
@VitaKanine
I think a compatibility patch for [Kv]save storages blahblah is outdated. It will not be harmful but I'll fix in my spare time.

@VoiD
Ummm strange... does you using Yayocombat3? Otherwise, can I request your modlist?🤔

@Micah
I'm not sure about that.
VitaKaninen 2024 年 4 月 24 日 下午 12:31 
I am not getting the slider either. I was sure it was there a week or so ago when I set it up...
VoiD 2024 年 4 月 24 日 下午 12:17 
Thanks for your work on the mod! I'm getting the same errer as VitaKaninen, however. I loaded my save anyway to check the drug policies. The column for "Only if tolerance below" is there but there are no sliders.

imgur.com/a/Wm5nv9y
VitaKaninen 2024 年 4 月 22 日 下午 10:51 
I am getting an error each time I load the game:
Error while instantiating a mod of type DrugPolicyEnhanced.Mod: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> HarmonyLib.HarmonyException: Patching exception in method static System.Reflection.MethodBase DrugPolicyEnhanced.Patch_IOUtill_SavePolicySettings::TargetMethod() ---> System.Exception: Method static System.Reflection.MethodBase DrugPolicyEnhanced.Patch_IOUtill_SavePolicySettings::TargetMethod() returned an unexpected result: null
[Ref 80C99045]
at HarmonyLib.PatchClassProcessor.RunMethod[S,T] (T defaultIfNotExisting, T defaultIfFailing, System.Func`2[T,TResult] failOnResult, System.Object[] parameters) [0x00130] in <6ddb2f07a97745adaa7bad4e17020462>:0
Micah 2024 年 3 月 30 日 下午 10:59 
I believe all of the hard drugs (flake, yayo, go-juice, wake-up) and penoxycyline add to a hidden overdose number, and when that number gets over a certain value you start suffering from overdose problems. The overdose number falls naturally with time, and in general I believe it is "safe" to do one hard drug every ~9 hours without deleterious effects.

One option would be to just look at that hidden overdose value and if it is greater than 0 don't allow another hard drug. Another option would be to just disallow any hard drugs within 9 hours of the last hard drug usage.

Thanks for looking into it either way! I have some pawns with multiple genetic dependencies which prevents random overdosing and addiction gains, but it doesn't stop the cumulative overdosing effect. At the moment I have to micromanage their drug use or else they start consuming all at the same time which is really annoying.
SeoHyeon  [作者] 2024 年 3 月 30 日 下午 6:21 
@Micah
Thanks for your suggestion, since I don't use Go-Juice or Flake due to the dangerous of addiction I didn't know about it. so I'll figure out how to implement it.
Micah 2024 年 3 月 30 日 上午 10:28 
Actually, maybe just a checkbox rather than a slider. I can't imagine you would ever want to have a *little* bit of a risk of overdose when you could just wait an hour and avoid the risk entirely.
Micah 2024 年 3 月 30 日 上午 10:22 
Any chance you could add a column for preventing overdosing? I have some pawns on a Go-Juice + Flake schedule but sometimes they'll take both in succession and they both contribute to overdose, so they will overdose which negates the benefits of using them (50% conscious).

Something like "only if can't overdose" or something. I know this wouldn't impact random OD chance, but it would be nice to at least not have them OD in a preventable way.
Futstub 2024 年 3 月 29 日 下午 9:58 
This is really neat, thanks!
SeoHyeon  [作者] 2024 年 3 月 29 日 下午 7:38 
== Update ==
- updated for 1.5
The Blind One 2024 年 3 月 9 日 下午 8:12 
Thanks for the quick reply :)
SeoHyeon  [作者] 2024 年 3 月 9 日 下午 3:23 
@The Blind One
Yes Prepatcher is required.
Prepatcher includes Harmony but has more features. This mod uses Prepatcher's features.
The Blind One 2024 年 3 月 9 日 下午 1:04 
is the prepatcher mod required? I already have harmony.
SeoHyeon  [作者] 2024 年 3 月 7 日 上午 1:53 
@_Real_Deal_
In short, in case of ambrosia, below 15% is safe, since the tolerance is more safer when it is lower value.
Additionally in case of beer, 25%.

And the tolerance indicator in the health tab is no matter with this mod, But 'Tolerance gain per dose', 'New addiction min tolerances' matters.
You can check it in the information tab of each drugs.

You may feel that manually setting the tolerance for each drug is very tired work. Then you can you 'Safe drug policy generator' with this mod!
_Real_Deal_ 2024 年 3 月 6 日 下午 6:48 
Hey Bro! Thanks for Mod!
I can't figure out which % is safer, minimal number or max number is better? For example, if a pawn has a tolerance indicator of 98% in the health column, and I want let him take drugs till this number fall down to 90% then in your mod I should set the indicator to 90% or vice versa 10%, I can’t understand which value is correct, more or less? And please, provide your set up values which you use for ambrosia as an example.
mountainofcheezo 2023 年 12 月 8 日 上午 6:22 
You're awesome, thanks.
SeoHyeon  [作者] 2023 年 12 月 8 日 上午 3:08 
@mountainofcheezo
The reason was Yayo Combat 3. since they replaces a vanilla method to their own method, when you turn on the option 'Use ammo' from yayo combat, the vanilla method wasn't executed.
So I made a patch for Yayo Combat 3, It will be ok for now.
SeoHyeon  [作者] 2023 年 12 月 6 日 下午 10:10 
@mountainofcheezo
mmm.... Can I request your mod list with XML file by RimPy? In rimpy, 'Export List' and share to me please!
I couldn't figure out what overlaps with my mod's one.
mountainofcheezo 2023 年 12 月 6 日 下午 8:45 
Sure - here it is. https://rentry.co/57uyy
SeoHyeon  [作者] 2023 年 12 月 6 日 下午 8:22 
@mountainofcheezo
I'm apologize that I haven't see your comment.
It looks conflict with other mods that you using, Because in vanilla and my mod list It works well.
So, I suspect it's because one other mod edits the drug policy dialog, which overlaps with my mod's feature.
Can I get your mod list? Thanks.