RimWorld

RimWorld

Drugs are not Food
74 kommentarer
glutamate 2. dec. 2024 kl. 7:08 
seems conflict with Vanilla cooking expanded
czpetr  [ophavsmand] 21. mar. 2024 kl. 13:36 
@blockermocker This mod modifies only ambrosia and beer, so sadly, the answer is no.
ʞnɒlꟼ 25. feb. 2024 kl. 7:36 
does with work with vanilla-expanded insectoids? i dont want my dogs going high on royal jelly
ITERATION-BIOMECH 22. okt. 2023 kl. 7:59 
Chick 33 has developed a health condition:

Chemical damage

This was caused by:

Alcohol (blackout, 141h)
brucethemoose 24. mar. 2022 kl. 10:39 
FYI this patch removes nutrition from some drugs that should have nutrition, like Vanilla Expanded desserts or royal insect jelly.


This also manifests as startup errors like "Config error in VBE_FineCocktail: Nutrition == 0 but preferability is Undefined instead of NeverForNutrition"
Mlie 18. okt. 2021 kl. 12:08 
Made an update of this, the should work on all drugs:
https://steamproxy.com/sharedfiles/filedetails/?id=2631474117
Hope it helps anyone!
Cream of Botulism Soup 9. sep. 2021 kl. 22:20 
Hope this works with 1.3 I don't see any alternatives, just had a German Shepard puppy decide it would be a good idea to eat a bunch of go juice SMH.
battlemad 6. sep. 2021 kl. 9:03 
Sure does work in 1.3, needs an extension to more mods. nice if a github existed, maybe it does and there is no link. regardless i have not seen specific messages/warnings for this mod. who knows the mod may not be working at all?
Thundercraft 18. aug. 2021 kl. 20:59 
Can anyone tell me if this works in 1.3 (ignoring the usual warnings)?
hoia 21. juli 2021 kl. 12:55 
Alright, thank you very much!
czpetr  [ophavsmand] 21. juli 2021 kl. 12:45 
I will update it when I find time :)


The mod will most likely work, it will just throw warning. Can't say for sure through.
hoia 21. juli 2021 kl. 10:09 
Hi, are you planning to update this mod to 1.3, now that the DLC is out? :)
It is very useful.
MadMarblez 23. juni 2021 kl. 17:42 
The entire fate of humanity is in danger without drunk chicks.
kmcl11 14. juni 2021 kl. 2:16 
i also really like this idea and hope a vanilla expanded patch could happen :)
Ivanik 12. maj 2021 kl. 3:58 
best mod, once a friendly colony sent me a caravan and their muffalo just got stuck on the map i guess it was already out of hunger when they departed and it was already drinking my shit, it was winter so there was no grass and he was near my storage room (wich is where i store my beer), then it just started going through all off my beer even tho it didn't give him any food, had to put him down and lose relation with his faction
F1tgal911 17. mar. 2021 kl. 3:29 
@gis_extra
+1
Fiur 14. dec. 2020 kl. 8:55 
I just had to install this since my guiniea pigs went to my drug compartment. ._.
gis_extra 6. dec. 2020 kl. 15:07 
Could you make a patch or add the same nutrition value removal to Vanilla Expanded alcohol like vodka, whiskey, gin, etc.? I just noticed that my rottweilers are getting smashed. lol Thanks if possible.
Dredphyre 29. nov. 2020 kl. 13:27 
Thank you for this! It's a really stupid flaw in the game which makes it possible for animals to open up a bottle of beer. On a very stressful mission, I just had my alpaca pack animal drink all the beer meant to calm my pawns. There are maddening things about the game that make sense, and then there is animals open bottles.
Windows XP 24. nov. 2020 kl. 10:50 
Is there a mod that does the opposite of this? I want to add a small nutrition to yayo and stuff so that cats will eat it (unless you hide it from them in a restricted room). Because if there isn't a mod like this already, I might make one.
Bud 7. nov. 2020 kl. 10:52 
sorry i had to split it up. from start to end
Bud 7. nov. 2020 kl. 10:52 
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Conditional:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Tagger:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Conditional:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.ThinkNode_Priority:TryIssueJobPackage(Pawn, JobIssueParams)
Verse.AI.Pawn_JobTracker:DetermineNextJob(ThinkTreeDef&)
Verse.AI.Pawn_JobTracker:TryFindAndStartJob()
Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.EndCurrentJob_Patch1(Pawn_JobTracker, JobCondition, Boolean, Boolean)
Verse.AI.Pawn_JobTracker:JobTrackerTick()
Verse.Pawn:Tick()
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()
Bud 7. nov. 2020 kl. 10:51 
at RimWorld.JobGiver_GetJoy.TryGiveJobFromJoyGiverDefDirect (RimWorld.JoyGiverDef def, Verse.Pawn pawn) [0x00006] in <d72310b4d8f64d25aee502792b58549f>:0
at (wrapper dynamic-method) RimWorld.JobGiver_GetJoy.RimWorld.JobGiver_GetJoy.TryGiveJob_Patch1(RimWorld.JobGiver_GetJoy,Verse.Pawn)
at RimWorld.JobGiver_IdleJoy.TryGiveJob (Verse.Pawn pawn) [0x00034] in <d72310b4d8f64d25aee502792b58549f>:0
at Verse.AI.ThinkNode_JobGiver.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00000] in <d72310b4d8f64d25aee502792b58549f>:0
at Verse.AI.ThinkNode_Priority.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00022] in <d72310b4d8f64d25aee502792b58549f>:0
Verse.Log:Error(String, Boolean)
Bud 7. nov. 2020 kl. 10:51 
Exception in RimWorld.ThinkNode_ConditionalNeedPercentageAbove TryIssueJobPackage: System.ArgumentException: Value does not fall within the expected range.
at RimWorld.DrugPolicy.get_Item (Verse.ThingDef drugDef) [0x00037] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.DrugAIUtility.IngestAndTakeToInventoryJob (Verse.Thing drug, Verse.Pawn pawn, System.Int32 maxNumToCarry) [0x00055] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.JoyGiver_TakeDrug.CreateIngestJob (Verse.Thing ingestible, Verse.Pawn pawn) [0x00000] in <d72310b4d8f64d25aee502792b58549f>:0
Bud 7. nov. 2020 kl. 10:49 
i am experiencing the bug above, i think it may be this mod because this is the only mod i have that affects drugs.
GamerBossHarmon 18. aug. 2020 kl. 12:07 
ok
czpetr  [ophavsmand] 17. aug. 2020 kl. 6:12 
This mod has been updated to 1.2. Compatibility with previous version was preserved.

Let me know if you encounter any bugs.
GothAlice 10. aug. 2020 kl. 8:28 
The Tallest: "… you made the fires worse!"
Zim: "Worse… or better ?" 👹

I'm torn on this. On one hand, it makes sense for reasons enumerated in other comments. On the other, literally every mammalian species I have encountered, and even a number that aren't even mammalian (such as birds), thoroughly enjoy getting drunk or otherwise intoxicated in the real world. (Watching lions, elephants, and bok blissing out next to an over-ripe fruit tree gives me hope for living creatures.)

It's also an explicit harvesting strategy I make use of during winter. [decwap8ztgrry.cloudfront.net] As a stop-gap, I'm using Hospitality with regions defined such that guests can not reach / do not have permission to access the ambrosia stockpiles in my pub, only the "excess" area for overflow sales, and colonist food restrictions to make sure they don't chow down on the source material for my Ambrandy.
WhiteWolf 19. juni 2020 kl. 13:44 
Great mod. Saves me a lot of issues.
Any chance you update it for Chocolate(vanilla drug)?
Tokido Saya 27. maj 2020 kl. 8:29 
any chance for other mod support?i mean all drugs like Dr@g0n said
Wart1n1 6. maj 2020 kl. 9:50 
Thanks for the mod. I don't care too much about the animals, there are ways to deal with them, but I'm tired of prisoners on "No food" being given ambrosia…
F1tgal911 28. apr. 2020 kl. 12:58 
Pls add the alcoholic beverages from VG Garden Drinks too. My animals keep getting alcoholics all the time by drinking them wine...
KenU 9. apr. 2020 kl. 13:42 
Great mod! Would it also be possible to remove the nutrition value of smokeleaf, psychoid leaves and hops? My animal trainers keep using these to train animals when they should be using hay and kibble.
Zephyr 29. mar. 2020 kl. 0:24 
In see beer with circle slash, I subscribe, YA LIL' SHITS CAN STOP POPPIN ME FOOKIN BOTTELS NOW YA LIL' SHITES! WHERE TH' 'ELL'd YA GET A BOTTLE OPENER ANYWAYS?!?! YE DON'T HAVE THUMBS!!!!!!
Kitty 24. mar. 2020 kl. 21:42 
if you could add the sugar syrup from VG Drinks to your mod, I'd be grateful. My animals keep going into sugar comas, which makes them somewhat useless as haulers. =/
Nishe 20. mar. 2020 kl. 8:51 
@czpetr I'm not sure if they still do, but I know for a fact they used to at least take luciferium. I've never seen them take flake or yayo. I wouldn't have thought an animal would be capable of that since it requires smoking/snorting rather than eating.
Dr@g0n 19. mar. 2020 kl. 11:32 
If i figure it out I will make all drugs, those from the billion mods I have as well all booze unedible. Found a cool mod for feeding drugs to animals so I am waiting on that modder to see what they do and if it might work right with animal tab and restrictions therefor negating this mod, no offense. this has been a huge blessing
czpetr  [ophavsmand] 19. mar. 2020 kl. 7:39 
@Ishca

No, this mod only changes ambrosia and beer. Animals should't eat drugs like flake in vanilla, at least I have never seen that.
LadyIshca TTV 19. mar. 2020 kl. 6:47 
Is this mod supposed to prevent animals from consuming flake and other drugs too? Because if so, it might not be working entirely. My dog just got high and overdosed on flake with this mod running.
Dr@g0n 17. mar. 2020 kl. 9:37 
thanks
czpetr  [ophavsmand] 15. mar. 2020 kl. 15:04 
Alternatively you can just remove nutrition directly from the mod file (if downloaded manually), or move mod from workshop download location to rimworld mod folder and modify it there. It is probably faster in this case, however patchoperations are the way to go for modifying game files and for compatibility.
czpetr  [ophavsmand] 15. mar. 2020 kl. 14:39 
You can also use Patchoperation to add or remove something, It would look like this:

<Operation Class="PatchOperationReplace">
<xpath>/Defs/ThingDef[defName = "Beer"]/label</xpath>
<value>
<label>czechbeeristhebest</label>
</value>
</Operation>

Just and example how replacing label (name shown in-game) works, it would change "beer" to "czechbeeristhebest".

I would give you more detailed answer on this, but I am too tired today. If you have questions through feel free to ask, I will answer you tommorow if i'll know. Good luck.
czpetr  [ophavsmand] 15. mar. 2020 kl. 14:33 
@Dr@g0n

Hello, this mod patches the nutrition value out of ambrosia and beer. It looks like this:

<Operation Class="PatchOperationRemove">
<xpath>/Defs/ThingDef[defName = "Beer"]/statBases/Nutrition</xpath>

</Operation>

So how it works: PatchOperationRemove is patching operation that removes something from Def you want. Xpath is the way to the target.

PatchOperation finds "Beer" (replace it with defname of drug you want to modify, can be found in the files of the mod you want to modify).

There it looks like this: (removed unnecessary text, it will be bigger in the files, but I don't want to paste it all there)

https://justpaste.it/4oc7h

Then it goes according to the path we set, and removes the last part, in this case, <Nutrition>0.08</Nutrition>

<xpath>/Defs/ThingDef[defName = "Beer"]/statBases/Nutrition</xpath>
Dr@g0n 15. mar. 2020 kl. 13:38 
hey how does this mod work i am trying to figure out how to make a alcohol from another mod non-nutritious. I have yet to try my hand at this but I am tired of losing my hard earned cateye bery juice(orrasian mod) to my animals and prisoners.

great mod by and by. I always felt when I drink I just fool myself into feeling not hungry like with coffee for me as well.
czpetr  [ophavsmand] 27. feb. 2020 kl. 4:14 
This mod has been updated to 1.1. Compatibility with version 1.0 was preserved.

Let me know if you find any bugs.
czpetr  [ophavsmand] 24. feb. 2020 kl. 5:55 
I'll probably update it tomorrow. You can try if it works until then, should't cause any problems aside from version error.
El Grasón 23. feb. 2020 kl. 21:35 
Is this going to be updated to 1.1?
GamerBossHarmon 25. juli 2019 kl. 14:11 
did not think that
Panto Ocelot 7. juli 2019 kl. 17:59 
This is also effective for humans who are in the pigging out state. They might not always target food and may target alcohol, simply because it has a bit of nutrition like Pemmican.
GamerBossHarmon 13. juni 2019 kl. 18:49 
just one thing to add the way i keep my animals from drink or eatting my food is i do not allow them were i keep all my food and i do the same with my crops so they will not eat them