CREATE YOUR AI CUM SLUT ON CANDY.AI TRY FOR FREE
x

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

4.60 star(s) 47 Votes
Sep 21, 2019
199
154
any one know the console command to add a trait to a girl ?
i did find this


but i dont know if thats what im looking for i could not make it work i want to add a trait that is already in the game to a girl like "Virgin" or "sweet"
Check the thread here:

maybe you will find your answer here!
 
Sep 21, 2019
199
154
I think there's some bug in the edition of _BK.ini files in this current game version,

generate_as = "all" seems to work. generate_as = "free" makes girl never appear. Tried that with activating only two girl packs to test. Not sure about generate_as = "slave".

Aside from that, it seems like a lot of events that are supposed to give you items do not work either. Can't load rank 1 rank 0 whatever items.

EDIT: The problem seems to be "free" AND "unique = True". Basically if "free" without "unique" is activated you see shit ton of clones in free, but with "all" and "unique = True" they can only appear in the slave market. I do not think this was the intended behaviour.
Are there some special properties that force the girl to be not possibly free and unique? Traits are random and so are stats. Weird...

EDIT2: Ok so playing around with game.free_girls, the girls with "unique = True" and "generate_as = "free"" do not show up in the UI, but their data is there. By manually changing the base pack of Boa Hancock to "unique = True" and "generate_as = "free"" and using the renpy command

for g in game.free_girls: print(g.pack_name)

I see one occurence of Boa Hancock, but the UI isn't there. By manually setting every girl of game.free_girls to Boa Hancock (basically doing game.free_girls[X] = game.free_girls[Y] where Y is where Boa Hancock is), no girl shows up in the UI, it's a ghost city...

EDIT3: Ok, if I don't want to cheat, but interact with the girl, I have to look it up on
Python:
for g in game.free_girls: print(g.pack_name)
and then type
Python:
show screen free_girl_interact(game.free_girls[Y])
where Y is the position of the girl in the array (starting from 0). Apparently it is just having a girl with "unique = True" at generation time that causes this problem. Must be related to a _BK.ini loading problem, since manually changing the "game.free_girls[Y].original" field doesn't do anything. Which field? I do not know yet.

EDIT4: Don't do that ^, game is stuck.
Ok, making a new reply to myself just for this, hoping the devs see it. I corrected the bug. So basically the problems all come from the file BKfunctions.py.

The function
Python:
def can_generate(girl, free=False, context="game", location=None): # Context can be 'game' or 'mix'. Location is an object
needs to be changed to
Python:
def can_generate(girl, free=False, context="game", location=None, check_unique=True): # Context can be 'game' or 'mix'. Location is an object
and within this function replace
Python:
if girl.count_occurences("all") >= 1:
    return False
by
Python:
if (girl.count_occurences("all") >= 1) and check_unique:
    return False
and then in line 600 replace the current line by
Python:
if (girl.MC_interact and girl.init_dict["background story/move_after_meeting"]) or can_generate(girl, free=True, location=location_dict[slot], check_unique = False):
Explanation: the function can_generate is used without context here, and misleading in cycle_free_girls(). We are assigning girls that are already generated to a new position. Thus, we are not checking if the girl can be generated: checking for unicity creates a problem in this particular context, we are checking if the already generated girl can be assigned to this position.
 

Hermenegild

Member
Sep 18, 2017
481
256
You don't have permission to view the spoiler content. Log in or register now.
You don't have permission to view the spoiler content. Log in or register now.
You don't have permission to view the spoiler content. Log in or register now.
Guys, if you want to report bugs, it's better to do that on the HentHighSchool forum (link in OP). The dev rarely checks here.
 

vadi9203

Member
Aug 2, 2019
378
226
I noticed some bugs, these might have already been mentioned earlier in the thread, I didn't check. What is the general consensus? Can we expect a bugfix version sometime soon?

The bugs:

1. Some story scenes have the grey checkered background showing at the edges of a 16:9 view.

2. If you chose Maya to be the new guard captain, the scene at the guard tower will have a default grey renpy figure shape for her sidekick guy (what is his name?) and then later in the captain's room for Maya as well.

3. When choosing perks for girls at the level up screen, if you don't click Cancel or Confirm, but click to the edge, where the overlayed level up screen doesn't cover the girl screen, there is a renpy error screen, but you can rollback from there.

4. When having some things in MC inventory, and opening girl inventory to give some item to her, moving to the 3rd or higher page of MC inventory also gives a renpy error where you can rollback from.

5. In the city girl view when all the options are unlocked for a girl, half of the "Ask for fetish" line spills over at the bottom of the screen. (I don't even remember if there is supposed to be anything below that.)
For all of this most likely you are only using the base game without applying the req patch for it. If you send me the traceback.txt i can check wich version of the game you are using.

Edit: the renpy error one will create a traceback.txt for you
 
Last edited:
  • Like
Reactions: korte7

vadi9203

Member
Aug 2, 2019
378
226
any one know the console command to add a trait to a girl ?
i did find this


but i dont know if thats what im looking for i could not make it work i want to add a trait that is already in the game to a girl like "Virgin" or "sweet"
Thats for adding new traits for the game. It will not add any of it to the girl itseslf when you are already playing. The most easiest way to add an existing trait to a girl is with the King's way mod. (But be aware it will be very laggy when you try to add a trait to a girl)
 

Nedara

Newbie
Oct 1, 2017
36
43
Question. I'm a new player on this game, and basically installed:
- Several girls mods
- The trait king mod
and that's it.
And, huh, basically neither my settings (fullscreen, the options) nor the achievements are saved. Regular saves are, but the options and achievements are basically wiped on launch. Did I do something wrong?
 

vadi9203

Member
Aug 2, 2019
378
226
Question. I'm a new player on this game, and basically installed:
- Several girls mods
- The trait king mod
and that's it.
And, huh, basically neither my settings (fullscreen, the options) nor the achievements are saved. Regular saves are, but the options and achievements are basically wiped on launch. Did I do something wrong?
If you are only just installed the game then ofc you lose the settings and archivement. You have 2 save folder for the game. (Thats why the save's remain. There are 2 copies)
1. the game folder itself
2. in the users/your username"/appdata/roaming/renpy/bro king with some number.

the archivement and settings are saved in the rpyc files (the settings and archivements etc should remain even if you update the game) if you delete those then you lose all previous things what you made beforehand (like settings, prefences, archivements, progress on the story etc)
it's the same with the fresh install where you dont have the rpyc files
 
Last edited:

Nedara

Newbie
Oct 1, 2017
36
43
Thanks, but when I say "it's wiped on launch", it means "it's wiped on launch WITHOUT ME DELETING THE SAVES" in case it wasn't obvious:
 

vadi9203

Member
Aug 2, 2019
378
226
Thanks, but when I say "it's wiped on launch", it means "it's wiped on launch WITHOUT ME DELETING THE SAVES" in case it wasn't obvious:
o_O first time seeing this behavior (and im a veteran player too. I was playing this game since the start of 0.2). Are you on the lastest update? If yes i send this video for Goldo on the HHS forum. Maybe he can provide you some info what to make out of this.
 

Nedara

Newbie
Oct 1, 2017
36
43
I will still try a fresh install with limited amount of packs and mods, but thanks. And yes, i'm on 0.3 (never played before).
 

vadi9203

Member
Aug 2, 2019
378
226
I will still try a fresh install with limited amount of packs and mods, but thanks. And yes, i'm on 0.3 (never played before).
I sent the video on the HHS forum.
This one is an answer from Jman (a pretty big modder. He even made his own version of Bk in 0.15b):
Offhand, this looks like the 'persistent' file is never saved. Does that fellow actually have this file, either in 'game/saves' or the Ren'Py user directory? Is either directory a protected directory for some reason? Does the file change (at least the file date) when opening and closing the game?

But, yeah, sounds pretty puzzling.


Edit: Unless they've somehow smuggled in a 'persistent._clear()' call or something like that. Now that'd be one mean girlpack!


An edit from me: it's a bit off topic but you can trust his skills. He and me even made his Bonanza version of BK playable for the 0.2 (spent a few days on it with the lot of bug reports from me). But it got lost during the death of the first HHS forum.

Oh and for the save for this i meant the regular save directory for the regular save's ^. ^ "
"it's wiped on launch WITHOUT ME DELETING THE SAVES"
 
Last edited:

lhucio

Member
Jan 7, 2021
137
276
ok... being in the previous chapter (chapter 3 i think) while trying to capture the kunoichis, I bought Papa his house after bringing him a whore he asked for, later he told me to bring him a whore with 75 in some stats for something related to the magic in his house, but instead I captured the kunoichis and advanced to the next chapter and to a new house.


Now having a whore that meets the requirements I click on Papa portrait and nothing happens, is it a bug? is this event not fihinished yet? or am I doing something wrong?

You don't have permission to view the spoiler content. Log in or register now.
You don't have permission to view the spoiler content. Log in or register now.
You don't have permission to view the spoiler content. Log in or register now.
 
Last edited:
Sep 21, 2019
199
154
That one was another thread where the he tryed to add a new trait for an event. He will not find the answer there.
You are absolutely right, the thread itself give some information but not the whole thing plain and clear. I'll try to complete it now.

any one know the console command to add a trait to a girl ?
i did find this


but i dont know if thats what im looking for i could not make it work i want to add a trait that is already in the game to a girl like "Virgin" or "sweet"
The command to add a trait is, after you have selected the specific girl (interact, stats button, etc):
Python:
girl.add_trait(T)
where T is a trait within the file BKtraits.rpy in the game folder. For example, if you want to add the first gold trait do
Python:
girl.add_trait(gold_traits[0])
Note, that this appends to the list of traits. If you want to insert the trait at a specific position in the list, for example the first, do
Python:
girl.add_trait(gold_traits[0], _pos = 0)
You can never replace traits. But you can remove traits if you know which trait they are:
Python:
girl.remove_trait(gold_traits[0])
will undo the operation for example.

As an experiment, you can try to add all gold traits (once) with the command
Python:
for t in gold_traits: girl.add_trait(t)
and to remove the/all negative traits (once) do
Python:
for t in neg_traits: girl.remove_trait(t)
You will notice that you can stack multiple copies of the same trait. The game does not check for unicity.
 

korte7

Newbie
Jul 20, 2020
29
45
For all of this most likely you are only using the base game without applying the req patch for it. If you send me the traceback.txt i can check wich version of the game you are using.
Yes, thanks, I didn't notice the patch. I don't have these problems after applying the patch.
 

vadi9203

Member
Aug 2, 2019
378
226
ok... being in the previous chapter (chapter 3 i think) while trying to capture the kunoichis, I bought Papa his house after bringing him a whore he asked for, later he told me to bring him a whore with 75 in some stats for something related to the magic in his house, but instead I captured the kunoichis and advanced to the next chapter and to a new house.


Now having a whore that meets the requirements I click on Papa portrait and nothing happens, is it a bug? is this event not fihinished yet? or am I doing something wrong?

You don't have permission to view the spoiler content. Log in or register now.
You don't have permission to view the spoiler content. Log in or register now.
You don't have permission to view the spoiler content. Log in or register now.
It's not a bug, but a bit of a mistake on Goldo's part that it's lets you advance to chapter 4. You should do the Papa freak second req while you are still in chapter 3..
A temp fix can be done if you change this in BKchapter2.rpy:

Code:
label visit_papa():

    play sound s_chimes

    if game.chapter == 2:

    ....

    elif game.chapter == 3:
    ....
to:

Code:
label visit_papa():

    play sound s_chimes

    if game.chapter == 2:

    ....

    elif game.chapter in 4: # temp fix for chapter 4 cells access
    ....
It worked for Acron on the HHS forum. Dont know how he didn't got a syntax error though.

Edit: Dont forget to make a copy of BKchapter2.rpy somewhere if you want to restart the game.
 
Last edited:
  • Like
Reactions: lhucio
4.60 star(s) 47 Votes