Skip to content
← Back to projects

Fs19 Giants Editor Toolkit

Lua scripts for Giants Editor (Farming Simulator 19, GE 8.x). autoAlign for power line wires + spline/terrain/foliage helpers.

#FS19 Giants Editor Toolkit

Collection of Lua scripts for Giants Editor (Farming Simulator 19, GE 8.x era). Created 2020-2021 during active map modding for FS19.

#Highlights

  • autoAlign.lua + autoAlignCallback.lua + autoAlignTrain.lua Automatic wire alignment between power poles - each wire scaled and rotated to connect adjacent poles based on their world positions. Train variant adapts the algorithm for railway segments. Uses 3D trigonometry (setDirection + ratio-based scaling).

  • customPaintTerrainBySpilne.lua - paint terrain along a spline (typo "Spilne" preserved as historical artifact).

  • setFoliageLayerBySpline.lua - foliage placement along a spline.

  • setTerrainByObject.lua - terrain height adjustment from object position.

  • multipleMove.lua, moveInWorldContext.lua - batch transformations.

  • scriptCaller.lua - invoke scripts from other scripts.

  • getDimension.lua, getSplineParameters.lua - measurement helpers.

#Usage

Copy any .lua file to your Giants Editor scripts/ directory. Reload scripts in GE (Scripts menu) and run via the Scripts menu.

Some scripts depend on editorUtils.lua (by ezaitsev) - not included here, get it from the original source or write your own helpers.

#Compatibility

Tested on: Giants Editor 8.x (FS19 era).

Not tested on: GE10 (FS25). API surface changed between versions - expect to fix function signatures, namespacing, and callback registration if you want to run these on newer editors.

#License

MIT - see LICENSE.

#Author

Rafik (2020-2021), originally published 2026.

New version available.