Skip to main content

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

Hello! I just wanted to report a bug in my code. I've spent a few hours combing through my code and what I did wrong, but I saw that there are errors in the backend file. Two in particular: plural_pronouns and possible_pronouns

I don't know exactly what I did wrong, is it because something is outdated? Did I forget something?

Let me know what your thoughts are.

Yeah this is a weird issue with the Ren'Py engine actually - if it runs into a problem during init, sometimes it still tries running the interaction callbacks, but it hasn't done all the setup (because there was an error) so it runs into a new error in the callback, and reports that instead. Usually this is because you have duplicate label names actually, sometimes due to orphan rpyc files.

You can adjust the function to

def randomize_pronouns_per_line(*args, **kwargs):
    """
    An interaction callback which will randomize the player's pronouns on
    every line, if they have selected that option.
    """
    try:
        if store.pronoun_switch_freq != "line":
            return
        ## Otherwise yes, randomize.
        randomize_pronouns()
    except AttributeError as e:
        ## Typically this occurs if there's an init time error, but should
        ## be passed along so the actual error can be reported.
        pass

and that should at least allow the error to pass through and report what really went wrong.

Thank you for your reply. I'll try to apply this when I get back to my computer and let you know further issues if I have any.