Page 1 of 1

Strange bug on renpy's new GUI

Posted: Mon Nov 21, 2016 3:36 pm
by firecat
I am reworking my past novels into renpy's new gui but it would seem like there is a strange bug on it. My code (RPG Homebrew: viewtopic.php?f=51&t=35974) does work well with the new gui but add dialog before any battle like this:

Code: Select all

label start:
    
    "meow!"
    "fight or die"
    
    $ potions_left = 10
    with None
    jump fight
    
label fight:
    
    python:
        
        heromax_HP = 1000
        hero_HP = 1000
        
        tigermax_HP = 2000
        tiger_HP = 2000
        
        extramax_HP = 9000
        extra_HP = 9000
        
        evilmax_HP = 5000
        evil_HP = 5000

        while True:
            
            stats_frame("ExtraP", 9, extra_HP, extramax_HP, xalign=0.20, yalign=0.05)
            stats_frame("Tiger", 4, tiger_HP, tigermax_HP, xalign=0.98, yalign=0.8)
            stats_frame("Hero", 1, hero_HP, heromax_HP, xalign=0.02, yalign=0.05)
            stats_frame("Evil", 5, evil_HP, evilmax_HP, xalign=0.80, yalign=0.8)
            battle("win", "lose", hero_HP, extra_HP, tiger_HP, evil_HP, xalign=0.5, yalign=0.5)
            
label win:
    
    "yay"
    
    return
    
label lose:
    
    "noo"
    
    return
The Textbox will not go away, it's stuck like that until you finish the game. I do believe it might cause problems with my code because I didn't get pass one battle, checked everything to be 100% but the battle did not go to the next scene. Buttons may not work if they are on the textbox dimensional area, which itself presets limited space to work on rather than the clear full screen everyone knows from it. And yes I did try your guys answers from other users who wanted the textbox to be removed.

So ya I think this is a bug.

Re: Strange bug on renpy's new GUI

Posted: Mon Nov 21, 2016 4:01 pm
by Ocelot
I skimmed through code and I do not see anything which would make dialogue box dissapear (we are talking about that thing in the bottom of the screen, where character text is, right?).

Only things which hide it by default are scene and call screen statements, and only thing which shows it is say statement.

You may want to use one of these statements to hide dialogue window, or use window managment statement

Re: Strange bug on renpy's new GUI

Posted: Mon Nov 21, 2016 4:48 pm
by firecat
Ocelot wrote:I skimmed through code and I do not see anything which would make dialogue box dissapear (we are talking about that thing in the bottom of the screen, where character text is, right?).

Only things which hide it by default are scene and call screen statements, and only thing which shows it is say statement.

You may want to use one of these statements to hide dialogue window, or use window managment statement
I tried that and it will still not go away, i tried everything even building a new code to hide the textbox image but nothing works.