Have you check if the same happens with the uncompressed version, because i dont change any code at all.
When does it exactly happen. I normally test the games before uploading. If you can provide more info i know if i must reupload the compression.
Have now put the script.rpy from the compressed and the original to a diffchecker. Both are the same. This must be then a problem on your end or a general problem with the game.
I have not used on the uncompressed version.
I'm a python developer, my knowledge of renpy workings is less than ideal, but in an educated guess
Code:
# ch1.rpy
label ch1Flags:
# ...
$ mp = 0
# ...
label ch1Morning:
if mp > 0:
#...
is only defined if the label is called. If is python direct translation
Code:
def ch1Flags():
global mp
# ...
mp = 0 # assign 0 variable mp in global scope
def ch1Morning():
if mp > 0: # mp does not exist in ch1Morning scope if we do not call ch1Flags() first, will return NameError: name 'mp' is not defined
def ch1Morning():
ch1Flags()
if mp > 0: # mp exists because it was called first, but we want to keep state across other labels, if calling every single time is going to reset
def try_to_read_before_before_defining():
global not_in_global
not_in_global = not_in_global + 1 # NameError: name 'not_in_global' is not defined
From a read of
You must be registered to see the links
it should be
default instead of
define in my fix, no need for
init:.
So, for my 2 cents of renpy, I suggest you declare variables using
default, that way you ensure that they are defined.