Bronya-Rand / DDLCModTemplate2.0

A new template for producing DDLC mods that adhere to Team Salvato's guidelines based off DDLC itself.
58 stars 18 forks source link

fixed an indexing error on splash.rpy #47

Closed danillosouza closed 2 years ago

danillosouza commented 2 years ago

It was generating a fatal error when trying to launch the mod:

Full traceback:
  File "renpy/common/00start.rpy", line 233, in script call
    call _splashscreen from _call_splashscreen_1
  File "game/splash.rpy", line 299, in script
    python:
  File "/usr/share/renpy/renpy/ast.py", line 928, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/usr/share/renpy/renpy/python.py", line 2245, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/splash.rpy", line 317, in <module>
    process_list[x] = process_list[x].decode('utf-8').split("/")[-1]
TypeError: list indices must be integers, not tuple

While running game code:
  File "renpy/common/00start.rpy", line 233, in script call
    call _splashscreen from _call_splashscreen_1
  File "game/splash.rpy", line 299, in script
    python:
  File "game/splash.rpy", line 317, in <module>
    process_list[x] = process_list[x].decode('utf-8').split("/")[-1]
TypeError: list indices must be integers, not tuple