Community Forum

Scripting Tutorials

Forum Overview >> Scripting

CategoryScripting
Created18.02.2016 18:26


Aden Kuenzi (akuenzi) 18.02.2016 18:28
Forgive me if this is mentioned somewhere on the forum. I searched, but couldn't find reference to it.

The Scripting tutorials on GDN (https://gdn.giants-software.com/tutorials.php) make reference to files that appear to be used with the tutorial, such as 'SampleI3DLoading' or 'main.lua.' Where can these files be found? Can we download them from this site?

Thank you,

Aden Kuenzi

Emil Drefers (Unknown) 19.02.2016 08:19
Hi,

these tutorials are not meant for the Farming Simulator.
They are way more general, because you could use the engine for other games too.
But therefore you would need to purchase the engine itself and not the game ;)

Tutorials relating to farming simulator might be hard to find.
Well, you shoul dfirst get comfortable with lua and start scripting for the farming simulator afterwards.

Cheers,
Emil

Aden Kuenzi (akuenzi) 19.02.2016 17:14
Emil,

Thank you for the reply. 'Getting comfortable' with and learning lua is exactly what I'm trying to do. Scripting tutorials specific to Farming Simulator would certainly be helpful to someone like me without a computer programming background, but I understand those take time and resources to develop.

Do you have any further counsel for someone trying to 'get comfortable' with lua? Here's what I'm trying so far: (1) I'm reading a book authored by one of the architects of the lua language, 'Programming in Lua' (Roberto Ierusalimschy). (2) I'm reading through every single tutorial and documentation on the GDN forum. Next I'll start in on the posts to see the questions and answers on scripting. I'm also part of other forums related to Farming Simulator and am trying to do similar reading there, though information isn't always easy to come by. (3) I'm trying to spend time reading through example lua files (Farming Simulator) to try to see how they work, both of mods created, and also at http://www.ls-mods.de/ where the scripting documentation is posted. (4) I'm trying to find someone to mentor me on scripting to keep me pointed in the right direction... though that person may be very hard to find.

Is there is another resource I should consider in order to learn lua and to actually succeed at scripting in the Farming Simulator?

Thank you,

Aden Kuenzi

Emil Drefers (Unknown) 22.02.2016 08:21
Hi,

hmmmmm, that's hard to say.
It probably depends on your personal preferences and such.

So, reading a book and learn lua first is a very good idea and all your other plans sound good to me too.

The only thing which I would recommend is trying to get a 'job to do', I mean get practical and do something.
Mostly you learn more and better if you actually use the language.
So, I would recommend you to try and start writing a mod as soon as you are somehow comfortable with lua.
Depending on how much experience you have with other programming languages you might start right away ;)
You only need an idea of what you want to script :)

Whenever you have a question feel free to ask!

Good luck and lots of fun!

Cheers,
Emil



Aden Kuenzi (akuenzi) 22.02.2016 16:14
Emil,

Thank you for the encouragement! I do indeed have a 'job' to do, and a particular mod in mind, and have already tried to put some things together on it. :) I'm under no illusions that it will actually work, though... so I'm sure you'll likely see me back here asking more questions until it does.

Thank you,

Aden Kuenzi


Note: Log in to post. Create a new account here.