Difference between revisions of "DCS singleton env"

From DCS World Wiki - Hoggitworld.com
m (1 revision imported)
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
<center>{{#widget:AdSense
 +
|name=Hoggitwiki header
 +
|width = 728px
 +
|height = 90px
 +
}}</center>
 +
 
{{Template:DCSscriptingSingleton
 
{{Template:DCSscriptingSingleton
  
Line 10: Line 16:
 
|funcs= {{listOfEnvFuncs}}
 
|funcs= {{listOfEnvFuncs}}
  
|enums=  Logs will display in the following format:
+
|enums=  The current mission's mission and warehouse file are accessible via the tables:
 +
 
 +
  [[miz_mission_structure|env.mission]]
 +
  [[miz_warehouses_structure|env.warehouses]]
 +
 
 +
Logs will display in the following format:
 
<pre>
 
<pre>
  
Line 20: Line 31:
  
 
|notes= Lua syntax errors are automatically generated and placed in the dcs.log file.  
 
|notes= Lua syntax errors are automatically generated and placed in the dcs.log file.  
 
 
 
}}
 
}}
 +
[[Category:Game Patch 1.2.0|env singleton]]

Latest revision as of 23:52, 15 November 2022


Singleton: env Added with: 1.2.0
Description: env contains basic logging functions useful for debugging scripting commands. The input text is automatically added to dcs.log in your saved games folder, default location: C:\Users\<<userName>>\Saved Games\DCS\Logs
Functions: info, warning, error, setErrorMessageBoxEnabled, getValueDictByKey
Enumerators and Other Data: The current mission's mission and warehouse file are accessible via the tables:
  env.mission
  env.warehouses 

Logs will display in the following format:


  |Timestamp||envType||Source of log|| Log Data 
  
   00104.229   INFO     SCRIPTING:     'message'
  
Notes: Lua syntax errors are automatically generated and placed in the dcs.log file.