边缘世界 RimWorld

边缘世界 RimWorld

Drug Policy Fix (Continued)
35 条留言
Renzor 6 月 26 日 上午 9:36 
1 year later: thanks for the 1.6 update!
Narlindir 2024 年 8 月 8 日 下午 6:38 
Cautious question
I know your prowess is restoring mods
but is it possible to make VE Aperitif not allowed by default?

...
come to think of it
I should just Cherry Picker it out of existence

Thanks for keeping the modding scene alive Mlie!
Mlie  [作者] 2024 年 6 月 18 日 上午 11:33 
@TurtleShroom Tested this by saving a game, adding a mod with a new drug and is this mod. The new drug showed up in the existing policies with no issues. Not sure what the issue could be in your save.
TurtleShroom 2024 年 6 月 16 日 下午 1:35 
EDIT: I need to make a clarification. I can't load a saved game AT ALL and get that error when I try, so I cannot actually go into the game and change the Drug Policy.
TurtleShroom 2024 年 6 月 16 日 下午 1:34 
This Mod doesn't do anything for me. I added a new drug to my saved game midway and got the error this was supposed to fix:
Exception from asynchronous event: System.ArgumentException: Value does not fall within the expected range.
at RimWorld.DrugPolicy.get_Item (Verse.ThingDef drugDef) [0x00037] in <cd7169108ea74757aa50c5b33d275c15>:0
at RimWorld.DrugPolicyDatabase.NewDrugPolicyFromDef (RimWorld.DrugPolicyDef def)
.

All it does on my end is alphabetize things.

What am I doing wrong?
Renzor 2024 年 3 月 30 日 下午 4:13 
thanks for the update!
Mlie  [作者] 2023 年 9 月 3 日 下午 1:53 
@lol It does in my tests at least.
lol 2022 年 12 月 14 日 下午 1:09 
Nor does it sort drug policies, it seems: https://gist.github.com/d83a7f0761a5e55e120326b30677768d
FrozenSnowFox 2022 年 10 月 21 日 上午 10:31 
Just a heads up it looks like in 1.4 existing drug policies are updated so you don't have to remake them. The only feature this mod really adds now is sorting drugs by letter order.
Davi 2022 年 4 月 8 日 上午 12:16 
Okay for some reason when I have a policy selected I cannot delete anything but if i open the menu it has nothing selected and it then lets me delete policies. Super weird, sorry for spamming your mod page since it didnt really have anything to do with your mod :D
Davi 2022 年 4 月 8 日 上午 12:06 
No its to do with the fact that something is preventing me from deleting any policies, even the ones I created and not sure what would be causing this.
Davi 2022 年 4 月 8 日 上午 12:05 
This mod isnt causing this tho since I just disabled it and still cant delete them :thinking: hmm
Mlie  [作者] 2022 年 4 月 8 日 上午 12:02 
@Davi not sure that cherrypicker removals is supported
Davi 2022 年 4 月 7 日 下午 11:58 
I disabled a drug (since I had 2 wines) and anything to do with it with cherry picker and an error was coming up because the policies are saved into the save so I had to delete them but the button doesn't do anything.
Davi 2022 年 4 月 7 日 下午 11:56 
I am unable to delete drug policies and just realised im using this mod
bearhiderug 2021 年 11 月 22 日 上午 8:09 
Drugs sorted alphabeticly...
perfect
Mlie  [作者] 2021 年 9 月 24 日 下午 11:54 
@John Longdong Just drugs
Lambda 2021 年 9 月 24 日 下午 11:27 
does this work with food policies?
Mlie  [作者] 2020 年 11 月 12 日 上午 8:15 
@Alien_Halls #TôB Just delete it in the policy gui and create a new one. It will reread all drugs then.
Alien_Halls 2020 年 11 月 12 日 上午 6:50 
@Mile how can i do that?
Mlie  [作者] 2020 年 11 月 12 日 上午 4:56 
@Alien_Halls #TôB Then they did not use the vanilla way of defining the drug. Youll just have to delete and add the policy instead.
Alien_Halls 2020 年 11 月 12 日 上午 4:32 
@Mile i can't find that drug on the Drug Policy tab.
Mlie  [作者] 2020 年 11 月 11 日 下午 10:52 
@Alien_Halls #TôB The mod i generic, as long as the drugs are correctly written it should work fine
Alien_Halls 2020 年 11 月 11 日 下午 5:23 
Can you add the drug "Lazarus Mech Injector" from "Sparkling Worlds Addons - Mech Serum Crafting - Standalone Addon" to the Drug Policy tab?
Thacory 2020 年 11 月 9 日 上午 9:21 
They said that they will change it the next time they will bugfix the mod.
Thank you for the replies!
Mlie  [作者] 2020 年 11 月 9 日 上午 8:44 
@Thacory I think a change on their part would be better, considering Im not the original author of this mod so Im not sure on how to solve it. But if they cant I can try to find a solution for it.
Thacory 2020 年 11 月 9 日 上午 8:05 
While you see the different quality stages of Ambrandy as distinct entries in the drug policies ("Ambrandy (Poor)",..), the wine does not get this differentiation, there is only "wine" and you can't prevent your people from drinking the legendary stuff on the next party, which is why I think the Drug Policy Fix gets confused here and just adds the wine again each time you load a savegame.

I will also propose the Vanilla Expanded team to change the wine to the same mechanism that they use for the Ambrandy for better control with the drug policies.
Thacory 2020 年 11 月 9 日 上午 7:47 
The wine has the <compClass>CompQuality</compClass> tag.

Another kind of alcohol from their brewing mod can also increase in quality (Ambrandy), but here they use different defs for each quality stage (VBE_AmbrandyAwful, VBE_AmbrandyPoor... ) without the CompQuality tag. This one works fine with the Drug Policy Fix.
Mlie  [作者] 2020 年 11 月 9 日 上午 5:07 
@Thacory Strange, are they generating it each time in their mod or how have they solved the quality/value?
Thacory 2020 年 11 月 9 日 上午 3:55 
There is a bug with the wine from Vanilla Factions Expanded - Medieval. It will be added to the drug policy lists again each time you load a savegame so you will end up with dozens of entries for the same thing.
This wine can have different levels of quality and value which probably is the culprit.
ZX Zero 2020 年 8 月 23 日 上午 10:04 
Thank you for the update, its a very useful mod!
Dannz_Masta 2020 年 8 月 13 日 下午 6:50 
thank you for the update :)
Mlie  [作者] 2020 年 8 月 13 日 上午 9:18 
@Saradion Its on the todo-list
Ælianthe 2020 年 8 月 13 日 上午 8:45 
YES! Do you intend to update Drug Response as well or is it not needed?
Eng-Chasers 2020 年 8 月 12 日 下午 10:04 
Thank you!