Is there no way to edit the crop calendar?
Re: Is there no way to edit the crop calendar?
So Giants have not only borked the way that mod maps would have loaded custom fruitTypes from the map.xml (meaning that a UK map cannot currently remove Cotton for example), they've made it so that you have to amend your root install to set a custom crop calendar? Awesome. I do love change for change's sake.
Re: Is there no way to edit the crop calendar?
1. as others have suggested, either get notepad++ or Visual Studio Code. They will show you start/end tags for a section of code so you have a better indicator of it being correct, you have an extra </period> tag before the </seasonal>Sweet Wheat wrote: ↑Sun Dec 01, 2024 11:10 pm I tried editing barley. Kept it simple to one month planting. Spent a lot of time on it and every little / > " looks right but it won't show in game. According to the xml it seems simple enough to go from one state to the next.
<growth>
<seasonal>
<period name="EARLY_SPRING" plantingAllowed="true">
<update startState="invisible" endState="greenSmall" />
</period>
<period name="MID_SPRING">
<update startState="greenSmall" endState="greenSmall2" />
</period>
<period name="LATE_SPRING">
<update startState="greenSmall2" endState="greenMiddle" />
</period>
<period name="EARLY_SUMMER">
<update startState="greenMiddle" endState="greenBig" />
</period>
<period name="MID_SUMMER">
<update startState="greenBig" endState="greenBig2" />
</period>
<period name="LATE_SUMMER">
<update startState="greenBig2" endState="harvestReady" />
</period>
<period name="EARLY_AUTUMN">
<update startState="harvestReady" endState="dead" />
</period>
<period name="MID_AUTUMN" />
<period name="LATE_AUTUMN" />
<period name="EARLY_WINTER" />
<period name="MID_WINTER" />
<period name="LATE_WINTER" />
</period>
</seasonal>
</growth>
2. The crop xml has growth states that start from invisible. Invisible = planted. Your planting season needs to have every stage possible from invisible up. So if your planting season is 3 months, they will all have <update startState="invisible" endState="greenSmall" />, the second month will also have <update startState="greenSmall" endState="greenSmall2" />. The third month will have those as well as <update startState="greenSmall2" endState="greenMiddle" />. When the month ends it looks at that month, finds the start state and switches it to the end state. It will only process one of those so you need to make sure it has them correct or it will just skip it and you won't see growth until the next year. I downloaded a map that had this problem, a 2 year growth because the planting season only had the invisible state in the first month. It took me a bit of playing with the cycles to figure it out. Your harvest season needs to follow the same format so depending on what month you plant it has a corresponding harvest month in the cycle. The following is one of my crops that has a 3 month planting/harvest cycle. Your harvest cycle can be longer then your planting but not the other way around.
Code: Select all
<growth>
<seasonal>
<period name="EARLY_SPRING" plantingAllowed="true">
<update startState="invisible" endState="greenSmall" />
</period>
<period name="MID_SPRING" plantingAllowed="true">
<update startState="invisible" endState="greenSmall" />
<update startState="greenSmall" endState="greenSmall2" />
</period>
<period name="LATE_SPRING" plantingAllowed="true">
<update startState="invisible" endState="greenSmall" />
<update startState="greenSmall" endState="greenSmall2" />
<update startState="greenSmall2" endState="greenMiddle" />
</period>
<period name="EARLY_SUMMER">
<update startState="greenSmall" endState="greenSmall2" />
<update startState="greenSmall2" endState="greenMiddle" />
<update startState="greenMiddle" endState="greenBig" />
</period>
<period name="MID_SUMMER">
<update startState="greenSmall2" endState="greenMiddle" />
<update startState="greenMiddle" endState="greenBig" />
<update startState="greenBig" endState="greenBig2" />
<update startState="greenBig2" endState="harvestReady" />
</period>
<period name="LATE_SUMMER">
<update startState="greenMiddle" endState="greenBig" />
<update startState="greenBig" endState="greenBig2" />
<update startState="greenBig2" endState="harvestReady" />
</period>
<period name="EARLY_AUTUMN">
<update startState="greenBig" endState="greenBig2" />
<update startState="greenBig2" endState="harvestReady" />
</period>
<period name="MID_AUTUMN">
<update startState="greenBig2" endState="harvestReady" />
</period>
<period name="LATE_AUTUMN">
<update startState="harvestReady" endState="dead" />
</period>
<period name="EARLY_WINTER"/>
<period name="MID_WINTER" />
<period name="LATE_WINTER" />
</seasonal>
</growth>