Description

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="2.2.0.258"
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."

End User Licence Agreement (EULA).

Version 1.0.0. Published October 31, 2018

Age Rating: 4+

Average Rating

This asset hasn't received enough reviews yet.

Your review

You can only review assets you've bought.

No reviews yet

No reviews have been left for this asset - be the first!

Package contents

Loading, please wait

What is the issue?

Back to Top