Scripting tutorial for Farming Simulator

Your forum for all discussions around Modding.
User avatar
АНТИКЛАН
Posts: 39
Joined: Tue Mar 27, 2018 1:26 am

Scripting tutorial for Farming Simulator

Post by АНТИКЛАН »

Hello!

I have both a question and a suggestion. Why developers for so many years have not created lessons on the basics of writing scripts for those who are just beginning to learn modding Farming Simulator? For those who want to add to the game not only new models of equipment or objects, but to make more significant changes.

I’ve been playing Farming Simulator for years. And during this time, many ideas have been accumulated to change the game. The simplest of them have been implemented. But due to the lack of information and clear examples of how to work with the game code in general, other ideas cannot be implemented. Disassemble the logic of other modifications when there is no explanation in them is unrealistic.

I think, and I hope to support, that the community needs a tutorial on writing scripts for Farming Simulator for beginners. This textbook should not teach programming as such, but should give the following:
  1. Learn the basics of writing scripts for Farming Simulator.
  2. Learn to use the Farming Simulator API with case studies.
  3. Give answers to the maximum number of questions arising from beginners.
It doesn't matter who creates such a textbook. The developers themselves or experienced community members. It is important that such a textbook should be because it will contribute to the implementation of even more ideas, some of which can improve Farming Simulator even more!
User avatar
Eep
Posts: 98
Joined: Mon Nov 26, 2018 6:07 pm

Re: Scripting tutorial for Farming Simulator

Post by Eep »

https://gdn.giants-software.com/ and register to see the downloads, of which https://gdn.giants-software.com/downloa ... nloadId=54 is "Farm Simulator Modding for Dummies" ;)
User avatar
АНТИКЛАН
Posts: 39
Joined: Tue Mar 27, 2018 1:26 am

Re: Scripting tutorial for Farming Simulator

Post by АНТИКЛАН »

Eep wrote: Fri Dec 07, 2018 11:40 am https://gdn.giants-software.com/ and register to see the downloads, of which https://gdn.giants-software.com/downloa ... nloadId=54 is "Farm Simulator Modding for Dummies" ;)
Yes, this is all there but this information is for those who are engaged in the creation of models and maps. There are no details about scripting.
Procobator
Posts: 337
Joined: Tue Aug 02, 2016 2:39 pm

Re: Scripting tutorial for Farming Simulator

Post by Procobator »

https://gdn.giants-software.com/tutorials.php

FS UK also has a wealth of tutorials.
User avatar
Eep
Posts: 98
Joined: Mon Nov 26, 2018 6:07 pm

Re: Scripting tutorial for Farming Simulator

Post by Eep »

АНТИКЛАН wrote: Fri Dec 07, 2018 1:37 pm
Eep wrote: Fri Dec 07, 2018 11:40 amhttps://gdn.giants-software.com/ and register to see the downloads, of which https://gdn.giants-software.com/downloa ... nloadId=54 is "Farm Simulator Modding for Dummies" ;)
Yes, this is all there but this information is for those who are engaged in the creation of models and maps. There are no details about scripting.
Uh, that entire site is pretty much devoted TO scripting. FS19 scripting-specific info is forthcoming but FS17 scripting info is there. https://github.com/scfmod/fs19_lua/ is reverse-engineering FS19 scripting.
User avatar
АНТИКЛАН
Posts: 39
Joined: Tue Mar 27, 2018 1:26 am

Re: Scripting tutorial for Farming Simulator

Post by АНТИКЛАН »

Eep wrote: Fri Dec 07, 2018 3:23 pm
АНТИКЛАН wrote: Fri Dec 07, 2018 1:37 pm
Eep wrote: Fri Dec 07, 2018 11:40 amhttps://gdn.giants-software.com/ and register to see the downloads, of which https://gdn.giants-software.com/downloa ... nloadId=54 is "Farm Simulator Modding for Dummies" ;)
Yes, this is all there but this information is for those who are engaged in the creation of models and maps. There are no details about scripting.
Uh, that entire site is pretty much devoted TO scripting. FS19 scripting-specific info is forthcoming but FS17 scripting info is there. https://github.com/scfmod/fs19_lua/ is reverse-engineering FS19 scripting.
Well, here again. The information has appeared, and no one explains how to work with it. That's why I say that you need a textbook that would teach people who know Lua to create code for Farming Simulator using API and undocumented features.
User avatar
Eep
Posts: 98
Joined: Mon Nov 26, 2018 6:07 pm

Re: Scripting tutorial for Farming Simulator

Post by Eep »

Patience is a virtue? Supposedly Giants is working on the FS19 LUA docs...
Dandrum
Posts: 2
Joined: Sun Apr 12, 2020 12:36 am

Re: Scripting tutorial for Farming Simulator

Post by Dandrum »

Hi,

is it possible to use require() because i want to make a http request to a server to sync the game to it.

Code: Select all

local http = require("socket.http");
This is what i need but i always geht attempt to call local require (a nil value)

- Best Dan
Post Reply