Logging - Skirlez/nubbys-forgery GitHub Wiki

Setting up logging

To get a window where the game can log to, I made this very small program called slip. You run it and it should just work. In the future I'll add a configuration file to the modloader so you can change which port it sends logs to.

Logging

mod_log(text...)

Takes in up to 16 text arguments, and logs all of them with space " " as a separator. Your mod ID prefixes the log message.

Example usage:

Say our mod_id is "example_mod"

mod_log("Hello", "World!!!!")

Logs: [example_mod] Hello World!!!!

show_message(text)

This GameMaker function could be useful if you don't want to bother with slip. It brings up a window with text on it and pauses the game, so avoid using it in cases where it could run very often, like in a Step event, as you are forced to close the window to move on to the next frame.