Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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.
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...