[SOLVED] A bug I completely don't understand - "0134/250" in a corner

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
Aureus
Veteran
Posts: 271
Joined: Sun Aug 06, 2017 4:49 am
Completed: The Tavern, Tales From Windy Meadow
Projects: Roadwarden
Organization: Moral Anxiety Studio
itch: moral-anxiety
Location: Breslau, Poland
Contact:

[SOLVED] A bug I completely don't understand - "0134/250" in a corner

#1 Post by Aureus » Sun Jul 24, 2022 1:33 pm

I was testing the recent version of the game and didn't notice when exactly did this happen - I was saving too sparingly and I don't have the starting point of this bug. I turned off all the screens I found, but I can't find the source of the issue.

Suddenly, in the corner of my screen has appeared a weird line of characters. It hides when I cover it with the game's main menu or a picture, but remains there as a part of this specific saved game.
1.png
1.png (23.46 KiB) Viewed 270 times
I can "grab" this line with my mouse and move it, though once it collides with some of the displayed screens or pictures, it locks its position. The text - 0134/250 - looks like this. (these letters are much smaller than any displayed line of text I use in the game)
2.png
2.png (18.53 KiB) Viewed 270 times
I don't expect anyone knows what this is, but do you have any tips how can I start to look for a solution?
Last edited by Aureus on Mon Jul 25, 2022 2:54 am, edited 1 time in total.
Tales From Windy Meadow - slice of life, pixel art Visual Novel set in a fantasy village. now available on Steam.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3636
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: A bug I completely don't understand - "0134/250" in a corner

#2 Post by Imperf3kt » Sun Jul 24, 2022 3:50 pm

Press shift D and the developer console can help find either the screen that is showing, or the variable name that is displaying so you can work out what is showing.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

User avatar
Aureus
Veteran
Posts: 271
Joined: Sun Aug 06, 2017 4:49 am
Completed: The Tavern, Tales From Windy Meadow
Projects: Roadwarden
Organization: Moral Anxiety Studio
itch: moral-anxiety
Location: Breslau, Poland
Contact:

Re: A bug I completely don't understand - "0134/250" in a corner

#3 Post by Aureus » Mon Jul 25, 2022 12:17 am

Oh, Shift+I shows the list of screens. That's nice.

So the culprit was the "screen _progress" which is hidden in the 00keymap.rpy file.
I have no mentions of this screen in my game. I didn't know it exists, I never summoned it.
Any ideas how it got displayed? For now I'll just replace the "[new] [seen]/[total]" with "" to make it invisible in case it ever shows up in the future.

Code: Select all

screen _progress:
    $ new = renpy.count_newly_seen_dialogue_blocks()
    $ seen = renpy.count_seen_dialogue_blocks()
    $ total = renpy.count_dialogue_blocks()

    drag:
        draggable True
        focus_mask None
        xpos 0
        ypos 0

        text "[new] [seen]/[total]":
            size 14
            color "#fff"
            outlines [ (1, "#000", 0, 0) ]
            alt ""
Tales From Windy Meadow - slice of life, pixel art Visual Novel set in a fantasy village. now available on Steam.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3636
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: A bug I completely don't understand - "0134/250" in a corner

#4 Post by Imperf3kt » Mon Jul 25, 2022 12:23 am

That screen shouldn't be possible to accidentally show.
Do you perhaps also use _performance and maybe mixed the two up when trying to show it?

The easiest way to check is to do a ctrl+F in all your script files and search for "_progress"
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

User avatar
Aureus
Veteran
Posts: 271
Joined: Sun Aug 06, 2017 4:49 am
Completed: The Tavern, Tales From Windy Meadow
Projects: Roadwarden
Organization: Moral Anxiety Studio
itch: moral-anxiety
Location: Breslau, Poland
Contact:

Re: A bug I completely don't understand - "0134/250" in a corner

#5 Post by Aureus » Mon Jul 25, 2022 2:54 am

Imperf3kt wrote:
Mon Jul 25, 2022 12:23 am
That screen shouldn't be possible to accidentally show.
Do you perhaps also use _performance and maybe mixed the two up when trying to show it?

The easiest way to check is to do a ctrl+F in all your script files and search for "_progress"
You helped me find the issue. Or rather - you made me convinced it was not a problem in my game files.
However, I found the solution on https://www.renpy.org/doc/html/keymap.html . Seems like [ 'alt_shift_K_p', 'meta_shift_K_p', 'K_F2' ] all make the _progress screen show up. I do remember me pressing F2 (and some other Fs) sometime during my playthrough, and now it works - pressing F2 either hides or displays this screen.

Thank you for the guidance, this issue go me super anxious.
Tales From Windy Meadow - slice of life, pixel art Visual Novel set in a fantasy village. now available on Steam.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], minyan