Search found 1839 matches

by Ocelot
Thu Sep 29, 2022 2:39 pm
Forum: Ren'Py Questions and Announcements
Topic: defining style via python with different parent than style.default
Replies: 5
Views: 59

Re: defining style via python with different parent than style.default

Try Style("whatever") instead. If it fails too, use default style and call .set_patent later.
by Ocelot
Thu Sep 29, 2022 2:02 pm
Forum: Ren'Py Questions and Announcements
Topic: defining style via python with different parent than style.default
Replies: 5
Views: 59

Re: defining style via python with different parent than style.default

What happens if you use 5 as init priority for Python code?
by Ocelot
Thu Sep 29, 2022 3:57 am
Forum: Ren'Py Questions and Announcements
Topic: Making something happen with bars
Replies: 1
Views: 45

Re: Making something happen with bars

You can use: a) changed property of bar itself: https://www.renpy.org/doc/html/screens.html#bar changed If given, this should be a Python function. The function is called with the value of the adjustment when the adjustment is changed. b) changed member of associated adjustment: https://www.renpy.or...
by Ocelot
Wed Sep 28, 2022 7:21 pm
Forum: Ren'Py Questions and Announcements
Topic: Call / Call Screen error
Replies: 3
Views: 54

Re: Call / Call Screen error

Is this a complete error message? It looks like part of backtrace with actual error missing.
by Ocelot
Tue Sep 27, 2022 6:46 am
Forum: Ren'Py Questions and Announcements
Topic: just setting variable to True only affects - see code
Replies: 8
Views: 104

Re: just setting variable to True only affects - see code

In short, it is becaue you used define if you change it to defaukt there, issue should disappear. A longer explanation: when you create varaibles using define RenPy considers them unchangeable and does not check if they are changed if they are still in cache somewhere. So changes are not always visi...
by Ocelot
Tue Sep 27, 2022 3:49 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Possible To Directly Link To An External URL From The Player Choice Menu?
Replies: 3
Views: 57

Re: Possible To Directly Link To An External URL From The Player Choice Menu?

And to explain what you see: In the end "Text 1" is not a choice. Choices have a colon after them and a block below them. That was not a choice, but a menu heading. By default it is displayed by say screen. You can change configuration to display it as first insensetive choice instead if you want. I...
by Ocelot
Mon Sep 26, 2022 9:50 am
Forum: Ren'Py Questions and Announcements
Topic: My project doesn't start anymore
Replies: 6
Views: 124

Re: My project doesn't start anymore

What is the date of creation of error.txt? Is it old (like previous working version was) or is it new, like the time you tried to launch the game last time?
by Ocelot
Sun Sep 25, 2022 6:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Centering text inside a frame [solved]
Replies: 2
Views: 67

Re: Centering text inside a frame

Set frame size explicitely. By default frame will be just as large as largest child, in your case it would be as large, as contained text. Text is not moved, because there is no place for it to move.
by Ocelot
Sun Sep 25, 2022 3:11 pm
Forum: Ren'Py Questions and Announcements
Topic: How can I use "if" to make the quick menu TRUE and FALSE?
Replies: 1
Views: 64

Re: How can I use "if" to make the quick menu TRUE and FALSE?

The most optimal way would be to modify quick_menu screen to not display itself while in replay:
if quick_menu:if quick_menu and not _in_replay:
by Ocelot
Sun Sep 25, 2022 2:36 am
Forum: Ren'Py Questions and Announcements
Topic: Why can't I change a variable in a list?
Replies: 4
Views: 114

Re: Why can't I change a variable in a list?

This is to be expected: there is no variable nums[0] . There is variable nums which can be indexed to acccess another object, but does not make nums[0] a valid variable name. Even in Python anything accessing variables by name will break on trying to access object at list index. Just use Function wi...
by Ocelot
Sat Sep 24, 2022 1:42 pm
Forum: Ren'Py Questions and Announcements
Topic: Python & Renpy = PHP & CSS ?
Replies: 2
Views: 95

Re: Python & Renpy = PHP & CSS ?

1) you can call specific labels for specific scenes and even pass argument to them 2) you can define sequences of animation controlled by arguments. 3) You can define screens with animations and arguments something like: label scary_scene(times=5): scene show eye_blink show black with dissolve while...
by Ocelot
Fri Sep 23, 2022 4:53 pm
Forum: Ren'Py Questions and Announcements
Topic: TypeError: can only concatenate str (not "bool") to str
Replies: 7
Views: 131

Re: TypeError: can only concatenate str (not "bool") to str

Slightly changed code: @property def Output(self): potato = "Var1Att" if self.var1 else "unknown" butterflies = "Var2Att" if self.var2 else "unknown" return "var1: %s{p}var2: %s" % (potato, butterflies) Does that makes it more clear? var1 and var2 in that function wele local variables of the Output ...
by Ocelot
Thu Sep 22, 2022 5:22 pm
Forum: Ren'Py Questions and Announcements
Topic: Alternative dialogue when a CG appears.
Replies: 3
Views: 143

Re: Alternative dialogue when a CG appears.

Make an alterantive say screen (with quock menu moved, background and side images removed) for use with CG and use say with arguments to select it during CG: ano "of course. Make yourself comfortable." # . . . show cg of_some_kind higa Let me help you with the cooking!" (screen="your_new_screen") ht...