Relationships between XML files from left to right:
map.xml
fruitTypes.xml
meadow.xml
In this example, we will remove these lines from map.xml:
<fruitTypes>
<fruitType filename="$data/foliage/meadow/meadowEU/meadow.xml"/>
</fruitTypes>
<fruitTypeCategories>
<fruitTypeCategory name="MOWER">MEADOW</fruitTypeCategory>
</fruitTypeCategories>
Instead we will replace these with:
<fruitTypes filename="maps/mapEU/fruitTypes.xml"/>
..and type it above or below the line that says:
<treeTypes maxNumTrees="10000" />
If treeTypes says something else, just put fruitTypes above or below this line to keep the XML organised.
Could you check that the filename pathway to your fruitTypes.xml or whatever filename you use for that XML is pointing to the correct location? In some cases, modders prefer to use other filenames like map_fruitTypes.xml – as an example. Under any circumstances, the filename and pathway to the file is case sensitive.
You can now save your map’s map.xml inside NotePad Plus (Notepad ++)
Next, we will navigate to the default data directory for the Farming Simulator, usually located somewhere on the hard drive, using Windows File Browser—or the file browser application you mainly use to browse for files on your computer.

Inside that folder, we will continue navigating to maps and then copy the file named maps_fruitTypes.xml.
We will then navigate back to our mod and place it inside the correct folder, that for my case will be:
MyGames\FarmingSimulator2025\mods\FS25_MyMod\maps\mapEU
You’ll need to place it at the location specified in your map.xml.
Then we will rename maps_fruitTypes.xml to fruitTypes.xml
We will now open this XML file in NotePad ++, and add a line below these lines:
<fruitTypes>
<fruitType filename="$data/foliage/wheat/wheat.xml"/>
<fruitType filename="$data/foliage/barley/barley.xml"/>
<fruitType filename="$data/foliage/canola/canola.xml"/>
<fruitType filename="$data/foliage/oat/oat.xml"/>
<fruitType filename="$data/foliage/maize/maize.xml"/>
<fruitType filename="$data/foliage/sunflower/sunflower.xml"/>
<fruitType filename="$data/foliage/soybean/soybean.xml"/>
<fruitType filename="$data/foliage/potato/potato.xml"/>
<fruitType filename="$data/foliage/rice/rice.xml"/>
<fruitType filename="$data/foliage/riceLongGrain/riceLongGrain.xml"/>
<fruitType filename="$data/foliage/sugarbeet/sugarbeet.xml"/>
<fruitType filename="$data/foliage/sugarcane/sugarcane.xml"/>
<fruitType filename="$data/foliage/cotton/cotton.xml"/>
<fruitType filename="$data/foliage/sorghum/sorghum.xml"/>
<fruitType filename="$data/foliage/grape/grape.xml"/>
<fruitType filename="$data/foliage/olive/olive.xml"/>
<fruitType filename="$data/foliage/poplar/poplar.xml"/>
<fruitType filename="$data/foliage/beetRoot/beetRoot.xml"/>
<fruitType filename="$data/foliage/carrot/carrot.xml"/>
<fruitType filename="$data/foliage/parsnip/parsnip.xml"/>
<fruitType filename="$data/foliage/greenBean/greenBean.xml"/>
<fruitType filename="$data/foliage/pea/pea.xml"/>
<fruitType filename="$data/foliage/spinach/spinach.xml"/>
<fruitType filename="$data/foliage/grass/grass.xml"/>
<fruitType filename="$data/foliage/oilseedRadish/oilseedRadish.xml"/>
For my case (as I am going to play with the meadow foliage for my map), the line will be:
<fruitType filename="maps/mapEU/foliage/ziemeadow/meadow.xml"/> ending with the closing tag </fruitTypes>
If you are going to use the vanilla foliage for meadow (depending on if it’s a European, Asian or American map you are modding), the line can instead be:
<fruitType filename="$data/foliage/meadowUS/meadowUS.xml"/> or
<fruitType filename="$data/foliage/meadowAS/meadowAS.xml"/> or
<fruitType filename="$data/foliage/meadowEU/meadowEU.xml"/>
If we are going to mow meadow (cutting the plant down to ground and use it for feeding animals or for production), we will need to move downwards inside the XML to this line and add MEADOW:
<fruitTypeCategory name="MOWER">GRASS WHEAT BARLEY OAT CANOLA SOYBEAN MEADOW</fruitTypeCategory>
Let’s save these changes, and we are done for now. But you will also have to follow up on modifying the i3D file for your map (ex: mymap.i3d) listed at the end of this guideline.
Alternatively, if you are going to edit some of the foliages for the game, and you want a custom meadow* for your map, then you will have to navigate with your file browser to the game’s main folder again and go to data > foliage > meadow, and copy one of the folders:
- meadowAS
- meadowEU
- meadowUS
…to a location in your mod, for example, ‘my foliage/meadow’ and paste it there. After that, you must change the path to your meadow XML file inside fruitTypes.xml again. It is that simple but still overwhelming.
The same goes for any other foliage you want to modify for the mod you create. Never modify the files inside data. Always copy the files you need to your mod’s directory.
If you have a completely new map generated within GIANTS Editor, it already has meadow painted onto the terrain surface. In my case, I had to change this line inside my mapEU.i3d. We will only do this if we are going to use our own modded meadow foliage:
<File fileId="306" filename="foliage/ziemeadow/meadow.xml"/>
If it’s a newly generated map, the line will say something like:
<File fileId="306" filename="$data/foliage/meadow/meadowEU/meadow.xml"/>
Why GIANTS Software is referencing to the foliage inside the map’s I3D is probably due to foliage already painted. They should use the fruitTypes.xml instead…but that’s on GIANTS, or maybe related to map generation through GIANTS Editor. The thing is that from the vanilla side, all the maps inside Farming Simulator 2025 has their own map.xml. That XML is ‘the parent’ to many other XML-files for a farming simulator map.
When viewed inside NotePad ++, the line above is found within the i3D file library section – the first data section listed.
You’ll have to save the changes after editing in NotePad ++.
If all the changes you made to this point are correct, and the file paths inside these XMLs are correct, then your map’s i3D should load with no errors listed in GIANTS Editor or within the game’s log.txt file.
* A custom meadow means you want to modify the foliage files like those below to fit your needs.
