Search found 927 matches

by Remix
Thu Sep 20, 2018 2:23 pm
Forum: Ren'Py Questions and Announcements
Topic: Disable sound of selected imagebuttons?
Replies: 4
Views: 55

Re: Disable sound of selected imagebuttons?

I guess _preferences.fullscreen is not evaluating true/false then as the following certainly works: screen test_hover_sound(): default test_val = 0 vbox: textbutton "Test": action SetScreenVariable("test_val", test_val+1) hover_sound ("audio/auto/default/completion_1_meghan.ogg" if test_val < 5 else...
by Remix
Wed Sep 19, 2018 6:08 am
Forum: Ren'Py Questions and Announcements
Topic: Disable sound of selected imagebuttons?
Replies: 4
Views: 55

Re: Disable sound of selected imagebuttons?

Maybe (untested)
hover_sound ("HOVER.wav" if selected else None)
or maybe
hover_sound ("HOVER.wav" if not _preferences.fullscreen else None)
by Remix
Mon Sep 17, 2018 12:45 pm
Forum: Ren'Py Questions and Announcements
Topic: Main Menu will not display Determinant Image
Replies: 2
Views: 94

Re: Main Menu will not display Determinant Image

Try moving the if:else logic to the hovered, so just one button with: hovered [ If( persistent.epilogue, Show("gui_mainmenu", my_picture="images/mainmenu ri_old_hover.png", my_tt_xpos=0, my_tt_ypos=0), Show("gui_mainmenu", my_picture="images/mainmenu ri_old_hover_full.png", my_tt_xpos=0, my_tt_ypos=...
by Remix
Thu Sep 13, 2018 6:48 pm
Forum: Ren'Py Questions and Announcements
Topic: How to skip straight to a section of code for faster debugging?
Replies: 3
Views: 81

Re: How to skip straight to a section of code for faster debugging?

--warp win+r, type cmd, press enter, cd to the launcher folder, type renpy.exe my_project --warp script.rpy:458 with that you'd likely want a bespoke after_warp label to setup variables and the like. In most instances, you are likely going to save more time than it takes to code by adding a develope...
by Remix
Thu Sep 13, 2018 5:24 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] TypeError: not all arguments converted during string formatting
Replies: 2
Views: 74

Re: TypeError: not all arguments converted during string formatting

imagebutton auto must include a %s to indicate the part of the image filename that Ren'Py substitutes for the states, e.g. auto "images/mainmenu_start_%s.png" would use "images/mainmenu_start_idle.png" while idle and "images/mainmenu_start_hover.png" while hovered and others for the other button sta...
by Remix
Tue Sep 11, 2018 10:07 am
Forum: Ren'Py Questions and Announcements
Topic: Class instance variable not changing
Replies: 14
Views: 269

Re: Class instance variable not changing

Are you overloading __getattribute__ in your class? If so, you'd want to determine if the attribute object supports __get__ and return that. Does Do() differentiate between callable methods and properties? Does it or anything else address the properties as callables? Realistically, without a slimmed...
by Remix
Tue Sep 11, 2018 7:32 am
Forum: Ren'Py Cookbook
Topic: Adding Stats to Characters ... easily
Replies: 9
Views: 2426

Re: Adding Stats to Characters ... easily

In some instances it likely will work philat, especially if you use an object that extends the Ren'Py store in some fashion or in some way alter the referenced bytespace of the object. I might have that entirely wrong, just the documentation seems to imply that referenced classes will not be saved u...
by Remix
Sun Sep 09, 2018 8:13 am
Forum: Ren'Py Questions and Announcements
Topic: How to set a variable while dragging a drag item from a draggroup?
Replies: 3
Views: 100

Re: How to set a variable while dragging a drag item from a draggroup?

Code: Select all

init python:

    def periodic_function():

        if not renpy.get_screen( "my_drag_screen" ): 

            return

        # actual drag code here that we only get to if the screen is showing
by Remix
Sat Sep 08, 2018 9:32 am
Forum: Ren'Py Questions and Announcements
Topic: How to set a variable while dragging a drag item from a draggroup?
Replies: 3
Views: 100

Re: How to set a variable while dragging a drag item from a draggroup?

There is no period callback within the drag-n-drop facility. You'd pretty much have to write one yourself, perhaps using the config.periodic_callback approach. Also note: In very recent nightlies an "activated" keyword has been added to drag-n-drop in order to reference a function that runs when a d...
by Remix
Fri Sep 07, 2018 9:18 am
Forum: We are a Free Project looking for Partners
Topic: Seeking gui artist and bg artist for Ren'Py Jam
Replies: 0
Views: 128

Seeking gui artist and bg artist for Ren'Py Jam

We are a small team entering the coming Ren'Py Jam with a project based on the idea of helping a stranded girl return from a ufo orbiting earth. Player input controls her using a basic point-n-click system with an inventory to manage usable items that she finds while endeavoring to find a way back h...
by Remix
Thu Sep 06, 2018 4:12 pm
Forum: Ren'Py Questions and Announcements
Topic: How to return the index of an array in a for loop?
Replies: 5
Views: 396

Re: How to return the index of an array in a for loop?

or...

Code: Select all

for idx, item in enumerate( arrayTest ):
    text "[idx] : [item]"
by Remix
Mon Sep 03, 2018 7:23 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved]How to read name from Character
Replies: 9
Views: 165

Re: [solved]How to read name from Character

Yup, basically if you pass in that first id thing and address an attribute of the class that does not exist it will check the character namespace for a reference reflecting the id and try to return the attribute from there instead :)
by Remix
Mon Sep 03, 2018 6:39 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved]How to read name from Character
Replies: 9
Views: 165

Re: How to read name from Character

Why a.name?
I said p.name

You have no character a
by Remix
Mon Sep 03, 2018 6:34 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved]How to read name from Character
Replies: 9
Views: 165

Re: How to read name from Character

p "My name is a.name" Should be: p "My name is [p.name]" ... class Player(BaseCharStats): def __init__(self, refchar): self.name = ?????? self.money = 500 Should be: class Player(BaseCharStats): STAT_DEFAULTS = { 'money' : 500, }