From 3745fb46e91b8c23c84694d8163d7c2bf745d7ef Mon Sep 17 00:00:00 2001 From: LoafyLemon Date: Tue, 14 May 2024 15:07:18 +0100 Subject: [PATCH] Ignore console calls in dev stdout --- game/scripts/utility/engine.rpy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/game/scripts/utility/engine.rpy b/game/scripts/utility/engine.rpy index 3d2bedad..5baff47c 100644 --- a/game/scripts/utility/engine.rpy +++ b/game/scripts/utility/engine.rpy @@ -216,10 +216,13 @@ default _last_label = None python early: def catch_label_call(label, abnormal): if config.developer: + ignore = ["_console", "_console_return"] # last_label = renpy.game.context().come_from_label <- Doesn't work as expected, other methods are just as unreliable. # from '{stdcol.PURPLE}{last_label}{stdcol.END}' caller_id = renpy.get_filename_line() - print(f"Reached '{stdcol.PURPLE}{label}{stdcol.END}' caller '{stdcol.BLUE}{caller_id}{stdcol.END}'...") + + if not label in ignore: + print(f"Reached '{stdcol.PURPLE}{label}{stdcol.END}' caller '{stdcol.BLUE}{caller_id}{stdcol.END}'...") setattr(store, "_last_label", label)