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

4.60 star(s) 46 Votes

DougTheC

Member
Oct 15, 2018
386
218
...I noticed my game warning me that I'm playing an "unpatched version of the game". I'm not sure why I'm getting that warning considering I just did a fresh install and grabbed what should have been the most recent patch from
vadi9203 above me, but I've noticed that even despite using the console to set my story stuff to "none" I can't seem to proceed to Chapter 3. That old man just doesn't seem to be around anywhere for me to trigger moving to a new brothel.
Your base code before patch seems to be from what vadi9203 gave a link to, (important if your previous version was from before Feb 11 2022).

It seems likely you ran the program, before installing the patch by extracting it to the "game/" folder. That would result in the old compiled files seeming newer than the patch source files, so no recompile triggered. That is solved by deleting all the "game/*.rpyc" files and double-checking you actually extracted the update patch to the folder named "game", resulting in most-recent "game/options.rpy" file dated about Feb 27, 2022. Next start of the game will recompile. Attached is what is formally known as the "v220228" patch if you need it and don't want to experiment with the recent "different resolutions" patch.

Though that is not at the root of why you can't progress from chapter 2.

Here is a FAQ for the current version of this game, Brothel King ver 0.2 (non-test).

...
Q: I have the goal in chapter 2 (second brothel) of "have x amount in the bank", which I have, and cannot advance. What do I do?

A:
You don't have permission to view the spoiler content. Log in or register now.
If you still have the "ninja hunt" buttons in the city locations, you can proceed as the FAQ says.

If not, then load a save from before you consoled-out the ninja story flags and proceed. Even an auto-save would work.

View attachment game patch 0.2_022822.zip
 
Last edited:
  • Like
Reactions: __neronero

__neronero

Member
Jan 23, 2021
285
392
Very excited to be playing on a higher resolution, something I've been hoping for ever since I started playing. That being said, we've got a long road ahead of us before it's all pretty and polished.

I'll claim the distinct honor of stepping on the first landmine of this new patch.

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.


BKscreens.rpy line 818 current:
text text1 bold True size res_font_15 color text_col drop_shadow (1, 1):

Should probably be:
text text1 bold True size res_font(15) color text_col drop_shadow (1, 1):
 

sena123

New Member
May 4, 2017
4
0
I have such a problem after entering the Girls tab. How do I fix it?

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

While running game code:
  File "game/BKmain.rpy", line 1102, in script
    with Dissolve(0.3)
  File "game/BKscreens.rpy", line 283, in execute
    screen girls(girls, context = "girls"): # context can be girls, slavemarket, farm
  File "game/BKscreens.rpy", line 283, in execute
    screen girls(girls, context = "girls"): # context can be girls, slavemarket, farm
  File "game/BKscreens.rpy", line 300, in execute
    use girl_tab(girls, context=context)
  File "game/BKscreens.rpy", line 310, in execute
    screen girl_tab(girls, context="girls"):
  File "game/BKscreens.rpy", line 310, in execute
    screen girl_tab(girls, context="girls"):
  File "game/BKscreens.rpy", line 396, in execute
    vbox:
  File "game/BKscreens.rpy", line 416, in execute
    frame:
  File "game/BKscreens.rpy", line 425, in execute
    if girls:
  File "game/BKscreens.rpy", line 445, in execute
    vpgrid:
  File "game/BKscreens.rpy", line 459, in execute
    for girl in girls:
  File "game/BKscreens.rpy", line 460, in execute
    use girl_button(girl, bsize, status_list=girl_status_dict[girl], context=context)
  File "game/BKscreens.rpy", line 514, in execute
    screen girl_button(girl, bsize="x4", status_list=[], context="girls", extra_action=[]):
  File "game/BKscreens.rpy", line 514, in execute
    screen girl_button(girl, bsize="x4", status_list=[], context="girls", extra_action=[]):
  File "game/BKscreens.rpy", line 545, in execute
    if bsize == "x40":
  File "game/BKscreens.rpy", line 786, in execute
    button:
  File "game/BKscreens.rpy", line 818, in execute
    text text1 bold True size res_font_15 color text_col drop_shadow (1, 1):
  File "game/BKscreens.rpy", line 818, in keywords
    text text1 bold True size res_font_15 color text_col drop_shadow (1, 1):
  File "game/BKscreens.rpy", line 818, in <module>
    text text1 bold True size res_font_15 color text_col drop_shadow (1, 1):
NameError: name 'res_font_15' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 1102, 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 1684, in with_statement
    return renpy.game.interface.do_with(trans, paired, clear=clear)
  File "renpy/display/core.py", line 2762, in do_with
    clear=clear)
  File "renpy/display/core.py", line 3325, 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 3737, 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 3737, 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 283, in execute
    screen girls(girls, context = "girls"): # context can be girls, slavemarket, farm
  File "game/BKscreens.rpy", line 283, in execute
    screen girls(girls, context = "girls"): # context can be girls, slavemarket, farm
  File "game/BKscreens.rpy", line 300, in execute
    use girl_tab(girls, context=context)
  File "game/BKscreens.rpy", line 310, in execute
    screen girl_tab(girls, context="girls"):
  File "game/BKscreens.rpy", line 310, in execute
    screen girl_tab(girls, context="girls"):
  File "game/BKscreens.rpy", line 396, in execute
    vbox:
  File "game/BKscreens.rpy", line 416, in execute
    frame:
  File "game/BKscreens.rpy", line 425, in execute
    if girls:
  File "game/BKscreens.rpy", line 445, in execute
    vpgrid:
  File "game/BKscreens.rpy", line 459, in execute
    for girl in girls:
  File "game/BKscreens.rpy", line 460, in execute
    use girl_button(girl, bsize, status_list=girl_status_dict[girl], context=context)
  File "game/BKscreens.rpy", line 514, in execute
    screen girl_button(girl, bsize="x4", status_list=[], context="girls", extra_action=[]):
  File "game/BKscreens.rpy", line 514, in execute
    screen girl_button(girl, bsize="x4", status_list=[], context="girls", extra_action=[]):
  File "game/BKscreens.rpy", line 545, in execute
    if bsize == "x40":
  File "game/BKscreens.rpy", line 786, in execute
    button:
  File "game/BKscreens.rpy", line 818, in execute
    text text1 bold True size res_font_15 color text_col drop_shadow (1, 1):
  File "game/BKscreens.rpy", line 818, in keywords
    text text1 bold True size res_font_15 color text_col drop_shadow (1, 1):
  File "game/BKscreens.rpy", line 818, in <module>
    text text1 bold True size res_font_15 color text_col drop_shadow (1, 1):
NameError: name 'res_font_15' is not defined

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220331
Mon Apr  4 18:55:06 2022
 

vadi9203

Member
Aug 2, 2019
324
192
I dont think that the origin story button should be visible too on the first day when you didnt even did anything with the girl.
If i set the resulotion higher i cant even see the confirmation button or how many perk points i have on the perks screen.
 
Last edited:

vadi9203

Member
Aug 2, 2019
324
192
I give another "landmine" too.
Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 374, in script
    python:
  File "game/BKendday.rpy", line 420, in <module>
    perform_events += perform(girl.job, [girl], ent_dict[girl])
  File "game/BKfunctions.rpy", line 2283, in perform
    text1 = "{size=" + str(res_18_font) + "}" + __("A customer ordered") + girl.name + __(" to give him extra service. He wanted her to ") + __(s_des[s_act]) + "."
NameError: global name 'res_18_font' is not defined

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

Full traceback:
  File "game/BKendday.rpy", line 374, 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/BKendday.rpy", line 420, in <module>
    perform_events += perform(girl.job, [girl], ent_dict[girl])
  File "game/BKfunctions.rpy", line 2283, in perform
    text1 = "{size=" + str(res_18_font) + "}" + __("A customer ordered") + girl.name + __(" to give him extra service. He wanted her to ") + __(s_des[s_act]) + "."
NameError: global name 'res_18_font' is not defined

Windows-10-10.0.10586
Ren'Py 7.4.11.2266
Brothel King 0.2 v220331
Mon Apr  4 20:35:42 2022
It's the same with the other line's like this too. Line 2203, 2227, 2250, 2283, 2315, 2342, 2397.
 
Last edited:

__neronero

Member
Jan 23, 2021
285
392
HHS dev on why the forum is down (answer: don't know, we just need to wait)
I am in the dark as well. As far as I know, the forum (among other stuff) is hosted on Zythen's web space. I have no way of contacting him directly, so we will just need to wait until he notices the issue and fixes it.

The development repository is down as well. While we still have our local copies of the stuff, there is no way to push or pull updates right now.

I am confident that it will be back up eventually, though. If there was any issue of the project not being sustainable anymore for him, I believe Zythen would have let us known far enough in advance.
 

Jman9

Engaged Member
Jul 17, 2019
2,295
958
Could be a long wait if Zythen assumes the forums are working OK and we assume he's keeping an eye out. :confused:
 
  • Sad
Reactions: __neronero

goldo00

Newbie
Aug 9, 2019
20
59
Edit: I guess one thing that immediately looks off in 'non-standard' resolutions are the screen backgrounds. One way to deal with this would be to just scale these together with the resolution, pick some point to zoom into and display the backgrounds centered on that point.
I assume you mean with 16:9 or another wide resolution? It's easy enough to resize them, but it looks bad. I was thinking of centering them with some black ribbons on the side, but it looks off in places.
 

Jman9

Engaged Member
Jul 17, 2019
2,295
958
No, what I actually meant is that you rescale them so they won't be too tiny or too huge, but don't touch the aspect ratio. Then place them so the top center point goes somewhere 'good'. Top middle, middle, IDK what would work.

Not sure that actually pans out, but that's what I'd try.
 

hrjfwf4

Newbie
Jul 30, 2021
35
9
Not sure what happened here since i don´t know anything about programming. It occurred after changing Line 2203, 2227, 2250, 2283, 2315, 2342, 2397 from
text1 = "{size=" + str(res_18_font) + "}
to
text1 = "{size=" + str(res_font(18)) + "}

Prob has nothing to do with the error but i wanted to mention it just in case.


You don't have permission to view the spoiler content. Log in or register now.
 

DougTheC

Member
Oct 15, 2018
386
218
Not sure what happened here since i don´t know anything about programming. It occurred after changing Line 2203, 2227, 2250, 2283, 2315, 2342, 2397 from
text1 = "{size=" + str(res_18_font) + "}
to
text1 = "{size=" + str(res_font(18)) + "}

Prob has nothing to do with the error but i wanted to mention it just in case.


You don't have permission to view the spoiler content. Log in or register now.
Yes,
It seems Ren'Py does variable interpolation mostly in the "Say" statement.

Probably need to change many or all cases in new translation-prepped game of [c_colorname] to "+c_colorname+", like following:

BKinit_variables.rpy, line 2433
Code:
    # Contrast colors are for lighter backgrounds
    event_color = {"special": "{color=[c_orange]}%s{/color}",
                   "good": "{color=[c_green]}%s{/color}",
                   "a little good": "{color=[c_lightgreen]}%s{/color}",
                   "average": "{color=[c_yellow]}%s{/color}",
                   "average contrast": "{color=[c_darkorange]}%s{/color}",
                   "a little bad": "{color=[c_lightred]}%s{/color}",
                   "a little bad contrast": "{color=[c_redpink]}%s{/color}",
                   "bad": "{color=[c_red]}%s{/color}",
                   "very bad": "{color=[c_crimson]}%s{/color}",
                   "fear": "{color=[c_purple]}%s{/color}",
                   "rep": "{color=[c_magenta]}%s{/color}",
                   "normal": "{color=[c_white]}%s{/color}",
                   "normal contrast": "{color=[c_black]}%s{/color}",
                   }
to
Code:
    # Contrast colors are for lighter backgrounds
    event_color = {"special": "{color="+c_orange+"}%s{/color}",
                   "good": "{color="+c_green+"}%s{/color}",
                   "a little good": "{color="+c_lightgreen+"}%s{/color}",
                   "average": "{color="+c_yellow+"}%s{/color}",
                   "average contrast": "{color="+c_darkorange+"}%s{/color}",
                   "a little bad": "{color="+c_lightred+"}%s{/color}",
                   "a little bad contrast": "{color="+c_redpink+"}%s{/color}",
                   "bad": "{color="+c_red+"}%s{/color}",
                   "very bad": "{color="+c_crimson+"}%s{/color}",
                   "fear": "{color="+c_purple+"}%s{/color}",
                   "rep": "{color="+c_magenta+"}%s{/color}",
                   "normal": "{color="+c_white+"}%s{/color}",
                   "normal contrast": "{color="+c_black+"}%s{/color}",
                   }
 

DougTheC

Member
Oct 15, 2018
386
218
HHS dev on why the forum is down (answer: don't know, we just need to wait)
I tried sending emails thru his web domain registrar from whois.com, & some old email addrs for long-time user Cypress Zeta.
Even his nameservers are listed under web domain; maybe that is a good sign that something is working (though IPs may be cached elsewhere).
 
  • Thinking Face
Reactions: Jman9

vadi9203

Member
Aug 2, 2019
324
192
Not sure what happened here since i don´t know anything about programming. It occurred after changing Line 2203, 2227, 2250, 2283, 2315, 2342, 2397 from
text1 = "{size=" + str(res_18_font) + "}
to
text1 = "{size=" + str(res_font(18)) + "}

Prob has nothing to do with the error but i wanted to mention it just in case.


You don't have permission to view the spoiler content. Log in or register now.
Yes,
It seems Ren'Py does variable interpolation mostly in the "Say" statement.

Probably need to change many or all cases in new translation-prepped game of [c_colorname] to "+c_colorname+", like following:

BKinit_variables.rpy, line 2433
Code:
    # Contrast colors are for lighter backgrounds
    event_color = {"special": "{color=[c_orange]}%s{/color}",
                   "good": "{color=[c_green]}%s{/color}",
                   "a little good": "{color=[c_lightgreen]}%s{/color}",
                   "average": "{color=[c_yellow]}%s{/color}",
                   "average contrast": "{color=[c_darkorange]}%s{/color}",
                   "a little bad": "{color=[c_lightred]}%s{/color}",
                   "a little bad contrast": "{color=[c_redpink]}%s{/color}",
                   "bad": "{color=[c_red]}%s{/color}",
                   "very bad": "{color=[c_crimson]}%s{/color}",
                   "fear": "{color=[c_purple]}%s{/color}",
                   "rep": "{color=[c_magenta]}%s{/color}",
                   "normal": "{color=[c_white]}%s{/color}",
                   "normal contrast": "{color=[c_black]}%s{/color}",
                   }
to
Code:
    # Contrast colors are for lighter backgrounds
    event_color = {"special": "{color="+c_orange+"}%s{/color}",
                   "good": "{color="+c_green+"}%s{/color}",
                   "a little good": "{color="+c_lightgreen+"}%s{/color}",
                   "average": "{color="+c_yellow+"}%s{/color}",
                   "average contrast": "{color="+c_darkorange+"}%s{/color}",
                   "a little bad": "{color="+c_lightred+"}%s{/color}",
                   "a little bad contrast": "{color="+c_redpink+"}%s{/color}",
                   "bad": "{color="+c_red+"}%s{/color}",
                   "very bad": "{color="+c_crimson+"}%s{/color}",
                   "fear": "{color="+c_purple+"}%s{/color}",
                   "rep": "{color="+c_magenta+"}%s{/color}",
                   "normal": "{color="+c_white+"}%s{/color}",
                   "normal contrast": "{color="+c_black+"}%s{/color}",
                   }
Changing those lines seem's to solve the error what i mentioned as i dont get the error's anymore.
 

Rupert_

Newbie
Jun 30, 2018
21
19
I seem to be stuck after finishing a contract, I get a summary and my reward and then my game just doesn't progress. I don't get any crash or an exception. Just sitting on a summary score without an option to progress. Does anyone know what can be done with this?
 

Jman9

Engaged Member
Jul 17, 2019
2,295
958
There's supposed to be an 'OK' button at the bottom. Are you using a custom resolution?

If it was up to me, I'd put that 'OK' button to the right, where there's a bunch of empty space.
 

neter44rap

New Member
Oct 21, 2017
7
5
I have this error, pls help


I'm sorry, but an uncaught exception occurred.

While running game code:
ScriptError: Name (u'game/BKdeclarations.rpy', 1649255216, 17103) is defined twice, at game/BKdeclarations.rpy:19 and game/BKdeclarations.rpy:22.

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

Full traceback:
File "renpy/bootstrap.py", line 331, in bootstrap
renpy.main.main()
File "renpy/main.py", line 482, in main
renpy.game.script.load_script() # sets renpy.game.script.
File "renpy/script.py", line 283, in load_script
self.load_appropriate_file(".rpyc", ".rpy", dir, fn, initcode)
File "renpy/script.py", line 797, in load_appropriate_file
self.finish_load(stmts, initcode, filename=lastfn)
File "renpy/script.py", line 473, in finish_load
check_name(node)
File "renpy/script.py", line 452, in check_name
bad_node.filename, bad_node.linenumber))
ScriptError: Name (u'game/BKdeclarations.rpy', 1649255216, 17103) is defined twice, at game/BKdeclarations.rpy:19 and game/BKdeclarations.rpy:22.

Windows-10-10.0.19041
Ren'Py 7.4.10.2178

Wed Apr 6 11:42:59 2022
 

Jman9

Engaged Member
Jul 17, 2019
2,295
958
You probably installed the patch wrong, e.g. into 'game\game\BKdeclarations.rpy'. If not, try deleting all .rpyc (not .rpy!) files and see if that works.

If both fail, reinstall, make sure you follow the procedure exactly, and re-report.
 

neter44rap

New Member
Oct 21, 2017
7
5
You probably installed the patch wrong, e.g. into 'game\game\BKdeclarations.rpy'. If not, try deleting all .rpyc (not .rpy!) files and see if that works.

If both fail, reinstall, make sure you follow the procedure exactly, and re-report.
I downloaded the game from here and the patch. Edit: IT WORKED, ty so much
 
Last edited:
  • Like
Reactions: Jman9

palamito

Member
Aug 28, 2019
146
41
I'm also trying so as to cheat, since by now I have ALMOST unlocked all the archives, I'm curious to try it (even if there is no fun doing it, but oh well just to try), but I remember that you can reset the actions of the girls directly in their rooms, this version instead must be done at your tavern (it depends on where you start), it appears in fact (only main room), you can desativate this thing to be able to use the cheat wherever I want in any place without returning from the beginning , is that so in the new version?
 
4.60 star(s) 46 Votes