You need to replace at line 26:Whenever I try to run the game I get
File "game/scripts/core/gallery2.rpy", line 24, in script
init python:
File "game/scripts/core/gallery2.rpy", line 26, in <module>
CGSETS = defaultdict(list)
NameError: name 'defaultdict' is not defined
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/scripts/core/gallery2.rpy", line 24, in script
init python:
File "C:\Virtues\VIRTUES_v17_Standalone-pc\renpy\ast.py", line 914, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Virtues\VIRTUES_v17_Standalone-pc\renpy\python.py", line 2028, in py_exec_bytecode
exec bytecode in globals, locals
File "game/scripts/core/gallery2.rpy", line 26, in <module>
CGSETS = defaultdict(list)
NameError: name 'defaultdict' is not defined
Code:
init python:
CGSETS = defaultdict(list)
class CGSet:
Code:
init python:
import collections
CGSETS = collections.defaultdict(list)
class CGSet: