News:

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

Former www.henthighschool.com

v0.3 Test version (gameplay only)

Started by Goldo, Jul 21, 2023, 09:54 PM

Previous topic - Next topic

DarkFire

This appeared after the hotfix while trying to train a girl in the farm, at the end of day:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "game/BKendday.rpy", line 949, in <module>
    farm_events += farm.programs[girl].resolve("training")
  File "game/BKfarm.rpy", line 531, in resolve
    change_log = self.apply_changes(girl, changes)
  File "game/BKfarm.rpy", line 980, in apply_changes
    changes[stat] = girl.change_fear(chg*reverse_if(girl.get_effect("boost", "farm fear generation"), chg), mojo_color=mojo_color)
  File "game/BKgirlclass.rpy", line 4170, in change_fear
    MC.raise_mojo(mojo_color, mojo = change / FARM_MOJO_VALUE)
  File "game/BKclasses.rpy", line 435, in raise_mojo
    self.mojo[mojo_color] += mojo * self.get_effect("boost", mojo_color + " mojo gains") * self.get_effect("boost", "all mojo gains") + self.get_effect("change", mojo_color + " mojo gains") + self.get_effect("change", "all mojo gains")
KeyError: 'r'

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

Full traceback:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 949, in <module>
    farm_events += farm.programs[girl].resolve("training")
  File "game/BKfarm.rpy", line 531, in resolve
    change_log = self.apply_changes(girl, changes)
  File "game/BKfarm.rpy", line 980, in apply_changes
    changes[stat] = girl.change_fear(chg*reverse_if(girl.get_effect("boost", "farm fear generation"), chg), mojo_color=mojo_color)
  File "game/BKgirlclass.rpy", line 4170, in change_fear
    MC.raise_mojo(mojo_color, mojo = change / FARM_MOJO_VALUE)
  File "game/BKclasses.rpy", line 435, in raise_mojo
    self.mojo[mojo_color] += mojo * self.get_effect("boost", mojo_color + " mojo gains") * self.get_effect("boost", "all mojo gains") + self.get_effect("change", mojo_color + " mojo gains") + self.get_effect("change", "all mojo gains")
KeyError: 'r'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Wed Jul 26 05:17:19 2023

Netscape1964

tried giving a bag of gold to one of my girls in a new game with latest patch and got this she was rank C lvl1
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1502, in script
    $ r = counterpart.use_item(it)
  File "game/BKmain.rpy", line 1502, in <module>
    $ r = counterpart.use_item(it)
  File "game/BKgirlclass.rpy", line 1590, in use_item
    changes.append("Level", 1)
AttributeError: 'NightChangeLog' object has no attribute 'append'

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

Full traceback:
  File "game/BKmain.rpy", line 1502, in script
    $ r = counterpart.use_item(it)
  File "C:\Users\****\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\****\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 1502, in <module>
    $ r = counterpart.use_item(it)
  File "game/BKgirlclass.rpy", line 1590, in use_item
    changes.append("Level", 1)
AttributeError: 'NightChangeLog' object has no attribute 'append'

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Wed Jul 26 07:08:44 2023

neronero

#47
I bought this ring from Renza. Somehow it ended up in my inventory twice. When I select one of them while in the girl item menu, both rings go blue at once.

When I equip it on a girl or sell it, one of the rings stays behind in the MC's inventory while being quantum-linked to the other ring (eg, it'll get the "equipped" status when the other ring is equipped by a girl)
Interacting with it afterwards leads to errors, eg:
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1471, in script
    $ owner.unequip(it)
  File "game/BKmain.rpy", line 1471, in <module>
    $ owner.unequip(it)
  File "game/BKclasses.rpy", line 1295, in unequip
    self.equipped.remove(item)
ValueError: list.remove(x): x not in list

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

Full traceback:
  File "game/BKmain.rpy", line 1471, in script
    $ owner.unequip(it)
  File "F:\ilx\BK03T\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\ilx\BK03T\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 1471, in <module>
    $ owner.unequip(it)
  File "game/BKclasses.rpy", line 1295, in unequip
    self.equipped.remove(item)
  File "F:\ilx\BK03T\renpy\revertable.py", line 97, in do_mutation
    return method(self, *args, **kwargs)
ValueError: list.remove(x): x not in list

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Wed Jul 26 14:45:46 2023
[close]
But I think the main issue is somewhere else, that cloned quantum-ring shouldn't exist in the first place.


edit: "➜" (arrow, used in bast's resource exchange) is not a valid glyph in the new font, and needs to be added to the exceptions.

edit2: Love the new results screen btw  :-*

edit3: Error when trying to export a text file of ignored pictures
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 937, in script call
    $ result = ui.interact()
  File "game/BKhelp.rpy", line 557, in script
    $ print_ignore_list()
  File "game/BKhelp.rpy", line 557, in <module>
    $ print_ignore_list()
  File "game/BKfunctions.rpy", line 5233, in print_ignore_list
    with open(config.gamedir[:config.gamedir.rfind("/")] + "/ignored_pictures.txt", "wt") as ignore_file:
FileNotFoundError: [Errno 2] No such file or directory: 'F:\\ilx\\BK03T\\gam/ignored_pictures.txt'

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

Full traceback:
  File "game/BKmain.rpy", line 937, in script call
    $ result = ui.interact()
  File "game/BKhelp.rpy", line 557, in script
    $ print_ignore_list()
  File "F:\ilx\BK03T\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\ilx\BK03T\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKhelp.rpy", line 557, in <module>
    $ print_ignore_list()
  File "game/BKfunctions.rpy", line 5233, in print_ignore_list
    with open(config.gamedir[:config.gamedir.rfind("/")] + "/ignored_pictures.txt", "wt") as ignore_file:
FileNotFoundError: [Errno 2] No such file or directory: 'F:\\ilx\\BK03T\\gam/ignored_pictures.txt'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Wed Jul 26 15:37:52 2023
[close]

edit4: Nighttime error, assume it happens when one of the girls is using or refusing to use an expendable item I gifted to them.
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "game/BKendday.rpy", line 1012, in <module>
    change_log.merge(changes)
NameError: name 'change_log' is not defined

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

Full traceback:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "F:\ilx\BK03T\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\ilx\BK03T\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 1012, in <module>
    change_log.merge(changes)
NameError: name 'change_log' is not defined

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Wed Jul 26 15:46:49 2023
[close]
My Girl Packs: [ link ] - Trait King mod: [ link ]

kingthandra

Quote from: Goldo on Jul 25, 2023, 11:00 PM
Quote from: kingthandra on Jul 24, 2023, 10:26 PMCan't even start the game, getting this error:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 310, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 64, in script
    python:
  File "game/BKevents.rpy", line 67, in <module>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 67, in <lambda>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 67, in <listcomp>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKfunctions.rpy", line 3468, in read_init_file_generate_as
    v = read_init_file_field(file, "background story", "generate_as", _default="all", skip_checks=True)
  File "game/BKfunctions.rpy", line 3474, in read_init_file_field
    field = read_init_file(file, search_for = {_key : [_value]}, skip_checks=skip_checks)[_key + "/" + _value]
  File "game/BKfunctions.rpy", line 3495, in read_init_file
    parser.read(config.gamedir + "/" + file)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 20: invalid continuation byte

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

Full traceback:
  File "renpy/common/00start.rpy", line 310, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 64, in script
    python:
  File "D:\Proyectos\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "D:\Proyectos\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 67, in <module>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 67, in <lambda>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 67, in <listcomp>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKfunctions.rpy", line 3468, in read_init_file_generate_as
    v = read_init_file_field(file, "background story", "generate_as", _default="all", skip_checks=True)
  File "game/BKfunctions.rpy", line 3474, in read_init_file_field
    field = read_init_file(file, search_for = {_key : [_value]}, skip_checks=skip_checks)[_key + "/" + _value]
  File "game/BKfunctions.rpy", line 3495, in read_init_file
    parser.read(config.gamedir + "/" + file)
  File "configparser.py", line 653, in read
  File "configparser.py", line 960, in _read
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/codecs.py", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 20: invalid continuation byte

Windows-10-10.0.19041 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Tue Jul 25 00:25:33 2023

This is probably because one of your girl pack has a strange _BK.ini file, featuring non-unicode characters or something. I recommend removing a few girl packs until you can find the culprit.

Yay, solved.

The problematic girl was Vladilena Milizé

Isn't supported anymore the accent mark in the name?

oratorio

Quote from: neronero on Jul 26, 2023, 12:55 PMI bought this ring from Renza. Somehow it ended up in my inventory twice. When I select one of them while in the girl item menu, both rings go blue at once.

When I equip it on a girl or sell it, one of the rings stays behind in the MC's inventory while being quantum-linked to the other ring (eg, it'll get the "equipped" status when the other ring is equipped by a girl)
Interacting with it afterwards leads to errors, eg:

I'm almost sorry to hear that this is not an error confined to my computer. I believe that the primary error is the cloning. Occasionally an item gets cloned (this may be an error deep in renpy). When this happens, there is a cascade of other errors due to the cloned item.

Hermenegild

Quote from: neronero on Jul 26, 2023, 12:55 PM[...]
edit: "➜" (arrow, used in bast's resource exchange) is not a valid glyph in the new font, and needs to be added to the exceptions.
[...]
The same goes for up/down arrows, used in Bast's exchange to indicate better/worse than normal prices.

neronero

#51
Quote from: oratorio on Jul 26, 2023, 03:08 PMI'm almost sorry to hear that this is not an error confined to my computer. I believe that the primary error is the cloning. Occasionally an item gets cloned (this may be an error deep in renpy). When this happens, there is a cascade of other errors due to the cloned item.
All the following items I bought from Renza also came with duplicates. Either my savegame is borked or the warehouse is :(

Quote from: neronero on Jul 26, 2023, 12:55 PMedit4: Nighttime error, assume it happens when one of the girls is using or refusing to use an expendable item I gifted to them.
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "game/BKendday.rpy", line 1012, in <module>
    change_log.merge(changes)
NameError: name 'change_log' is not defined

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

Full traceback:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "F:\ilx\BK03T\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\ilx\BK03T\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 1012, in <module>
    change_log.merge(changes)
NameError: name 'change_log' is not defined

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Wed Jul 26 15:46:49 2023
[close]
I suspect that this one was caused by a butt plug with only 1 use left, if that helps.

Spellbook layout is a bit off in 16:9 / 1920:1080
My Girl Packs: [ link ] - Trait King mod: [ link ]

oratorio

Quote from: neronero on Jul 26, 2023, 06:37 PM
Quote from: oratorio on Jul 26, 2023, 03:08 PMI'm almost sorry to hear that this is not an error confined to my computer. I believe that the primary error is the cloning. Occasionally an item gets cloned (this may be an error deep in renpy). When this happens, there is a cascade of other errors due to the cloned item.
All the following items I bought from Renza also came with duplicates. Either my savegame is borked or the warehouse is :(

I found it!

In "label thieves_guild_loop" (BKevents) ...
line 2622: $ MC.buy(NPC_renza, it, price)  --> function buy is in BKclasses
line 2628: $ transact(it, NPC_renza, MC, price)  --> function transact is in BKfunctions

Both of these functions take money from MC and transfer item to MC. We get two identical copies and pay twice.

DarkFire

This error happened when I clicked the deck in the farm:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 559, in script call
    call farm_powers() from _call_farm_powers
  File "game/BKpowers.rpy", line 373, in script call
    call powers_intro() from _call_powers_intro
  File "game/BKpowers.rpy", line 1498, in script call
    call draw_powers() from _call_draw_powers_1
  File "game/BKpowers.rpy", line 344, in script
    pause 0.8
  File "renpy/common/000statements.rpy", line 459, in execute_pause
    renpy.pause(delay)
  File "game/BKscreens.rpy", line 9017, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 9017, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 9043, in execute
    for i in range(len(hand)):
  File "game/BKscreens.rpy", line 9053, in execute
    if i >= start_at: # Only newly drawn cards will be flipped
  File "game/BKscreens.rpy", line 9054, in execute
    use power_card(pow, context, xc, y, size_boost)
  File "game/BKscreens.rpy", line 9077, in execute
    screen power_card(pow, context = "idle", x = 0, y = 0, size_boost=1.0, existing=False):
  File "game/BKscreens.rpy", line 9077, in execute
    screen power_card(pow, context = "idle", x = 0, y = 0, size_boost=1.0, existing=False):
  File "game/BKscreens.rpy", line 9084, in execute
    if context == "move":
  File "game/BKscreens.rpy", line 9092, in execute
    frame style "inv_no_padding" xanchor 0.5 yanchor 1.0 xpos x ypos y:
  File "game/BKscreens.rpy", line 9093, in execute
    fixed fit_first True at flip_to_back:
  File "game/BKscreens.rpy", line 9095, in execute
    fixed fit_first True at reverse_horizontal:
  File "game/BKscreens.rpy", line 9096, in execute
    use power_card_content
  File "game/BKscreens.rpy", line 9116, in execute
    screen power_card_content:
  File "game/BKscreens.rpy", line 9116, in execute
    screen power_card_content:
  File "game/BKscreens.rpy", line 9125, in execute
    fixed fit_first True xysize (xs, ys):
  File "game/BKscreens.rpy", line 9148, in execute
    vbox align (0.05, 0.05) spacing yres(3):
  File "game/BKscreens.rpy", line 9149, in execute
    for mcolor, mcost in pow.get_mojo_cost():
  File "game/BKscreens.rpy", line 9149, in <module>
    for mcolor, mcost in pow.get_mojo_cost():
  File "game/BKpowers.rpy", line 236, in get_mojo_cost
    if isinstance(conduct, Girl):
NameError: name 'conduct' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 559, in script call
    call farm_powers() from _call_farm_powers
  File "game/BKpowers.rpy", line 373, in script call
    call powers_intro() from _call_powers_intro
  File "game/BKpowers.rpy", line 1498, in script call
    call draw_powers() from _call_draw_powers_1
  File "game/BKpowers.rpy", line 344, in script
    pause 0.8
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 2259, in execute
    self.call("execute")
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 2241, in call
    return renpy.statements.call(method, parsed, *args, **kwargs)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\statements.py", line 342, in call
    return method(parsed, *args, **kwargs)
  File "renpy/common/000statements.rpy", line 459, in execute_pause
    renpy.pause(delay)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\exports.py", line 1637, in pause
    rv = renpy.ui.interact(mouse='pause', type='pause', roll_forward=roll_forward, pause=delay, pause_modal=modal)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 3579, 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\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in interact_core
    root_widget.visit_all(lambda d : d.per_interact())
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 476, in visit_all
    callback(self)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in <lambda>
    root_widget.visit_all(lambda d : d.per_interact())
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 487, in per_interact
    self.update()
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 680, in update
    self.screen.function(**self.scope)
  File "game/BKscreens.rpy", line 9017, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 9017, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 9043, in execute
    for i in range(len(hand)):
  File "game/BKscreens.rpy", line 9053, in execute
    if i >= start_at: # Only newly drawn cards will be flipped
  File "game/BKscreens.rpy", line 9054, in execute
    use power_card(pow, context, xc, y, size_boost)
  File "game/BKscreens.rpy", line 9077, in execute
    screen power_card(pow, context = "idle", x = 0, y = 0, size_boost=1.0, existing=False):
  File "game/BKscreens.rpy", line 9077, in execute
    screen power_card(pow, context = "idle", x = 0, y = 0, size_boost=1.0, existing=False):
  File "game/BKscreens.rpy", line 9084, in execute
    if context == "move":
  File "game/BKscreens.rpy", line 9092, in execute
    frame style "inv_no_padding" xanchor 0.5 yanchor 1.0 xpos x ypos y:
  File "game/BKscreens.rpy", line 9093, in execute
    fixed fit_first True at flip_to_back:
  File "game/BKscreens.rpy", line 9095, in execute
    fixed fit_first True at reverse_horizontal:
  File "game/BKscreens.rpy", line 9096, in execute
    use power_card_content
  File "game/BKscreens.rpy", line 9116, in execute
    screen power_card_content:
  File "game/BKscreens.rpy", line 9116, in execute
    screen power_card_content:
  File "game/BKscreens.rpy", line 9125, in execute
    fixed fit_first True xysize (xs, ys):
  File "game/BKscreens.rpy", line 9148, in execute
    vbox align (0.05, 0.05) spacing yres(3):
  File "game/BKscreens.rpy", line 9149, in execute
    for mcolor, mcost in pow.get_mojo_cost():
  File "game/BKscreens.rpy", line 9149, in <module>
    for mcolor, mcost in pow.get_mojo_cost():
  File "game/BKpowers.rpy", line 236, in get_mojo_cost
    if isinstance(conduct, Girl):
NameError: name 'conduct' is not defined

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Thu Jul 27 04:17:19 2023

Deimos96

#54
The way sex stats are displayed when they get a bonus from traits seems odd. Her sex stat should be 20 but is displayed as 40. Note that the sex stat gains come from a trait from the Trait King mod.

Hermenegild

#55
A bug in the rape_attempt() function or in how it is used results in a crash:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 818, in script
    python:
  File "game/BKendday.rpy", line 885, in <module>
    perform_events += perform(sex_act, _girls, _customers)
  File "game/BKfunctions.rpy", line 1662, in perform
    rape, rape_text, rape_changes = rape_attempt(girl, cust, brothel.get_threat(), change_log)
ValueError: not enough values to unpack (expected 3, got 2)

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

Full traceback:
  File "game/BKendday.rpy", line 818, in script
    python:
  File "/repo/private/Brothel_King-pc/renpy/ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/repo/private/Brothel_King-pc/renpy/python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 885, in <module>
    perform_events += perform(sex_act, _girls, _customers)
  File "game/BKfunctions.rpy", line 1662, in perform
    rape, rape_text, rape_changes = rape_attempt(girl, cust, brothel.get_threat(), change_log)
ValueError: not enough values to unpack (expected 3, got 2)

Linux-6.1.0-9-amd64-x86_64-with-glibc2.37 x86_64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Fri Jul 28 12:05:56 2023

The actual bug lies somewhere between the rape_attempt() function returning only two items (rape and rape_text) and the code calling it expecting three (those two plus a changes list). Both the function and the calling code are part of BKfunctions.rpy.

EDIT: Actually, I don't think the rape_changes variable needs to be returned at all: it's passed to the function in the first place (as change_log), and never referenced afterwards. So, it should be enough to change line 1662 of BKfunctions.rpy from
rape, rape_text, rape_changes = rape_attempt(girl, cust, brothel.get_threat(), change_log) to rape, rape_text = rape_attempt(girl, cust, brothel.get_threat(), change_log)and everything should work.

Hermenegild

In the morning, if a girl is training (of her own accord), sometimes there's no background at all, and an error message shows about the "bg_bro" image missing.

A quick investigation turned out line #23 of BKday_events.rpy:
show expression "bg_bro" at top with dissolve
Shouldn't "bg_bro" be without the quotes, as in almost all other contexts?

AnalogSquirrel

Is there something that can be done about performance with respect to mouse-over items?

Granted, I'm running the game on an old linux laptop, through a USB stick (girl packs were taking up too much space on the hard driver, so I gave the game its own space), so I'm not really set up for speed...

Anyway, whenever I mouse-over one of the items with the tool tips, the whole game gets real "jumpy" - it's hard to use the mouse to navigate that way.

I suspect this may be a renpy thing, and there isn't too much you can do about it, but if you could figure out how to smooth it out, it'd be a big improvement.

Oh, one other thing - I just had a girl come up who is both Sane and Insane at the same time.  It isn't game-breaking (they basically offset each other), but I'm not sure it's intentional, either.

Netscape1964

Quote from: AnalogSquirrel on Jul 28, 2023, 02:54 PMIs there something that can be done about performance with respect to mouse-over items?

Granted, I'm running the game on an old linux laptop, through a USB stick (girl packs were taking up too much space on the hard driver, so I gave the game its own space), so I'm not really set up for speed...

Anyway, whenever I mouse-over one of the items with the tool tips, the whole game gets real "jumpy" - it's hard to use the mouse to navigate that way.

I suspect this may be a renpy thing, and there isn't too much you can do about it, but if you could figure out how to smooth it out, it'd be a big improvement.

Oh, one other thing - I just had a girl come up who is both Sane and Insane at the same time.  It isn't game-breaking (they basically offset each other), but I'm not sure it's intentional, either.

since you are on linux, it should be easier to make a mirror folder for the girls folder which, lets face it, is usually the biggest of the game folders. that way you can run the main files from diskdrive to see if it's still jumpy. you can see that way if it's your use stick the problem or the game engine

GoldoTopic starter

New hotfix out fixing the various issues reported (except spellbook display):
https://www.mediafire.com/file/1va1v7cq1psp53x/game_patch_0.3.zip/file

Quote from: kingthandra on Jul 26, 2023, 01:01 PMCan't even start the game, getting this error:

[...]

The problematic girl was Vladilena Milizé

Isn't supported anymore the accent mark in the name?

I just tested it and accents work fine. I'm guessing it's something more exotic than that.

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