Can anyone explain the maps_growth.xml?

Your forum for all discussions around Modding.
duke54
Posts: 2
Joined: Mon May 09, 2022 9:44 am

Can anyone explain the maps_growth.xml?

Post by duke54 »

I'm trying to understand the seasonal seeding/harvesting xml file to create a custom seasonal cycle but I'm really confused about how the elements are organized. Each 'period' tag is a month, but how does the 'update' tag and its attributes work? What do the 'range' and 'add' attributes mean? And what's the 'initialState' attribute?
File
...\Farming Simulator 22\data\maps\maps_growth.xml

Code: Select all

<fruit name="wheat" initialState="8">
            <period index="1">
                <update range="2-3" add="1" />    
            </period>
            <period index="2" plantingAllowed="true">
                <update range="1" add="1" />
                <update range="3-4" add="1" />
            </period>
            <period index="3" plantingAllowed="true">
                <update range="1-2" add="1" />
                <update range="4-5" add="1" />
             </period>
            <period index="4">
                <update range="2-3" add="4" />
                <update range="5-6" add="1" />
             </period>
            <period index="5">
                <update range="6-7" add="1" />
             </period>
            <period index="6">
                <update range="7" add="1" />
             </period>
            <period index="7" plantingAllowed="true">
                <update range="7" add="1" />
                <update range="1" add="1" />
            </period>
            <period index="8" plantingAllowed="true">
                <update range="8" add="1" />
                <update range="1-2" add="1" />
            </period>
            <period index="9" plantingAllowed="true">
                <update range="1-2" add="1" />
            </period>
            <period index="10">
            </period>
            <period index="11">
            </period>
            <period index="12">
            </period>
        </fruit>
TheSuBBie
Posts: 539
Joined: Wed Jun 10, 2020 11:38 am

Re: Can anyone explain the maps_growth.xml?

Post by TheSuBBie »

From: https://gdn.giants-software.com/thread. ... adId=10315

Duke Giantsdevelopernetwork (duke54) 09.05.2022 04:19
This mod will teach you how to adjust the seasonal cycles for a crop:

Real Life Numbers
https://www.modhoster.com/mods/fs22_rea ... 7be8e2eb2f
duke54
Posts: 2
Joined: Mon May 09, 2022 9:44 am

Re: Can anyone explain the maps_growth.xml?

Post by duke54 »

Thanks, I'm the one who posted the reply you provided, but it turns out that the 'Real Life Numbers' mod has a custom seasonal growth xml file that is different than the game xml file. The mod only allows you to have 2 days for seeding and 2 for harvesting, and I would like to have 3 or more days of seeding/harvesting for each crop.
Post Reply