Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

hey!! i'm not sure if i'm doing something wrong, since i'm relatively new to coding, but i've tried to use this a few times with multiple projects. here are the main errors i've been getting.


when i call the pronoun_entry screen:

I'm sorry, but an uncaught exception occurred.
While running game code:
  File "game/script.rpy", line 13, in script
    call screen pronoun_entry
  File "renpy/common/000statements.rpy", line 670, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
TypeError: Missing required positional arguments: 'input_value', 'title', 'example', 'sentence'

when i call the pick_multiple_pronouns screen:

I'm sorry, but an uncaught exception occurred.
While running game code:
  File "game/script.rpy", line 13, in script
    call screen pick_multiple_pronouns
  File "renpy/common/000statements.rpy", line 670, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "game/multi_bar/pronoun_screens.rpy", line 153, in execute
    screen pick_multiple_pronouns():
  File "game/multi_bar/pronoun_screens.rpy", line 153, in execute
    screen pick_multiple_pronouns():
  File "game/multi_bar/pronoun_screens.rpy", line 157, in execute
    frame:
  File "game/multi_bar/pronoun_screens.rpy", line 161, in execute
    has vbox
  File "game/multi_bar/pronoun_screens.rpy", line 163, in execute
    hbox:
  File "game/multi_bar/pronoun_screens.rpy", line 165, in execute
    use pick_pronouns_checkbox()
  File "game/multi_bar/pronoun_screens.rpy", line 209, in execute
    screen pick_pronouns_checkbox():
  File "game/multi_bar/pronoun_screens.rpy", line 209, in execute
    screen pick_pronouns_checkbox():
  File "game/multi_bar/pronoun_screens.rpy", line 210, in execute
    vbox:
  File "game/multi_bar/pronoun_screens.rpy", line 214, in execute
    for pron in filter(lambda x: x != "custom", possible_pronouns):
  File "game/multi_bar/pronoun_screens.rpy", line 214, in <module>
    for pron in filter(lambda x: x != "custom", possible_pronouns):
NameError: name 'possible_pronouns' is not defined

when i call the term_customization screen:

I'm sorry, but an uncaught exception occurred.
While running game code:
  File "game/script.rpy", line 13, in script
    call screen term_customization
  File "renpy/common/000statements.rpy", line 670, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "game/multi_bar/pronoun_screens.rpy", line 327, in execute
    screen term_customization():
  File "game/multi_bar/pronoun_screens.rpy", line 327, in execute
    screen term_customization():
  File "game/multi_bar/pronoun_screens.rpy", line 337, in execute
    frame:
  File "game/multi_bar/pronoun_screens.rpy", line 341, in execute
    has vbox
  File "game/multi_bar/pronoun_screens.rpy", line 344, in execute
    frame:
  File "game/multi_bar/pronoun_screens.rpy", line 346, in execute
    has hbox
  File "game/multi_bar/pronoun_screens.rpy", line 353, in execute
    for pron in player_pronouns:
  File "game/multi_bar/pronoun_screens.rpy", line 353, in <module>
    for pron in player_pronouns:
NameError: name 'player_pronouns' is not defined

and when i call the enter_pronouns screen:

I'm sorry, but an uncaught exception occurred.
While running game code:
  File "game/script.rpy", line 13, in script
    call screen enter_pronouns
  File "renpy/common/000statements.rpy", line 670, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "game/multi_bar/pronoun_screens.rpy", line 8, in execute
    screen enter_pronouns(confirm_action=Return(), cancel_action=Return("cancel")):
  File "game/multi_bar/pronoun_screens.rpy", line 8, in execute
    screen enter_pronouns(confirm_action=Return(), cancel_action=Return("cancel")):
  File "game/multi_bar/pronoun_screens.rpy", line 17, in execute
    default c_they = EnterInputValue(custom_pronouns, "they")
  File "game/multi_bar/pronoun_screens.rpy", line 17, in <module>
    default c_they = EnterInputValue(custom_pronouns, "they")
NameError: name 'EnterInputValue' is not defined
(+1)

This looks to me like you didn't add pronoun_backend.rpy or pronoun_setup.rpy to your project! They come from https://feniksdev.itch.io/in-depth-pronouns-for-renpy, which you need to download separately from the multi-bar code. It's got a ton of essential code to make the bar work with pronouns specifically. You will need all the files from the zipped folder in your project except for pronoun_labels.rpy, which just has examples, and you should use the included pronoun_screens.rpy from the multi-bar zip instead of the one that comes with the pronouns code if you want the pronouns screens to use the multi-bar.

Additionally, you shouldn't call the pronoun_entry screen on its own; that's just a helper screen. The screen where you can input custom pronouns is called screen enter_pronouns. I suggest you take a look at the examples in pronoun_labels.rpy; there are several examples of the screens you will need to call and the variables you will need to adjust in order to take advantage of the pronoun system.

Of course, if you're not using the multi bar in tandem with the pronouns system, you can just remove pronoun_screens.rpy and pronoun_multibar.rpy that you got from the multi-bar zip file. They're only there to integrate with the pronouns system.

Hope that helps!

oooh, got it- thank you so much for your help, I didn’t even think about that! it works now, and i really appreciate it :)