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

4.60 star(s) 48 Votes

macewindoom

Newbie
Nov 28, 2017
88
134
I can't get past the intro, I keep getting this error when selecting a first venuee:
Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKintro.rpy", line 1759, in script call
    call advance_to_chapter(1, silent=True, start=True) from _call_advance_to_chapter_2
  File "game/BKevents.rpy", line 758, in script
    $ calendar.updates(new_district=not start) # new_district disables quest and slavemarket changes
  File "game/BKevents.rpy", line 758, in <module>
    $ calendar.updates(new_district=not start) # new_district disables quest and slavemarket changes
  File "game/BKclasses.rpy", line 3000, in updates
    weekly_updates(new_district)
  File "game/BKfunctions.rpy", line 2791, in weekly_updates
    update_slaves()
  File "game/BKfunctions.rpy", line 526, in update_slaves
    slavemarket.girls = get_girls(nb)
  File "game/BKfunctions.rpy", line 302, in get_girls
    template_girls = [g for g in generate_girls() if can_generate(g, free)] # Must be separate from available_templates to avoid creating new girl objects with every loop
  File "game/BKfunctions.rpy", line 302, in <lambda>
    template_girls = [g for g in generate_girls() if can_generate(g, free)] # Must be separate from available_templates to avoid creating new girl objects with every loop
  File "game/BKfunctions.rpy", line 228, in generate_girls
    girl.load_ini()
  File "game/BKgirlclass.rpy", line 429, in load_ini
    self.init_dict = read_init_file(self.ini, search_for=search_for, skip_checks=skip_checks)
  File "game/BKfunctions.rpy", line 3675, in read_init_file
    raise AssertionError("_BK.ini error with girlpack: %s. 'background story/generate_as' should be set to 'all', 'slave', 'free' or 'story'." % file)
AssertionError: _BK.ini error with girlpack: girls/Jessica Rabbit/_BK.ini. 'background story/generate_as' should be set to 'all', 'slave', 'free' or 'story'.

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

Full traceback:
  File "game/BKintro.rpy", line 1759, in script call
    call advance_to_chapter(1, silent=True, start=True) from _call_advance_to_chapter_2
  File "game/BKevents.rpy", line 758, in script
    $ calendar.updates(new_district=not start) # new_district disables quest and slavemarket changes
  File "C:\Users\User\Documents\MEGA downloads\Brothel_King-pc-0.3t\Brothel_King-pc\renpy\ast.py", line 823, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\User\Documents\MEGA downloads\Brothel_King-pc-0.3t\Brothel_King-pc\renpy\python.py", line 1178, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 758, in <module>
    $ calendar.updates(new_district=not start) # new_district disables quest and slavemarket changes
  File "game/BKclasses.rpy", line 3000, in updates
    weekly_updates(new_district)
  File "game/BKfunctions.rpy", line 2791, in weekly_updates
    update_slaves()
  File "game/BKfunctions.rpy", line 526, in update_slaves
    slavemarket.girls = get_girls(nb)
  File "game/BKfunctions.rpy", line 302, in get_girls
    template_girls = [g for g in generate_girls() if can_generate(g, free)] # Must be separate from available_templates to avoid creating new girl objects with every loop
  File "game/BKfunctions.rpy", line 302, in <lambda>
    template_girls = [g for g in generate_girls() if can_generate(g, free)] # Must be separate from available_templates to avoid creating new girl objects with every loop
  File "game/BKfunctions.rpy", line 228, in generate_girls
    girl.load_ini()
  File "game/BKgirlclass.rpy", line 429, in load_ini
    self.init_dict = read_init_file(self.ini, search_for=search_for, skip_checks=skip_checks)
  File "game/BKfunctions.rpy", line 3675, in read_init_file
    raise AssertionError("_BK.ini error with girlpack: %s. 'background story/generate_as' should be set to 'all', 'slave', 'free' or 'story'." % file)
AssertionError: _BK.ini error with girlpack: girls/Jessica Rabbit/_BK.ini. 'background story/generate_as' should be set to 'all', 'slave', 'free' or 'story'.

Windows-10-10.0.22631 AMD64
Ren'Py 8.2.0.24012702
Bro King 0.3t v240825
Mon Jan 13 22:40:39 2025
 

D Dave

Member
Sep 8, 2021
164
171
AssertionError: _BK.ini error with girlpack: girls/Jessica Rabbit/_BK.ini. 'background story/generate_as' should be set to 'all', 'slave'

Open the _BK.ini file inside the 'Jessica Rabbit' folder search for 'generate_as'. Then set the value to 'all'. (or slave, or free, whatever you want).
It is probably set to 'random'.
 

vadi9203

Member
Aug 2, 2019
406
238
I can't get past the intro, I keep getting this error when selecting a first venuee:
Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKintro.rpy", line 1759, in script call
    call advance_to_chapter(1, silent=True, start=True) from _call_advance_to_chapter_2
  File "game/BKevents.rpy", line 758, in script
    $ calendar.updates(new_district=not start) # new_district disables quest and slavemarket changes
  File "game/BKevents.rpy", line 758, in <module>
    $ calendar.updates(new_district=not start) # new_district disables quest and slavemarket changes
  File "game/BKclasses.rpy", line 3000, in updates
    weekly_updates(new_district)
  File "game/BKfunctions.rpy", line 2791, in weekly_updates
    update_slaves()
  File "game/BKfunctions.rpy", line 526, in update_slaves
    slavemarket.girls = get_girls(nb)
  File "game/BKfunctions.rpy", line 302, in get_girls
    template_girls = [g for g in generate_girls() if can_generate(g, free)] # Must be separate from available_templates to avoid creating new girl objects with every loop
  File "game/BKfunctions.rpy", line 302, in <lambda>
    template_girls = [g for g in generate_girls() if can_generate(g, free)] # Must be separate from available_templates to avoid creating new girl objects with every loop
  File "game/BKfunctions.rpy", line 228, in generate_girls
    girl.load_ini()
  File "game/BKgirlclass.rpy", line 429, in load_ini
    self.init_dict = read_init_file(self.ini, search_for=search_for, skip_checks=skip_checks)
  File "game/BKfunctions.rpy", line 3675, in read_init_file
    raise AssertionError("_BK.ini error with girlpack: %s. 'background story/generate_as' should be set to 'all', 'slave', 'free' or 'story'." % file)
AssertionError: _BK.ini error with girlpack: girls/Jessica Rabbit/_BK.ini. 'background story/generate_as' should be set to 'all', 'slave', 'free' or 'story'.

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

Full traceback:
  File "game/BKintro.rpy", line 1759, in script call
    call advance_to_chapter(1, silent=True, start=True) from _call_advance_to_chapter_2
  File "game/BKevents.rpy", line 758, in script
    $ calendar.updates(new_district=not start) # new_district disables quest and slavemarket changes
  File "C:\Users\User\Documents\MEGA downloads\Brothel_King-pc-0.3t\Brothel_King-pc\renpy\ast.py", line 823, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\User\Documents\MEGA downloads\Brothel_King-pc-0.3t\Brothel_King-pc\renpy\python.py", line 1178, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 758, in <module>
    $ calendar.updates(new_district=not start) # new_district disables quest and slavemarket changes
  File "game/BKclasses.rpy", line 3000, in updates
    weekly_updates(new_district)
  File "game/BKfunctions.rpy", line 2791, in weekly_updates
    update_slaves()
  File "game/BKfunctions.rpy", line 526, in update_slaves
    slavemarket.girls = get_girls(nb)
  File "game/BKfunctions.rpy", line 302, in get_girls
    template_girls = [g for g in generate_girls() if can_generate(g, free)] # Must be separate from available_templates to avoid creating new girl objects with every loop
  File "game/BKfunctions.rpy", line 302, in <lambda>
    template_girls = [g for g in generate_girls() if can_generate(g, free)] # Must be separate from available_templates to avoid creating new girl objects with every loop
  File "game/BKfunctions.rpy", line 228, in generate_girls
    girl.load_ini()
  File "game/BKgirlclass.rpy", line 429, in load_ini
    self.init_dict = read_init_file(self.ini, search_for=search_for, skip_checks=skip_checks)
  File "game/BKfunctions.rpy", line 3675, in read_init_file
    raise AssertionError("_BK.ini error with girlpack: %s. 'background story/generate_as' should be set to 'all', 'slave', 'free' or 'story'." % file)
AssertionError: _BK.ini error with girlpack: girls/Jessica Rabbit/_BK.ini. 'background story/generate_as' should be set to 'all', 'slave', 'free' or 'story'.

Windows-10-10.0.22631 AMD64
Ren'Py 8.2.0.24012702
Bro King 0.3t v240825
Mon Jan 13 22:40:39 2025
This error commes from a _Bk.ini. Go to the Brothel_King-pc/game/girls find your Jessica Rabbit folder in there open the _bk.ini with any text editor. Search for this generate_as and change it to either "all" , "slave" or "free" and the error will gone. Btw update your game to the lastest patch. All links in the OP are the lastest one. (I inform the moderators when a new patch came out to change them)

Bro, this has been told many times over. You have to download the newest patch (the MediaFire link in the OP) and install it over the game you downloaded.
https://f95zone.to/threads/brothel-king-v0-3-goldo.3282/post-15817466


Edit: Btw as Hermenegild said it this line shows wich version you are using:
Bro King 0.3t v240825

The lastest one is Bro King 0.3t v250103

You can find out wich version you are currently using by opening up the options.rpy file (brothel king pc/game) with notepad++ and search for this (line 17) : define patch_version = "v250103"
 
Last edited:
Sep 21, 2019
208
163
Great, thank you for the info- I missed that part
I don't blame you. Checking out the whole thread to check what the "patch" does is not the first thing that comes to mind: having the same visible name for all different versions is unusual. IMO a clear explanation should be added on the front page: all tests versions carry the same name, and you need to install the base game THEN apply the patch (that has a consistently updated content in the mediafire link).
 
  • Thinking Face
Reactions: vadi9203

vadi9203

Member
Aug 2, 2019
406
238
I don't blame you. Checking out the whole thread to check what the "patch" does is not the first thing that comes to mind: having the same visible name for all different versions is unusual. IMO a clear explanation should be added on the front page: all tests versions carry the same name, and you need to install the base game THEN apply the patch (that has a consistently updated content in the mediafire link).
Well there is installation guide in the OP how you should start the game but most people dosn't read it.

1- Extract to the desired location.
2- Unzip the patch in the 'game' folder and overwrite existing files.
3- Extract the basic girl pack into the 'game/girls' folder
4- Click on "Brothel_King.exe" to start playing.
And as you know i inform you guys when there is a new patch comming out as you seen in my previous post.

Edit: And there is also this in the OP:

Users of prior "v 0.2 Test" will need full base game, plus patch, downloaded into new folder, and to start a new game.
Edit2: added the link for the patch from Goldo to my signature so you can always click on it when there is an update. But you can even bookmark it as the link for the patch never change.
 
Last edited:
  • Like
Reactions: RandomFapinator

A.Person

New Member
Feb 27, 2021
7
0
```
I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/BKstart.rpy", line 76, in script call
call advance_to_chapter(starting_chapter, start=True) from _call_advance_to_chapter_3
File "game/BKevents.rpy", line 786, in script
$ calendar.updates(change_district=not start) # change_district disables quest and resource market updates
File "game/BKevents.rpy", line 786, in <module>
$ calendar.updates(change_district=not start) # change_district disables quest and resource market updates
File "game/BKclasses.rpy", line 3025, in updates
weekly_updates(change_district)
File "game/BKfunctions.rpy", line 2793, in weekly_updates
update_slaves()
File "game/BKfunctions.rpy", line 526, in update_slaves
slavemarket.girls = get_girls(nb)
File "game/BKfunctions.rpy", line 373, in get_girls
girl.randomize(free=free, p_traits=p_traits, n_trait=n_trait, perks=perks, level=lvl, force_original=(prefer_original and girl.count_occurences("all", original=True, add_list=final_list) == 0), temp_list=final_list) # final_list is checked to avoid multiple original generation
File "game/BKgirlclass.rpy", line 197, in randomize
self.generate_traits(p_traits, n_trait)
File "game/BKgirlclass.rpy", line 914, in generate_traits
if d > traitking_t1_chance: # very rare 1
NameError: name 'traitking_t1_chance' is not defined

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

Full traceback:
File "game/BKstart.rpy", line 76, in script call
call advance_to_chapter(starting_chapter, start=True) from _call_advance_to_chapter_3
File "game/BKevents.rpy", line 786, in script
$ calendar.updates(change_district=not start) # change_district disables quest and resource market updates
File "D:\other games\Management\Brothel_King-pc-0.3t\Brothel_King-pc\renpy\ast.py", line 823, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "D:\other games\Management\Brothel_King-pc-0.3t\Brothel_King-pc\renpy\python.py", line 1178, in py_exec_bytecode
exec(bytecode, globals, locals)
File "game/BKevents.rpy", line 786, in <module>
$ calendar.updates(change_district=not start) # change_district disables quest and resource market updates
File "game/BKclasses.rpy", line 3025, in updates
weekly_updates(change_district)
File "game/BKfunctions.rpy", line 2793, in weekly_updates
update_slaves()
File "game/BKfunctions.rpy", line 526, in update_slaves
slavemarket.girls = get_girls(nb)
File "game/BKfunctions.rpy", line 373, in get_girls
girl.randomize(free=free, p_traits=p_traits, n_trait=n_trait, perks=perks, level=lvl, force_original=(prefer_original and girl.count_occurences("all", original=True, add_list=final_list) == 0), temp_list=final_list) # final_list is checked to avoid multiple original generation
File "game/BKgirlclass.rpy", line 197, in randomize
self.generate_traits(p_traits, n_trait)
File "game/BKgirlclass.rpy", line 914, in generate_traits
if d > traitking_t1_chance: # very rare 1
NameError: name 'traitking_t1_chance' is not defined

Windows-10-10.0.26100 AMD64
Ren'Py 8.2.0.24012702
Bro King 0.3t v250103
Fri Jan 17 14:43:23 2025
```
help?

ok nvm ig, i fixed a lot of things personally, and the error went away, for some reason some traitking traits arent getting applied though
any way to fix that or does it fix on its own ?
 
Last edited:

macewindoom

Newbie
Nov 28, 2017
88
134
Well there is installation guide in the OP how you should start the game but most people dosn't read it.



And as you know i inform you guys when there is a new patch comming out as you seen in my previous post.

Edit: And there is also this in the OP:



Edit2: added the link for the patch from Goldo to my signature so you can always click on it when there is an update. But you can even bookmark it as the link for the patch never change.
If you follow those directions, you embed the 'game' folder from the patch inside the other one. And it creates another sub folder in girls for the basic girl packs. There's no explanation if you're supposed to unembed them.
AssertionError: _BK.ini error with girlpack: girls/Jessica Rabbit/_BK.ini. 'background story/generate_as' should be set to 'all', 'slave'

Open the _BK.ini file inside the 'Jessica Rabbit' folder search for 'generate_as'. Then set the value to 'all'. (or slave, or free, whatever you want).
It is probably set to 'random'.
Thank you, this was the solution!
 

vadi9203

Member
Aug 2, 2019
406
238
f you follow those directions, you embed the 'game' folder from the patch inside the other one. And it creates another sub folder in girls for the basic girl packs. There's no explanation if you're supposed to unembed them.
Well for now the only thing you need to do is just a simple copy/paste from the zip file and thats all for the patch.
 
Last edited:

vadi9203

Member
Aug 2, 2019
406
238
```
I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/BKstart.rpy", line 76, in script call
call advance_to_chapter(starting_chapter, start=True) from _call_advance_to_chapter_3
File "game/BKevents.rpy", line 786, in script
$ calendar.updates(change_district=not start) # change_district disables quest and resource market updates
File "game/BKevents.rpy", line 786, in <module>
$ calendar.updates(change_district=not start) # change_district disables quest and resource market updates
File "game/BKclasses.rpy", line 3025, in updates
weekly_updates(change_district)
File "game/BKfunctions.rpy", line 2793, in weekly_updates
update_slaves()
File "game/BKfunctions.rpy", line 526, in update_slaves
slavemarket.girls = get_girls(nb)
File "game/BKfunctions.rpy", line 373, in get_girls
girl.randomize(free=free, p_traits=p_traits, n_trait=n_trait, perks=perks, level=lvl, force_original=(prefer_original and girl.count_occurences("all", original=True, add_list=final_list) == 0), temp_list=final_list) # final_list is checked to avoid multiple original generation
File "game/BKgirlclass.rpy", line 197, in randomize
self.generate_traits(p_traits, n_trait)
File "game/BKgirlclass.rpy", line 914, in generate_traits
if d > traitking_t1_chance: # very rare 1
NameError: name 'traitking_t1_chance' is not defined

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

Full traceback:
File "game/BKstart.rpy", line 76, in script call
call advance_to_chapter(starting_chapter, start=True) from _call_advance_to_chapter_3
File "game/BKevents.rpy", line 786, in script
$ calendar.updates(change_district=not start) # change_district disables quest and resource market updates
File "D:\other games\Management\Brothel_King-pc-0.3t\Brothel_King-pc\renpy\ast.py", line 823, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "D:\other games\Management\Brothel_King-pc-0.3t\Brothel_King-pc\renpy\python.py", line 1178, in py_exec_bytecode
exec(bytecode, globals, locals)
File "game/BKevents.rpy", line 786, in <module>
$ calendar.updates(change_district=not start) # change_district disables quest and resource market updates
File "game/BKclasses.rpy", line 3025, in updates
weekly_updates(change_district)
File "game/BKfunctions.rpy", line 2793, in weekly_updates
update_slaves()
File "game/BKfunctions.rpy", line 526, in update_slaves
slavemarket.girls = get_girls(nb)
File "game/BKfunctions.rpy", line 373, in get_girls
girl.randomize(free=free, p_traits=p_traits, n_trait=n_trait, perks=perks, level=lvl, force_original=(prefer_original and girl.count_occurences("all", original=True, add_list=final_list) == 0), temp_list=final_list) # final_list is checked to avoid multiple original generation
File "game/BKgirlclass.rpy", line 197, in randomize
self.generate_traits(p_traits, n_trait)
File "game/BKgirlclass.rpy", line 914, in generate_traits
if d > traitking_t1_chance: # very rare 1
NameError: name 'traitking_t1_chance' is not defined

Windows-10-10.0.26100 AMD64
Ren'Py 8.2.0.24012702
Bro King 0.3t v250103
Fri Jan 17 14:43:23 2025
```
help?

ok nvm ig, i fixed a lot of things personally, and the error went away, for some reason some traitking traits arent getting applied though
any way to fix that or does it fix on its own ?
The most likely cause can be that you are using the Trait king for the 0.2 version for the game.
Here is a for the 0.3t version. (Edit: if you have the TK_Events.rpy in the game folder not in the mods folder then remove it along with the rpyc file.)

Edit: another thing can be that you are using the lastest version of the Trait King but it's not activate itself when you are using it on a save. Try reactivating it in the main menu.
 
Last edited:
Sep 21, 2019
208
163
Well there is installation guide in the OP how you should start the game but most people dosn't read it.



And as you know i inform you guys when there is a new patch comming out as you seen in my previous post.

Edit: And there is also this in the OP:



Edit2: added the link for the patch from Goldo to my signature so you can always click on it when there is an update. But you can even bookmark it as the link for the patch never change.
Indeed, I am one of those idiots that did not pay enough attention lol
Although when I read it the first time I had a brain fart thinking this was a (0.2->0.3) patch. Not sure why I assumed this when it was not written anywhere that was the case. It was thanks to you that I finally understood lel

EDIT: To be more clear, this was what happened in my tiny brain. I downloaded 0.3t directly, so I assumed the patch did not concern me. Stupid mistake.
 

GodraFan

Newbie
Jun 16, 2024
62
15
any update news?

and why is mc just a general dick?

Edit: by that, i mean why is he speaking like a teen sometimes?
Like the unnecessary rude comments towards sill (yeah, she's a slave, but even with the good options you react like a dick)
Saying "did I ask?" Or "i didn't ask"
That's just so 2015 or something.
 
Last edited:

liam6974

New Member
Feb 26, 2023
3
1
I have searched and cant find a solution



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

While running game code:
  File "game/BKmain.rpy", line 312, in script call
    call ninja_hunt(selected_location) from _call_ninja_hunt
  File "game/BKchapter2.rpy", line 5360, in script call
    call ninja_game(NPC_mizuki) from _call_ninja_game_1
  File "game/BKminigame.rpy", line 233, in script call
    call expression "c3_" + ninja.name.lower() + "_final_intercept"
  File "game/BKmain.rpy", line 312, in script call
    call ninja_hunt(selected_location) from _call_ninja_hunt
  File "game/BKchapter2.rpy", line 5360, in script call
    call ninja_game(NPC_mizuki) from _call_ninja_game_1
  File "game/BKminigame.rpy", line 233, in script call
    call expression "c3_" + ninja.name.lower() + "_final_intercept"
ScriptError: could not find label 'c3_mizuki_final_intercept'.

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

Full traceback:
  File "game/BKmain.rpy", line 312, in script call
    call ninja_hunt(selected_location) from _call_ninja_hunt
  File "game/BKchapter2.rpy", line 5360, in script call
    call ninja_game(NPC_mizuki) from _call_ninja_game_1
  File "game/BKminigame.rpy", line 233, in script call
    call expression "c3_" + ninja.name.lower() + "_final_intercept"
  File "D:\x64\Brothel_King-pc-0.3t\Brothel_King-pc\renpy\ast.py", line 1416, in execute
    rv = renpy.game.context().call(label, return_site=self.next.name)
  File "game/BKmain.rpy", line 312, in script call
    call ninja_hunt(selected_location) from _call_ninja_hunt
  File "game/BKchapter2.rpy", line 5360, in script call
    call ninja_game(NPC_mizuki) from _call_ninja_game_1
  File "game/BKminigame.rpy", line 233, in script call
    call expression "c3_" + ninja.name.lower() + "_final_intercept"
  File "D:\x64\Brothel_King-pc-0.3t\Brothel_King-pc\renpy\script.py", line 1103, in lookup
    raise ScriptError("could not find label '%s'." % str(original))
ScriptError: could not find label 'c3_mizuki_final_intercept'.



Bro King 0.3t v250103
 
  • Thinking Face
Reactions: D Dave
4.60 star(s) 48 Votes