Page 1 of 1

4.8.x error ?

Posted: Sat May 21, 2005 9:54 am
by dales
I add the gallery.rpy into games directory, run run_game.exe. I choose Gallery first (in the main menu), then return main menu. Click on Start a new game ->>> crash!

Here the traceback.txt:
I'm sorry, but an exception occured while executing your Ren'Py
script.

JumpOutException: start

The last script statement executed was on line 51 of common/mainmenu.rpy.

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

File "run_game.py", line 62, in main
File "renpy\main.pyc", line 162, in main
File "renpy\main.pyc", line 125, in run
File "renpy\execution.pyc", line 76, in run
File "renpy\ast.pyc", line 253, in execute
File "renpy\python.pyc", line 678, in py_exec_bytecode
File "common/mainmenu.rpy", line 73, in <module>
File "renpy\ui.pyc", line 46, in interact
File "renpy\display\core.pyc", line 715, in interact
File "renpy\display\core.pyc", line 971, in interact_core
File "renpy\display\layout.pyc", line 117, in event
File "renpy\display\transition.pyc", line 73, in event
File "renpy\display\layout.pyc", line 117, in event
File "renpy\display\layout.pyc", line 117, in event
File "renpy\display\layout.pyc", line 117, in event
File "renpy\display\layout.pyc", line 117, in event
File "renpy\display\layout.pyc", line 117, in event
File "renpy\display\layout.pyc", line 117, in event
File "renpy\display\behavior.pyc", line 220, in event
File "renpy\curry.pyc", line 16, in __call__
File "renpy\ui.pyc", line 521, in _jumpsoutofcontext
JumpOutException: start

The last script statement executed was on line 51 of common/mainmenu.rpy.

Ren'Py Version: Ren'Py 4.8.4
4.8 doesn't have this error. I'm now using this version because i like the gallery mode (thanks for this 8) )

Posted: Sat May 21, 2005 12:26 pm
by PyTom
This bug is caused by the change in menu contexts that occured sometime in the 4.8 series. (I'm too lazy to look up the exact revision.)

The fix for it is fairly simple. Edit gallery.rpy, and change the line:

Code: Select all

        library.main_menu.insert(2, ("CG Gallery", "gallery"))
to

Code: Select all

        library.main_menu.insert(2, ("CG Gallery", ui.jumps("gallery")))
This line is found towards at very bottom of the file, as the fourth-to-last line.

I'll release this fix in the next release of Ren'Py, but since I have no idea when that will be, you may want to make the change by hand for now. (This goes for anyone who wants to use gallery support.)

I'm glad you like the gallery support. If you can think of a way to improve it, or anything else in Ren'Py, please let me know.

Posted: Wed May 25, 2005 7:22 am
by dales
Thanks, i'll try it :lol:

I have some requets about gallery mode: could you make more gallery styles ?
-Instead of of text button, you can use imagemap. Each hotspot is sub gallery. This style is cool 8)

-You can make a slideshow gallery. When click on the sub gallery, the pictures will automatically or manual go to the next. This style is used in the game True love, May club...

Again, i'm very thank you for the Ren'Py, the best one for making love game :P

Posted: Wed May 25, 2005 11:15 am
by PyTom
I don't think it would be that hard to make either variant of gallery. Right now, the primary purpose of gallery.rpy is to let people know, "Ren'Py can do galleries."

If you get close to finishing a game, and want an improved gallery, then let me know, and I'll code it up for you. The problem is, I have a limited amount of time and there are a large number of possible gallery variants I can implement. So I prioritize requests by people who are close to finishing a game, or who have a track record of finishing games.