Difference between revisions of "Debug Dumps"

Jump to navigation Jump to search
72 bytes added ,  07:11, 21 July 2014
→‎File naming: link to strings tutorial
imported>Odessa
(Created)
 
imported>Odessa
(→‎File naming: link to strings tutorial)
Line 42: Line 42:
     Print "Starting debug dump to file: " + file_name
     Print "Starting debug dump to file: " + file_name
</pre>
</pre>
A [[String Variable]] and the [[GetUserTime]] function can be used to create a unique and recognizable file name for your dump, based on your mod name and the real life time it is created. The [[Con_SCOF]] command writes all console output to the specified file, which will be found in the main game directory of the user. The [[Print]] command outputs text to the console, and supports many convenient features.  
A [[String Variable]] and the [[GetUserTime]] function can be used to create a unique and recognizable file name for your dump, based on your mod name and the real life time it is created. The [[Con_SCOF]] command writes all console output to the specified file, which will be found in the main game directory of the user. The [[Print]] command outputs text to the console, and supports many convenient features. (See also [[Tutorial: String Variables|the string variables tutorial]])


The debug dump file name will look like: "MyModName-Debug-Dump-YEAR-MONTH-DAY--HOUR-MINUTE-SECOND.txt"
The debug dump file name will look like: "MyModName-Debug-Dump-YEAR-MONTH-DAY--HOUR-MINUTE-SECOND.txt"
Anonymous user

Navigation menu