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

Hermenegild

One of the Kosmo events, the one with the ninja girl, crashes.

In line #13536 of BKstory_events.rpy, put the arguments to MC.rand_say() into the list and the issue disappears:

$ MC.rand_say(["Yes, I'm sure you love to jerk off in front of 20 dudes...", "Cool. That should give you the audience you need when you're bouncing on your boy's dick."])

In other words, change the "(" and ")" pair to "([" and"])". I believe "((" and "))" would also work.

Hermenegild

#31
Another crash: if a girl has the Leading by Example perk, the game can crash at the end of the day.

The actual crash can be fixed by changing line 1196 of BKendday.rpy from
girl2_changes.append()to
girl2_changes.append(stat)
It's not a complete fix, however, as a message later still shows variable placeholders ("[girl.fullname]") instead of the real girl's name. You also have to change line #1397 of BKendday.rpy from
$ text1 = "[girl.fullname] helped "to
$ text1 = girl.fullname + " helped "
And it's not a complete fix, either: sometimes there's an error "No list" displayed in the message.

GoldoTopic starter

https://www.mediafire.com/file/1va1v7cq1psp53x/game+patch+0.3.zip/file

Another hotfix (includes changes from the previous one).

Please be aware that hotfixes most of the time do not solve issues in existing games, you need to start a new game to make sure it works. Please don't report a bug as not fixed unless you have tested it in a new game.



Quote from: neronero on Jul 23, 2023, 12:02 AM
Quote from: Goldo on Jul 22, 2023, 11:32 PM
Quote from: neronero on Jul 22, 2023, 01:22 PMI like the new 'knobs' on sliders, but it's counterintuitive that you can't click just anywhere on them to drag them around. You must click on the (height of the) slider.
Can't reproduce that one, the whole 'knob' is interactive for me (in fact even clicking outside of the knob works). Is it on a specific screen?
Brothel settings/helpers & customer options are examples. I think it's due to me running the game in 4k on custom resolution. The knobs stay big while the sliders take up less screenspace, and that makes the issue more obvious.
There are some other scaling issues, but for now I'll switch to testing in 1920x1080. I'll try listing them all in one go at some point.
Sorry about that, but I can't figure out an easy way to dynamically resize bars and a quick search on lemmasoft's forum didn't turn up any answer. Since I only plan to support a couple of resolutions in the interest of my own sanity, I'm going to put that bug on the back burner for now.  :(

Quote from: oratorio on Jul 23, 2023, 01:01 AMGive and equip a thong to my girl. It shows in both of our inventories as "Equipped". Select it in my inventory and try to give it again and get this error:
[...]
Cannot seem to reproduce that one. Can you detail the sequence of events needed to reproduce it? Does it happen with any other item?

Quote from: zvb123 on Jul 23, 2023, 02:49 AMthere's definitely something weird going on with persistent storage.
I had a clean new install, and even removed the folder in AppData\Roaming\RenPy\Bro King-1419249291 and it still complained about the girl packs I had previously installed going missing.
I'm guessing the fix is telling Ren'py that BK 0.3 is a different game altogether (probably by changing 'config.name'). Kind of too late to do that on the test version, but I will make sure to change it for the actual release.

Quote from: Hermenegild on Jul 23, 2023, 08:36 AM
Quote from: Netscape1964 on Jul 22, 2023, 03:17 AMmy main problem is cosmo event keeps getting longer and longer. that idiot comes with one more slave to show off every time the event triggers. i'm up to about 7 or 8 slave he shows to me. it's getting a bit long.
This is happening for me as well. In addition, he now comes almost every day. The new patch doesn't seem to fix it (at least not without restarting the game).
Does it happen in a new game? If you use an older save with the bug, the bug will remain. Please don't make a bug report unless this happens in a new game after applying the hotfix.

Quote from: neronero on Jul 23, 2023, 08:50 AM
Quote from: vadi92 on Jul 23, 2023, 07:47 AMStats dosn't change for other slaves. (Having a girl with mentor trait)
@Goldo Mentor is a Trait King trait that gives the "skill catch up" effect, like the Leading by Example perk. Looks like a genuine issue with the refactored skill catch up code.
Well the game would crash first because of the 'girl2_changes.append()' bug, so I assume the original poster used 'ignore' or he wouldn't have been able to get through. I don't expect the python code to proceed as normal in that situation so it will be necessary to test it again before determining if it is indeed broken.

Quote from: vadi92 on Jul 23, 2023, 09:07 AMFor small brothel events the background dosn't seem to loading up. For me neither the tavern or onsen background loading up for them.
Please list the precise events for which it is happening so I can fix them in an appropriate manner.

Thank you guys again for all the reports!
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!

Netscape1964

the kosmo bug where he comes more often and overstays his welcome seems fixed.

wbfox

#34
problem with farm training

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 388, in resolve
    raise AssertionError("Reaction " + reaction + " not recognized.")
AssertionError: Reaction accepted not recognized.

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

Full traceback:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "C:\Users\FS\Downloads\ry\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\FS\Downloads\ry\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 388, in resolve
    raise AssertionError("Reaction " + reaction + " not recognized.")
AssertionError: Reaction accepted not recognized.

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Mon Jul 24 14:54:48 2023

edit: different one after changing from gentle to rough

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 529, in resolve
    change_log = self.apply_changes(girl, changes)
  File "game/BKfarm.rpy", line 976, in apply_changes
    mojo_color = mojo_dict[self.act]
KeyError: 'naked'

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

Full traceback:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "C:\Users\FS\Downloads\ry\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\FS\Downloads\ry\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 529, in resolve
    change_log = self.apply_changes(girl, changes)
  File "game/BKfarm.rpy", line 976, in apply_changes
    mojo_color = mojo_dict[self.act]
KeyError: 'naked'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Mon Jul 24 14:58:43 2023

wbfox

sorting girls by badge doesn't work if one doesn't have one picked

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1115, in script
    $ result = ui.interact()
  File "game/BKmain.rpy", line 1115, in <module>
    $ result = ui.interact()
  File "renpy/common/00action_other.rpy", line 583, in __call__
    rv = self.callable(*self.args, **self.kwargs)
TypeError: '<' not supported between instances of 'int' and 'str'

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

Full traceback:
  File "game/BKmain.rpy", line 1115, in script
    $ result = ui.interact()
  File "C:\Users\FS\Downloads\ry\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\FS\Downloads\ry\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 1115, in <module>
    $ result = ui.interact()
  File "C:\Users\FS\Downloads\ry\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\FS\Downloads\ry\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\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4540, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 770, in event
    rv = self.child.event(ev, x, y, st)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  [Previous line repeated 1 more time]
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1401, in event
    rv = super(Window, self).event(ev, x, y, st)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 279, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\behavior.py", line 1138, in event
    return handle_click(self.clicked)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\behavior.py", line 1071, in handle_click
    rv = run(action)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\behavior.py", line 368, in run
    new_rv = run(i, *args, **kwargs)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\behavior.py", line 375, in run
    return action(*args, **kwargs)
  File "renpy/common/00action_other.rpy", line 583, in __call__
    rv = self.callable(*self.args, **self.kwargs)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\revertable.py", line 97, in do_mutation
    return method(self, *args, **kwargs)
TypeError: '<' not supported between instances of 'int' and 'str'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Mon Jul 24 15:57:10 2023

vadi92

Quote from: Goldo on Jul 23, 2023, 11:41 PMWell the game would crash first because of the 'girl2_changes.append()' bug, so I assume the original poster used 'ignore' or he wouldn't have been able to get through. I don't expect the python code to proceed as normal in that situation so it will be necessary to test it again before determining if it is indeed broken.

The mentor trait is working the same way as the "Leading by Example" perk. But it was posted by Hermenegild too that it was broken.

oratorio

Cannot buy MK1 resource extractor. It says the item cannot be traded.

Also, occasionally items will duplicate in inventory. When this happens, you can give it to a girl and equip it. It still shows up in the MC's inventory. It will show as equipped in both. When you select either one, both become selected. If you try to give away or sell the one in the MC's inventory, it causes a skippable error. If you collect all copies in the MC's inventory you can sell it to the shop. You are paid for the first copy. All future copies she will tell you that she will only pay you for the item once. This appears to be the only way to remove the broken item from the MC's inventory. Once this happens you can give as many copies as you want to any girl (with errors each time). I have not identified the conditions for the initial duplication but it has happened to me four times (two weapons, two panties).

vadi92

#38
Quote from: Goldo on Jul 23, 2023, 11:41 PMPlease list the precise events for which it is happening so I can fix them in an appropriate manner.

For this i cant really give you a precise event because it's pretty random.
But the ones where i never seen a background it's the tavern event, the okiya event, the onsen event. And most of the time i dont see a background at the obedience event either.

darksythe53

Quote from: vadi92 on Jul 24, 2023, 04:05 PM
Quote from: Goldo on Jul 23, 2023, 11:41 PMPlease list the precise events for which it is happening so I can fix them in an appropriate manner.

For this i cant really give you a precise event because it's pretty random.
But the ones where i never seen a background it's the tavern event, the okiya event, the onsen event. And most of the time i dont see a background at the obedience event either.
Here is an example image from my game. I started a new game viewing the into.  When it is time to select my starting room, I can see everything except the strip club which appears like this. Any subsequent events involving the strip club appear like this as well.

hughfj08

The Lightning Rod cannot be purchased.

Says this item cannot be traded.

Also if you hold CTRL to skip text, sometimes it causes the girls portrait to black out until the following day or a close program.
Reloading the save, or just returning to main menu doesnt fix it

kingthandra

Can'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

Calob

#42
No-story mode does not unlock the customer options on reaching chapter 2, despite it automatically unlocking the wagon. You still get the morning event with the blacksmith once you start building something.

Edit: Confirm the second farm error as wbfox:

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 949, in <module>
    farm_events += farm.programs[girl].resolve("training")
  File "game/BKfarm.rpy", line 718, in resolve
    change_log = self.apply_changes(girl, changes)
  File "game/BKfarm.rpy", line 976, in apply_changes
    mojo_color = mojo_dict[self.act]
KeyError: 'naked'

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

Full traceback:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "D:\Games\Brothel King 0.3 alpha\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "D:\Games\Brothel King 0.3 alpha\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 718, in resolve
    change_log = self.apply_changes(girl, changes)
  File "game/BKfarm.rpy", line 976, in apply_changes
    mojo_color = mojo_dict[self.act]
KeyError: 'naked'

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Mon Jul 24 19:27:39 2023
[close]

Edit2: The above error also occurs with KeyError: 'bisexual' as well as 'naked'.

Edit3: This error the morning after using an 'abduction' card:
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1511, in script call
    call play_events(_type = "morning") from _call_play_events_1 # Note: Morning events are set with the new day's date: beware of the confusion
  File "game/BKevents.rpy", line 713, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 725, in script call
    $ ev.play()
  File "game/BKpowers.rpy", line 1332, in script
    with dissolve
  File "renpy/common/00action_other.rpy", line 583, in __call__
    rv = self.callable(*self.args, **self.kwargs)
  File "game/BKdeclarations.rpy", line 1373, in unlock_pic
    if path not in persistent.seen_list:
UnboundLocalError: local variable 'path' referenced before assignment

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

Full traceback:
  File "game/BKendday.rpy", line 1511, in script call
    call play_events(_type = "morning") from _call_play_events_1 # Note: Morning events are set with the new day's date: beware of the confusion
  File "game/BKevents.rpy", line 713, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 725, in script call
    $ ev.play()
  File "game/BKpowers.rpy", line 1332, in script
    with dissolve
  File "D:\Games\Brothel King 0.3 alpha\renpy\ast.py", line 1678, in execute
    renpy.exports.with_statement(trans, paired=paired)
  File "D:\Games\Brothel King 0.3 alpha\renpy\exports.py", line 1757, in with_statement
    return renpy.game.interface.do_with(trans, paired, clear=clear)
  File "D:\Games\Brothel King 0.3 alpha\renpy\display\core.py", line 2975, in do_with
    return self.interact(trans_pause=True,
  File "D:\Games\Brothel King 0.3 alpha\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 "D:\Games\Brothel King 0.3 alpha\renpy\display\core.py", line 4052, in interact_core
    root_widget.visit_all(lambda d : d.per_interact())
  File "D:\Games\Brothel King 0.3 alpha\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "D:\Games\Brothel King 0.3 alpha\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "D:\Games\Brothel King 0.3 alpha\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  [Previous line repeated 3 more times]
  File "D:\Games\Brothel King 0.3 alpha\renpy\display\screen.py", line 476, in visit_all
    callback(self)
  File "D:\Games\Brothel King 0.3 alpha\renpy\display\core.py", line 4052, in <lambda>
    root_widget.visit_all(lambda d : d.per_interact())
  File "D:\Games\Brothel King 0.3 alpha\renpy\display\screen.py", line 487, in per_interact
    self.update()
  File "D:\Games\Brothel King 0.3 alpha\renpy\display\screen.py", line 706, in update
    i.set_transform_event(self.current_transform_event)
  File "D:\Games\Brothel King 0.3 alpha\renpy\display\behavior.py", line 2673, in set_transform_event
    rv = run(self.action)
  File "D:\Games\Brothel King 0.3 alpha\renpy\display\behavior.py", line 375, in run
    return action(*args, **kwargs)
  File "renpy/common/00action_other.rpy", line 583, in __call__
    rv = self.callable(*self.args, **self.kwargs)
  File "game/BKdeclarations.rpy", line 1373, in unlock_pic
    if path not in persistent.seen_list:
UnboundLocalError: local variable 'path' referenced before assignment

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Mon Jul 24 19:49:01 2023
[close]

Edit4: Spell icons seem to not be working, they give me the girl silhouette icon

DarkFire

I have this error when selecting any Sexual Training in Act 2. (Didn't happened in Act 1)

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 693, in script call
    call farm_change_program(obj) from _call_farm_change_program
  File "game/BKevents.rpy", line 3838, in script call
    call send_to_farm_menu() from _call_send_to_farm_menu
  File "game/BKevents.rpy", line 3467, in script
    call screen farm_menu(prog)
  File "renpy/common/000statements.rpy", line 670, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "game/BKscreens.rpy", line 6997, in execute
    screen farm_tab():
  File "game/BKscreens.rpy", line 6997, in execute
    screen farm_tab():
  File "game/BKscreens.rpy", line 7007, in execute
    if selected_girl and selected_girl in farm.girls:
  File "game/BKscreens.rpy", line 7015, in execute
    use girl_profile(selected_girl, context="farm")
  File "game/BKscreens.rpy", line 1164, in execute
    screen girl_profile(girl, context = None): # context can be girls, slavemarket, farm, free
  File "game/BKscreens.rpy", line 1164, in execute
    screen girl_profile(girl, context = None): # context can be girls, slavemarket, farm, free
  File "game/BKscreens.rpy", line 1172, in execute
    fixed:
  File "game/BKscreens.rpy", line 1179, in execute
    if girl.profile != None:
  File "game/BKscreens.rpy", line 1184, in execute
    if context == "farm":
  File "game/BKscreens.rpy", line 1185, in execute
    frame background c_ui_dark:
  File "game/BKscreens.rpy", line 1191, in execute
    has vbox
  File "game/BKscreens.rpy", line 1222, in execute
    if farm.programs[girl].target != "no training":
  File "game/BKscreens.rpy", line 1232, in execute
    hbox spacing xres(10):
  File "game/BKscreens.rpy", line 1234, in execute
    textbutton farm.programs[girl].installation_name.capitalize() style "inv_no_padding" yalign 0.5 text_size res_font(14) text_bold True action NullAction() tooltip farm.programs[girl].installation.get_tooltip()
  File "game/BKscreens.rpy", line 1234, in keywords
    textbutton farm.programs[girl].installation_name.capitalize() style "inv_no_padding" yalign 0.5 text_size res_font(14) text_bold True action NullAction() tooltip farm.programs[girl].installation.get_tooltip()
  File "game/BKscreens.rpy", line 1234, in <module>
    textbutton farm.programs[girl].installation_name.capitalize() style "inv_no_padding" yalign 0.5 text_size res_font(14) text_bold True action NullAction() tooltip farm.programs[girl].installation.get_tooltip()
AttributeError: 'NoneType' object has no attribute 'get_tooltip'

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

Full traceback:
  File "game/BKmain.rpy", line 693, in script call
    call farm_change_program(obj) from _call_farm_change_program
  File "game/BKevents.rpy", line 3838, in script call
    call send_to_farm_menu() from _call_send_to_farm_menu
  File "game/BKevents.rpy", line 3467, in script
    call screen farm_menu(prog)
  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 670, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\exports.py", line 3345, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  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 6997, in execute
    screen farm_tab():
  File "game/BKscreens.rpy", line 6997, in execute
    screen farm_tab():
  File "game/BKscreens.rpy", line 7007, in execute
    if selected_girl and selected_girl in farm.girls:
  File "game/BKscreens.rpy", line 7015, in execute
    use girl_profile(selected_girl, context="farm")
  File "game/BKscreens.rpy", line 1164, in execute
    screen girl_profile(girl, context = None): # context can be girls, slavemarket, farm, free
  File "game/BKscreens.rpy", line 1164, in execute
    screen girl_profile(girl, context = None): # context can be girls, slavemarket, farm, free
  File "game/BKscreens.rpy", line 1172, in execute
    fixed:
  File "game/BKscreens.rpy", line 1179, in execute
    if girl.profile != None:
  File "game/BKscreens.rpy", line 1184, in execute
    if context == "farm":
  File "game/BKscreens.rpy", line 1185, in execute
    frame background c_ui_dark:
  File "game/BKscreens.rpy", line 1191, in execute
    has vbox
  File "game/BKscreens.rpy", line 1222, in execute
    if farm.programs[girl].target != "no training":
  File "game/BKscreens.rpy", line 1232, in execute
    hbox spacing xres(10):
  File "game/BKscreens.rpy", line 1234, in execute
    textbutton farm.programs[girl].installation_name.capitalize() style "inv_no_padding" yalign 0.5 text_size res_font(14) text_bold True action NullAction() tooltip farm.programs[girl].installation.get_tooltip()
  File "game/BKscreens.rpy", line 1234, in keywords
    textbutton farm.programs[girl].installation_name.capitalize() style "inv_no_padding" yalign 0.5 text_size res_font(14) text_bold True action NullAction() tooltip farm.programs[girl].installation.get_tooltip()
  File "game/BKscreens.rpy", line 1234, in <module>
    textbutton farm.programs[girl].installation_name.capitalize() style "inv_no_padding" yalign 0.5 text_size res_font(14) text_bold True action NullAction() tooltip farm.programs[girl].installation.get_tooltip()
AttributeError: 'NoneType' object has no attribute 'get_tooltip'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Tue Jul 25 04:31:42 2023

GoldoTopic starter

New hotfix fixing a few bugs (and hopefully not raising new ones):

https://www.mediafire.com/file/1va1v7cq1psp53x/game+patch+0.3.zip/file



Not everything can be fixed though.

Quote from: oratorio on Jul 24, 2023, 02:45 PMAlso, occasionally items will duplicate in inventory. When this happens, you can give it to a girl and equip it. It still shows up in the MC's inventory. It will show as equipped in both. When you select either one, both become selected. If you try to give away or sell the one in the MC's inventory, it causes a skippable error. If you collect all copies in the MC's inventory you can sell it to the shop. You are paid for the first copy. All future copies she will tell you that she will only pay you for the item once. This appears to be the only way to remove the broken item from the MC's inventory. Once this happens you can give as many copies as you want to any girl (with errors each time). I have not identified the conditions for the initial duplication but it has happened to me four times (two weapons, two panties).
It would be most useful to identify the context for this duplication. Until we can reproduce it I won't be able to fix it.

Quote from: hughfj08 on Jul 24, 2023, 07:42 PMAlso if you hold CTRL to skip text, sometimes it causes the girls portrait to black out until the following day or a close program.
Reloading the save, or just returning to main menu doesnt fix it
I don't think it's related to using 'Ctrl' at all, it's the issue highlighted in my first reply to this post. There's nothing I can do on my end until I figure out what Ren'py 8.1.1 broke. But the most likely answer will be to roll back to 8.0.1.

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.
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!