shadzar
November 18th, 2018, 16:24
Ok. i need some data from within FG that can be used in LUA scripting...
Path_to_open_campaign
since FG knows the proper folder to save the campaign to when it /saves there must be an internal global variable to the LUA scripting engine that contains this environment variable. standard LUA script_path() function returns {a nil value}.
So would this be something in a ruleset script i can find or is it something only internal to the program itself and not accessible to LUA scripts?
So is there a quick and easy way within FG scripting that i can access this environment variable since it isnt responding to standard LUA io.open globals?
i checked the refdocs and could find nothing on this.
if it is in a ruleset or extension already that uses this, then please link me to such so i can find this environment global.
Path_to_open_campaign
since FG knows the proper folder to save the campaign to when it /saves there must be an internal global variable to the LUA scripting engine that contains this environment variable. standard LUA script_path() function returns {a nil value}.
So would this be something in a ruleset script i can find or is it something only internal to the program itself and not accessible to LUA scripts?
So is there a quick and easy way within FG scripting that i can access this environment variable since it isnt responding to standard LUA io.open globals?
i checked the refdocs and could find nothing on this.
if it is in a ruleset or extension already that uses this, then please link me to such so i can find this environment global.