Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Wed May 22, 2013 1:11 pm

All times are UTC - 5 hours [ DST ]


Forum rules


Ren'Py support questions should go here. This forum is for discussing changes to Ren'Py itself.



Post new topic Reply to topic  [ 146 posts ]  Go to page 1, 2, 3, 4, 5 ... 10  Next
Author Message
PostPosted: Mon Jul 19, 2010 3:53 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10774
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
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.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Sun Jul 25, 2010 8:25 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10774
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
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.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Mon Jul 26, 2010 4:42 am 
Regular
User avatar

Joined: Thu Mar 11, 2010 2:52 pm
Posts: 113
Location: Moscow, Russia
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:
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. :)


Top
 Profile Send private message  
 
PostPosted: Mon Jul 26, 2010 9:30 am 
Regular
User avatar

Joined: Thu Mar 11, 2010 2:52 pm
Posts: 113
Location: Moscow, Russia
And more about events.

Code:
    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?


Top
 Profile Send private message  
 
PostPosted: Mon Jul 26, 2010 9:58 am 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10774
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
Yes, that's as intended. Events only apply to the displayable being shown, not its children.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Mon Jul 26, 2010 9:59 am 
Regular
User avatar

Joined: Thu Mar 11, 2010 2:52 pm
Posts: 113
Location: Moscow, Russia
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. :)


Top
 Profile Send private message  
 
PostPosted: Tue Jul 27, 2010 5:14 am 
Lemma-Class Veteran
User avatar

Joined: Mon Jul 21, 2008 5:41 pm
Posts: 3401
Projects: Planet Stronghold: Warzone, Loren The Amazon Princess, Queen Of Thieves, DIM, Undead Lily, and more...
Was the mac-crash bug fixed? I'm asking because I could have that tester try the game again :)

_________________
follow me on Image Image Image Image
computer games


Top
 Profile Send private message  
 
PostPosted: Tue Jul 27, 2010 5:30 am 
Support Hero
User avatar

Joined: Sat Jun 17, 2006 7:28 pm
Posts: 3767
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.

_________________
Image


Top
 Profile Send private message  
 
PostPosted: Tue Jul 27, 2010 8:07 am 
Lemma-Class Veteran
User avatar

Joined: Mon Jul 21, 2008 5:41 pm
Posts: 3401
Projects: Planet Stronghold: Warzone, Loren The Amazon Princess, Queen Of Thieves, DIM, Undead Lily, and more...
I had an user with a crash on 6.11e, maybe I lost the count of all the versions :D

_________________
follow me on Image Image Image Image
computer games


Top
 Profile Send private message  
 
PostPosted: Tue Jul 27, 2010 9:46 am 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10774
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
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.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Tue Jul 27, 2010 3:45 pm 
Regular
User avatar

Joined: Thu Mar 11, 2010 2:52 pm
Posts: 113
Location: Moscow, Russia
I think that's another one. :)

Code:
# 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:
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


Top
 Profile Send private message  
 
PostPosted: Tue Jul 27, 2010 6:21 pm 
Regular
User avatar

Joined: Thu Mar 11, 2010 2:52 pm
Posts: 113
Location: Moscow, Russia
Aand, one more. After numerous Shift+R while messing with screens and trying to get them to look right, a crash:

Code:
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.


Top
 Profile Send private message  
 
PostPosted: Tue Jul 27, 2010 11:08 pm 
Veteran
User avatar

Joined: Mon May 24, 2010 5:40 am
Posts: 224
Location: Lahore, Pakistan
Projects: Bloodlust Crusade RPG Game
Code:
## 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:
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.

_________________
The true measure of a man is what he does with his power.


Top
 Profile Send private message  
 
PostPosted: Tue Jul 27, 2010 11:29 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10774
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
The problem (admittedly reported poorly) is the empty string for gm_root.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Wed Jul 28, 2010 11:44 am 
Regular
User avatar

Joined: Thu Mar 11, 2010 2:52 pm
Posts: 113
Location: Moscow, Russia
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:
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!"
   


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 146 posts ]  Go to page 1, 2, 3, 4, 5 ... 10  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group