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

Found this error after ending day:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 943, in script
    python:
  File "game/BKendday.rpy", line 960, in <module>
    farm_events += farm.programs[girl].resolve("training")
  File "game/BKfarm.rpy", line 758, in resolve
    change_log.add("MINION LEVEL UP (level " + str(mn.level) + ")", col="special")
  File "game/BKendday.rpy", line 29, in add
    self.entries.append(NightChangeEntry(*args, **kwargs))
  File "game/BKendday.rpy", line 57, in __init__
    raise AssertionError("Wrong color code. Error with entry %s, type %s, ttip_title: %s, ttip: %s, color: %s" % (msg, type, ttip_title, ttip, self.color))
AssertionError: Wrong color code. Error with entry MINION LEVEL UP (level 1), type normal, ttip_title: , ttip: , color: =#FF99

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

Full traceback:
  File "game/BKendday.rpy", line 943, in script
    python:
  File "C:\Users\Dani\Desktop\Juegos\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\Desktop\Juegos\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 960, in <module>
    farm_events += farm.programs[girl].resolve("training")
  File "game/BKfarm.rpy", line 758, in resolve
    change_log.add("MINION LEVEL UP (level " + str(mn.level) + ")", col="special")
  File "game/BKendday.rpy", line 29, in add
    self.entries.append(NightChangeEntry(*args, **kwargs))
  File "game/BKendday.rpy", line 57, in __init__
    raise AssertionError("Wrong color code. Error with entry %s, type %s, ttip_title: %s, ttip: %s, color: %s" % (msg, type, ttip_title, ttip, self.color))
AssertionError: Wrong color code. Error with entry MINION LEVEL UP (level 1), type normal, ttip_title: , ttip: , color: =#FF99

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Mon Oct  2 03:00:42 2023

hughfj08

Quote from: Goldo on Sep 29, 2023, 01:53 PM
Quote from: hughfj08 on Sep 27, 2023, 06:28 PMI'm not sure if it has been mentioned yet, because most of us probably almost never use this function.

But the manual sell option doesn't provide any of the sale revenue

As far as I can see, it works on my end. Can you be more specific about the sequence of events for this bug to happen?

I am in the Act IV section with my brothel in the Magic Gardens
Have just completed a monthly quest
Went to sell a slave to have the funds to max the building after I click advance
No additional funds appear after sale.
I have also tried selling after advancing and placing my brothel in the Cathedral zone, but no change.

This was found on the patch prior to your Sept 22 patch post

BaiumSS

None of the stores refresh and the guild never changes requests or classes

ryan555

Quote from: Goldo on Sep 29, 2023, 01:53 PM
Quote from: hughfj08 on Sep 27, 2023, 06:28 PMI'm not sure if it has been mentioned yet, because most of us probably almost never use this function.

But the manual sell option doesn't provide any of the sale revenue

As far as I can see, it works on my end. Can you be more specific about the sequence of events for this bug to happen?

I found that this sale bug happens if you press sell on a girl who has items like clothing then click right mouse button. The girl disappears (she doesn't even go to the slave market) and you don't get any gold. If she doesn't have items it seems to work as expected for me.
To properly sell her, you have to press sell, then wait through the popups on the left side of the screen about the items she holds and the last text box whatever she has to say. Or just smash left click.

I guess this has something to do with how the game handles transferring items from the girl to the players inventory before selling the girl?

YPJ

#184
hi

first time posting bug report, if something wrong pls tell me

1. bug happens when i switching shops
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1693, in script call
    call visit_merchant(shop) from _call_visit_merchant_10
  File "game/BKmain.rpy", line 1756, in script
    $ game.sort(right_focus.items, context = context + " items")
  File "game/BKmain.rpy", line 1756, in <module>
    $ game.sort(right_focus.items, context = context + " items")
  File "game/BKclasses.rpy", line 80, in sort
    target.sort(key=lambda x, s=sorter[1]: getattr(x, s), reverse=sorter[3]) # str(getattr(x, s))
  File "game/BKclasses.rpy", line 80, in <lambda>
    target.sort(key=lambda x, s=sorter[1]: getattr(x, s), reverse=sorter[3]) # str(getattr(x, s))
AttributeError: 'Minion' object has no attribute 'price'

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

Full traceback:
  File "game/BKmain.rpy", line 1693, in script call
    call visit_merchant(shop) from _call_visit_merchant_10
  File "game/BKmain.rpy", line 1756, in script
    $ game.sort(right_focus.items, context = context + " items")
  File "F:\BK\Brothel_King 0.3\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\BK\Brothel_King 0.3\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 1756, in <module>
    $ game.sort(right_focus.items, context = context + " items")
  File "game/BKclasses.rpy", line 80, in sort
    target.sort(key=lambda x, s=sorter[1]: getattr(x, s), reverse=sorter[3]) # str(getattr(x, s))
  File "F:\BK\Brothel_King 0.3\renpy\revertable.py", line 97, in do_mutation
    return method(self, *args, **kwargs)
  File "game/BKclasses.rpy", line 80, in <lambda>
    target.sort(key=lambda x, s=sorter[1]: getattr(x, s), reverse=sorter[3]) # str(getattr(x, s))
AttributeError: 'Minion' object has no attribute 'price'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Wed Oct 11 21:00:32 2023
[close]

2. bug happens when i take item from girl
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1461, in script
    $ res = ui.interact()
  File "game/BKmain.rpy", line 1461, in <module>
    $ res = ui.interact()
  File "game/BKitems.rpy", line 427, in execute
    screen item_tab(context, left_party, right_party): # Where X_party are a list of inventory-holding characters
  File "game/BKitems.rpy", line 427, in execute
    screen item_tab(context, left_party, right_party): # Where X_party are a list of inventory-holding characters
  File "game/BKitems.rpy", line 455, in execute
    fixed:
  File "game/BKitems.rpy", line 470, in execute
    if right_focus:
  File "game/BKitems.rpy", line 471, in execute
    vbox xsize xres(255) xalign 1.0 xanchor 1.0 ypos 0.1:
  File "game/BKitems.rpy", line 476, in execute
    hbox xalign 1.0:
  File "game/BKitems.rpy", line 480, in execute
    use item_list(items=right_focus.items, owner=right_focus, counterpart=left_focus, sc_prefix="shift_") id "il2"
  File "game/BKitems.rpy", line 588, in execute
    screen item_list(items, owner, counterpart, sc_prefix, search=False): # May also accept Minions as 'items'
  File "game/BKitems.rpy", line 588, in execute
    screen item_list(items, owner, counterpart, sc_prefix, search=False): # May also accept Minions as 'items'
  File "game/BKitems.rpy", line 612, in execute
    vbox xsize xres(180):
  File "game/BKitems.rpy", line 613, in execute
    frame xfill True:
  File "game/BKitems.rpy", line 618, in execute
    has vbox
  File "game/BKitems.rpy", line 625, in execute
    if items:
  File "game/BKitems.rpy", line 627, in execute
    for i in range(line_nb):
  File "game/BKitems.rpy", line 628, in execute
    if page_index+i < len(items):
  File "game/BKitems.rpy", line 629, in execute
    $ it = items[page_index+i]
  File "game/BKitems.rpy", line 629, in <module>
    $ it = items[page_index+i]
IndexError: list index out of range

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

Full traceback:
  File "game/BKmain.rpy", line 1461, in script
    $ res = ui.interact()
  File "F:\BK\Brothel_King 0.3\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\BK\Brothel_King 0.3\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 1461, in <module>
    $ res = ui.interact()
  File "F:\BK\Brothel_King 0.3\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "F:\BK\Brothel_King 0.3\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 "F:\BK\Brothel_King 0.3\renpy\display\core.py", line 4052, in interact_core
    root_widget.visit_all(lambda d : d.per_interact())
  File "F:\BK\Brothel_King 0.3\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "F:\BK\Brothel_King 0.3\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "F:\BK\Brothel_King 0.3\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "F:\BK\Brothel_King 0.3\renpy\display\screen.py", line 476, in visit_all
    callback(self)
  File "F:\BK\Brothel_King 0.3\renpy\display\core.py", line 4052, in <lambda>
    root_widget.visit_all(lambda d : d.per_interact())
  File "F:\BK\Brothel_King 0.3\renpy\display\screen.py", line 487, in per_interact
    self.update()
  File "F:\BK\Brothel_King 0.3\renpy\display\screen.py", line 680, in update
    self.screen.function(**self.scope)
  File "game/BKitems.rpy", line 427, in execute
    screen item_tab(context, left_party, right_party): # Where X_party are a list of inventory-holding characters
  File "game/BKitems.rpy", line 427, in execute
    screen item_tab(context, left_party, right_party): # Where X_party are a list of inventory-holding characters
  File "game/BKitems.rpy", line 455, in execute
    fixed:
  File "game/BKitems.rpy", line 470, in execute
    if right_focus:
  File "game/BKitems.rpy", line 471, in execute
    vbox xsize xres(255) xalign 1.0 xanchor 1.0 ypos 0.1:
  File "game/BKitems.rpy", line 476, in execute
    hbox xalign 1.0:
  File "game/BKitems.rpy", line 480, in execute
    use item_list(items=right_focus.items, owner=right_focus, counterpart=left_focus, sc_prefix="shift_") id "il2"
  File "game/BKitems.rpy", line 588, in execute
    screen item_list(items, owner, counterpart, sc_prefix, search=False): # May also accept Minions as 'items'
  File "game/BKitems.rpy", line 588, in execute
    screen item_list(items, owner, counterpart, sc_prefix, search=False): # May also accept Minions as 'items'
  File "game/BKitems.rpy", line 612, in execute
    vbox xsize xres(180):
  File "game/BKitems.rpy", line 613, in execute
    frame xfill True:
  File "game/BKitems.rpy", line 618, in execute
    has vbox
  File "game/BKitems.rpy", line 625, in execute
    if items:
  File "game/BKitems.rpy", line 627, in execute
    for i in range(line_nb):
  File "game/BKitems.rpy", line 628, in execute
    if page_index+i < len(items):
  File "game/BKitems.rpy", line 629, in execute
    $ it = items[page_index+i]
  File "game/BKitems.rpy", line 629, in <module>
    $ it = items[page_index+i]
  File "F:\BK\Brothel_King 0.3\renpy\revertable.py", line 217, in __getitem__
    rv = list.__getitem__(self, index)
IndexError: list index out of range

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Wed Oct 11 20:17:55 2023
[close]

3. also i have a lot of errors when i scroll up job reports
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1077, in script call
    call show_night_event(ev) from _call_show_night_event
  File "game/BKevents.rpy", line 784, in script
    python:
  File "game/BKevents.rpy", line 788, in <module>
    raise AssertionError("Error displaying text: %s. Farm debug log: %s" % (text_descript, str(debug_night_text)))
AssertionError: Error displaying text: {size=29}{color=[c_pink]}'Mister! Would you like to come and have a look at our wares? *giggles*'{/color}
{/size}. Farm debug log: [['', "{size=29}{color=[c_pink]}'Mister! Would you like to come and have a look at our wares? *giggles*'{/color}\n{/size}"], <store.NightChangeLog object at 0x0000000010dbc5e0>]

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

Full traceback:
  File "game/BKendday.rpy", line 1077, in script call
    call show_night_event(ev) from _call_show_night_event
  File "game/BKevents.rpy", line 784, in script
    python:
  File "F:\BK\Brothel_King 0.3\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\BK\Brothel_King 0.3\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 788, in <module>
    raise AssertionError("Error displaying text: %s. Farm debug log: %s" % (text_descript, str(debug_night_text)))
AssertionError: Error displaying text: {size=29}{color=[c_pink]}'Mister! Would you like to come and have a look at our wares? *giggles*'{/color}
{/size}. Farm debug log: [['', "{size=29}{color=[c_pink]}'Mister! Would you like to come and have a look at our wares? *giggles*'{/color}\n{/size}"], <store.NightChangeLog object at 0x0000000010dbc5e0>]

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Wed Oct 11 21:12:43 2023
[close]

4. when talking with citizen for hints (new suzume option) my action points going to -1, -2, -3... so i can speak with them when i got 0 AP.

5. looks like my safe is broken, i have goal "Talk to Suzume again about Narika" like 4 weeks and nothing happens and when i talk to Suzume i got message "<PLACEHOLDER> UNLOKING Narika EVENT CHAIN (Not implemented yet)".

Hellouda

The problem of the Re-stock affect the girls in the town too. When you buy all items they offer you, they can´t re-stock new items. Is a loop of empty shops

Beo

Quote from: BaiumSS on Oct 07, 2023, 01:44 PMNone of the stores refresh and the guild never changes requests or classes

Quote from: antihuman on Oct 11, 2023, 10:16 PMThe problem of the Re-stock affect the girls in the town too. When you buy all items they offer you, they can´t re-stock new items. Is a loop of empty shops


I think I fixed this on my end. I would usually get this error:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1438, in script
    python:
  File "game/BKendday.rpy", line 1444, in <module>
    calendar.newday()
  File "game/BKclasses.rpy", line 2904, in newday
    self.updates()
  File "game/BKclasses.rpy", line 2909, in updates
    weekly_updates(new_district)
  File "game/BKfunctions.rpy", line 2779, in weekly_updates
    update_shops()
  File "game/BKfunctions.rpy", line 643, in update_shops
    shop.restock(once_a_day=False)
  File "game/BKclasses.rpy", line 1565, in restock
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKclasses.rpy", line 1565, in <lambda>
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKclasses.rpy", line 1565, in <listcomp>
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKfunctions.rpy", line 4661, in parse_dice_formula
    return sum(term(x) for x in formula.split('+'))
  File "game/BKfunctions.rpy", line 4661, in <genexpr>
    return sum(term(x) for x in formula.split('+'))
  File "game/BKfunctions.rpy", line 4659, in term
    return factor(p[0]) if len(p)==1 else factor(p[0])*factor(p[1])
  File "game/BKfunctions.rpy", line 4655, in factor
    return sum(random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))
  File "game/BKfunctions.rpy", line 4655, in <genexpr>
    return sum(random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))
AttributeError: 'int' object has no attribute 'randint'

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

Full traceback:
  File "game/BKendday.rpy", line 1438, in script
    python:
  File "J:\PG\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 "J:\PG\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 1444, in <module>
    calendar.newday()
  File "game/BKclasses.rpy", line 2904, in newday
    self.updates()
  File "game/BKclasses.rpy", line 2909, in updates
    weekly_updates(new_district)
  File "game/BKfunctions.rpy", line 2779, in weekly_updates
    update_shops()
  File "game/BKfunctions.rpy", line 643, in update_shops
    shop.restock(once_a_day=False)
  File "game/BKclasses.rpy", line 1565, in restock
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKclasses.rpy", line 1565, in <lambda>
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKclasses.rpy", line 1565, in <listcomp>
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKfunctions.rpy", line 4661, in parse_dice_formula
    return sum(term(x) for x in formula.split('+'))
  File "game/BKfunctions.rpy", line 4661, in <genexpr>
    return sum(term(x) for x in formula.split('+'))
  File "game/BKfunctions.rpy", line 4659, in term
    return factor(p[0]) if len(p)==1 else factor(p[0])*factor(p[1])
  File "game/BKfunctions.rpy", line 4655, in factor
    return sum(random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))
  File "game/BKfunctions.rpy", line 4655, in <genexpr>
    return sum(random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))
AttributeError: 'int' object has no attribute 'randint'

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Thu Oct 12 11:47:02 2023


In BKfunctions.rpy, I fixed the below line as the random function was missing the "renpy." at the beginning:

    def parse_dice_formula(formula):
        def factor(f):
            g = f.split('d')
            if len(g)==1:
                return int(f)
            return sum(renpy.random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))


return sum(random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))

should be

return sum(renpy.random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))

Hellouda

Beo, dude, you did it! i check it and the re-stock problem was solved!. Thanks!

Inuman9668

hello there. been a while. went to get an employee from the free girl selection and got all the way to the end and got the following. it can be ignored and the game still runs but the girl does not show up as being employed.

While running game code:
  File "game/BKmain.rpy", line 243, in script call
    call free_girl_interact(result) from _call_free_girl_interact
  File "game/BKinteractions_free.rpy", line 20, in script call
    call expression city_label pass (girl=girl) from _call_expression_4
  File "game/__completed/Sill/_events.rpy", line 83, in <module>
NameError: name 'acquire_girl' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 243, in script call
    call free_girl_interact(result) from _call_free_girl_interact
  File "game/BKinteractions_free.rpy", line 20, in script call
    call expression city_label pass (girl=girl) from _call_expression_4
  File "game/girls/Sill/_events.rpyc", line 83, in script
  File "D:\18\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:\18\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/__completed/Sill/_events.rpy", line 83, in <module>
NameError: name 'acquire_girl' is not defined

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Sat Oct 14 06:19:48 2023

not sure what to do to fix this one. the girl pack runs well on 0.2, but I'm running 0.3 with latest patch. any help would be appreciated. thanks in advance.

Beo

Quote from: DarkFire on Sep 23, 2023, 04:03 AMFound this error after pressing end day:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 943, in script
    python:
  File "game/BKendday.rpy", line 984, in <module>
    resting_text, resting_changes = girl.rest()
  File "game/BKgirlclass.rpy", line 2511, in rest
    resting_changes.add("(full recovery)", "header", color="good", separator="\n")
  File "game/BKendday.rpy", line 29, in add
    self.entries.append(NightChangeEntry(*args, **kwargs))
TypeError: __init__() got an unexpected keyword argument 'color'

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

Full traceback:
  File "game/BKendday.rpy", line 943, in script
    python:
  File "C:\Users\Dani\Desktop\Juegos\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\Desktop\Juegos\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 984, in <module>
    resting_text, resting_changes = girl.rest()
  File "game/BKgirlclass.rpy", line 2511, in rest
    resting_changes.add("(full recovery)", "header", color="good", separator="\n")
  File "game/BKendday.rpy", line 29, in add
    self.entries.append(NightChangeEntry(*args, **kwargs))
TypeError: __init__() got an unexpected keyword argument 'color'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Sat Sep 23 06:00:35 2023


Seems like whenever an error like this pops up, it's because the keyword argument should be "col" instead of "color"

I had this error, too, and changed the line in BKgirlclass.rpy to be this:

resting_changes.add("(full recovery)", "header", col="good", separator="\n")
seems to work after that

Hellouda

#190
Good day everyone! The error that prevents the girls recovering energy on the farm ocurred again. From the beginning to act 4 there wasn´t any problem.
This happened when i bought several animal, monsters, etc (from NPC Stella). The bondage event started and then, this error ocurred again.

GoldoTopic starter

Hi guys, some news:

  • I had to overcome a serious case of writer's block, but I am well into writing Chapter 3's story which is why I have been quiet a while. I test events as I write to achieve a passable state and avoid creating a huge testing backlog later on, but that makes it a slow process.
  • There are four main beats to Chapter 3's story. One of them is nearly done, but it was the hardest and the template for others, so it should be easier for me to progress from now on.
  • I have reverted back to Ren'py 8.0.1 which expectedly caused some new problems, but at least I can confirm it removes all of the graphical glitches.
  • Finally, due to the brittle nature of the build I'm working on, it is hard for me to release a 0.3 patch soonish. If you experience serious bugs (I think only the 'color' one was gamebreaking), please use one of the workarounds provided on this thread.
  • I will eventually release a new 0.3 build, complete, using Renpy 8.0.1. It will hopefully be more stable.

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

GoldoTopic starter

Quote from: Beo on Oct 12, 2023, 04:58 PM
Quote from: BaiumSS on Oct 07, 2023, 01:44 PMNone of the stores refresh and the guild never changes requests or classes

Quote from: antihuman on Oct 11, 2023, 10:16 PMThe problem of the Re-stock affect the girls in the town too. When you buy all items they offer you, they can´t re-stock new items. Is a loop of empty shops


I think I fixed this on my end. I would usually get this error:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1438, in script
    python:
  File "game/BKendday.rpy", line 1444, in <module>
    calendar.newday()
  File "game/BKclasses.rpy", line 2904, in newday
    self.updates()
  File "game/BKclasses.rpy", line 2909, in updates
    weekly_updates(new_district)
  File "game/BKfunctions.rpy", line 2779, in weekly_updates
    update_shops()
  File "game/BKfunctions.rpy", line 643, in update_shops
    shop.restock(once_a_day=False)
  File "game/BKclasses.rpy", line 1565, in restock
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKclasses.rpy", line 1565, in <lambda>
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKclasses.rpy", line 1565, in <listcomp>
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKfunctions.rpy", line 4661, in parse_dice_formula
    return sum(term(x) for x in formula.split('+'))
  File "game/BKfunctions.rpy", line 4661, in <genexpr>
    return sum(term(x) for x in formula.split('+'))
  File "game/BKfunctions.rpy", line 4659, in term
    return factor(p[0]) if len(p)==1 else factor(p[0])*factor(p[1])
  File "game/BKfunctions.rpy", line 4655, in factor
    return sum(random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))
  File "game/BKfunctions.rpy", line 4655, in <genexpr>
    return sum(random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))
AttributeError: 'int' object has no attribute 'randint'

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

Full traceback:
  File "game/BKendday.rpy", line 1438, in script
    python:
  File "J:\PG\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 "J:\PG\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 1444, in <module>
    calendar.newday()
  File "game/BKclasses.rpy", line 2904, in newday
    self.updates()
  File "game/BKclasses.rpy", line 2909, in updates
    weekly_updates(new_district)
  File "game/BKfunctions.rpy", line 2779, in weekly_updates
    update_shops()
  File "game/BKfunctions.rpy", line 643, in update_shops
    shop.restock(once_a_day=False)
  File "game/BKclasses.rpy", line 1565, in restock
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKclasses.rpy", line 1565, in <lambda>
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKclasses.rpy", line 1565, in <listcomp>
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKfunctions.rpy", line 4661, in parse_dice_formula
    return sum(term(x) for x in formula.split('+'))
  File "game/BKfunctions.rpy", line 4661, in <genexpr>
    return sum(term(x) for x in formula.split('+'))
  File "game/BKfunctions.rpy", line 4659, in term
    return factor(p[0]) if len(p)==1 else factor(p[0])*factor(p[1])
  File "game/BKfunctions.rpy", line 4655, in factor
    return sum(random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))
  File "game/BKfunctions.rpy", line 4655, in <genexpr>
    return sum(random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))
AttributeError: 'int' object has no attribute 'randint'

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Thu Oct 12 11:47:02 2023


In BKfunctions.rpy, I fixed the below line as the random function was missing the "renpy." at the beginning:

    def parse_dice_formula(formula):
        def factor(f):
            g = f.split('d')
            if len(g)==1:
                return int(f)
            return sum(renpy.random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))


return sum(random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))

should be

return sum(renpy.random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))

Please check that 'import random' is indeed present at the beginning of BKfunctions.rpy. If it is, I don't see why your fix would change anything (but hey, if it works...).
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!

GoldoTopic starter

Quote from: ryan555 on Oct 11, 2023, 06:26 PM
Quote from: Goldo on Sep 29, 2023, 01:53 PM
Quote from: hughfj08 on Sep 27, 2023, 06:28 PMI'm not sure if it has been mentioned yet, because most of us probably almost never use this function.

But the manual sell option doesn't provide any of the sale revenue

As far as I can see, it works on my end. Can you be more specific about the sequence of events for this bug to happen?

I found that this sale bug happens if you press sell on a girl who has items like clothing then click right mouse button. The girl disappears (she doesn't even go to the slave market) and you don't get any gold. If she doesn't have items it seems to work as expected for me.
To properly sell her, you have to press sell, then wait through the popups on the left side of the screen about the items she holds and the last text box whatever she has to say. Or just smash left click.

I guess this has something to do with how the game handles transferring items from the girl to the players inventory before selling the girl?

Got it! Manual fix (because I am not releasing a patch for now): In BKfunctions.rpy, find this line at the end of 'relinquish_girl()' around line 1458:
   renpy.pause(0.5)and delete that line.
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!

hayyo0455

During training or work, bisexual tag images appear even if you are not bisexual. This didn't happen in previous versions, so I wonder if it was intentional.