Project Zomboid

Project Zomboid

[B42] Farming Wiki
10 Comments
Timou 6 Aug @ 9:15am 
Is it compatible with B 42.11 ?
Weiser Wolf von Yoitsu 18 Jul @ 3:44pm 
Thank you for your effort!
냐냐우 19 Jun @ 5:56am 
감사합니다~~
Ryan 3 Jun @ 7:05am 
after giving us a taste of farming wiki u can't just leave us have to make one for every category in game. Or there will be a special place for you in hell.
Doc 9 May @ 8:21pm 
There should be one of these for everything in the game. Guns, gear, food, everything. Great job!
Monkey 6 May @ 3:10am 
This but for farm animal please?
Harald Hardrada 5 May @ 1:16pm 
where can I find detailed info about farming btw?
Hadad 2 May @ 1:31am 
:steamhappy: i love uuuuuuu
SkyBlue  [author] 1 May @ 9:30am 
@Nyagger
I checked the vanilla code again after reading your comment.

In the file Steam\steamapps\common\ProjectZomboid\media\lua\server\Farming\SPlantGlobalObject.lua,
the reason for using getGameTime():getMonth() + 1 is not to apply a one-month offset,
but because getGameTime():getMonth() returns values from 0 to 11 (not 1 to 12).

Therefore, the correct sowing months for barley are August (8), September (9), and October (10).
I also confirmed that the vanilla crop info window shows these months correctly,
and that barley grows properly in August in-game.


Just one thing—regarding RiskMonth, I mistakenly added +1, thinking it required a simple offset as you mentioned.
I've now reverted it back to its original logic.
Nyagger 1 May @ 8:52am 
you just copied everything directly from the source code
your mod shows the sowing times for barley as 8, 9, 10, which would imply it's august, september and october
except the actual sow months are september, october and november (9, 10, 11)
and that's not just an ingame typo, if you try to sow barley on august it will die immediately.
the problem is that the source code has all months offset by 1 so you're actually giving misleading info
please check and test stuff before posting the mod...