Project Zomboid

Project Zomboid

[B42] Uncursed Plants
31 Comments
Will Jun 12 @ 1:35am 
o7
Klomn Jan 29 @ 1:35pm 
o7
Sick Boy Jan 27 @ 4:26am 
o7
Azeta Jan 22 @ 2:13am 
o7
Omni Jan 21 @ 3:41pm 
Build 42.1 fixed this. This mod is no longer necessary. Thank you!

Patch notes read:

> - Fixed an error with the farming code where a plant's bad month would be offset forwards by one month, resulting in crops being incorrectly cursed in some circumstances.
Rachel L Jan 21 @ 1:05pm 
Fixed, mod not needed anymore
Prof. Dr. Glotzenstein Jan 13 @ 1:15pm 
I think the other mod is https://steamcommunity.com/sharedfiles/filedetails/?id=3402458927 which fixes the XP issue too.
Kisheen  [author] Jan 13 @ 11:45am 
Feel free to link it, this was just me fixing a frustration, not a 'real' fix for all the planting bugs.
Doc O´malley Jan 13 @ 8:23am 
Not getting XP is another farming bug in B42. The crops "forget" the owner who planted them and becuse you get xp only when you harvest "your" crops you wont get any XP. There is mod out there that fixes the cursed issue together with the lack of XP at the same time
rmemech Jan 7 @ 1:52pm 
no xp for my own crops, the three that survived. got nothing from them either when i harvested. no food or seed
Kenpa Jan 6 @ 9:16pm 
So that's what's happening...

I was already pissed off playing whack-a-mole with the new combat sound lingering zeds that LOVE hopping the fence to stomp the same 2 turnip plants... only to find out the bastards were already dead for days... along with the rest of their turnip family.

I've been staring with great pride... at nothing but false hope.
StrungSweeney Jan 5 @ 12:10pm 
Yeah ive planted over 10 crops myself, and you get nothing. I think the game is making all crops, not player owned
Ƒᴏᴜʟᴅᴏɢ Jan 5 @ 9:56am 
you only get exp for harvesting things you've planted,
Kisheen  [author] Jan 5 @ 6:58am 
Agriculture xp is supposedly only gotten when you harvest a plan you planted yourself. Are you saying you're not even getting it then? I didn't touch anything related to XP
StrungSweeney Jan 5 @ 4:55am 
Shame even with the mod you still don't get Xp you have to debug it in :(
Alyfox Jan 4 @ 6:35pm 
Kisheen (and Criss) thanks for the info both of you. Will make sure I keep this mod active!
Tiax Jan 4 @ 2:54pm 
and same problem in all the other functions in that file:
SPlantGlobalObject:isBestMonth()
SPlantGlobalObject:isRiskMonth()
SPlantGlobalObject:isBadMonthHardy()
Tiax Jan 4 @ 2:42pm 
> I didn't dig enough into it to know why or to actually fix it.
Problem looks to be in lua\server\Farming\SPlantGlobalObject.lua:174, function called SPlantGlobalObject:isSowMonth()

if not self or self.typeOfSeed then return end

should be

if not self or not self.typeOfSeed then return end

self.typeOfSeed is e.g. "Broccoli", it returns nothing always --> always out of sow month --> always cursed
堂堂正正冲国人 Jan 4 @ 5:08am 
@Criss So you mean no matter when we plant, the crops are always in "wrong season" condition and die? WHAT WERE THEY THINKING ?!
梦才_MornTsuy Jan 3 @ 10:47pm 
Nice mod, but I often turn on debug mode with the archive I'm playing in, does that mean my crops will wilt again with debug on?
[BRTD]Luewen Jan 3 @ 10:57am 
Ahhh. Ill just resow the plants then. Not a big deal. Ill just debug the seeds bag like you did.
Kisheen  [author] Jan 3 @ 10:17am 
The flag is set when you sow seeds. There might be a way in debug mode to flip the flag, but I couldn't find it (you can see it in the F2 overlay and selecting the crops entity). I personally just gave myself my wasted seeds back and replanted.
[BRTD]Luewen Jan 3 @ 9:18am 
Thank you. I was pondering my brains out why whole rows of plants would die suddenly.
Any idea if i need to replant, or is the code change retroacive?
ryntimeerror Dec 31, 2024 @ 5:58pm 
thank you! was about to revert to b41 over this!
Dr. Tormindbind Mickmildididind Dec 31, 2024 @ 9:48am 
Good thing I looked up mods again before setting up my homesteading run!
Cosmonaut Dec 30, 2024 @ 8:47pm 
OMG someone fixed this eventually. Thanks a million time!!!
Balance Dec 30, 2024 @ 7:27pm 
I was wondering why my crops kept dying despite being well cared for, thanks for the bandaid fix so I can continue to farm
Criss Dec 30, 2024 @ 11:20am 
the cursed flag (i was the guy takling about this on reddit) IS the out of season flag. but the coding is bananas and for some reasons will always apply cursed even when you dissable seasons (my guess is that they add "cursed:true" 1st and then the "cursed:false" but never veridfied if the "cursed:false" flag was working). yeah. it's a dumb thing the devs shoud've noticed -.-
Kisheen  [author] Dec 30, 2024 @ 10:28am 
Updated the description with what the flag means. tldr; it's supposed to mean you did something wrong, but always got set to true anyway.
Alyfox Dec 30, 2024 @ 10:08am 
I haven't tried farming yet in 42, what is this 'cursed' flag?? Grabbing mod JIC.