Creates a log file of errors.
Call log_ini() when you first start the game, this initialises the few variables it needs and creates the log file for the current session. Looking inside log_ini you can see global.show_debug = true. If this is true, the script will also send a show_debug_message() to the console with your error message as well as logging it in the file.
To log an error, simply replace your standard show_debug_message() calls with log("This is the sentence you want logged.")
When you open the log file it will be laid out like this:
[Base] Working dir="D:\Sample\Folder" Executable="D:\Sample\Folder" Build Date="3:54:55 PM" Runtime Version="18.104.22.1688" Version="0.0.0.1" Current Time="3:55:12 PM" Current Date="31-10-2018--2153016" OS="Windows OS" [Errors] 1="Flood fill failed, restarting game." 0="Flood fill attempted to fill too many times, exiting with -1."
Version 1.0.0. Published October 31, 2018
This asset hasn't received enough reviews yet.
You can only review assets you've bought.
No reviews have been left for this asset - be the first!