• To improve security, we will soon start forcing password resets for any account that uses a weak password on the next login. If you have a weak password or a defunct email, please update it now to prevent future disruption.

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

4.60 star(s) 44 Votes

__neronero

Member
Jan 23, 2021
275
379
In case goldo00 misses it, bug report from the girlpacks/mods thread:

I mean, my problem was not with saving the file (as i usually allowed clones in testing), but with them having keep_last_name = False in config, but in game they all generated with same last name (i thought it was because of keep_init line before). After small test rignt now, i found interesting bug - if game setting in BK have yes set to save first or last name for clones, it will take preference over .ini False setting ( even if use clonning name settings from .ini = yes). So you can have .ini file with keep_first_name = True, keep_last_name = False and game settings with keep first name: no, keep last name = yes, use ini settings = yes - clones will generate saving both first and last names :unsure:

Edit: My guess about naming bug : in BK functions.rpy lines ~3301- 3306, after checking for cloning options in ini, BK checks persistent.keep_firstname (game settings) and only if both checks are False it gets randomized. I probably will change those checks in my copy, but maybe someone can report that to dev to fix globally :)
 

EchoEater

Newbie
Feb 15, 2018
24
2
So for characters that have packs from several different pack creators, which approach do people here suggest for including them:
1. Just pick one of the packs
2. Combine all the packs of that character into one folder
3. Keep each as a separate pack

I'm just curious and would be interested in hearing how people go about it or if there is standard advice for this that I'm just overlooking.
 
Last edited:

Jman9

Engaged Member
Jul 17, 2019
2,294
956
Well, the approach that keeps turning people into pack makers seems to be "I'll combine these two, and add this pic here, and retag it a little, and...". :)
 

vadi9203

Member
Aug 2, 2019
288
174
And in the end you start making your very own pack becuse there are some characters what you like but it's either made long ago or still dont have a pack.
 

goldo00

Newbie
Aug 9, 2019
17
49
no its security events. she'll be active for three days then boom out five. ive up goons again and again still its like there's no check just auto fail. I dont even get a warning about security threats like i did in previous patches.

because she still needs training she doesnt qualify for most quests
What's strange is to the best of my knowledge, nothing has changed in the security system in a long time. Having good security at the beginning should protect you from serious attacks for a good while. A couple of possible explanations:
- You're hoarding cash, making yourself a bigger target (or possibly you gave yourself a lot of cash through cheats)
- You may have pushed the dial to the max on Thug customers, who are more dangerous
- You were plain unlucky

Hard to tell without looking at your save. But I guess we would have had this complaint from other players during testing if it was a general issue.

I do think Goldo ought to put in some warning for when the threat level is starting to overflow. Then again, there's his general obfuscation philosophy.
But the threat level is displayed prominently in the brothel screen and the main screen overview, and you get a warning from Sill if your security is insufficient. What more could I possibly add?

That's good, because your error seems to be a self-inflicted one. There should not be a 'game/script.rpy' at all unless you're playing it through the SDK or something similar. In which case you're on your own.
What Jman is trying to say (in his usual slightly adversary tone ;) ), is that there is no such file as 'script.rpy' in the game/ folder, so that you probably did something wrong when installing.

Gallery code has been ignored for a very long time, to the point that the gallery wasn't really functional, uh, I think even through all of 0.15 and 0.15b?
It's not so much that gallery code has been neglected, as it's that it's not my code. Most of it is tweaked from the CG gallery in the Ren'py cookbook, and some parts of it are a complete blackbox to me. So unless someone who knows his way around PyTom's code can help, I'm afraid it will remain unstable for the time being. I did squash a few bugs for 0.2, though.

Will pregnancy be a feature?
I don't see this getting near the top of my priorities for a long long time, but the 'seeds' (so to speak) are there since silent support for the 'preg' tag have been included for girl packs. I think someone with good coding grasp could release it as a mod; I'd be happy to include the necessary hooks in the game files if needed.

From HHS+ Discord, site replacement:

DougTheCYesterday at 9:03 AM
I'd like to promote cooperation between HHS+ & Brothel King, especially in terms of new shared website/forum/wiki.
My main requirement would be a forum whose design that looks reasonably SFW, like the HHS+ one did, and doesn't raise all sorts of alarms, bells and whistles when I open it at work (as F95 does...).

BTW, some quick tips on using the console for money and resources without disabling achievements:

[...]

If there are any more useful ones I come across I'll add 'em to this post.
If you're going to cheat a lot, might as well activate Debug mode and have access to everything: turn debug to True in BKsettings.rpy or use the console to type:
Code:
debug_mode = True
I hate this minigame as well :p thankfully Goldo has thought of us - you can buy an item called "Makibishi" in the shop which lets you auto-win.
You guys are hurting my feelings. ^^
Do you have any idea how hard it is to make Ren'Py play nice with a whack'a'ninja minigame! ;)

But, like he said, use the Makibishi.

One of my girls glitched out. I sent her on a quest & she never returned. It says she'll be away for -127 days. I cant sell her or anything, so she's just costing me money and taking up a slot.
Of course the console works, but this is indicative of a larger bug. What happened exactly , can you reliably reproduce it?

On the topic of Quicksave and load is there a reason why quickload doesn´t work on specific screens? Not really familiar with Renpy or programming in general so maybe it´s obvious why it doesn´t work^^
Probably an oversight. Which screens would that be?
 
Last edited:
  • Like
Reactions: somebody28

Jman9

Engaged Member
Jul 17, 2019
2,294
956
But the threat level is displayed prominently in the brothel screen and the main screen overview, and you get a warning from Sill if your security is insufficient. What more could I possibly add?
Colour coding and/or an extra warning if threat is about to overflow and cause an event. Possibly also if your security is too weak to completely/partially avert a security event and/or rowdy customer.

Don't make the mistake of asking me "what more could I possibly add?" :p

If you're going to cheat a lot, might as well activate Debug mode...
Debug mode will spam you with extra info you might not be interested in as a player, though.

Do you have any idea how hard it is to make Ren'Py play nice with a whack'a'ninja minigame!
Roughly. Which is why I consider this minigame business some sort of dev virus that seems to bite most people who do programming and game dev. :cautious:

Of course the console works, but this is indicative of a larger bug. What happened exactly...
I think I've seen the same bug once or twice. What happens is that the quest counter ticks down to 0, but never triggers her return.

I had an extended version of this, too, where (some) girls would only return from quests once I changed screens and then went back to the main screen. I think it was caused by Ren'Py not being able to handle all of Bonanza's processing at once, but I imagine the germs of this problem might be in vanilla, too.
 

hrjfwf4

Newbie
Jul 30, 2021
35
9
But the threat level is displayed prominently in the brothel screen and the main screen overview, and you get a warning from Sill if your security is insufficient. What more could I possibly add?
yes it is shown but it seems a bit vague sometimes when its on normal nothing happens 90% of days for a long long time and then on other ocassions every third day a security event happens also at normal. At least thats the experience i have had. But it is effective enough to not disturb gameplay at least for me.
 

Leortha

Active Member
Jun 25, 2019
744
665
Re: Pregnancy

Goldo mentions the possibility of a pregnancy mod, but I think that we are still lacking something fundamental even before that stage. And it's something that requires no coding skill. We still do not have a workable idea for exactly what would/could happen in a pregnancy event.

We need an idea for an event that makes sense in the existing game. And keep in mind that this is a game that operates on a day by day level. When human pregnancies normally take 9 months. Yeah, accelerated pregnancy is possible in a magical world, but you would need an in-game explanation for such. And just how short would it be? What, if anything, is functionally different about the girl during this period? And what happens to the baby at the end of things? Why would the player want to go through this whole thing? And what happens for a girl that has no pregnancy pics, or if the pics are not suitable for the event. For instance if the only pregnancy pic for a given girl is a sex act pic, you have nothing to show her pregnant other time.

So, before a mod can be coded, we would need a workable design for such an event. And I have yet to see even the basic framework for such an event beyond just wanting a pregnancy event to use the pregnancy pics.
 

Oratorio

Newbie
Aug 3, 2017
31
26
krakr said:
One of my girls glitched out. I sent her on a quest & she never returned. It says she'll be away for -127 days. I cant sell her or anything, so she's just costing me money and taking up a slot.
I had this exact problem happen once long, long ago. I believe the exact situation that caused it was advancing to the next brothel on the same night that the girl was supposed to return. Somehow the return_from_quest event got skipped.

You might be able to get her to come back by selecting the girl, opening the console, and typing:
girl.return_from("quest")

If she was sent to a class, it would be:
girl.return_from("class")

Someone who knows the syntax of renpy console calls could probably tell if that would work.
 
  • Like
Reactions: __neronero

Teron

Member
Donor
Game Developer
Aug 13, 2017
243
787
New patch out with minor fixes (link in my sig).

You may also find the updated Boa Hancock custom files (as requested by DougTheC).
Unfortunately the gallery update still causes errors with webm files, perhaps these aren't classed as videos in renpy?
Which is a shame as your solution certainly looks better than mine :D
I had to re-add the code to ignore webm files to get it working again.

Code:
        if pic:
            if is_imgfile(pic, video=False): # Disables videos until we can find a way to make them show in CG gallery
                if pic.endswith(".webm") is False:
                    if pic in persistent.seen_list:
                        return True

            elif renpy.seen_image(pic) or pic in persistent.seen_list: # These are renpy images and not filenames
                if pic.endswith(".webm") is False:
                    return True
 

DougTheC

Member
Oct 15, 2018
386
218
You might be able to get her to come back by selecting the girl, opening the console, and typing:
girl.return_from("quest")

If she was sent to a class, it would be:
girl.return_from("class")

Someone who knows the syntax of renpy console calls could probably tell if that would work.
Sometimes you do not get the "girl" object set by just a simple select. If this is the case by failure when consoling "girl.name", you can try cycling thru and using the successful MC.girls[n] from MC.girls[0].name, etc.
If possible, selecting a girl, then Interactions, seems to always set girl object; another possible one is "selected_girl.name".
 

DougTheC

Member
Oct 15, 2018
386
218
I mean, my problem was not with saving the file (as i usually allowed clones in testing), but with them having keep_last_name = False in config, but in game they all generated with same last name (i thought it was because of keep_init line before). After small test rignt now, i found interesting bug - if game setting in BK have yes set to save first or last name for clones, it will take preference over .ini False setting ( even if use clonning name settings from .ini = yes). So you can have .ini file with keep_first_name = True, keep_last_name = False and game settings with keep first name: no, keep last name = yes, use ini settings = yes - clones will generate saving both first and last names :unsure:
I have a good idea for a comprehensive fix for this. Been concerned about it for some time.

Will package and present it soon.
 

vadi9203

Member
Aug 2, 2019
288
174
on line 5277 i dont see what's the difference. :unsure:
Change (line 5277) found it there was an extra space in there
keeps pumping
to
keeps pumping

Change (line 4298) this line was in 4296
get a hold
to
get ahold
 
Last edited:

Jman9

Engaged Member
Jul 17, 2019
2,294
956
There's an imaginary space in Doug's post and a real one in the script. :p

I kinda liked the vacant veterans and catgirls telling each other (or themselves?) to suck dick... :cry:
 

somebody28

Member
Mar 10, 2018
141
150
If you're going to cheat a lot, might as well activate Debug mode and have access to everything: turn debug to True in BKsettings.rpy or use the console to type:
Code:
debug_mode = True
Oh so THAT'S how you do it.

Side question for goldo00 or anyone else - with HHS down, anyone have a download link to a girl pack editor/tagger for 2.0? Also, are there any differences in terms of which tags we can use/how they work?
 
Last edited:

vadi9203

Member
Aug 2, 2019
288
174
Oh so THAT'S how you do it.

Side question for goldo00 or anyone else - with HHS down, anyone have a download link to a girl pack editor/tagger for 2.0? Also, are there any differences in terms of which tags we can use/how they work?
You can tag the pic's however you like with it. But be aware that some tag's arent showning up becuse BK aren't using them like preg, friend etc. Also sexual pic's dont show up when you only do is normal work and the same goes for the non sexual pic's too.
 
  • Like
Reactions: __neronero
4.60 star(s) 44 Votes