Page 5 of 8

Re: Ren'Py 6.14 Pre-Releases

Posted: Sat Jul 28, 2012 5:52 pm
by Hijiri
Image

Re: Ren'Py 6.14 Pre-Releases

Posted: Sat Jul 28, 2012 6:04 pm
by PyTom
Thanks. I'll work on a fix tonight.

Re: Ren'Py 6.14 Pre-Releases

Posted: Sat Jul 28, 2012 10:27 pm
by Camille
I'm using a fairly new Mac (2011 iMac) with Mountain Lion and there's no memory leak as far as I can tell. I've left the app open for almost an hour. The app was at 47MB just as it opened, but stabilized at about 55MB and has basically stayed there... It fluctuates between 53.5MB and 54.9MB from time to time, but never goes above 55MB even after I launch a game.

This is the first time I've actually looked at the memory usage for Ren'Py, but as far as I remember using it, I don't think I've ever experienced a slow-down of my computer after keeping the launcher open. Sometimes I'd leave it open for 5-8 hours at a time, too. ^^;

Re: Ren'Py 6.14 Pre-Releases

Posted: Sun Jul 29, 2012 4:27 am
by jack_norton
I did a new test since previous one was only for 10-15min: started at 79mb, using 7% of CPU even if was idle, after 1hour is stable too, fluctuating between 83-85mb. So it was a false alarm, sorry :oops:

Re: Ren'Py 6.14 Pre-Releases

Posted: Sun Jul 29, 2012 7:40 am
by jack_norton
Was wondering also if was possible to do some callback for the missing audio files? I know is a bad idea, but for example for Bionic Heart I had voiced/unvoiced version, and in the unvoiced simply I was not adding the voices.rpa archive, but I left all the voice statement (was a pain to remove them all from the game). Not a top priority but it would be nice if I could choose what happens when renpy can't find a voice file (like it happens for graphic files). Thanks!

Re: Ren'Py 6.14 Pre-Releases

Posted: Sun Jul 29, 2012 7:44 am
by Ziassan
Having toi deal with this voice/unvoiced thing by the past, I remember using a personalized/customized or rewritten voice function which played the voice only if $voice_version was true. If ever there are no other solutions.

Re: Ren'Py 6.14 Pre-Releases

Posted: Sun Jul 29, 2012 8:03 am
by jack_norton
Hmm yes you're right, with a search/replace for every voice command I could probably solve the problem this way, true!

Re: Ren'Py 6.14 Pre-Releases

Posted: Sun Jul 29, 2012 12:49 pm
by PyTom
So far, I've been unable to repeat the memory leak on my mac. So far, it looks like for everyone who's provided numbers, Ren'Py has been stable with memory usage, modulo garbage collection.

Samidarenina, did you see it going up with numbers, or is the memory leak more of an impression based on feel?

Re: Voicing

The voice statement is implemented as a call to the voice function. So you can just override the voice function to make it do what you want to.

Code: Select all

init python:
    def voice(fn):
        if not voiced:
            return
        renpy.music.play(fn, channel="voice")

Re: Ren'Py 6.14 Pre-Releases

Posted: Sun Jul 29, 2012 2:45 pm
by jack_norton
Cool, thanks that is the best solution :)

Re: Ren'Py 6.14 Pre-Releases

Posted: Sun Jul 29, 2012 3:15 pm
by Samidarenina
I definately saw numbers, but I quickly shut down the app when I've noticed it was at fault. The speed returned to normal and I immediately felt sorry for not making a screenshot.
I've tried replicating it, but had no luck so far.

Re: Ren'Py 6.14 Pre-Releases

Posted: Sun Jul 29, 2012 5:41 pm
by PyTom
Well, if it happens again - to anyone - please try to remember what you were doing. Also, please take a screenshot of the numbers.

Re: Ren'Py 6.14 Pre-Releases

Posted: Sun Jul 29, 2012 10:30 pm
by PyTom
I've posted 6.14.0.312.

The big improvement in this release is that the updater is a lot more robust to existing files. If you have trouble updating, please download the latest version of the updater (attached, and newer than the one posted above), place it into common, and it should fix things for you.

There was a change to renpy.get_game_runtime, so that it now only includes runtime in the main context. (When the user is playing the game.) Previously, it would include time in the main context and the current menu, which didn't make a lot of sense when called from inside a menu.

Finally, I added a few new screen functions, and changed a few screen actions. The result is that it's now fairly simple to build a save screen where the user can click to create a new save slot, using code like:

Code: Select all

screen file_picker:

    frame:
        style "file_picker_frame"

        yfill True
        xmaximum 400

        has vbox

        # The buttons at the top allow the user to pick a
        # page of files.
        hbox:
            style_group "file_picker_nav"
            
            textbutton _("Saves"):
                action FilePage(1)

            textbutton _("Auto"):
                action FilePage("auto")

            textbutton _("Quick"):
                action FilePage("quick")

        viewport:
            scrollbars "vertical"
            mousewheel True

            has vbox

            textbutton _("+ New Slot") action FileAction(None) xfill True

            for slot in FileUsedSlots(highest_first=(FileCurrentPage() not in [ "auto", "quick" ])):
                
                button:
                    action FileAction(slot)
                    xfill True

                    has hbox

                    # Add the screenshot.
                    add FileScreenshot(slot)
                    
                    # Format the description, and add it as text.
                    $ description = "%s\n%s" % (
                        FileTime(slot),
                        FileSaveName(slot))

                    text description

                    key "save_delete" action FileDelete(i)
Please update to the in-game updater, and let me know if this is working for you. I'm hoping to move to a public pre-release in a day or so, and then get 6.14 out there.

Thanks again to everyone who's been testing these pre-releases.

Re: Ren'Py 6.14 Pre-Releases

Posted: Sun Jul 29, 2012 10:59 pm
by Hijiri
Either I'm doing something wrong, or your updater hates me, because:
Image
Tell me if I should try anything else, otherwise I think I'll just download the update straight from the site and see if anything broken in that one as well.

EDIT: It actually managed to get 1% downloaded before it said "The update could not be downloaded" (This happened after I went to the sdk file I had and put everything from that into my folder, then added the update fix)

EDIT2: Aaand it goes back to not updating at all again.

Code: Select all

running ['C:\\Documents and Settings\\Kira\\Desktop\\renpy\\lib\\windows-x86\\zsync.exe', '-o', 'C:\\Documents and Settings\\Kira\\Desktop\\renpy\\update\\sdk.update.new', '-k', 'C:\\Documents and Settings\\Kira\\Desktop\\renpy\\update\\sdk.zsync', '-i', 'C:\\Documents and Settings\\Kira\\Desktop\\renpy\\update\\sdk.update.new.part.old', '-i', 'C:\\Documents and Settings\\Kira\\Desktop\\renpy\\update\\sdk.update', 'http://update.renpy.org/prerelease/renpy-6.14.0-sdk.zsync']
read: No such file or directory
freespace 64506839040
EOF from /prerelease/renpy-6.14.0-sdk.update.gz
failed to retrieve from renpy-6.14.0-sdk.update.gz
Aborting, download available in C:\Documents and Settings\Kira\Desktop\renpy\update\sdk.update.new.part
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
partfile does not exist
Traceback (most recent call last):
  File "common\00updater.rpy", line 286, in run
  File "common\00updater.rpy", line 377, in update
  File "common\00updater.rpy", line 884, in download
UpdateError: The update file was not downloaded.
Image
This is the file that it apparently says dosen't exist

Re: Ren'Py 6.14 Pre-Releases

Posted: Sun Jul 29, 2012 11:09 pm
by Camille
After this update, the TODOs don't work quite right... It used to be that clicking on the TODO in the launcher would go straight to that line in the code. Now it opens up the file that the TODO is in, but doesn't go to the specific TODO line anymore.

Re: Ren'Py 6.14 Pre-Releases

Posted: Sun Jul 29, 2012 11:16 pm
by PyTom
Hijiri wrote:Either I'm doing something wrong, or your updater hates me, because:
Image
Tell me if I should try anything else, otherwise I think I'll just download the update straight from the site and see if anything broken in that one as well.

EDIT: It actually managed to get 1% downloaded before it said "The update could not be downloaded" (This happened after I went to the sdk file I had and put everything from that into my folder, then added the update fix)

EDIT2: Aaand it goes back to not updating at all again.
Please post updater/log.txt again, then delete the .part and .old files in the updater directory.

Camille:

There are a couple things I ask you to try:

1) Try hitting refresh on the TODOs screen. Does it fix the problem?

2) Do other screens, like the labels screen, work?

3) Is your editor set to Editra or jEdit, rather than the system editor?