Page 1 of 10

Ren'Py 6.11.0 Public Pre-Release

Posted: Mon Jul 19, 2010 3:53 pm
by PyTom
Okay, I've made Ren'Py 6.11 available as a pre-release from http://www.renpy.org/.

At this point, I'm trying to figure out where we're standing with regard to testing. Specifically, I'm wondering if there are any people left who are getting crashes in GL-mode, or other major crashes that would prevent you from running an otherwise-correct game.

Re: Ren'Py 6.11.0 Public Pre-Release

Posted: Sun Jul 25, 2010 8:25 pm
by PyTom
I just posted 6.11.0f. Changes include:

- Added sample screens to the documentation. (And also fixed several bugs in screen actions.)

http://www.renpy.org/doc/html/screen_special.html

- The documentation now explains what to do if Ren'Py has problem with the GL on your system.

http://www.renpy.org/doc/html/display_problems.html

- Transforms now pass events to child transforms.
- Movies are played back in unbuffered mode, which prevents skipping when looping a movie multiple times.
- Mugenjohncel's video card (S3 DeltaChrome with driver version 20) is now blacklisted.
- References to the store object can now be pickled.
- Fixed problems with text when line spacing is negative.
- Screenshots are taken only from the main thread. This fixes a crash on the mac.
- Screenshots are now taken in the correct aspect ratio, with letterboxing removed.

Once again, thanks to everyone who has tested 6.11, especially people who have found problems. As much as I hate having problems found, it beats them lurking undetected.

Re: Ren'Py 6.11.0 Public Pre-Release

Posted: Mon Jul 26, 2010 4:42 am
by Mihara
NVL mode extend fails to extend the line and messes up the window after a "window hide". (and maybe I should use "nvl hide" instead which doesn't cause this effect but I'm sure "window hide" shouldn't be doing that either...) A very similar effect often shows up after a Shift+R developer reload keypress.

Here's the minimal replication script:

Code: Select all

init:

   # Characters
   
   define narrator = NVLCharacter(None, kind = nvl,
       window_top_margin=6,
       window_bottom_margin=6,
       )
      
   # Quoted speech macro
   
   define q = NVLCharacter(None, kind = narrator,
       what_prefix = u'\u201c',
       what_suffix = u'\u201d',
       window_top_margin=1,
       window_bottom_margin=1,
       )

# The game starts here.
label start:

    nvl clear
    q "Here, extend..."
    # I normally put a sprite change here.
    extend "\n...works properly"
    
    window hide
    # some fullscreen visual stuff would be displayed here.
    window show
    
    nvl clear
    q "...but after a window hide..."
    # where I would put a second sprite change...
    extend "...it messes up, and the mess persists, screwing up the output!"     

Fixing extend not to display the extraneous suffix quote would also be very nice. :)

Re: Ren'Py 6.11.0 Public Pre-Release

Posted: Mon Jul 26, 2010 9:30 am
by Mihara
And more about events.

Code: Select all

    image foo:
        subpixel True
        contains:
            "foobase"
            around (0.5,0.5)
            anchor (0.5,0.5)
            easein 1 rotate 360

            on show:
                alpha 0.0
                linear 0.25 alpha 1.0
            on hide:
                alpha 1.0
                linear 0.25 alpha 0.0
        contains:
            "foobase"
            around (0.5,0.5)
            anchor (0.5,0.5)
            easein 1 rotate -360

            on show:
                alpha 0.0
                linear 0.25 alpha 1.0
            on hide:
                alpha 1.0
                linear 0.25 alpha 0.0
Events apparently don't get propagated inside contained blocks, whether I 'show at center' or just 'show'. Is that as intended?

Re: Ren'Py 6.11.0 Public Pre-Release

Posted: Mon Jul 26, 2010 9:58 am
by PyTom
Yes, that's as intended. Events only apply to the displayable being shown, not its children.

Re: Ren'Py 6.11.0 Public Pre-Release

Posted: Mon Jul 26, 2010 9:59 am
by Mihara
PyTom wrote:Yes, that's as intended. Events only apply to the displayable being shown, not its children.
It deserves a mention in the docs then. :)

Re: Ren'Py 6.11.0 Public Pre-Release

Posted: Tue Jul 27, 2010 5:14 am
by jack_norton
Was the mac-crash bug fixed? I'm asking because I could have that tester try the game again :)

Re: Ren'Py 6.11.0 Public Pre-Release

Posted: Tue Jul 27, 2010 5:30 am
by Jake
jack_norton wrote:Was the mac-crash bug fixed? I'm asking because I could have that tester try the game again :)
Wasn't it fixed in the second pre-release or something? I know recent 6.11s have run fine on my Macbook Pro.

Re: Ren'Py 6.11.0 Public Pre-Release

Posted: Tue Jul 27, 2010 8:07 am
by jack_norton
I had an user with a crash on 6.11e, maybe I lost the count of all the versions :D

Re: Ren'Py 6.11.0 Public Pre-Release

Posted: Tue Jul 27, 2010 9:46 am
by PyTom
Yes, the mac crash (which probably could have hit all platforms, but was driver dependent) was fixed.

EDIT: The problem was actually taking a screenshot from a second thread. Most of the time, this would work - but once in a while, it would conflict with another operation, and Ren'Py would crash.

Re: Ren'Py 6.11.0 Public Pre-Release

Posted: Tue Jul 27, 2010 3:45 pm
by Mihara
I think that's another one. :)

Code: Select all

# You can place the script of your game in this file.

init:
    # Declare images below this line, using the image statement.
    # eg. image eileen happy = "eileen_happy.png"

    # Declare characters used by this game.
    $ e = Character('Eileen', color="#c8ffc8")

screen main_menu:
    # The background of the main menu.
    window:
        style "mm_root"

    # The main menu buttons.
    frame:
        group "mm"
        anchor (1.0,0.0)
        pos (0.96,0.4)
        
        has vbox

        textbutton _("Start Game") action Start()
        textbutton _("Load Game") action ShowMenu("load")
        textbutton _("Preferences") action ShowMenu("preferences")
        textbutton _("Help") action Help()
        textbutton _("Quit") action Quit(confirm=False)     

# The game starts here.
label start:

    e "You've created a new Ren'Py game."

    e "Once you add a story, pictures, and music, you can release it to the world!"
Mostly consists of examples given in the docs as is.

Pressing Shift+Y to dump styles to actually figure out where do I have to kick it to draw what I want produces this traceback:

Code: Select all

I'm sorry, but an exception occured while executing your Ren'Py
script.

TypeError: 'NoneType' object is unsubscriptable

While running game code:
 - script at line 32 of C:\----------------\bugexample/game/script.rpy
 - python at line 200 of renpy-6.11.0/common/00library.rpy.

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

  File "C:\Gamedrive\RenPy\renpy\bootstrap.py", line 252, in bootstrap
  File "C:\Gamedrive\RenPy\renpy\main.py", line 309, in main
  File "C:\Gamedrive\RenPy\renpy\main.py", line 93, in run
  File "C:\Gamedrive\RenPy\renpy\execution.py", line 243, in run
  File "C:\Gamedrive\RenPy\renpy\ast.py", line 340, in execute
  File "C:\Gamedrive\RenPy\renpy\exports.py", line 562, in say
  File "C:\Gamedrive\RenPy\renpy\character.py", line 675, in __call__
  File "C:\Gamedrive\RenPy\renpy\character.py", line 634, in do_display
  File "C:\Gamedrive\RenPy\renpy\character.py", line 451, in display_say
  File "C:\Gamedrive\RenPy\renpy\ui.py", line 216, in interact
  File "C:\Gamedrive\RenPy\renpy\display\core.py", line 1586, in interact
  File "C:\Gamedrive\RenPy\renpy\display\core.py", line 2129, in interact_core
  File "C:\Gamedrive\RenPy\renpy\display\layout.py", line 638, in event
  File "C:\Gamedrive\RenPy\renpy\display\behavior.py", line 179, in event
  File "renpy-6.11.0/common/00library.rpy", line 200, in dump_styles
  File "C:\Gamedrive\RenPy\renpy\style.py", line 879, in write_text
TypeError: 'NoneType' object is unsubscriptable

While running game code:
 - script at line 32 of C:\---------------------\bugexample/game/script.rpy
 - python at line 200 of renpy-6.11.0/common/00library.rpy.

Ren'Py Version: Ren'Py 6.11.0f

Re: Ren'Py 6.11.0 Public Pre-Release

Posted: Tue Jul 27, 2010 6:21 pm
by Mihara
Aand, one more. After numerous Shift+R while messing with screens and trying to get them to look right, a crash:

Code: Select all

Traceback (most recent call last):
  File "renpy.py", line 140, in <module>
  File "C:\Gamedrive\RenPy\renpy\bootstrap.py", line 284, in bootstrap
  File "C:\Gamedrive\RenPy\renpy\__init__.py", line 142, in reload_all
  File "C:\Gamedrive\RenPy\renpy\__init__.py", line 102, in import_all
  File "C:\Gamedrive\RenPy\renpy\exports.py", line 45, in <module>
ImportError: No module named character
Running it again continued from where it would be on Shift+R.

Re: Ren'Py 6.11.0 Public Pre-Release

Posted: Tue Jul 27, 2010 11:08 pm
by shahab96

Code: Select all

## The background of the main menu. This can be a color
        ## beginning with '#', or an image filename. The latter
        ## should take up the full height and width of the screen.
        mm_root = "Images/Main Menu Background/WPP.jpg",

        ## The background of the game menu. This can be a color
        ## beginning with '#', or an image filename. The latter
        ## should take up the full height and width of the screen.
        gm_root = "",
Whenever mm_root and gm_root do not have the same values, i get this error

Code: Select all

I'm sorry, but an exception occured while executing your Ren'Py
script.

IndexError: string index out of range

After initialization, but before game start.

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

  File "D:\Shahab's Stuff\REN'PY Visual Novel Maker\renpy-6.11.0\renpy\bootstrap.py", line 252, in bootstrap
  File "D:\Shahab's Stuff\REN'PY Visual Novel Maker\renpy-6.11.0\renpy\main.py", line 268, in main
  File "D:\Shahab's Stuff\REN'PY Visual Novel Maker\renpy-6.11.0\renpy\style.py", line 611, in build_styles
  File "D:\Shahab's Stuff\REN'PY Visual Novel Maker\renpy-6.11.0\renpy\style.py", line 591, in build_style
  File "D:\Shahab's Stuff\REN'PY Visual Novel Maker\renpy-6.11.0\renpy\style.py", line 480, in expand_properties
  File "D:\Shahab's Stuff\REN'PY Visual Novel Maker\renpy-6.11.0\renpy\easy.py", line 47, in displayable_or_none
IndexError: string index out of range

After initialization, but before game start.

Ren'Py Version: Ren'Py 6.11.0f
It took me a while to figure out why it is happening. If it helps, I am using windows xp professional.

Re: Ren'Py 6.11.0 Public Pre-Release

Posted: Tue Jul 27, 2010 11:29 pm
by PyTom
The problem (admittedly reported poorly) is the empty string for gm_root.

Re: Ren'Py 6.11.0 Public Pre-Release

Posted: Wed Jul 28, 2010 11:44 am
by Mihara
I think that's another bug.

The following piece of code produces a RenPy that does not react to user input, including the window close button provided by the OS. You end up having to kill the task.

Commenting out the "unhovered Hide("tooltip")" makes it work as expected (but without removing the screen on unhover, which is what was desired).

Code: Select all

init:
    # Declare images below this line, using the image statement.
    # eg. image eileen happy = "eileen_happy.png"

    # Declare characters used by this game.
    $ e = Character('Eileen', color="#c8ffc8")

screen main_menu:
    
    # The background of the main menu.
    window:
        style "mm_root"

    # The main menu buttons.
    frame:
        group "mm"
        anchor (1.0,0.0)
        pos (0.98,0.4)
        
        has vbox
        
        textbutton _("Start Game") action Start() hovered Show("tooltip")  unhovered Hide("tooltip")
        textbutton _("Load Game") action ShowMenu("load")
        textbutton _("Quit") action Quit(confirm=False)

screen tooltip:
    frame:
        anchor (0.0,1.0)
        pos (0.02,0.6)
        has vbox

        text "Meh."
    
# The game starts here.
label start:

    e "You've created a new Ren'Py game."

    e "Once you add a story, pictures, and music, you can release it to the world!"