Project Zomboid

Project Zomboid

True Smoking [B42]
155 Comments
Ratamus  [author] Aug 22 @ 5:39pm 
Alcohol mod is something I want to do and would be fairly easy with this mod providing most of the framework already, THC I've thought about but it might be challenging to make it work with other mods providing their own effects, since there is so many weed mods im hoping someone will want to fully integrate and take it on themselves
chut527 Aug 22 @ 11:20am 
Agree with n0ahrk. A version of the nicotine system for both alcohol and THC would be great.
Ratamus  [author] Aug 20 @ 10:04pm 
@Sur.Vival thanks for the update, ill try to reach out to them when I have some time so we can get it working sooner than later, im always up for making things compatible. Cheers! :praisesun:
Sur.Vival Aug 20 @ 8:03pm 
Hi @Ratamus - just a quick update — the Green Fire author literally just posted a few minutes ago that they are actively working on native True Smoking compatibility.

I’ve also reported the conflict on their mod page, so both sides are now aware. Maybe this is a good moment to reach out to them again — since they already have permissions and code, some coordination between you two could really help bring proper integration sooner and avoid temporary half-fixes.
Ratamus  [author] Aug 20 @ 7:23pm 
@Sur.Vival I've looked into this issue before with Jiggas, it would be possible for a quick fix to avoid function conflict but the support would be half baked as Jiggas has a lot of spaghetti code and redundancy for how certain features are coded (smoke half for example). I might look into adding some support again in the future, I had reached out to the team working on the b42 version long ago to see if they would be open try and make things more compatible but I never received a response
Sur.Vival Aug 20 @ 5:58pm 
There seems to be a conflict between [42] Jiggas Green Fire and True Smoking.

Conflict functions:

OnEat_Tobacco(food, character) (Green Fire)

Smokable:update() → self.callback(self) (True Smoking)

Root cause:
Green Fire’s OnEat_Tobacco expects (food, player) and uses character:HasTrait().
True Smoking assigns OnEat_Tobacco as a per-tick callback, but only passes self (a Smokable object). This makes character = nil and causes the error attempted index: HasTrait of non-table: null.

Would it be possible to make these two mods compatible (e.g. align callback parameters or isolate the functions)?
n0ahrk Aug 19 @ 3:21pm 
dude you should recreate this entire mod for cannabis, and have a THC system with different levels of high, I think it's realistic to smoke as much as you want to get to a specific level of high that can be positive and or negative, I see so much potential in this mod thank you for making it- this is one of these things that should just be in the base game
Ratamus  [author] Aug 16 @ 10:52pm 
@Garrozh B42 only

@GzDaGhost Restart your game, check load order

@Vakho brooblyn Default keybind is 'K' to relight when the smoke goes out and the moodle is wiggling
vakho brooblyn Aug 16 @ 7:41am 
how do i relight the cigarette?
GzDaGhost Aug 15 @ 11:28pm 
doesn't let me enable even tho i have all the required mods
Garrozh Aug 14 @ 6:28am 
can use this on b41?
Ratamus  [author] Aug 3 @ 6:43pm 
Additionally if you want to change sandbox settings on an existing save, either use Debug mode or use a mod that enables you to change sandbox settings, will need to reload between changing sandbox settings
Ratamus  [author] Aug 3 @ 6:42pm 
@zloi_krendel Ya you should click Load to bring up your saves, select one and then on the bottom there should be a Mods button, there you can enable/disable mods per save.

When you use the Mods button from the main menu that only sets them for new games
zloi_krendel Aug 3 @ 5:18pm 
@ratamus how exactly do you enable it for save loading? I assume that is the problem because the mod is turned on, do i have to press the button that shows all the saves i have? Cuz i ussualy start the game just by pressing continue button
Ratamus  [author] Aug 3 @ 9:27am 
@K.Plotnikof more cigarettes should be working

@zloi_krendel make sure its enabled for the save before loading, probably just something simple

@Yxng Loose currently not possible yet, later when TIS adds more fire and smoke mechanics I might be able to use them to add a light and smoke effect to the cigeratte
Yxng Loose Aug 3 @ 4:24am 
is there visible smoke when exhaling
zloi_krendel Aug 3 @ 12:02am 
i added this mod into one of my saves. Any idea why it does not work? Really want to get off the smoker trait. Some charcter "development" type stuff
K.Plotnikof Jul 27 @ 7:45am 
Very cool mod and features :)
Could you please add support for More cigarettes(B42)V2? ;)
mango Jul 24 @ 7:21pm 
thanks!!:steamhappy::steamhappy:
Ratamus  [author] Jul 24 @ 12:45pm 
@shrvm<3 around 1 month in game, depends on if you quit cold turkey or wean off slowly
mango Jul 24 @ 1:00am 
how much time does it take to lose the smoker trait?
Ratamus  [author] Jul 19 @ 5:48pm 
@Codemonkey3 I was thinking of making a mod for food and alcohol, the framework of this mod would handle most of it already but I don't have much free time these days to mod or game
Codemonkey3 Jul 19 @ 5:44pm 
I love how you can pace out a long smoke. Kind of makes me wish we could eat and drink that way as well. Hang out with your friends in MP and sip on a beer, or all sit around a table and take bites of a meal instead of eating it all in 5 seconds.
Ratamus  [author] Jul 19 @ 12:27pm 
@Maybenotjoker when loading the save game you have to click Mods and enable Truesmoking for that save before loading in
Maybenotjoker Jul 19 @ 12:17pm 
How do I make this mod work with my existing save? I enabled it and set it up the way I would like in the options but when I load up my solo game this mode is not recognized as an active mod
Ratamus  [author] Jul 18 @ 7:40pm 
@KuBo[ITA] This mod is B42 only and Smoker is still only for B41 as far as I know. The B41 version of this mod should work with Smoker
KuBo[ITA] Jul 17 @ 5:44pm 
Does this also work with Smoker?
Ratamus  [author] Jul 14 @ 6:25pm 
@Manterok I think i see the issue in the code, the line that calls for idle puffing is not checking if the smoke is lit I think, I'll look into this on Friday when I'm back home, thanks for the feedback :)
Ratamus  [author] Jul 14 @ 6:21pm 
@Manterok Some mods that add weed pipes and such are tuned to go out after lighting/puffing

For normal smokes this isn't intended, sounds like maybe an issue with the automatic puffing but I'm not sure.

I can take a look into this but I'm working out of town without my laptop so I'll have to investigate over the weekend

Glad to hear you enjoy the mod though, it's what makes working on it worth it to know other people enjoy it :praisesun:
Manterok Jul 14 @ 2:34pm 
Hey bro, I really love this mod. I will never play without it. Sometimes my guy will put the smoke out, but he'll still take hits off of it, as if it were still lit. It seems to be random. I won't know it's out until I look at the moodle, because he keeps hitting it ever so often. I thought to check it, because his stress wasn't going down. I'll hit "K" to relight it, and it might stay lit until the smoke is finished, or it might go out as soon as he's done taking the hit. IDK if anyone else has had that issue, or if it's something intentional, and he's just doing something that is meant to put the smoke out for that action. It doesn't seem to be anything in particular though.
Malu Jul 14 @ 1:41am 
No.
Ratamus  [author] Jul 13 @ 6:39pm 
@Malu are you using other mods for reading?
Malu Jul 13 @ 2:42am 
It's weird because it was working perfectly fine and it broke the instant I lit one up and then click read on a book. No even removing it, loading the save, the reapplying the mod an reactivating the mod fixed it, it's just broken forever on that save.
Ratamus  [author] Jul 12 @ 10:04pm 
@SIMBAproduz Should be ok, i've been keeping the translation files updated with new options that get added :)
SIMBAproduz Jul 12 @ 8:02pm 
any update that needs to update the translations friend?
Ratamus  [author] Jul 12 @ 7:19pm 
Additionally I will push a small update later to keep the smoke burning slowly while reading as that fits the intended mechanics better, its an easy tweak but something I overlooked during development
Ratamus  [author] Jul 12 @ 7:01pm 
@Malu I don't see an issue on my end. While reading a book you are unable to puff as reading a book is a Timed Action, the smoke will eventually go out while reading a book but you can relight it as normal after you finish reading or put it out and light it up again later. I tested this again to be sure and everything is working as it should. It might be possible you have a mod conflict going on, if you're using default settings for True Smoking in the sandbox consider resubscribing to it while the game is closed and/or removing and re-adding it to your save
Malu Jul 12 @ 5:07pm 
Seems that reading a book while smoking completely breaks the mod, the lit cigarette stays at 8/8 forever and stress doesn't go down. Reloading doesn't fix it, the smoking moodle goes away and the cigarette is returned but if you smoke it happens again.
Ratamus  [author] Jul 9 @ 7:05pm 
@slumsofdespair there are options for the auto puff features in the mod options menu found in the esc menu

Keep smoke lit will automatically take puffs when the smoke is about to go out, passive puffing will also puff between the interval set. Turning those off will stop the auto puffs.

In the sandbox settings there is options to tune how the smokes behave, increasing the smoke length is the easiest way to have a 'longer' smoke
slumsofdespair Jul 9 @ 3:55pm 
@Ratsmus sweet thanks bro is there also a way I can stop it from auto puffing and make it burn slower so I can keep it held in my characters mouth longer?
Ratamus  [author] Jul 8 @ 7:21pm 
@Big_Bluntz that should be intended if you have the smoker trait as you start severely addicted. If you ween off smoking over time it will go down. Default balancing is around a month in game time to lose addiction/smoker trait
Ratamus  [author] Jul 8 @ 6:43am 
@slumsofdespair yup, if you turn off the 'Smoke relighting' option the smoke should stay burning
slumsofdespair Jul 8 @ 12:14am 
hey is there any way i can disable the smoke from going out?
Ratamus  [author] Jul 7 @ 3:32pm 
Big_Bluntz as a smoker you start addicted
Big_Bluntz Jul 7 @ 1:39pm 
Are you supposed to get severely addicted after 1 smoke?
Fish n' Chips Jul 6 @ 7:56pm 
Thanks! For some reason I got it into my head that I needed to puff to actually get nicotine but I understand now that it's just for keeping it lit or burning it quick while idle.
Ratamus  [author] Jul 6 @ 4:25pm 
@Fish n' Chips
The smoke will burn without puffing as you move around, sprinting and running will increase the burn rate more than just walking, standing idle the burn rate decreases until it goes out. Puffing will of course increase the burn rate much more.

Different items have different amounts of nicotine which is gained over the duration of the smoke, so while the 'smoke length' and 'nicotine content' may not be equal in amounts they are equally distributed over time as you smoke
Fish n' Chips Jul 6 @ 9:56am 
Is puffing necessary to get nicotine or do you just gain nicotine passively as whatever your smoking burns? I'm guessing nicotine rate is equal to burn rate?
solarchos Jul 4 @ 12:13pm 
Question - Is it just me or does the thumbnail pic look like Omni-Man?
SIMBAproduz Jun 19 @ 5:29pm 
niceee one!