Category | Scripting |
Created | 16.11.2016 19:49 |
D. Ecker (Decker_MMIV) | 16.11.2016 19:52 |
---|---|
I suppose that the g_gameSettings that was introduced with patch-1.3.0.0, is to be used by modders to get/set in-game settings, which players also can adjust via the ESC-menu pages. Though it seems that some "parameters" are missing, as the 'automaticMotorStartEnabled' is not documented at https://gdn.giants-software.com/documentation_scripting.php?version=script&category=68&class=2092 Or should a different parameter-name be used for querying g_gameSettings:getValue() for it? |
Tykonket (IlMat) | 18.11.2016 17:43 |
---|---|
"automaticMotorStartEnabled" is in "g_currentMission.missionInfo.automaticMotorStartEnabled". Let me know if i solved your problem :) |
Tykonket (IlMat) | 18.11.2016 17:43 |
---|---|
D. Ecker (Decker_MMIV) | 21.11.2016 16:54 |
---|---|
Hi Tykonet, I am aware that it exist in a sub-object of g_currentMission - which is also what I currently use. However due to my experience with patch 1.3.0.0 that "broke" one of my mods, where g_uiScale was removed completely and replaced with a new feature called g_gameSettings - which I presume GIANTS Software wants us modders to use in the future, instead of directly accessing internal variables - I am questioning whether or not more 'game setting' values should be available to query via the new g_gameSettings:getValue() method. Looking at https://gdn.giants-software.com/documentation_scripting.php?version=script&category=68&class=2092#getValue29107 there are many 'variables' - which can be directly found in certain other objects/tables - but "some are missing" which seems logical that they should be availabe there. Regards, Decker_MMIV |
Tykonket (IlMat) | 25.11.2016 12:03 |
---|---|
Ok but "automaticMotorStartEnabled" isn't a global setting, it is different for every savegame, then it's located in "g_currentMission.missionInfo.automaticMotorStartEnabled" and not in "g_gameSettings" in which are stored global settings. |
Note: Log in to post. Create a new account here.