Search found 123 matches

by jeffster
Wed Oct 06, 2021 4:14 am
Forum: Ren'Py Questions and Announcements
Topic: Issues with Alpha Mask for a Character Creaation Script
Replies: 10
Views: 395

Re: Issues with Alpha Mask for a Character Creaation Script

Let's see the error message: File "game/Appearance.rpy", line 331, in <module> attribute ear default AlphaMask("Sprites/full/Alpha_0_[pose]_[hair].png") TypeError: __init__() takes exactly 3 arguments (2 given) It says that function __init__ expects 3 parameters, but you gave her only 2, and she has...
by jeffster
Wed Oct 06, 2021 3:51 am
Forum: Ren'Py Questions and Announcements
Topic: Problem with button sliding animation [Solved]
Replies: 4
Views: 409

Re: Problem with button sliding animation

I would advise to use action ToggleVariable("menuOpen") instead of SetVariable( "menuOpen", (True if menuOpen == False else False) ) and put "at slideLeft" / "at slideRight" on separate lines. And use non-negative xpos. Anyways, your example works well on my computer, sliding forth and back, so I do...
by jeffster
Mon Oct 04, 2021 9:41 am
Forum: Ren'Py Questions and Announcements
Topic: layeredimage moves to the left, when ATL image added
Replies: 1
Views: 309

Re: layeredimage moves to the left, when ATL image added

It seems that images in ATL animations inherit properties from each other, such as positions, offsets etc. I had unexpected results trying to build animations from several pictures, with different offsets etc., spending whole day, until I got advice to use images of the same size. So maybe that's th...
by jeffster
Mon Oct 04, 2021 9:22 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Scrollbar in the music room
Replies: 6
Views: 508

Re: Scrollbar in the music room

You were right to correct the "has vbox" indentation. Yes, side should have 2 members. The 1st is the viewport. The second should be the scrollbar. What's inside the viewport doesn't count. As long as its indentation is correct, it's just parts of viewport. So the correct code must be: side "c r": v...
by jeffster
Mon Oct 04, 2021 9:14 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]How can I set fullscreen mode as default?
Replies: 2
Views: 272

Re: How can I set fullscreen mode as default?

You can always search the docs on renpy.org:

https://www.renpy.org/doc/html/preferen ... fullscreen

preferences.fullscreen = False
by jeffster
Sat Oct 02, 2021 4:29 am
Forum: Ren'Py Questions and Announcements
Topic: Persistent delete
Replies: 6
Views: 362

Re: Persistent delete

Screen code is harder to debug, because call stack usually does not contain information on exact line or even on displayables, but from your error message you can infer that problem occures in some kind of bar . Yeah. Maybe there is some problem with some BarValue or adjustment, or maybe it's just ...
by jeffster
Sat Oct 02, 2021 4:23 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How Do I Select Buttons and Focus Buttons in Renpy?
Replies: 10
Views: 515

Re: How Do I Programmatically Select A Button?

Theoretically, there is default_focus https://www.renpy.org/doc/html/screens.html#user-interface-statements So I tried to make it work like this: textbutton "Button 0": default_focus focus_0 action [ SetVariable("selected_button", 0), SetVariable("focus_0", True), SetVariable("focus_1", False), SetV...
by jeffster
Sat Oct 02, 2021 3:28 am
Forum: Ren'Py Questions and Announcements
Topic: Menu Image Looks Washed Out?
Replies: 5
Views: 355

Re: Menu Image Looks Washed Out?

I'm not sure that I see the difference in these 2 pictures you posted. Maybe the colors are a bit less saturated? As far as I know, Ren'Py doesn't change the images, just shows them as they are. Unless the window size (or the screen resolution in Fullscreen mode) differs from the native picture reso...
by jeffster
Fri Oct 01, 2021 12:56 pm
Forum: Ren'Py Questions and Announcements
Topic: How to add Variable Text in Layered Image
Replies: 9
Views: 377

Re: How to add Variable Text in Layered Image

Also, I think that screen prediction and image prediction can affect values we try to show.

We might need some tricks to ensure that the variables we use are (at least somehow) defined when the screen runs at the prediction stage, and that they are initialized properly when the screen actually shows.
by jeffster
Fri Oct 01, 2021 10:35 am
Forum: Ren'Py Questions and Announcements
Topic: Developer Tools problems
Replies: 2
Views: 351

Re: Developer Tools problems

On the console, you can use the 'long' command to avoid shortening. I don't believe there's a way to do it in the inspector. Thank you, that's great. Dump_styles has been removed, but the keybind is there for a backwards compatibility reason. It's in the current documentation though. https://www.re...
by jeffster
Fri Oct 01, 2021 10:32 am
Forum: Ren'Py Questions and Announcements
Topic: How to add Variable Text in Layered Image
Replies: 9
Views: 377

Re: How to add Variable Text in Layered Image

Composite first argument is size of the picture to create. Next arguments are pairs of position in that picture and the sub-picture to blit in that position. This here: image hud truckhealth_withtext = Composite( (0,0), (0,0), "images/hud/hud_truckhealth.png", (0,0), Text("{font=font/SweetCupcake.tt...
by jeffster
Fri Oct 01, 2021 5:11 am
Forum: Ren'Py Questions and Announcements
Topic: Is there any way to make customizing combination keys?
Replies: 1
Views: 270

Re: Is there any way to make customizing combination keys?

I think it's possible to add a custom "key" to the keymap, and then use that key in screens.

https://www.renpy.org/doc/html/keymap.html

Another (more complex) way to manage keys is to use pygame events:

https://www.renpy.org/wiki/renpy/doc/co ... onami_Code
by jeffster
Fri Oct 01, 2021 3:51 am
Forum: Ren'Py Questions and Announcements
Topic: How to add Variable Text in Layered Image
Replies: 9
Views: 377

Re: How to add Variable Text in Layered Image

Try Composite instead of LiveComposite. Also, the first argument should be size, not position.
by jeffster
Fri Oct 01, 2021 3:23 am
Forum: Ren'Py Questions and Announcements
Topic: Persistent delete
Replies: 6
Views: 362

Re: Persistent delete

The error message says that "value" is None in this operation: value -= self.offset while running get_adjustment() in file "renpy/common/00barvalues.rpy", line 285. In case this error was caused by some previously compiled codes, try to delete all the files in "game/cache" folder and all the *.rpyc ...
by jeffster
Thu Sep 30, 2021 6:51 am
Forum: Ren'Py Questions and Announcements
Topic: Persistent delete
Replies: 6
Views: 362

Re: Persistent delete

The manual says: Confirm(prompt, yes, no=None, confirm_selected=False) Prompts the user for confirmation of an action. If the user clicks yes, the yes action is performed. So what you are trying to invoke as an action: persistent._clear(progress=False) is not a standard action. The manual says: Alon...