If you're having trouble or run into any bugs with the code, post a comment here! I will try to get back to you within a few days.
Have multiple thumbs for bars in Ren'Py · By
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
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!
hello, I hope you are able ot read this. I bought the code as is, and went over it all to make sure I was doing everything right. How ever, as I wanted to add a multi bar that displayed my character's hp values, I kept getting this error.
`File "game/Scripts/Defines/windows.rpy", line 712: 'multi_bar' is not a keyword argument or valid child of the fixed statement. multi_bar 3:
I added the multibar.rpy file to the right files, and tried using it in my screen, but it didn't work. Here is my code I was using.
``` for Chara in active_party_members: frame: xysize (500,500) xalign 0.5 yalign 0.5 text "Name: {} Defense: {} Attack: {}".format(Chara.name,Chara.defense,Chara.attack_damage) vbox: yalign 0.7 spacing 10 fixed: text "HP: {}/{} Max Hp: {}".format(Chara.hp,Chara.max_hp,Chara.total_hp) size 25 xalign 0.1 yalign 0.45 text "{}".format(Chara.choose_battle_quote()) size 25 xalign 0.5 yalign 0.8 bar value StaticValue (Chara.max_hp, Chara.total_hp): at transform: matrixcolor TintMatrix("#ff0404ff") xalign 0.5 yalign 0.5 xsize 250 ysize 10 bar value AnimatedValue(Chara.hp,Chara.max_hp,delay = 0.50,old_value = 1): at transform: matrixcolor TintMatrix("#f10505fa") xsize 250 ysize 10 xalign 0.50 yalign 0.55 right_bar Frame("gui/bar/right_2.png", gui.bar_borders, tile=gui.bar_tile) multi_bar 3: xysize (250,10) xalign 0.5 yalign 60 bars["#03389b","#578bfd","#e70d0d"] bar_range (0, Chara.total_hp) start_values [Chara.hp,Chara.max_hp,Chara.total_hp] sensitive False```
If there is more information you need, please let me know. thank you ^_^
There are a few problems I see - assuming the indentation is an issue with copy-pasting, you need to fix the following for the multi-bar to work:
Otherwise, assuming those are fixed up and the indentation is normal, the code runs just fine for me! Let me know if you have any further issues.