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

4.60 star(s) 48 Votes

vadi9203

Member
Aug 2, 2019
431
248
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
431
248
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
393
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
965
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
965
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
387
221
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
387
221
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
431
248
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
965
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
965
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?
 

Jman9

Engaged Member
Jul 17, 2019
2,295
965
I downloaded the game from here and the patch.
Glad to hear it worked, whichever 'it' that was. Do note that the very latest game and patch aren't in the OP, but rather hidden away here ATM.

[near gibberish]
I'm not sure I understand what you're asking for here. How to cheat without disabling achievements, how to cheat while away from the 'home' screen, how to cheat for achievements, how to reset interactions without going through the cheat menu? Or you're just curious whether anything has changed in 'the new' version, compared to some other unspecified version you have in mind? And don't actually want anything else but a yes/no answer to that?
 

palamito

Member
Aug 28, 2019
146
41
Glad to hear it worked, whichever 'it' that was. Do note that the very latest game and patch aren't in the OP, but rather hidden away here ATM.


I'm not sure I understand what you're asking for here. How to cheat without disabling achievements, how to cheat while away from the 'home' screen, how to cheat for achievements, how to reset interactions without going through the cheat menu? Or you're just curious whether anything has changed in 'the new' version, compared to some other unspecified version you have in mind? And don't actually want anything else but a yes/no answer to that?
So I rephrase the question (I know my English sucks) I didn't say if you can activate the archives with the cheat, I just specified that in the new version, by clicking "?" in the cheat menu there is the writing "MAIN SCREEN ONLY" next to it, before it will not be there. This only limits me in the main screen if I have to use the cheat, not everywhere anymore, I'm saying if you can remove this limit, or in the new version it is. PS never played the games with the cheats, FIRST I finish them and unlock all the archives, THEN I start again with the cheats out of curiosity ... well everyone has Steam, and I know it's not nice to finish the games with the tricks I know that the archives don't will be unlocked. Besides that it would be boring.
 

vadi9203

Member
Aug 2, 2019
431
248
If you just simply want to have a cheat menu anywhere just change BKhelp.rpy line 38 to something like "Cheat Menu". But i think Goldo put it like that for a reason.
 

DougTheC

Member
Oct 15, 2018
387
221
So I rephrase the question (I know my English sucks) I didn't say if you can activate the archives with the cheat, I just specified that in the new version, by clicking "?" in the cheat menu there is the writing "MAIN SCREEN ONLY" next to it, before it will not be there.
The developer has told me that the cheats in that menu should only be used from the main (home) screen, and I have gotten some strange results when doing things like resetting girls' portrait pics from a different screen. He says that the cheats can't be easily written to work on just every screen. This seems like it will stay this way.
 
4.60 star(s) 48 Votes