6.18, functions inside transform crash game at start

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
neowired
Regular
Posts: 199
Joined: Mon Dec 01, 2008 2:33 pm
Contact:

6.18, functions inside transform crash game at start

#1 Post by neowired »

I updated renpy to 6.18
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'
Last edited by neowired on Sat Sep 13, 2014 1:58 pm, edited 1 time in total.

User avatar
PyTom
Ren'Py Creator
Posts: 16122
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: 6.18, functions inside transform crash game at start

#2 Post by PyTom »

Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: Google [Bot]