Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you add Additional Fruits in GEOs? #751

Closed
nyfarmboy07 opened this issue Feb 24, 2018 · 2 comments
Closed

How do you add Additional Fruits in GEOs? #751

nyfarmboy07 opened this issue Feb 24, 2018 · 2 comments

Comments

@nyfarmboy07
Copy link

I have attempted to create a GEO mod to add additional fruits, but I have been unsuccessful. No where in the manual can I find anything about additional crops except that they will default to using the barley crop growth table.

@nyfarmboy07 nyfarmboy07 changed the title How do you add Addition Fruits in GEOs? How do you add Additional Fruits in GEOs? Feb 24, 2018
@joskuijpers
Copy link
Member

joskuijpers commented Feb 24, 2018 via email

@theSeb1979
Copy link
Member

theSeb1979 commented Apr 9, 2018

In your xml file you should have copied the original growth.xml.

Two important sections that need to be considered first.

<defaultFruits>
        <defaultFruit fruitName="barley" maxSprayGrowthState="4"/>
        <defaultFruit fruitName="wheat" maxSprayGrowthState="4"/>
        <defaultFruit fruitName="rape" maxSprayGrowthState="4"/>
        <defaultFruit fruitName="maize" maxSprayGrowthState="4"/>
        <defaultFruit fruitName="soybean" maxSprayGrowthState="4"/>
        <defaultFruit fruitName="sunflower" maxSprayGrowthState="4"/>
        <defaultFruit fruitName="potato" maxSprayGrowthState="4"/>
        <defaultFruit fruitName="sugarBeet" maxSprayGrowthState="4"/>
        <defaultFruit fruitName="poplar" maxSprayGrowthState="4"/>
        <defaultFruit fruitName="grass" maxSprayGrowthState="4"/>
        <defaultFruit fruitName="oilseedRadish" />
        <defaultFruit fruitName="dryGrass" />
        <defaultFruit fruitName="sugarCane" />
    </defaultFruits>

and at the bottom

<germination>
        <fruit fruitName="barley" germinateTemp="5" />
        <fruit fruitName="wheat" germinateTemp="5" />
        <fruit fruitName="rape" germinateTemp="5" />
        <fruit fruitName="maize" germinateTemp="10" />
        <fruit fruitName="soybean" germinateTemp="10" />
        <fruit fruitName="sunflower" germinateTemp="7" />
        <fruit fruitName="potato" germinateTemp="5" />
        <fruit fruitName="sugarBeet" germinateTemp="5" />
        <fruit fruitName="grass" germinateTemp="3" />
        <fruit fruitName="oilseedRadish" germinateTemp="7" />
        <fruit fruitName="poplar" germinateTemp="5" />
        <fruit fruitName="sugarCane" germinateTemp="12" />
    </germination>

You need to add your fruit in the top section by creating a new line like and set the number to whatever you want as long as it is below the harvestable state. This number basically restricts up to when you can spray/fertilise a crop. By default I chose 4 which is the last growing state in the game.

In the bottom section you also need to add a new line and input the correct germination temperature for it, like this

Then you need to model the fruit's growth and put in the appropriate commands for each growth state in the section

It's important to consider how the fruit has been added, how many states it has and what are the min and max harvestable states in order to model the growth properly. Each is what will happen at the beginning of that transition. In other words, gt 1 is what will happen when you go from late winter to early spring, gt 2 is what will happen when you go from early spring to mid spring and so forth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants