Ren'Py Gripes

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Ren'Py Gripes

#76 Post by PyTom » Wed Nov 16, 2011 10:48 am

What are you doing?

When you're in an interaction already, renpy.restart_interaction() is how you restart the screen. If you want to do a traditional event loop, you can try:

Code: Select all

while True:
    # update screen.
    renpy.pause(0)
[code]

Screen setup is fairly slow, however, so the while-loop approach isn't as good in Ren'Py as it is in pygame.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4067
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Re: Ren'Py Gripes

#77 Post by jack_norton » Wed Nov 16, 2011 10:57 am

My most recent gripe is that the autoupdater is not available yet. Had just to reupload 2 times 3 files of 50mb each with my ultrapoor connection and it was really painful :(
follow me on Image Image Image
computer games

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Ren'Py Gripes

#78 Post by PyTom » Wed Nov 16, 2011 10:58 am

Working on it - but the autoupdater will still require you to upload a 50mb file, at least once.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
netravelr
Miko-Class Veteran
Posts: 504
Joined: Thu Jan 28, 2010 2:31 am
Completed: Culina: Hands in the Kitchen, Culina: The Spirit of Cooking, Saving Zoey
Projects: Love at the Laundromat
Organization: Lakeview Interactive
Deviantart: netravelr
Location: USA
Contact:

Re: Ren'Py Gripes

#79 Post by netravelr » Wed Nov 16, 2011 11:11 am

So I'm implementing a store with my own version of a Tooltip with some extended functionality. I have a screen that I created that will show the stats that an item has when the player moves his mouse over a textbutton that I have created. So I have the screen change its values whenever a hovered event occurs, but it will only update whenever I call an interact function which can only happen at the end because otherwise the game will crash (you can't interact in an interact, or so I'm told.)

Some source code:

Code: Select all

        def showIngredientScreen(ingredient):
            #have to do this cause currentIngredient = ingredient doesn't work
            currentIngredient.name = ingredient.name
            currentIngredient.cost = ingredient.cost
            currentIngredient.healthiness = ingredient.healthiness
            currentIngredient.taste = ingredient.taste
            currentIngredient.speed = ingredient.speed
            currentIngredient.creativity = ingredient.creativity
            currentIngredient.quality = ingredient.quality
            renpy.show_screen("ingredientScreen");
            

....

if(storeType == "Buy"):
                            ui.at(Move((1.0, 0.0, .5,.0), (0.0, 0.0,.0,.0), 0.5))
                            ui.frame()
                            ui.text("{size=+18}Please select an item::{/size}")
                            ui.at(Move((1.0, 0.7, .5,1.0), (0.0, 0.7,.0,1.0), 0.5))
                            ui.side(['c', 'b', 'r'], spacing=5)
                            vp = ui.viewport(xmaximum=400, ymaximum=400, mousewheel = True)
                      
                            ui.vbox()
                            for element in paulStoreItems:
                                ui.textbutton(element.name, clicked=ui.returns(element),hovered=showIngredientScreen(element), xminimum = 400)
                            ui.textbutton("Nevermind", clicked=ui.returns("goback"))
                            ui.close()
                            ui.bar(adjustment=vp.xadjustment, style='scrollbar')
                            ui.bar(adjustment=vp.yadjustment, style='vscrollbar')
                            ui.close()
                
                            result = ui.interact()
Image
Technical Designer/Programmer
Game Design Portfolio - Project updates on my Twitter
Experienced in: C/C++/C#, Python, Unreal, Unity, and Flash
_________________
"Space can be very lonely. The greatest adventure is having someone share it with you."

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Ren'Py Gripes

#80 Post by PyTom » Wed Nov 16, 2011 11:36 am

If you call renpy.restart_interaction(), the values should update.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4067
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Re: Ren'Py Gripes

#81 Post by jack_norton » Wed Nov 16, 2011 11:39 am

PyTom wrote:Working on it - but the autoupdater will still require you to upload a 50mb file, at least once.
Of course, I know. But it's already a big step, today I uploaded it 2 times, when the changes were only a 5kb text file and was a bit of a waste of bandwidth/time :mrgreen:
follow me on Image Image Image
computer games

User avatar
gas
Miko-Class Veteran
Posts: 838
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Ren'Py Gripes

#82 Post by gas » Mon Nov 21, 2011 5:00 pm

Ren'py lack a "pushed" style for buttons and bars. I know, it's just a little quirk, but I would really enjoy a further Ren'py release where the interactive elements can have this kind of behaviour.
Like in Flash and Actionscript, where you can define a button/bar, with an image for the "pushed" state. The state change and stay until you press...well, can be easily seen by minimizing your web browser...
The interaction start when you stop pushing the button or with a given delay (even istantly).
So you will have different states for buttons:
Inactive
Inactive_hovered
Inactive_clicked
Active_idle
Active_hovered
Active_cliked

This would make buttons and other interactive elements more...ehr...interactive.
I dunno if I was good in the exposition, and I'm sure with some Python and Class "wrestling" is not so hard to achieve...but I risk to pass my life trying to do it.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Ren'Py Gripes

#83 Post by PyTom » Mon Nov 21, 2011 6:41 pm

That's a good idea. I probably will wait until I redo styles to implement it, but that's just a matter of time.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4067
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Re: Ren'Py Gripes

#84 Post by jack_norton » Mon Nov 21, 2011 6:52 pm

Ah another thing before I forget: possibility to change mouse pointer based on hovering a UI gadget (text/image button, area, etc)? Not much useful on VN but on dating sims and other games yes (for example an adventure, you hover the mouse over an item and becomes a looking-glass indicating the player the action that can be done). Probably would be enough an extra parameter to define the mouse change? like mouse_over="gfx/lookingglass.png" :)
follow me on Image Image Image
computer games

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Ren'Py Gripes

#85 Post by PyTom » Mon Nov 21, 2011 7:40 pm

It would probably be a style attribute. It would only work on buttons, bars, and hyperlinks.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4067
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Re: Ren'Py Gripes

#86 Post by jack_norton » Tue Nov 22, 2011 3:20 am

Maybe also for the new MouseArea? :)
follow me on Image Image Image
computer games

User avatar
backansi
Veteran
Posts: 224
Joined: Sun May 31, 2009 7:15 am
Location: Korea, Republic of
Contact:

Re: Ren'Py Gripes

#87 Post by backansi » Fri Dec 09, 2011 11:01 am

I hope Distribution tool can do filtering .rpy/.rpym files in common folder.

User avatar
backansi
Veteran
Posts: 224
Joined: Sun May 31, 2009 7:15 am
Location: Korea, Republic of
Contact:

Re: Ren'Py Gripes

#88 Post by backansi » Mon Jan 09, 2012 3:06 pm

...And I wish I could handle each character's namebox with Character class.

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Ren'Py Gripes

#89 Post by PyTom » Mon Jan 09, 2012 3:08 pm

backansi wrote:...And I wish I could handle each character's namebox with Character class.
Something similar to window_..., but for the name window?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
backansi
Veteran
Posts: 224
Joined: Sun May 31, 2009 7:15 am
Location: Korea, Republic of
Contact:

Re: Ren'Py Gripes

#90 Post by backansi » Mon Jan 09, 2012 3:18 pm

@PyTom
Yeah. I tried to do something with namebox design and I was surprised I can't change it with character class.
(and surprised again that I had not thought about it till this day.)
Anyway I think it seems unnatural that one can deal with window by character but cannot do the samething with namebox.

Post Reply

Who is online

Users browsing this forum: No registered users