Game is crashing at start
I narrowed the problem down, the game seems to crash at start when the files contain a transform with a function inside, any functions seems to break it. This worked in 6.17
Is this a bug?
I mean something of this sort:
Code: Select all
init python:
def i_broke(trans, st, at):
return
init:
transform move_test:
pause 0.5
block:
function i_broke #<- this breaks it, it worked in 6.17
pause 0.5
repeat 3
pause 0.5
repeat
Traceback
Code: Select all
I'm sorry, but an uncaught exception occurred.
After initialization, but before game start.
AttributeError: 'RawFunction' object has no attribute 'function'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "G:\Programy\renpy-6.18.0-sdk\renpy\bootstrap.py", line 289, in bootstrap
renpy.main.main()
File "G:\Programy\renpy-6.18.0-sdk\renpy\main.py", line 307, in main
renpy.game.script.analyze()
File "G:\Programy\renpy-6.18.0-sdk\renpy\script.py", line 579, in analyze
i.analyze()
File "G:\Programy\renpy-6.18.0-sdk\renpy\ast.py", line 919, in analyze
self.atl.mark_constant()
File "G:\Programy\renpy-6.18.0-sdk\renpy\atl.py", line 572, in mark_constant
i.mark_constant()
File "G:\Programy\renpy-6.18.0-sdk\renpy\atl.py", line 572, in mark_constant
i.mark_constant()
File "G:\Programy\renpy-6.18.0-sdk\renpy\atl.py", line 1430, in mark_constant
self.constant = is_constant_expr(self.function)
AttributeError: 'RawFunction' object has no attribute 'function'