From 27dd2572a6359289693a6792602ec2af2b92167d Mon Sep 17 00:00:00 2001 From: potato Date: Sun, 25 Feb 2024 04:54:14 -0600 Subject: [PATCH] add clarifying comments on what the override does and why --- Monika After Story/game/overrides.rpy | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Monika After Story/game/overrides.rpy b/Monika After Story/game/overrides.rpy index 2f3604eb8d..cbbdc59142 100644 --- a/Monika After Story/game/overrides.rpy +++ b/Monika After Story/game/overrides.rpy @@ -79,9 +79,16 @@ python early in mas_overrides: This specific function is called before the init scripts start running so this is the last place we can remove the scripts rpa stuff we dont want. + + renpy.game.script.initcode contains a list of AST nodes that will be + loaded on init - script-poemgame is the only known init that crashes + startup, so any AST node coming from that file is removed from + initcode here. """ global report_parse_errors_ran + # report_parse_errors runs multiple times (counted 10 on startup) + # so this is guarded to only run once if not report_parse_errors_ran: for index, initcode in reversed(list(enumerate(renpy.game.script.initcode))): init_lvl, obj = initcode