Community Forum

What is g_currentMission?

Forum Overview >> Scripting

CategoryScripting
Created12.10.2016 16:19


Matteo Autieri (Unknown) 12.10.2016 16:20
Can you please explain me clearly what is g_currentMission?

Emil Drefers (Unknown) 13.10.2016 07:25
Hi,

depending on the game type (tutorial or career) this is an object of a certain class.
It is the basis for everything else, you could say.
It contains plenty of functions and variables

Cheers,
Emil

Tykonket (Unknown) 13.10.2016 12:48
Ok, so g_currentMission and all other g_ objects are exposed by the engine, not from the Lua APIs and contains all game data right?

Anyway I haven't found this info anywhere and the name sucks a bit, is not self explanatory.
I think you should improve:
1) API structure and consistency.
2) Documentations and tooling.
If you dont want lose all modders and you want gain new.

What I can suggest, with my experience, is:
1) For solving first problem, try to follow an API pattern like this ( https://github.com/dotnet/corefx ) is one of the best made and most modern.
2) For solving second problem, evaluate to write an extension for, at least, one of the best common IDE like ( https://code.visualstudio.com/ ) that will give to him the support for syntax colorization, code formatting, and code completion / intellisense.

Ah and last but not least, please for FS17 provide all kind of basic project, not only map and tractor, many mods are made only of scripts, newbie modders could want to start from a simple script...

This is my opinion, let me know what do you think.

Kevin Shanahan (Unknown) 29.10.2016 17:15
Totally agree. I am having terrible trouble finding out what is available to script without a more complete api or example. Reviewing the GIANTS mods has helped some, but leads to questions like this. I am very interested in modding, but just cannot find a good reference.


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