News:

Please request registration email again and then check your "Spam" folder

Former www.henthighschool.com

v0.3 Test Version (Aug. 24 Update)

Started by Goldo, Aug 25, 2024, 10:58 PM

Previous topic - Next topic

DarkFire

Got this while trying to lower volume from preferences:


I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00gamemenu.rpy", line 174, in script
    $ ui.interact()
  File "renpy/common/00gamemenu.rpy", line 174, in <module>
    $ ui.interact()
  File "renpy/common/00barvalues.rpy", line 406, in set_mixer
    value = pow(10, value / 20)
TypeError: 'EvilSuperPower' object is not callable

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "renpy/common/00gamemenu.rpy", line 174, in script
    $ ui.interact()
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 823, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1178, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "renpy/common/00gamemenu.rpy", line 174, in <module>
    $ ui.interact()
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\ui.py", line 301, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 2165, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, pause_modal=pause_modal, **kwargs) # type: ignore
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 3197, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1202, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\transition.py", line 53, in event
    return self.new_widget.event(ev, x, y, st) # E1101
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1202, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1202, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 793, in event
    rv = self.child.event(ev, x, y, st)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1202, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1426, in event
    rv = super(Window, self).event(ev, x, y, st)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 288, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1202, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1202, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1426, in event
    rv = super(Window, self).event(ev, x, y, st)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 288, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 288, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\viewport.py", line 587, in event
    rv = super(Viewport, self).event(ev, x, y, st)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 288, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1202, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 288, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1202, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1426, in event
    rv = super(Window, self).event(ev, x, y, st)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 288, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1202, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\behavior.py", line 2505, in event
    rv = self.adjustment.change(value)
  File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\display\behavior.py", line 2059, in change
    return self.changed(value)
  File "renpy/common/00barvalues.rpy", line 406, in set_mixer
    value = pow(10, value / 20)
TypeError: 'EvilSuperPower' object is not callable

Windows-10-10.0.19045 AMD64
Ren'Py 8.2.0.24012702
Bro King 0.3t v241014
Thu Oct 31 02:07:38 2024

Crexus

#256
I'm having issues where it skips the 'whoring' phase as well as the 'farm' training phase. So did brief search and couldn't seem to find a solution to this error. No mods, but using a girl pack from BK.02 and thought that might be an issue? Tried putting girls in farm on rest mode and it showed the resting images but still skipped whore phase. if anyone is able to help it'd be much appreciated.

EDIT: So did reinstalled everything I had previously and started new game. Everything is working so far (in slums, rn was previously in warehouse district) Seems like it was either my fault with one of the packs or just v0.3 bugginess.


I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 931, in script
    python:
  File "game/BKendday.rpy", line 954, in <module>
    farm_events += (farm.programs[girl].resolve("holding"))
  File "game/BKfarm.rpy", line 953, in resolve
    change_log.merge(self.apply_changes(girl, changes))
  File "game/BKfarm.rpy", line 996, in apply_changes
    changes[stat] = girl.change_fear(chg*reverse_if(girl.get_effect("boost", "farm fear generation"), chg), mojo_color=mojo_color)
UnboundLocalError: local variable 'mojo_color' referenced before assignment

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "game/BKendday.rpy", line 931, in script
    python:
  File "C:\Users\USER\Downloads\Brothel_King-pc-0.3t\Brothel_King-pc\renpy\ast.py", line 823, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\USER\Downloads\Brothel_King-pc-0.3t\Brothel_King-pc\renpy\python.py", line 1178, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 954, in <module>
    farm_events += (farm.programs[girl].resolve("holding"))
  File "game/BKfarm.rpy", line 953, in resolve
    change_log.merge(self.apply_changes(girl, changes))
  File "game/BKfarm.rpy", line 996, in apply_changes
    changes[stat] = girl.change_fear(chg*reverse_if(girl.get_effect("boost", "farm fear generation"), chg), mojo_color=mojo_color)
UnboundLocalError: local variable 'mojo_color' referenced before assignment

Windows-10-10.0.22631 AMD64
Ren'Py 8.2.0.24012702
Bro King 0.3t v241014
Tue Nov 12 08:31:26 2024

GoldoTopic starter

A couple of important sanity reminders:

Quote from: xxxwetxxx on Oct 17, 2024, 05:06 AM
Quote from: xxxwetxxx on Oct 17, 2024, 04:00 AMself.dislikes["drink"] = rand_choice(drinks)                                  # Set "dislikes.drink" to random (no check)
BKfunctions.rpy:
Spoiler
        if input_dict["tastes/disliked_color"] != None and input_dict["tastes/disliked_color"] not in colors:
            renpy.say("{color=[c_red]}{b}Error parsing " + file + "{/b}{/color}", "{color=[c_red]}" + str(input_dict["tastes/disliked_color"]) + '{/color} is not a valid color.\nAccepted values are "white", "yellow", "red", "green", "blue", "purple", "orange", "pink", "black" or None.')

            if input_dict["tastes/disliked_drink"] == input_dict["tastes/favorite_drink"] and input_dict["tastes/disliked_drink"] != None:
                renpy.say("{color=[c_red]}{b}Error parsing " + file + "{/b}{/color}", '"favorite_drink" ' + "{color=[c_red]}" + str(input_dict["tastes/disliked_drink"]) + '{/color} should not equal "disliked_drink"')
[close]
edit: revised code:
Spoiler
        if input_dict["tastes/favorite_color"] != None and input_dict["tastes/favorite_color"] not in colors:
            renpy.say("{color=[c_red]}{b}Error parsing " + file + "{/b}{/color}", "{color=[c_red]}" + str(input_dict["tastes/favorite_color"]) + '{/color} is not a valid color.\nAccepted values are "white", "yellow", "red", "green", "blue", "purple", "orange", "pink", "black" or None.')
        if input_dict["tastes/disliked_color"] != None and input_dict["tastes/disliked_color"] not in colors:
            renpy.say("{color=[c_red]}{b}Error parsing " + file + "{/b}{/color}", "{color=[c_red]}" + str(input_dict["tastes/disliked_color"]) + '{/color} is not a valid color.\nAccepted values are "white", "yellow", "red", "green", "blue", "purple", "orange", "pink", "black" or None.')

        if input_dict["tastes/favorite_color"] == input_dict["tastes/disliked_color"] and input_dict["tastes/favorite_color"] != None:
                renpy.say("{color=[c_red]}{b}Error parsing " + file + "{/b}{/color}", '"favorite_color" ' + "{color=[c_red]}" + str(input_dict["tastes/favorite_color"]) + '{/color} should not equal "disliked_color"')       

#        if input_dict["tastes/favorite_food"] == input_dict["tastes/disliked_food"] and input_dict["tastes/favorite_food"] != None:
#                renpy.say("{color=[c_red]}{b}Error parsing " + file + "{/b}{/color}", '"favorite_food" ' + "{color=[c_red]}" + str(input_dict["tastes/favorite_food"]) + '{/color} should not equal "disliked_food"')
   
        if input_dict["tastes/favorite_drink"] == input_dict["tastes/disliked_drink"] and input_dict["tastes/favorite_drink"] != None:
                renpy.say("{color=[c_red]}{b}Error parsing " + file + "{/b}{/color}", '"favorite_drink" ' + "{color=[c_red]}" + str(input_dict["tastes/favorite_drink"]) + '{/color} should not equal "disliked_drink"')
[close]
I couldn't get 'for key in' to work, it would return each letter of a word as it's own error (b, l, a, c, k)
edit 2: I can't for the life of me figure out why every other if statement gives a 'ValueError: expected expression', even though they are near identical.
Do NOT ignore an error and try to proceed. It will only result in creating other errors that make no sense because you skipped the first one. If a _BK.ini mistake is harmless I try to avoid raising a game stopping error, but lots of seemingly innocuous mistakes can cause crashes down the line. So if a _BK.ini file is broken I would rather tell you to fix it upfront than deal with a hard-to-trace game-breaking bug 2-hours into your playthrough.

Quote from: Urza3142 on Oct 29, 2024, 10:02 PMPicked up this error when loading in a save and starting a night.

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKday_events.rpy", line 634, in script
    return
Exception: Could not find return label ('game/BKevents.rpy', 1730174316, 26809).

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "game/BKday_events.rpy", line 634, in script
    return
  File "F:\Program Files\Brothel_King-pc\renpy\ast.py", line 1495, in execute
    next_node(renpy.game.context().lookup_return(pop=True))
  File "F:\Program Files\Brothel_King-pc\renpy\execution.py", line 741, in lookup_return
    raise Exception("Could not find return label {!r}.".format(self.return_stack[-1]))
Exception: Could not find return label ('game/BKevents.rpy', 1730174316, 26809).

Windows-10-10.0.19045 AMD64
Ren'Py 8.2.0.24012702
Bro King 0.3t v241014
Tue Oct 29 17:56:09 2024

Don't forget that while you can save pretty much anywhere, I strongly recommend saving on the Home screen. Especially do not save while night events are unrolling. In some rare cases you may get a broken save, and then there's nothing to do except revert to the previous autosave. I guess I could try to disable Ren'py saves during the night to make this extra safe.

Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!

GoldoTopic starter

Hi guys, new patch out: https://www.mediafire.com/file/1va1v7cq1psp53x/game+patch+0.3.zip/file

This introduces tabs on the Girls screen, hopefully helping with the performance end-game. You can revert to the old behavior in the game menu.

Also, the CG gallery is back!

In other news, I am making progress on the third Kunoichi's story.
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!

Jman

#259
Achievements are back, too (or were they there the whole time?). But why can't we access them from the main menu, like we could before?

Also, sorting by energy/levelup and a 'collect all items' button. mistercb should be happy now... ;D
And with strange aeons even death may die...

vadi92

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKstart.rpy", line 76, in script call
    call advance_to_chapter(starting_chapter, start=True) from _call_advance_to_chapter_3
  File "game/BKevents.rpy", line 760, in script
    $ brothel.add_room("tavern", forced=True)
  File "game/BKevents.rpy", line 760, in <module>
    $ brothel.add_room("tavern", forced=True)
  File "game/BKclasses.rpy", line 2808, in add_room
    self.rooms[room].buy(forced)
  File "game/BKclasses.rpy", line 4440, in buy
    self.update_cust_limit(True)
  File "game/BKclasses.rpy", line 4526, in update_cust_limit
    self.cust_limit = round_int(self.cust_limit * act_max_customers_modifier[self.job])
NameError: name 'act_max_customers_modifier' is not defined

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "game/BKstart.rpy", line 76, in script call
    call advance_to_chapter(starting_chapter, start=True) from _call_advance_to_chapter_3
  File "game/BKevents.rpy", line 760, in script
    $ brothel.add_room("tavern", forced=True)
  File "D:\Games\Brothel_King-pc\renpy\ast.py", line 823, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "D:\Games\Brothel_King-pc\renpy\python.py", line 1178, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 760, in <module>
    $ brothel.add_room("tavern", forced=True)
  File "game/BKclasses.rpy", line 2808, in add_room
    self.rooms[room].buy(forced)
  File "game/BKclasses.rpy", line 4440, in buy
    self.update_cust_limit(True)
  File "game/BKclasses.rpy", line 4526, in update_cust_limit
    self.cust_limit = round_int(self.cust_limit * act_max_customers_modifier[self.job])
NameError: name 'act_max_customers_modifier' is not defined

Windows-10-10.0.19045 AMD64
Ren'Py 8.2.0.24012702
Bro King 0.3t v241116
Sat Nov 16 16:11:39 2024

Already got this error when i started a fresh game. (Just installed the game)
Started the game with intro, then choosed the one with no intro.

Jman

This might be a problem with CJMT. Are you running the latest version?
And with strange aeons even death may die...

vadi92

#262
Yep. Fresh install with the newest patch. You know me Jman i can get a few error for you in a weirdest way. Just like when you made the bonanza mod compatible with the 0.2 version.

Jman

No, I meant CJMT version. I remember fixing this exact error at some point.
And with strange aeons even death may die...

vadi92

#264
The problem was caused with your Chris Job Turbo mod.

Edit: the mod wasnt updated the in the https://henthighschool.net/brothel-king/resources-index-of-mods-utilities-and-useful-links/ thread.
With your 2.3 version it's working fine.

Jman

What do you mean by 'wasnt updated'? No mod has version numbers or update status published directly in the resource links thread.
And with strange aeons even death may die...

vadi92

#266
Quote from: Jman on Nov 16, 2024, 07:25 PMWhat do you mean by 'wasnt updated'? No mod has version numbers or update status published directly in the resource links thread.

Neronero most often changing the mod link there if there is a new version of it somewhere. What i downloaded from there was your previous version with the bug.

Jman

#267
I usually keep the link in the OP and maybe announce it in a separate post. It'd be kind of a pain to put links to announcements in the resources thread, and then you'd have to go back to the OP to actually get the mod.

Edit wars:
Quote from: vadi92 on Nov 16, 2024, 06:21 PMYou know me Jman i can get a few error for you in a weirdest way. Just like when you made the bonanza mod compatible with the 0.2 version.
I did? :o Half the reason Bonanza died was that I couldn't do that without suffering a meltdown. :'(
And with strange aeons even death may die...

GoldoTopic starter

I have to say, I like it when bugs do not involve me and solve themselves like that  8) *beer emoji*
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!

GoldoTopic starter

Quote from: Jman on Nov 16, 2024, 09:11 AMAchievements are back, too (or were they there the whole time?). But why can't we access them from the main menu, like we could before?

You can access it in Preferences.
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!