Skip to content
Timmeey86 edited this page Jul 22, 2024 · 8 revisions

Farming Simulator Script Modding Tutorial for Programmers

Welcome to the script modding tutorial for Farming Simulator. This tutorial was written for Farming Simulator 22 but most aspects of it should be helpful for future versions of Farming Simulator as well.

This is a work in progress, so if you stumble across this early, you'll have to be patient.

Who is this tutorial for?

This tutorial is targeted at people who already have programming experience in any programming language, but either haven't created a script mod for Farming Simulator yet or are struggling to do so. It will not explain how IDEs work or how programming languages work, but it will mention common pitfalls of lua compared to other languages.

What's the focus of the tutorial?

The main focus is not teaching lua or explaining code, but rather everything which revolves around this, i.e. how to get efficient at understanding the API, debugging and testing. The barriers to entry for scripting for Farming Simulator can be very high even for experienced developers and this tutorial tries to lower them by a large amount.

What will the tutorial cover?

The tutorial will cover everything between setting up your environment to uploading your mod to Mod Hub.

The chapters

Still reading? Well, let's get started:

  1. Setting up
  2. Finding and displaying data
  3. An excursion into OOP with lua for FS
  4. Hooking into things