[Solved] Variable scope between platforms
Posted: Thu Jan 23, 2020 10:05 am
Hi,
I have a Renpy project working perfectly fine on Windows and MacOS but raising an exception when running under Linux.
I get a NameError not defined on a [None] * len(i). Linux pretend that i isnt defined and I can't figure why.
Here a simplified sniplet of my script code :
This code will crash and raise this exception :
NameError: name 'i' is not defined
Anyone have an idea?
I have a Renpy project working perfectly fine on Windows and MacOS but raising an exception when running under Linux.
I get a NameError not defined on a [None] * len(i). Linux pretend that i isnt defined and I can't figure why.
Here a simplified sniplet of my script code :
Code: Select all
init:
$ renpy.music.register_channel("music","sfx",False)
$ Calendar()
$ Clock()
$ i = 0
define tracking_var = [None] * len(i)
NameError: name 'i' is not defined
Anyone have an idea?