Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Ok, I updated to the latest version and need a clarification.

game/common/scenes/dreams/eric_dreams.rpy:53 Close text tag ‘{/if}’ does not match open text tag ‘{else}’. (in “{if=passnude}At least there’s {b}{color=#ffaf7a}Rhia{/color}{/b}.{else}Not sure what that dream was about because that never happened to me.{/if}”) (ignoring the color and bold tags) I have it {if passnude}yaya{else}somethingelse else{/else} as the old behavior was. It still works, but the lint is saying something different happening. I mean, I haven’t release this vn so I can change that to {if}{else}{/if}, and redo the word bubbles or something.:) but trying to understand what happening with this lint.

No worries! This behaviour can be ignored, though I may be able to adjust the new dummy elif/else text tags so they don't get erroneously flagged on lint. I will reply here with any adjustments if so! 

Okay yes you can replace the `blank_tag` function and the two lines below it with this:

    def blank_tag(tag, argument):
        return [ ]
    config.self_closing_custom_text_tags["elif"] = blank_tag
    config.self_closing_custom_text_tags["else"] = blank_tag


Hope that helps!

It got rid of most of the lints. There things like this lefT:

game/full/scenes/act1/a1_risingrension/a1_artclass.rpy:46 Close text tag ‘{/if}’ does not match an open text tag. (in “{if=ec.tide_leak_select()=="sfw"}Why is he meeting me here…like this…{elif=ec.tide_leak_select() in [‘nsfwa’,‘nsfwb’]}{b}{color=#1ebfff}Eric{/color}{/b}?{/if}{else}Is that…?{/if}”)

the weird part…{if=ec.tide yadayada … I didn’t write {if= (doubled checked in case I did something dumb)..and yet Lint saying I did? It still works as far as I can tell and I can ignore a lot of these lints for ones that are important :)

The if= stuff is normal - it gets transformed in the process/that's how the text tag looks behind the scenes. Can you show me what that line looks like in your script? It has two closing {/if} and I'm unsure if there's a parsing issue there or if you've written something incorrectly before parsing. 

tq_t """
            {if ec.tide_leak_select()=="sfw"}[er]?{elif ec.tide_leak_select() in ['nsfwa','nsfwb']}He looks familiar...{/elif}{else}Why does this beast feel familiar?{/else}

            {if ec.tide_leak_select()=="sfw"}Why is he meeting me here...like this...{elif ec.tide_leak_select() in ['nsfwa','nsfwb']}[er]?{/elif}{else}Is that...?{/else}
        """

Okay, your problem is the {/elif}. Remove that. In all versions of the plugin, you don't need to close those tags yourself unless it's the final clause of the condition. So, valid formats are:

{if}text{/if}
{if}text{elif}text{/elif}
{if}text{else}text{/else}
{if}text{elif}text{elif}text{else}text{/else}

or the new format will also take {/if} in place of the ending {/elif} and {/else} tags that finish of a singular condition.

{if}text{/if}
{if}text{elif}text{/if}
{if}text{else}text{/if}
{if}text{elif}text{elif}text{else}text{/if}

Okay, those have been fixed and my lint is now clean.:) Thank you.