Problem: Buttons wont click in 8.2.0

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
richycapy
Regular
Posts: 56
Joined: Mon May 27, 2019 8:53 pm
Organization: EN Productions
Location: Mexico
Contact:

Problem: Buttons wont click in 8.2.0

#1 Post by richycapy »

Hi,

I been developing my game for over 4 years (give or take) so I started using RenPy and everytime there is an update, I download the newest version and work on it.

This latest version (Ren'Py 8.2.0) gave me a huge error, non of the buttons work!

Either

imagebutton or button

I have this age confirmation code:

Code: Select all

screen proceed():
    tag menu
    modal False
    imagebutton auto "images/gui/botones/intro-si-%s.png" xpos 453 ypos 530 activate_sound "sounds/fx/click.ogg" focus_mask True action Return()
    imagebutton auto "images/gui/botones/intro-no-%s.png" xpos 703 ypos 530 activate_sound "sounds/fx/click.ogg" focus_mask True action Quit(confirm=False)

...
scene imagen_splash intro_02 with Dissolve(0.5)
    $ renpy.pause(2, hard=True)
    call screen proceed
...    
And the if I move the mouse over the button, the other button image shows as normal, but you can press on it, no matter how many times I press on it, it doesnt make "click", and it doesnt continue.

Do I have to change the code in some way?

This problem also happens if I change my code to this:

Code: Select all

button xpos 453 ypos 530 action Return():
	background "images/gui/botones/intro-si-idle.png" hover_background "images/gui/botones/intro-si-hover.png"
The image does change went I hover the mouse, but it wont click. :(

Please help!

Thanks!!

User avatar
m_from_space
Miko-Class Veteran
Posts: 975
Joined: Sun Feb 21, 2021 3:36 am
Contact:

Re: Problem: Buttons wont click in 8.2.0

#2 Post by m_from_space »

richycapy wrote: Wed Jan 31, 2024 3:38 am

Code: Select all

screen proceed():
    tag menu
    modal False
    imagebutton auto "images/gui/botones/intro-si-%s.png" xpos 453 ypos 530 activate_sound "sounds/fx/click.ogg" focus_mask True action Return()
    imagebutton auto "images/gui/botones/intro-no-%s.png" xpos 703 ypos 530 activate_sound "sounds/fx/click.ogg" focus_mask True action Quit(confirm=False)

...
scene imagen_splash intro_02 with Dissolve(0.5)
    $ renpy.pause(2, hard=True)
    call screen proceed
...    
Hmm, I am not so sure why your buttons don't work. Did you change anything else? Some comments:

1. modal False is not necessary, because modal is False by default
2. tag menu is only necessary if you're inside the main menu
3. What's with the strange indentation? I hope it's part of any label, like this:

Code: Select all

label start:
    ...
    scene imagen_splash intro_02 with Dissolve(0.5)
    $ renpy.pause(2, hard=True)
    call screen proceed
    ...

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: Problem: Buttons wont click in 8.2.0

#3 Post by PyTom »

Can you put together a demo of the problem? Buttons work in most places.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
richycapy
Regular
Posts: 56
Joined: Mon May 27, 2019 8:53 pm
Organization: EN Productions
Location: Mexico
Contact:

Re: Problem: Buttons wont click in 8.2.0

#4 Post by richycapy »

Hello, so, I started a new game and works perfectly, the only issue is when I use my old game with the new RenPy, the game is 4 years old but I been updating it everytime a new RenPy is out, and just for some minore issues when I jump from 7 to 8, but nothing to bad, until now.

I don't know what can I send you? Since none of the buttons work, neiter the start menu.

I was planning on starting a new game and slowly move code by code and see what happens :/

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: Problem: Buttons wont click in 8.2.0

#5 Post by PyTom »

If you figure out what caused the problem, let me know. It's hard to think of anything that could cause this, but it's clearly happening, so I'd like to fix it.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
richycapy
Regular
Posts: 56
Joined: Mon May 27, 2019 8:53 pm
Organization: EN Productions
Location: Mexico
Contact:

Re: Problem: Buttons wont click in 8.2.0

#6 Post by richycapy »

Hi, well I started a new game and slowly copied the old game into the new game, and I noticed A LOT of different variables; So I took this opportunity to remove old elements and update newer elements, like UI.INPUT to RENPY.INPUT, among other things which were very old;

After copying the entire game, it ran without problems. Probably some old command or an obsolete variable was causing this, but it's hard to know what it was :( but at least it works fine now :D

Thank you very much for your help!

Post Reply

Who is online

Users browsing this forum: Lucyper, Majestic-12 [Bot]