Ren'Py Brothel King [v0.2] [Goldo]

4.60 star(s) 46 Votes

hirukamitsuki

Newbie
Oct 4, 2018
98
6
Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 159, in script
    with Dissolve(0.3)
  File "game/BKscreens.rpy", line 3144, in execute
    screen visit_district():
  File "game/BKscreens.rpy", line 3144, in execute
    screen visit_district():
  File "game/BKscreens.rpy", line 3171, in execute
    frame:
  File "game/BKscreens.rpy", line 3177, in execute
    has vbox
  File "game/BKscreens.rpy", line 3187, in execute
    grid 3 2:
  File "game/BKscreens.rpy", line 3191, in execute
    for location in location_dict[selected_district.name]:
  File "game/BKscreens.rpy", line 3193, in execute
    button:
  File "game/BKscreens.rpy", line 3207, in execute
    vbox:
  File "game/BKscreens.rpy", line 3211, in execute
    if location.secret:
  File "game/BKscreens.rpy", line 3222, in execute
    fixed:
  File "game/BKscreens.rpy", line 3238, in execute
    if location.action:
  File "game/BKscreens.rpy", line 3239, in execute
    button xsize 50 ysize 50 xpos 105 ypos 55 background None xmargin 0 ymargin 0 xpadding 0 ypadding 0:
  File "game/BKscreens.rpy", line 3240, in execute
    if location.can_do_action():
  File "game/BKscreens.rpy", line 3241, in execute
    add location_tb[location.menu[1]] insensitive_alpha 0.33 idle_alpha 0.66 hover_alpha 1.0
  File "game/BKscreens.rpy", line 3241, in <module>
    add location_tb[location.menu[1]] insensitive_alpha 0.33 idle_alpha 0.66 hover_alpha 1.0
KeyError: u'c3_contact_homura'

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

Full traceback:
  File "game/BKmain.rpy", line 159, in script
    with Dissolve(0.3)
  File "renpy/ast.py", line 1443, in execute
    renpy.exports.with_statement(trans, paired)
  File "renpy/exports.py", line 1682, in with_statement
    return renpy.game.interface.do_with(trans, paired, clear=clear)
  File "renpy/display/core.py", line 2752, in do_with
    clear=clear)
  File "renpy/display/core.py", line 3315, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, **kwargs)
  File "renpy/display/core.py", line 3735, in interact_core
    root_widget.visit_all(lambda i : i.per_interact())
  File "renpy/display/core.py", line 568, in visit_all
    d.visit_all(callback, seen)
  File "renpy/display/core.py", line 568, in visit_all
    d.visit_all(callback, seen)
  File "renpy/display/core.py", line 568, in visit_all
    d.visit_all(callback, seen)
  File "renpy/display/core.py", line 568, in visit_all
    d.visit_all(callback, seen)
  File "renpy/display/screen.py", line 436, in visit_all
    callback(self)
  File "renpy/display/core.py", line 3735, in <lambda>
    root_widget.visit_all(lambda i : i.per_interact())
  File "renpy/display/screen.py", line 447, in per_interact
    self.update()
  File "renpy/display/screen.py", line 637, in update
    self.screen.function(**self.scope)
  File "game/BKscreens.rpy", line 3144, in execute
    screen visit_district():
  File "game/BKscreens.rpy", line 3144, in execute
    screen visit_district():
  File "game/BKscreens.rpy", line 3171, in execute
    frame:
  File "game/BKscreens.rpy", line 3177, in execute
    has vbox
  File "game/BKscreens.rpy", line 3187, in execute
    grid 3 2:
  File "game/BKscreens.rpy", line 3191, in execute
    for location in location_dict[selected_district.name]:
  File "game/BKscreens.rpy", line 3193, in execute
    button:
  File "game/BKscreens.rpy", line 3207, in execute
    vbox:
  File "game/BKscreens.rpy", line 3211, in execute
    if location.secret:
  File "game/BKscreens.rpy", line 3222, in execute
    fixed:
  File "game/BKscreens.rpy", line 3238, in execute
    if location.action:
  File "game/BKscreens.rpy", line 3239, in execute
    button xsize 50 ysize 50 xpos 105 ypos 55 background None xmargin 0 ymargin 0 xpadding 0 ypadding 0:
  File "game/BKscreens.rpy", line 3240, in execute
    if location.can_do_action():
  File "game/BKscreens.rpy", line 3241, in execute
    add location_tb[location.menu[1]] insensitive_alpha 0.33 idle_alpha 0.66 hover_alpha 1.0
  File "game/BKscreens.rpy", line 3241, in <module>
    add location_tb[location.menu[1]] insensitive_alpha 0.33 idle_alpha 0.66 hover_alpha 1.0
KeyError: u'c3_contact_homura'

Windows-10-10.0.19041
Ren'Py 7.4.10.2178
Brothel King 0.2 v211126
Sat Dec 18 01:00:41 2021

anyone have a solution?
 

Jman9

Engaged Member
Jul 17, 2019
2,295
958
are the crash still there if i using the new version?
The issue shouldn't be present any more, except if you've already slept with Lady Homura. Console 'plaza.action = False' to make it go away then.

This is a hook for some chapter 3 stuff, and isn't supposed to be active yet. Unfortunately, it probably was for some iteration of 0.2 back in November.
 

DougTheC

Member
Oct 15, 2018
386
218
The ninja hunt minigame is pure evil done by a sadist :LOL:. I really think it should be made easier, by a lot.
Still waiting on the analysis if it's pure evil.

On my laptop with touchpad, I was able to get reasonable gameplay by changing the game's "timer" property.
For new games, change BKminigame.rpy line 64 "timer=0.8" to "timer=1.5" or higher.
For existing game, each time grid of houses shows up, console "njgame.timer=1.5" or higher.

And you can buy makibishis in the shop for instant win over kunoichi, 1 per use.
 
Last edited:

hirukamitsuki

Newbie
Oct 4, 2018
98
6
The issue shouldn't be present any more, except if you've already slept with Lady Homura. Console 'plaza.action = False' to make it go away then.

This is a hook for some chapter 3 stuff, and isn't supposed to be active yet. Unfortunately, it probably was for some iteration of 0.2 back in November.
thanks for the help
 

hirukamitsuki

Newbie
Oct 4, 2018
98
6
Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1032, 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 659, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 671, in script call
    $ ev.play()
  File "game/BKevents.rpy", line 232, in script
    python:
  File "game/BKevents.rpy", line 233, in <module>
    if isinstance(char, Girl) and char.current_food_effect[eff.target] == eff: # Disables food lock
AttributeError: 'RevertableList' object has no attribute 'target'

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

Full traceback:
  File "game/BKendday.rpy", line 1032, 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 659, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 671, in script call
    $ ev.play()
  File "game/BKevents.rpy", line 232, in script
    python:
  File "renpy/ast.py", line 928, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "renpy/python.py", line 2245, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 233, in <module>
    if isinstance(char, Girl) and char.current_food_effect[eff.target] == eff: # Disables food lock
AttributeError: 'RevertableList' object has no attribute 'target'

Windows-10-10.0.19041
Ren'Py 7.4.10.2178
Brothel King 0.2 v211209
Sat Dec 18 11:34:15 2021

sorry i got this error can anyone help
 

Jman9

Engaged Member
Jul 17, 2019
2,295
958
File "game/BKevents.rpy", line 233, in <module>
if isinstance(char, Girl) and char.current_food_effect[eff.target] == eff: # Disables food lock
AttributeError: 'RevertableList' object has no attribute 'target'

Brothel King 0.2 v211209
Still too old to play. :p You likely also need to use the 'Reset food effects' debug option after updating.
 

vadi9203

Member
Aug 2, 2019
324
192
New patch is out.
Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1032, 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 659, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 671, in script call
    $ ev.play()
  File "game/BKevents.rpy", line 232, in script
    python:
  File "game/BKevents.rpy", line 233, in <module>
    if isinstance(char, Girl) and char.current_food_effect[eff.target] == eff: # Disables food lock
AttributeError: 'RevertableList' object has no attribute 'target'

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

Full traceback:
  File "game/BKendday.rpy", line 1032, 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 659, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 671, in script call
    $ ev.play()
  File "game/BKevents.rpy", line 232, in script
    python:
  File "renpy/ast.py", line 928, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "renpy/python.py", line 2245, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 233, in <module>
    if isinstance(char, Girl) and char.current_food_effect[eff.target] == eff: # Disables food lock
AttributeError: 'RevertableList' object has no attribute 'target'

Windows-10-10.0.19041
Ren'Py 7.4.10.2178
Brothel King 0.2 v211209
Sat Dec 18 11:34:15 2021
sorry i got this error can anyone help
This is the lastest patch.
 

DougTheC

Member
Oct 15, 2018
386
218
I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/BKevents.rpy", line 233, in <module>
if isinstance(char, Girl) and char.current_food_effect[eff.target] == eff: # Disables food lock
AttributeError: 'RevertableList' object has no attribute 'target'
Still too old to play. :p You likely also need to use the 'Reset food effects' debug option after updating.
The way it is set up, you will need to re-use the "?" cheat menu's 'Reset food effects' after you add any girl to your slaves who was created before the use-food patch.
I found that out after I recruited a free girl.
Left a post in HHS for suggestion.
 
Last edited:

Jman9

Engaged Member
Jul 17, 2019
2,295
958
What do you mean, specifically? How to win find them, how to win the minigame, how to pass them into chapter 3, how to solve their quest for good?
 

vadi9203

Member
Aug 2, 2019
324
192
Open the console with shift+o then type this there:
Code:
game.set_task(None, "story")
Code:
game.set_task(None, "story2")
Code:
game.set_task(None, "story3")
how to beat the kunoichi ?
Search the area's for them. For the first 2 time you can use the Makabishi from the shop for insta win if you are bad with the mini game.

You cant beat them the 3rd time it's still done yet. So for that use the the code what Goldo provided for it.
 

khumak

Engaged Member
Oct 2, 2017
3,789
3,823
The new version has been pretty stable overall, moreso than the last version. I did just run into a crash bug. The food related error makes me think it might have to do with the food I gave one of my girls wearing off after I sold her. It was a contract that I needed the food boost to hit the stat target for.

Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1032, 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 659, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 671, in script call
    $ ev.play()
  File "game/BKevents.rpy", line 232, in script
    python:
  File "game/BKevents.rpy", line 233, in <module>
    if isinstance(char, Girl) and char.current_food_effect[eff.target] == eff: # Disables food lock
AttributeError: 'RevertableList' object has no attribute 'target'

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

Full traceback:
  File "game/BKendday.rpy", line 1032, 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 659, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 671, in script call
    $ ev.play()
  File "game/BKevents.rpy", line 232, in script
    python:
  File "renpy/ast.py", line 928, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "renpy/python.py", line 2245, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 233, in <module>
    if isinstance(char, Girl) and char.current_food_effect[eff.target] == eff: # Disables food lock
AttributeError: 'RevertableList' object has no attribute 'target'

Windows-10-10.0.19041
Ren'Py 7.4.10.2178
Brothel King 0.2 v211209
Sun Dec 19 02:40:50 2021
 

Jman9

Engaged Member
Jul 17, 2019
2,295
958
food related error

File "game/BKevents.rpy", line 233, in <module>
if isinstance(char, Girl) and char.current_food_effect[eff.target] == eff: # Disables food lock
AttributeError: 'RevertableList' object has no attribute 'target'
Food handling was changed recently. Use the 'Reset food effects' debug option from the help menu to reset food for existing girls.
 

Leortha

Active Member
Jun 25, 2019
744
667
You aren't using the lastest patch.


The newest one is v211215
I'm sooooo happy we finally got Goldo to add this patch number thing. This is not the purpose he finally added it for, but it has been so very useful for things like this for us being able to instantly tell from a crash dump that the reporting user is not updated. :)

For those wondering, the intended purpose has to do with the recurring problem of Goldo invalidating old saves when he changes the save structure. The stamp lets the game figure out if a save is from before such a change, and then let the game warn the user if they load a save that is no longer valid for the current version of the game.
 
  • Like
Reactions: Reij, 246 and Jman9

Grumpsatyr

New Member
May 12, 2017
13
6
Hey everyone. I'm trying to figure out how tastes work for the girls. Not the sexual ones, but the one for gifts. I can't seem to find where in the files it talks about the maximum amount of opinions a girl could have about the item types. For example, I have one girl that:
Loves: Hard Liquor
Likes: Precious Things & Erotic Things
Hates: Books & Cute Things

Is there a way to tell how many a girl can have or at least what the maximum they can have? I don't know if I'm crossing the wasted actions line by asking them if I already hit the wall on those things. Thank you in advanced.

Side Note: How could I write in an object or spell that could detect this on each girl?
 
4.60 star(s) 46 Votes