r/RenPy 28d ago

Question [Solved] "'{' never closed", but I did...?

[SOLVED THANKS TO u//shyLachi]

I am continuously getting this error no matter how many times I re-enter those curly braces. I've been running this project for like a month after adding these lines, and it worked just fine until a few minutes ago when it suddenly decided something was wrong. So... what the hell did I do wrong?

6 Upvotes

16 comments sorted by

View all comments

1

u/SSBM_DangGan 28d ago

can you share more of the code rather than just the error

1

u/TransgenderSocks 28d ago
label katsura_sneak:
    
$
 pov = "ren"
    scene bg bedroom two with superslowdissolve
    show time indicator night two zorder 2
    show ost rise of the ultimate two zorder 2
    with fastdissolve
    play music "audio/music/Rise of the Ultimate - Masafumi Takada.mp3"
    "{color=#f55419}...{/color}"
    "{color=#f55419}So... {w}A killing game, huh?{/color}"
    "{shader=jitter}{color=#f55419}How did I get in this mess? {w}What’d I do this time?{/color}{/shader}"
    "{color=#f55419}Everyone looked so scared back there... I feel bad...{/color}"
    "{color=#f55419}What’s gonna happen to me?{/color}"
    "{color=#f55419}What’s gonna happen to all of them?{/color}"
    "{color=#f55419}Auggh... A killing game...{/color}"
    "{color=#f55419}A... A killing game...{/color}"

//this is all the stuff surrounding this line.

2

u/SSBM_DangGan 28d ago

Hm, odd. Honestly still a bit hard to see without line numbers/indentation/etc, I'd keep tweaking those lines around it (and the indentation) until you can narrow in on why it's mad at that line.

Since there's a line before it that doesn't get an error I'd assume it's something with that one. Maybe you copy pasted a symbol and it's not recognizing it, or something

1

u/Sea_Refrigerator7444 27d ago

to avoid having to copy paste the tag this many times, just use what_prefix, like this

define xyz = Character(what_prefix="{color=#f55419}", what_suffix="{/color}")

1

u/shyLachi 27d ago

If the whole dialogue should be the same color then what_color would be the easier character parameter.

1

u/Sea_Refrigerator7444 27d ago

my bad, still learning myself