GE10 Script – TreeGenerator (Prefab) V1.0


GE10 Script – TreeGenerator (Prefab) V1.0


With this practical script for the GIANTS Editor 10, a complete forest can be automatically created. The Random Tree Generator offers a simple way to randomly place trees from an existing pool within a defined area – considering minimum distances, terrain alignment, and random rotation.

The tool allows any area (treeArea) to be defined as a forest area and automatically filled with trees from a treePool. Density, minimum distance, height alignment, and rotation can be individually adjusted.

A special focus is on user-friendliness:
– Easy configuration via a graphical user interface
– Real-time progress display during generation
– All trees are automatically grouped together (autoForest_X)
– Clear status messages and error notifications

For maximum control, the script offers numerous configuration options:

Density (trees/m²):
Determines how many trees are generated per square meter. Higher values create denser forests.

Minimum Distance (m):
Defines the minimum distance between two trees. Prevents overlaps and ensures natural distribution.

Max Attempts per Tree:
Specifies how many times the script tries to find a suitable spot for a tree. Higher values increase the success rate in dense forests.

Random Rotation:
Activates random rotation of each tree around its own axis. Provides more variety.

Align to Terrain:
Automatically adjusts the height of each tree to the terrain surface. Prevents floating or buried trees.

Height Offset (m):
Vertically shifts the trees. Positive values raise them, negative values lower them.

The tool is aimed at both beginners and experienced modders and significantly speeds up the creation of forests and woodland areas on custom maps.

Installation:
1.) Navigate to the installation directory of the GIANTS Editor.
Default: “C:/Users\User/AppData/Local\GIANTS Editor 64bit 10.0.11+”
2.) Copy the file “TreeGenerator.lua” into the scripts folder of the GIANTS Editor.
“C:/Users/User/AppData/Local\GIANTS Editor 64bit 10.0.11+/scripts/”
3.) The script is then available in the GIANTS Editor via the menu bar under “Scripts”.

Scene Preparation:
Before you can use the script, your scene must have the following structure:

Root
├── terrain
├── treeArea (TransformGroup with cubes or other objects)
├── point1
├── point2
├── point3
└── point4 …
└── treePool (TransformGroup with tree models)
├── treeOak01
├── treeSpruce01
├── treeBirch01
└── …

The treeArea defines the area in which trees are generated. Each child of this group represents a corner point of the polygon. At least three points are required.
The treePool contains the template trees from which random selection is made. The more different trees, the more varied the forest will be.

Troubleshooting:

“treeArea not found!”
> The TransformGroup “treeArea” does not exist in the scene.

“treePool not found!”
> The TransformGroup “treePool” does not exist in the scene.

“No trees in treePool!”
> The treePool contains no tree models.

“treeArea needs at least 3 points!”
> The treeArea contains fewer than 3 points.

“No trees generated!”
> The area is too small or the density is too low.


Author: Zyran


Report bugs in the comments and help modders improve this mod. Always check the comments, you can find a solution.


Helpful Information: How to install FS25 mods | FS25 System Requiremnts | FS25 Modding Tutorial | Giants Editor for FS25 | How to Convert mods | FS25 Cheats

More Misc mods


About Farming Simulator 25 mods
Farming Simulator 25 supports game modding for PC, Xbox, or PS5. FS25 Mod may change your game from small to complete changes. You can create a Farming Simulator 25 mod file and share it with our community. When is a good time to try Farming Simulator 25 mods? We recommend playing a game with these FS25 mods after you finish the Farming Simulator 25 starting pack and are bored with the game basics. So it's time to try new machines, such as harvesters or tractors, which are not included in the basic game version.
As you already know, Farming Simulator 25 developers support mods installation, which will add more vehicles or lands to your game. Check our Best FS25 mods lists for PC, Mac, PS5 or Xbox Series. Just follow these simple steps: choose the LS25 mods category, download the mod for the Farming Simulator 2025 version, and install it into the mod folder. Remember, all Farming Simulator 25 Mods are free, and download as many as you want with no limits. We want to create one of the biggest Farming Simulator 25 Community and invite you to share FS25 mods with everyone.

Leave a Reply

Do you need help or to say thanks to the mod author? Just leave a comment below!