GE10 Script – Spline To Field Generator (Prefab) V1.0


GE10 Script – Spline To Field Generator (Prefab) V1.0


The SplineToFieldGenerator is a script for the GIANTS Editor designed to help users create fields more easily using splines while keeping the number of polygonPoints as low as possible.
This script can save a significant amount of work, especially when working with very large or irregularly shaped fields.

Features:
Simple field generation using fieldBoundarySpline
Field island generation using: fieldIslandSpline/fieldIslandSmallSpline
Field islands are completely optional and not required.

UI Features:
Creation of all required splines and groups
Generation of polygonPoints
Show and hide splines
Render debug mode for a better overview of the generated polygonPoints of the selected field using the current settings, including live updates when settings are changed
Delete all splines and groups from either a selected field or all fields
Notes: When deleting splines and groups for the first time, a backup TransformGroup will automatically be created under: SplineToFieldGenerator -> Backup. The deleted splines and groups will then be stored there as: fieldXXBackup. This backup system is used to preserve the splines and groups of a field in case something was deleted accidentally or additional changes need to be made later.

Additionally, the script performs many automatic checks and outputs useful messages to the GE console, explaining what is currently happening or why certain functions could not be execute

Example Field Structure:
First, you need a field created using the GIANTS Editor FieldToolkit or another script that supports field creation.

Simple Field
fields
—-└── fieldXX
——–├── polygonPoints (transformgroup)
——–├── nameIndicator (transformgroup) Standard GIANTS structure
——–├── teleportIndicator (transformgroup)
——————————————————————————-
——–└── fieldBoundarySpline (Spline) SplineToFieldGenerator structure
——————————————————————————-

Field With Field Islands
fields
—-└── fieldXX
——–├── polygonPoints (transformgroup)
——–├── nameIndicator (transformgroup) Standard GIANTS structure
——–├── teleportIndicator (transformgroup)
——————————————————————————-
——–├── fieldBoundarySpline (Spline)
——–└── fieldIsland (transformgroup) SplineToFieldGenerator structure
————└── fieldIslandSpline (Spline)
——————————————————————————-
The fieldIsland TransformGroup must be properly aligned with the field islands.
The blue debug lines in Render Debug mode help visualize whether areas are correctly detected as field islands during generation.

Field With Hard-To-Reach Field Islands
fields
—-└── fieldXX
——–├── polygonPoints (transformgroup)
——–├── nameIndicator (transformgroup) Standard GIANTS structure
——–├── teleportIndicator (transformgroup)
——————————————————————————-
——–├── fieldBoundarySpline (Spline)
——–└── fieldIsland (transformgroup)
————├── fieldIslandSpline (Spline) SplineToFieldGenerator structure
————├── fieldIslandSpline (Spline)
————└── fieldIslandWaypoint (transformgroup)
—————-└── fieldIslandSpline (Spline)
——————————————————————————-

The fieldIslandWaypoint is used to provide one or multiple fieldIslandSpline objects with an additional TransformGroup, allowing difficult-to-reach field islands to be generated more accurately.
This is especially useful for highly complex or heavily twisted field layouts.

Important Notes:
The hierarchy does not need to follow the exact same order as shown in the examples.

Internally, the script processes data in the following order:
fieldBoundarySpline -> fieldIsland (transformgroup)
It does not matter where the fieldBoundarySpline is located inside the fieldXX group, since the script automatically searches for it first.

The only important requirement is:
Everything containing fieldIsland in its name must also be located inside the fieldIsland TransformGroup.
Otherwise, incorrect or unexpected generation patterns may occur.

Please also note that the script may not always generate perfectly accurate field shapes in every situation. Due to the technical limitations of splines, corners may occasionally become slightly rounded or uneven, since splines cannot create perfectly precise 90-degree edges. Because of this, some corners or transitions may require minor manual adjustments afterward.

Installation:
1.) Start the latest version of the GIANTS Editor
2.) Navigate through the top menu bar to: Window -> Script Editor. and open the Script Editor
3.) Right-click the folder where you want to store the script (for example: Shared Scripts) and select: Explore Folder
4.) Copy the SplineToFieldGenerator.lua file into your selected script folder and restart the GIANTS Editor
5.) The script will then be available inside the GIANTS Editor through the top menu bar under: Scripts


Author: Steven1134


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!