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 12:31 am

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  [ 7 posts ] 
Author Message
PostPosted: Thu Nov 24, 2011 5:16 pm 
Regular

Joined: Tue Dec 30, 2008 9:18 am
Posts: 129
Projects: iichan erogame
Something strange happens, when i try to call lots of ui.bar()'s inside a ui.viewport():
* visible part of ui.viewport() is filled with properly drawn ui.bar()'s
* invisible ui.bars()'s are never rendered, even when i scroll to them

I'm using RenPy 6.13.7.1646 under windows 7.

Maybe I'm doing something terribly wrong, but it looks like a bug I'd like to be fixed.
Core part of my project is attached to reproduce it (only left frame is filled by two sample plugins).


I also get this text in renpy.exe.log, maybe it's my fault, maybe it's somehow related, but I'm not sure how:
Code:
Exception in thread Thread-1:
Traceback (most recent call last):
  File "threading.pyo", line 532, in __bootstrap_inner
  File "threading.pyo", line 484, in run
  File "c:\renpy\renpy\loadsave.py", line 328, in autosave_thread
  File "c:\renpy\renpy\loadsave.py", line 157, in save
  File "c:\renpy\renpy\loadsave.py", line 46, in dump
PicklingError: Can't pickle <type 'function'>: attribute lookup __builtin__.function failed


Attachments:
renpy_ui_bar_fail.png
renpy_ui_bar_fail.png [ 102.88 KiB | Viewed 620 times ]
tangenpy.core.zip [6.66 KiB]
Downloaded 17 times
Top
 Profile Send private message  
 
PostPosted: Mon Nov 28, 2011 2:52 pm 
Regular

Joined: Tue Dec 30, 2008 9:18 am
Posts: 129
Projects: iichan erogame
help!


Top
 Profile Send private message  
 
PostPosted: Mon Nov 28, 2011 7:11 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
Can you try setting the child_size parameter of the viewport to something absurdly large, like (65535, 65535)?

_________________
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 Nov 29, 2011 2:11 am 
Regular

Joined: Tue Dec 30, 2008 9:18 am
Posts: 129
Projects: iichan erogame
It works!
Code:
        vp_plugin = ui.viewport(mousewheel=True,child_size=(500, 65535))
        active_plugin["interface"]()


Is it a good idea to leave something like this in production code? Or you would provide a better solution later?


Top
 Profile Send private message  
 
PostPosted: Tue Nov 29, 2011 2:56 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
There's no problem with this in production code, although I may look into a fix for this at some point. (It may be something as simple as supporting xminimum and yminimum on bars.)

_________________
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 Dec 04, 2011 1:52 pm 
Regular

Joined: Tue Dec 30, 2008 9:18 am
Posts: 129
Projects: iichan erogame
Do you have any ideas, why do I get this exceptions on exit?


Top
 Profile Send private message  
 
PostPosted: Sun Dec 04, 2011 2:03 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 exception comes from trying to save something that isn't savable. Consider setting config.use_cpickle = False to get a better error.

_________________
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  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

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