Project Zomboid

Project Zomboid

[B42] Farming Wiki
10 opmerkingen
Timou 6 aug om 9:15 
Is it compatible with B 42.11 ?
Weiser Wolf von Yoitsu 18 jul om 15:44 
Thank you for your effort!
냐냐우 19 jun om 5:56 
감사합니다~~
Ryan 3 jun om 7:05 
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 mei om 20:21 
There should be one of these for everything in the game. Guns, gear, food, everything. Great job!
Monkey 6 mei om 3:10 
This but for farm animal please?
Harald Hardrada 5 mei om 13:16 
where can I find detailed info about farming btw?
Hadad 2 mei om 1:31 
:steamhappy: i love uuuuuuu
SkyBlue  [auteur] 1 mei om 9:30 
@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.
Dogemon 1 mei om 8:52 
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...