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

Iconic9875667

Got this picking a card at the farm

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 561, in script call
    call farm_powers() from _call_farm_powers
  File "game/BKpowers.rpy", line 414, in script
    $ r = ui.interact() # This captures every return value from the current context
  File "game/BKpowers.rpy", line 414, in <module>
    $ r = ui.interact() # This captures every return value from the current context
  File "game/BKscreens.rpy", line 8470, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 8470, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 8526, in execute
    if selected_card:
  File "game/BKscreens.rpy", line 8527, in execute
    use power_detail(selected_card.get(_super))
  File "game/BKscreens.rpy", line 8420, in execute
    screen power_detail(pow):
  File "game/BKscreens.rpy", line 8420, in execute
    screen power_detail(pow):
  File "game/BKscreens.rpy", line 8422, in execute
    frame xalign 1.0 xsize 0.2 ypos 0.1 xmargin xres(6) top_padding yres(6) bottom_padding yres(12) background c_ui_dark:
  File "game/BKscreens.rpy", line 8423, in execute
    vbox spacing yres(3):
  File "game/BKscreens.rpy", line 8431, in execute
    hbox spacing xres(6):
  File "game/BKscreens.rpy", line 8432, in execute
    if conduit:
  File "game/BKscreens.rpy", line 8432, in <module>
    if conduit:
NameError: name 'conduit' is not defined


EvilPenguin

#106
Quote from: Goldo on Aug 04, 2023, 11:12 AMI cannot reproduce this. Are you on the latest patch, within a new game?

Newest patch 100%. And I'm 90% sure this was a new game.

Link to save (didn't saw a way to attach on forum): https://www.mediafire.com/file/0yjuyrm05uejp1a/3-1-LT1.save/file

Deimos96

Free form training loops the moaning audio indefinitely and is persistent even after reloading the game

EvilPenguin

Did a new run. Same thing in chapter 3, when hovering over cards in the farm:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 561, in script call
    call farm_powers() from _call_farm_powers
  File "game/BKpowers.rpy", line 414, in script
    $ r = ui.interact() # This captures every return value from the current context
  File "game/BKpowers.rpy", line 414, in <module>
    $ r = ui.interact() # This captures every return value from the current context
  File "game/BKscreens.rpy", line 8470, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 8470, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 8526, in execute
    if selected_card:
  File "game/BKscreens.rpy", line 8527, in execute
    use power_detail(selected_card.get(_super))
  File "game/BKscreens.rpy", line 8420, in execute
    screen power_detail(pow):
  File "game/BKscreens.rpy", line 8420, in execute
    screen power_detail(pow):
  File "game/BKscreens.rpy", line 8422, in execute
    frame xalign 1.0 xsize 0.2 ypos 0.1 xmargin xres(6) top_padding yres(6) bottom_padding yres(12) background c_ui_dark:
  File "game/BKscreens.rpy", line 8423, in execute
    vbox spacing yres(3):
  File "game/BKscreens.rpy", line 8431, in execute
    hbox spacing xres(6):
  File "game/BKscreens.rpy", line 8432, in execute
    if conduit:
  File "game/BKscreens.rpy", line 8432, in <module>
    if conduit:
NameError: name 'conduit' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 561, in script call
    call farm_powers() from _call_farm_powers
  File "game/BKpowers.rpy", line 414, in script
    $ r = ui.interact() # This captures every return value from the current context
  File "E:\0 TEST play\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 "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKpowers.rpy", line 414, in <module>
    $ r = ui.interact() # This captures every return value from the current context
  File "E:\0 TEST play\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 "E:\0 TEST play\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 "E:\0 TEST play\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 "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 476, in visit_all
    callback(self)
  File "E:\0 TEST play\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 "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 487, in per_interact
    self.update()
  File "E:\0 TEST play\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 8470, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 8470, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 8526, in execute
    if selected_card:
  File "game/BKscreens.rpy", line 8527, in execute
    use power_detail(selected_card.get(_super))
  File "game/BKscreens.rpy", line 8420, in execute
    screen power_detail(pow):
  File "game/BKscreens.rpy", line 8420, in execute
    screen power_detail(pow):
  File "game/BKscreens.rpy", line 8422, in execute
    frame xalign 1.0 xsize 0.2 ypos 0.1 xmargin xres(6) top_padding yres(6) bottom_padding yres(12) background c_ui_dark:
  File "game/BKscreens.rpy", line 8423, in execute
    vbox spacing yres(3):
  File "game/BKscreens.rpy", line 8431, in execute
    hbox spacing xres(6):
  File "game/BKscreens.rpy", line 8432, in execute
    if conduit:
  File "game/BKscreens.rpy", line 8432, in <module>
    if conduit:
NameError: name 'conduit' is not defined

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sat Aug  5 07:49:41 2023

Iconic9875667

i know its not finished yet but when you are talking to people for ninja hints, you can talk to the same person 3 times and there hint counts each time

neronero

Quote from: vadi92 on Aug 05, 2023, 09:20 AMfor both this and your Friends and Foes mod the background will not show up in 0.3.

https://imgur.com/a/AmTueSo
^ Due to this I suspect that BKstory_events.rpy line 44-50 has the same issue

    if brothel.get_common_rooms():
        $ room = rand_choice(brothel.get_common_rooms()).name
    else:
        $ room = "black"

    $ renpy.show(room, at_list = [top])
    with dissolve
line 45 should probably be $ room = brothel.get_random_room_pic_path()
My Girl Packs: [ link ] - Trait King mod: [ link ]

GoldoTopic starter

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



Quote from: zvb123 on Aug 04, 2023, 11:30 AMgot this error when saving:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00gamemenu.rpy", line 170, in script
    $ ui.interact()
  File "renpy/common/00gamemenu.rpy", line 170, in <module>
    $ ui.interact()
  File "renpy/common/00action_file.rpy", line 397, in __call__
    renpy.save(fn, extra_info=save_name)
TypeError: cannot pickle 'dict_keys' object (perhaps renpy.game.log.log[25].context.scene_lists.layers['screens'][0].displayable.scope['available_mixes'] = dict_keys(['default']))

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

Full traceback:
  File "renpy/common/00gamemenu.rpy", line 170, in script
    $ ui.interact()
  File "C:\Games\games\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:\Games\games\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "renpy/common/00gamemenu.rpy", line 170, in <module>
    $ ui.interact()
  File "C:\Games\games\Brothel_King-pc\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Games\games\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:\Games\games\Brothel_King-pc\renpy\display\core.py", line 4540, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Games\games\Brothel_King-pc\renpy\display\screen.py", line 770, in event
    rv = self.child.event(ev, x, y, st)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 1401, in event
    rv = super(Window, self).event(ev, x, y, st)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 279, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 279, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "C:\Games\games\Brothel_King-pc\renpy\display\behavior.py", line 1138, in event
    return handle_click(self.clicked)
  File "C:\Games\games\Brothel_King-pc\renpy\display\behavior.py", line 1071, in handle_click
    rv = run(action)
  File "C:\Games\games\Brothel_King-pc\renpy\display\behavior.py", line 375, in run
    return action(*args, **kwargs)
  File "renpy/common/00action_file.rpy", line 397, in __call__
    renpy.save(fn, extra_info=save_name)
  File "C:\Games\games\Brothel_King-pc\renpy\loadsave.py", line 432, in save
    reraise(t, e, tb)
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/site-packages/future/utils/__init__.py", line 444, in raise_
  File "C:\Games\games\Brothel_King-pc\renpy\loadsave.py", line 413, in save
    dump((roots, renpy.game.log), logf)
  File "C:\Games\games\Brothel_King-pc\renpy\compat\pickle.py", line 103, in dump
    pickle.dump(o, f, pickle.HIGHEST_PROTOCOL if highest else PROTOCOL)
TypeError: cannot pickle 'dict_keys' object (perhaps renpy.game.log.log[25].context.scene_lists.layers['screens'][0].displayable.scope['available_mixes'] = dict_keys(['default']))

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Fri Aug  4 19:25:55 2023
on the latest patch.
I'm not sure what's going on here. It looks vaguely like an old 0.2 bug where the 'default' girl mix persistent value wasn't initiated properly, but if that was the case you would have had the same problem with 0.2, plus I don't recognize this error as it only refers to vanilla Ren'py code.

Did you perhaps try to save in an odd location? (such as the girl mix screen)

Quote from: Hermenegild on Aug 04, 2023, 11:38 AM
Quote from: Goldo on Aug 04, 2023, 11:12 AM
Quote from: Hermenegild on Aug 04, 2023, 08:19 AMThe "Girls" panel doesn't persist its sorting method. As a result, the girls are not sorted the way you want them to be when reentering the tab. The strange thing is, there seems to be some randomness regarding the way they're sorted, as they're not sorted the same way each time I enter the Girls panel after I change the sort method (but they're not sorted the way I want, either).

It seems to work correctly for the farm.

EDIT: You don't even have to leave the tab, just enter the girls page, change the sorting, interact with a girl, and when coming out of the interaction, the girls list gets resorted again.
I cannot reproduce this. Could you please describe the steps needed to reproduce it? This happens on a new game as well?
I'll try to reproduce it again tomorrow, as this issue has happened in chapter 2, and I need some time to get there. It may be hard to see it if you only have a few girls; I had seven at the time, with levels ranging from 5 to 10. When I clicked "Sort by level", they got sorted by level as they should. Once I interacted with one and returned to the list level, they re-sorted so that they were in the same order as initially (unsorted); I assume this is the order I got them, but I'm not sure. The same thing happened when I tried to sort them by name: sort, exit to the main screen, return to the girls tab, and they're not sorted anymore.

I was playing using the patch from August 1st, IIRC. I'll start a new game to test it again, but I haven't seen any changes in your patches regarding the girls tab.

I'll send you a save file once I have it.
I think I fixed it, here are the steps to fast-check if it is solved on your end:
  • Start a new game
  • Call the console with Shift+o and type this command:debug_sorting_girls() (this will give you some girls with a random rank, level and job to play with)
  • Test the sorting methods

Quote from: EvilPenguin on Aug 04, 2023, 02:37 PM
Quote from: Goldo on Aug 04, 2023, 11:12 AMI cannot reproduce this. Are you on the latest patch, within a new game?

Newest patch 100%. And I'm 90% sure this was a new game.

Link to save (didn't saw a way to attach on forum): https://www.mediafire.com/file/0yjuyrm05uejp1a/3-1-LT1.save/file
Thanks, turns out that problem only happened during the intro because of leftover debugging code. It should be fine now.
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!

EvilPenguin

Perk in Model tree: Overachiever - I think it does nothing. Getting it, do not boost any skills.

neronero

Quote from: 22ndgentlemen on Jul 30, 2023, 12:03 PMJust picked up a bugged(?) girl from the market.  She is level 2 but has -1 perk points to spend.  I also cannot level her up despite having the button and proper indicating icons to do so.

UPDATE:  Now that the girl is leveled up to level 3, I was able to spend only the +10 points going from level 2 to 3, but here perk points are at 0 now having gone from -1 to 0.

EDIT:  Wanted to add additional information in case it mattered or for replication:
girl was bought in year 1 month 2
still in slums location
girl was 3rd total girl
brothel room was bought at same time as girl
Long-winded explanation here.

Possible solution:

(BKgirlclass line ~2669)
            if trait.archetype and self.perk_points > 0 and not no_perks:
                if self.archetypes[trait.archetype].unlocked:
                    self.acquire_perk(self.archetypes[trait.archetype].get_perks(0)[0], forced=True)
                    self.perk_points -= 1
                else:
                    self.unlock_archetype(trait.archetype)
                    self.perk_points -= 2
Change the else to elif self.perk_points > 1
My Girl Packs: [ link ] - Trait King mod: [ link ]

GoldoTopic starter

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

I'm going to take a 2-week break. Please keep posting the bugs you encounter in the meantime, and I will make sure to correct everything once I'm back.

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

EvilPenguin

#115
Abduction spell on success (on failure no errors):

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1515, 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 723, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 735, in script call
    $ ev.play()
  File "game/BKpowers.rpy", line 1305, in script call
    call acquire_girl(girl2) from _call_acquire_girl_4
  File "game/BKevents.rpy", line 7462, in script
    python:
  File "game/BKevents.rpy", line 7466, in <module>
    girl.refresh_pictures()
  File "game/BKgirlclass.rpy", line 539, in refresh_pictures
    if self.location.lower() in town_locations: # Reminder: self.location contains location name (string)
AttributeError: 'NoneType' object has no attribute 'lower'

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

Full traceback:
  File "game/BKendday.rpy", line 1515, 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 723, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 735, in script call
    $ ev.play()
  File "game/BKpowers.rpy", line 1305, in script call
    call acquire_girl(girl2) from _call_acquire_girl_4
  File "game/BKevents.rpy", line 7462, in script
    python:
  File "E:\0 TEST play\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 "E:\0 TEST play\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 7466, in <module>
    girl.refresh_pictures()
  File "game/BKgirlclass.rpy", line 539, in refresh_pictures
    if self.location.lower() in town_locations: # Reminder: self.location contains location name (string)
AttributeError: 'NoneType' object has no attribute 'lower'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Wed Aug  9 10:52:05 2023


EDIT:

Next day error whilke having the captured girl (cleared itself at start of a new week):
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1429, in script
    python:
  File "game/BKendday.rpy", line 1506, in <module>
    girl.refresh_pictures(silent=True)
  File "game/BKgirlclass.rpy", line 539, in refresh_pictures
    if self.location.lower() in town_locations: # Reminder: self.location contains location name (string)
AttributeError: 'NoneType' object has no attribute 'lower'

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

Full traceback:
  File "game/BKendday.rpy", line 1429, in script
    python:
  File "E:\0 TEST play\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 "E:\0 TEST play\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 1506, in <module>
    girl.refresh_pictures(silent=True)
  File "game/BKgirlclass.rpy", line 539, in refresh_pictures
    if self.location.lower() in town_locations: # Reminder: self.location contains location name (string)
AttributeError: 'NoneType' object has no attribute 'lower'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Wed Aug  9 12:47:05 2023


Hermenegild

Assigning the girl to any sex training in the farm should use one minion per girl (two or three for group training, but that's an exception). Yet, when assigning a girl to a facility, two minions get reserved. This makes it impossible to sex-train a girl in the farm during the first chapter, as you're limited to one minion per facility.

22ndgentlemen

#117
Just had 2 instances of the same original (yellow name) girl at the slave market causing an error.  I had to click on the girl to get the error.  I am now running vanilla 0.3 test build.

EDIT:  I was able to Rollback to the main brothel screen and continue my playthrough.

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 116, in script
    $ result = ui.interact()
  File "game/BKmain.rpy", line 116, in <module>
    $ result = ui.interact()
Exception: renpy.restart_interaction() was called 100 times without processing any input.

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

Full traceback:
  File "game/BKmain.rpy", line 116, in script
    $ result = ui.interact()
  File "E:\Anime\Good Stuff\Games\Brothel King\Brothel_King-pc v0.3 -- Test\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "E:\Anime\Good Stuff\Games\Brothel King\Brothel_King-pc v0.3 -- Test\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 116, in <module>
    $ result = ui.interact()
  File "E:\Anime\Good Stuff\Games\Brothel King\Brothel_King-pc v0.3 -- Test\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "E:\Anime\Good Stuff\Games\Brothel King\Brothel_King-pc v0.3 -- Test\renpy\display\core.py", line 3577, in interact
    raise Exception("renpy.restart_interaction() was called 100 times without processing any input.")
Exception: renpy.restart_interaction() was called 100 times without processing any input.

Windows-10-10.0.19044 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Wed Aug  9 05:54:02 2023

neronero

Quote from: 22ndgentlemen on Aug 09, 2023, 10:56 AMJust had 2 instances of the same original (yellow name) girl at the slave market causing an error.  I had to click on the girl to get the error.  I am now running vanilla 0.3 test build.
Do you also have 2 versions of that girl in different folders in your /girl/ folder? I had the same issue and found out I had two folders for that girl.
My Girl Packs: [ link ] - Trait King mod: [ link ]

Hermenegild

#119
The game crashes when a virgin girl has sex for the first time. I had the crash when she was whoring out:
Spoiler
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 1749, in perform
    if girl.pop_virginity():
  File "game/BKgirlclass.rpy", line 5244, in pop_virginity
    self.add_trait(housebroken_trait, pos=1, no_perks=True)
TypeError: add_trait() got an unexpected keyword argument 'pos'

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 1749, in perform
    if girl.pop_virginity():
  File "game/BKgirlclass.rpy", line 5244, in pop_virginity
    self.add_trait(housebroken_trait, pos=1, no_perks=True)
TypeError: add_trait() got an unexpected keyword argument 'pos'
[close]
and also when I tried to do the same while training her:
Spoiler
Full traceback:
  File "game/BKmain.rpy", line 1307, in script call
    call slave_interact(girl) from _call_slave_interact
  File "game/BKinteractions.rpy", line 396, in script
    $ inter.resolve()
  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/BKinteractions.rpy", line 396, in <module>
    $ inter.resolve()
  File "game/BKclasses.rpy", line 6334, in resolve
    if girl.pop_virginity(origin="MC"):
  File "game/BKgirlclass.rpy", line 5250, in pop_virginity
    self.add_trait(trauma_trait, pos=1, no_perks=True)
TypeError: add_trait() got an unexpected keyword argument 'pos'

While running game code:
  File "game/BKmain.rpy", line 1307, in script call
    call slave_interact(girl) from _call_slave_interact
  File "game/BKinteractions.rpy", line 396, in script
    $ inter.resolve()
  File "game/BKinteractions.rpy", line 396, in <module>
    $ inter.resolve()
  File "game/BKclasses.rpy", line 6334, in resolve
    if girl.pop_virginity(origin="MC"):
  File "game/BKgirlclass.rpy", line 5250, in pop_virginity
    self.add_trait(trauma_trait, pos=1, no_perks=True)
TypeError: add_trait() got an unexpected keyword argument 'pos'
[close]

Those crashes can be fixed by editing lines 5244 to 5254 of BKgirlclass.rpy and replacing "pos=1" with "_pos=1", as in the following example:
self.add_trait(housebroken_trait, _pos=1, no_perks=True)
EDIT: this is only a code bug, your saved game is fine (unless you have "Ignore"d the error and now your girl has only two traits).