Custom transition problem

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
deadwarrior63
Newbie
Posts: 7
Joined: Fri Sep 20, 2013 10:53 am
Contact:

Custom transition problem

#1 Post by deadwarrior63 » Fri Sep 20, 2013 10:59 am

I am trying to make a custom transition similar to the "eyes closing" one in Katawa Shoujo for my VN but for the life of me, I cannot work out how to do it.

I've tried these three possibilities:

Code: Select all

define eyeshut = wipeup(1.0), wipedown(1.0)
define eyeshut = wipeup(1.0) wipedown(1.0)
define eyeshut = wipeup(1.0)
               = wipedown(1.0)
The first one worked until the time of transition giving me this error:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 104, in script
TypeError: 'tuple' object is not callable

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "C:\Program Files (x86)\Renpy\renpy\execution.py", line 288, in run
    node.execute()
  File "C:\Program Files (x86)\Renpy\renpy\ast.py", line 1110, in execute
    renpy.exports.with_statement(trans, paired)
  File "C:\Program Files (x86)\Renpy\renpy\exports.py", line 946, in with_statement
    return renpy.game.interface.do_with(trans, paired, clear=clear)
  File "C:\Program Files (x86)\Renpy\renpy\display\core.py", line 1531, in do_with
    clear=clear)
  File "C:\Program Files (x86)\Renpy\renpy\display\core.py", line 1853, in interact
    repeat, rv = self.interact_core(preloads=preloads, **kwargs)
  File "C:\Program Files (x86)\Renpy\renpy\display\core.py", line 2056, in interact_core
    new_widget=layers_root)
TypeError: 'tuple' object is not callable

Windows-post2008Server-6.2.9200
Ren'Py 6.15.7.374
Sukoshi Hakucho 0.0.0.1
The other two give errors before the game even loads. I can post the traceback's from them too if needed.

Help please. Sorry if this is posted in the wrong format or place as i'm new here.

~James

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Custom transition problem

#2 Post by Alex » Fri Sep 20, 2013 3:07 pm


deadwarrior63
Newbie
Posts: 7
Joined: Fri Sep 20, 2013 10:53 am
Contact:

Re: Custom transition problem

#3 Post by deadwarrior63 » Fri Sep 20, 2013 3:40 pm

Thanks for that but the supplied code didn't work.. all I did was change the image name and the name of the transition..

Code: Select all

I'm sorry, but an uncaught exception occurred.

While executing init code:
  File "game/script.rpy", line 2, in script
  File "game/script.rpy", line 4, in python
NameError: name 'NoTransition' is not defined

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "C:\Program Files (x86)\Renpy\renpy\bootstrap.py", line 265, in bootstrap
    renpy.main.main()
  File "C:\Program Files (x86)\Renpy\renpy\main.py", line 269, in main
    game.context().run(node)
  File "C:\Program Files (x86)\Renpy\renpy\execution.py", line 288, in run
    node.execute()
  File "C:\Program Files (x86)\Renpy\renpy\ast.py", line 1590, in execute
    value = renpy.python.py_eval_bytecode(self.code.bytecode)
  File "C:\Program Files (x86)\Renpy\renpy\python.py", line 1321, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "game/script.rpy", line 4, in <module>
    "images/bgblack.png", NoTransition(1.0),
NameError: name 'NoTransition' is not defined

Windows-post2008Server-6.2.9200
Ren'Py 6.15.7.374
thats the output as the game fails to load at all.. is there something i did wrong??
my code:

Code: Select all

define eyeshut = MultipleTransition(
    False, dissolve(0.5),
    "images/bgblack.png", NoTransition(1.0),
    "images/bgblack.png", dissolve,
    True)

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Custom transition problem

#4 Post by Alex » Fri Sep 20, 2013 4:36 pm

Have no idea why "NoTransition" doesn't work... (one could check \renpy-6.15.4-sdk\renpy\display\transition.py to find out the problem), so try to use "Pause" instead as it mentioned next to "MultipleTransition" description and also put all those arguments inside brackets, like

Code: Select all

define logodissolve = MultipleTransition(
    (False, Dissolve(1.5), 
    "logo.png", Pause(1.0), 
    "logo.png", dissolve, 
    True)
    )

Post Reply

Who is online

Users browsing this forum: Bing [Bot]