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

4.60 star(s) 48 Votes

Jman9

Engaged Member
Jul 17, 2019
2,295
964
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
387
221
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
99
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
99
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
964
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
424
245
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
387
221
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
964
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
424
245
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,883
3,945
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
964
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
668
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
14
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?
 

Jman9

Engaged Member
Jul 17, 2019
2,295
964
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?
Exactly 1 'loves', 2 'likes' and 2 'hates'. Note that the two 'likes' and 'hates' actually are not exactly identical.

As _neronero said, five total. But the exact distribution depends on her personality attributes. E.g. 'meek girls have two loves and two hates, while 'masochists' have only one each. These are fixed, too, so any two meek girls will always love the same things and just as intensely.

How could I write in an object or spell that could detect this on each girl?
By coding in Python? :p

I guess you need to iterate over Girl.personality_unlock["loves/likes/hates"] and check against Girl.personality.gift_likes.items(). the 'gpersonalities_likes' dictionary.
 
Last edited:
  • Like
Reactions: __neronero

__neronero

Member
Jan 23, 2021
285
393
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.
There are 5 gift types in total, so you've found them all.

Side Note: How could I write in an object or spell that could detect this on each girl?
Unless I'm missing something, turning the instructions into an object or a spell would require a bit of creativity. I think you'd want to create a dummy spell/object that does nothing by itself, combined with a custom event that repeats itself daily. The event would then check if the MC has the object or (active) spell before deciding if it should run its code or not. Instead of a scheduled event, it might also be possible to run it on command through an extra menu option in the slave interaction menu.

As for that code, have a look at what the game does when you talk to a girl (search for slave_chat_tastes in BKinteractions.rpy) and replicate what it does in your own label/rpy file: Executing girl.talk_tastes("likes/dislikes/loves/hates") and appending what it returns to girl.personality_unlock["..."] in the appropriate box.

edit:
Exactly 1 'loves', 2 'likes' and 2 'hates'. Note that the two 'likes' and 'hates' actually are not exactly identical
Not sure how often this exact distribution is guaranteed since 0.2 combines two base personalities, e.g: An extravert/idealist (sweet) girl would have 1 love, 1 like, 2 dislikes and 1 hate.
 
Last edited:
  • Sad
Reactions: Jman9
4.60 star(s) 48 Votes