Add entity name, script name and function name to all print statements

When you print to the log in Crayta, it will print the message, and whether it came from client or server. However, it can often be hard to track down which entity the message came from, or which script, or function within that script. You can add each of these parts manually to every print statement, but that’s very time-consuming.

The suggestion is that all print statements to the log are prefixed with the entity name, script name and function name, where those are applicable, as well as the existing [Client] or [Server]. That would result in print statements looking more like this:
[Client][EntityName][ScriptName][FunctionName(if applicable)]:message

Votes on original board: 5

4 Likes