News:

Please request registration email again and then check your "Spam" folder

Former www.henthighschool.com

[Feedback] *BUG REPORTS* Stable version only (v0.2)

Started by Goldo, May 13, 2022, 09:52 AM

Previous topic - Next topic

Jman

No, that's not the problem.


The problem is that Goldo's code looks for initial-capital, no-middle-capital trait names, whereas some TK trait names are titlecase, i.e. with every word capitalised.

You can alter either your BK installation or TK to fix this. TK is probably easier, just decapitalise the trait names.

Goldo should probably look into fixing this behaviour.


The remark about mucking things up for non-TK users is true, of course.
And with strange aeons even death may die...

AlolanNinetales

Quote from: Jman on Jul 29, 2024, 08:33 AMYou can alter either your BK installation or TK to fix this. TK is probably easier, just decapitalise the trait names.

I ended up just going to trait king and as long as the second word is not capitalized then it works i.e "Slave Brand" -> "Slave brand". Thanks for your help!

IGARASIYO

Hello, teacher. My game version is 0.3t v250203.
I am encountering an issue in the game where the market fails to refresh slaves. Below is my error code:

```
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1430, in script
    python:
  File "game/BKendday.rpy", line 1436, in <module>
    calendar.newday()
  File "game/BKclasses.rpy", line 3020, in newday
    self.updates()
  File "game/BKclasses.rpy", line 3025, in updates
    weekly_updates(change_district)
  File "game/BKfunctions.rpy", line 2795, in weekly_updates
    update_slaves()
  File "game/BKfunctions.rpy", line 527, in update_slaves
    slavemarket.girls = get_girls(nb)
  File "game/BKfunctions.rpy", line 303, 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 303, 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 215, in generate_girls
    available_girlpacks = get_selected_girlpacks(game.mixes)
  File "game/BKfunctions.rpy", line 191, in get_selected_girlpacks
    girlpacks += [gp for gp in persistent.girl_mix[mix] if gp not in girlpacks]
  File "game/BKfunctions.rpy", line 191, in <lambda>
    girlpacks += [gp for gp in persistent.girl_mix[mix] if gp not in girlpacks]
KeyError: '01'

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

Full traceback:
  File "game/BKendday.rpy", line 1430, in script
    python:
  File "F:\gal game\brothel king\BK\Brothel_King-pc\renpy\ast.py", line 823, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\gal game\brothel king\BK\Brothel_King-pc\renpy\python.py", line 1178, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 1436, in <module>
    calendar.newday()
  File "game/BKclasses.rpy", line 3020, in newday
    self.updates()
  File "game/BKclasses.rpy", line 3025, in updates
    weekly_updates(change_district)
  File "game/BKfunctions.rpy", line 2795, in weekly_updates
    update_slaves()
  File "game/BKfunctions.rpy", line 527, in update_slaves
    slavemarket.girls = get_girls(nb)
  File "game/BKfunctions.rpy", line 303, 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 303, 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 215, in generate_girls
    available_girlpacks = get_selected_girlpacks(game.mixes)
  File "game/BKfunctions.rpy", line 191, in get_selected_girlpacks
    girlpacks += [gp for gp in persistent.girl_mix[mix] if gp not in girlpacks]
  File "game/BKfunctions.rpy", line 191, in <lambda>
    girlpacks += [gp for gp in persistent.girl_mix[mix] if gp not in girlpacks]
KeyError: '01'

Windows-10-10.0.19041 AMD64
Ren'Py 8.2.0.24012702
Bro King 0.3t v250203
Sat Aug 23 18:21:46 2025
```


Additionally: I tried running this through GPT, and it suggested deleting the problematic character from a certain girl package. I have already deleted it, but the issue still persists.

player392012

I'm a complete newbie when it comes to this and know nothing about coding but an error happened to me around the part where you get told to go to the farm and you see the floating deck of cards in the basement for the first time. When I'm asked to draw a card I get an error message. My game version is 0.3t v250203.

By the way I've used cheats before just in case that changes anything.

While running game code:
File "game/BKpowers.rpy", line 6029, in <module>
AttributeError: 'EvilPowerDeck' object has no attribute 'can_draw'

Full traceback:
File "//game/BKmain.rpyc", line 565, in script call
File "//game/BKpowers.rpy", line 397, in script
File "/renpy/ast.py", line 1842, in execute
  if renpy.python.py_eval(condition):
File "/renpy/python.py", line 1209, in py_eval
  return py_eval_bytecode(code, globals, locals)
File "/renpy/python.py", line 1202, in py_eval_bytecode
  return eval(bytecode, globals, locals)
File "game/BKpowers.rpy", line 6029, in <module>
AttributeError: 'EvilPowerDeck' object has no attribute 'can_draw'

Emscripten-3.1.24-wasm32-32bit wasm32
Ren'Py 8.2.0.24012702
Bro King 0.3t v240825
Mon Aug 25 22:30:46 2025



Jman

And with strange aeons even death may die...

Tienteaser

I have a bug that has halted my game.

I bought a girl in the slave market. Sent her straight to the farm for training. Once she was maxed on everything I brought her to the brothel.

Now, though, whenever I try to give her a job, the game crashes. I get the following errors:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1129, in script
    $ girl_status_dict = load_girl_status(MC.girls) # Test to increase performance
  File "game/BKmain.rpy", line 1129, in <module>
    $ girl_status_dict = load_girl_status(MC.girls) # Test to increase performance
  File "game/BKfunctions.rpy", line 4705, in load_girl_status
    update_girl_status(s_dict, girl)
  File "game/BKfunctions.rpy", line 4710, in update_girl_status
    s_dict[girl] = girl.get_status()
  File "game/BKgirlclass.rpy", line 1977, in get_status
    elif self.energy <= autorest_limit[self] and self.energy < self.get_stat_max("energy"):
KeyError: <store.Girl object at 0x000000001be6f790>

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

Full traceback:
  File "game/BKmain.rpy", line 1129, in script
    $ girl_status_dict = load_girl_status(MC.girls) # Test to increase performance
  File "D:\OneDrive\Desktop\Brothel King\Brothel_King-pc-0.3.2t\renpy\ast.py", line 823, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "D:\OneDrive\Desktop\Brothel King\Brothel_King-pc-0.3.2t\renpy\python.py", line 1178, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 1129, in <module>
    $ girl_status_dict = load_girl_status(MC.girls) # Test to increase performance
  File "game/BKfunctions.rpy", line 4705, in load_girl_status
    update_girl_status(s_dict, girl)
  File "game/BKfunctions.rpy", line 4710, in update_girl_status
    s_dict[girl] = girl.get_status()
  File "game/BKgirlclass.rpy", line 1977, in get_status
    elif self.energy <= autorest_limit[self] and self.energy < self.get_stat_max("energy"):
KeyError: <store.Girl object at 0x000000001be6f790>

Windows-10-10.0.26100 AMD64
Ren'Py 8.2.0.24012702
Bro King 0.3t.2 v250418
Thu Oct  9 13:51:56 2025

If I try to rollback, I get this.
While running game code:
  File "game/BKmain.rpy", line 1129, in script
    $ girl_status_dict = load_girl_status(MC.girls) # Test to increase performance
  File "game/BKmain.rpy", line 1129, in script
    $ girl_status_dict = load_girl_status(MC.girls) # Test to increase performance
  File "game/BKmain.rpy", line 1129, in <module>
    $ girl_status_dict = load_girl_status(MC.girls) # Test to increase performance
  File "game/BKfunctions.rpy", line 4705, in load_girl_status
    update_girl_status(s_dict, girl)
  File "game/BKfunctions.rpy", line 4710, in update_girl_status
    s_dict[girl] = girl.get_status()
  File "game/BKgirlclass.rpy", line 1977, in get_status
    elif self.energy <= autorest_limit[self] and self.energy < self.get_stat_max("energy"):
KeyError: <store.Girl object at 0x000000001be6f790>

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

Full traceback:
  File "D:\OneDrive\Desktop\Brothel King\Brothel_King-pc-0.3.2t\renpy\bootstrap.py", line 359, in bootstrap
    renpy.main.main()
  File "D:\OneDrive\Desktop\Brothel King\Brothel_King-pc-0.3.2t\renpy\main.py", line 635, in main
    run(restart)
  File "D:\OneDrive\Desktop\Brothel King\Brothel_King-pc-0.3.2t\renpy\main.py", line 145, in run
    renpy.execution.run_context(True)
  File "D:\OneDrive\Desktop\Brothel King\Brothel_King-pc-0.3.2t\renpy\execution.py", line 955, in run_context
    context.run()
  File "game/BKmain.rpy", line 1129, in script
    $ girl_status_dict = load_girl_status(MC.girls) # Test to increase performance
  File "lib/python3.9/future/utils/__init__.py", line 444, in raise_
  File "game/BKmain.rpy", line 1129, in script
    $ girl_status_dict = load_girl_status(MC.girls) # Test to increase performance
  File "D:\OneDrive\Desktop\Brothel King\Brothel_King-pc-0.3.2t\renpy\ast.py", line 823, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "D:\OneDrive\Desktop\Brothel King\Brothel_King-pc-0.3.2t\renpy\python.py", line 1178, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 1129, in <module>
    $ girl_status_dict = load_girl_status(MC.girls) # Test to increase performance
  File "game/BKfunctions.rpy", line 4705, in load_girl_status
    update_girl_status(s_dict, girl)
  File "game/BKfunctions.rpy", line 4710, in update_girl_status
    s_dict[girl] = girl.get_status()
  File "game/BKgirlclass.rpy", line 1977, in get_status
    elif self.energy <= autorest_limit[self] and self.energy < self.get_stat_max("energy"):
KeyError: <store.Girl object at 0x000000001be6f790>

Windows-10-10.0.26100 AMD64
Ren'Py 8.2.0.24012702
Bro King 0.3t.2 v250418
Thu Oct  9 13:56:32 2025

Is it a problem with the girl, a corrupted file, or something else?

Jman

You have the exact same problem as the poster two posts up: wrong thread.

Well, that and the very same actual problem, too, right down to version numbers. Are you people in a club or something? :P
And with strange aeons even death may die...

Tienteaser

Quote from: Jman on Oct 10, 2025, 12:17 AMYou have the exact same problem as the poster two posts up: wrong thread.

Well, that and the very same actual problem, too, right down to version numbers. Are you people in a club or something? :P
If so, then they let me in without a cover charge.

So what is the right thread?

NM. I see the version.

Jman

It seems they just deleted their post, too. ???

The right thread with my answer is here.

And with strange aeons even death may die...

Seekerps

#204
I get a lot of bugs from taking classes. It crashes and if i click ignore it shows the picture of the girl, with an unrelated name, saying that she did bad at the contract and the client was not satisfied and won't pay in full. Then I don't know if the class was effective or not

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 908, in script call
    $ calendar.play_alarms() # Also triggers "day" conditional events
  File "game/BKevents.rpy", line 1036, in script call
    $ ev.play()
  File "game/BKevents.rpy", line 1630, in script
    python:
  File "game/BKevents.rpy", line 1632, in <module>
    title, description = quest.get_results(girl)
  File "game/BKclasses.rpy", line 4907, in get_results
    jp = round_int(girl.change_jp(self.jp, jp_target))
NameError: name 'jp_target' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 908, in script call
    $ calendar.play_alarms() # Also triggers "day" conditional events
  File "game/BKevents.rpy", line 1036, in script call
    $ ev.play()
  File "game/BKevents.rpy", line 1630, in script
    python:
  File "C:\Users\user\Downloads\Brothel_King-pc-0.3t.2\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\Downloads\Brothel_King-pc-0.3t.2\Brothel_King-pc\renpy\python.py", line 1178, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 1632, in <module>
    title, description = quest.get_results(girl)
  File "game/BKclasses.rpy", line 4907, in get_results
    jp = round_int(girl.change_jp(self.jp, jp_target))
NameError: name 'jp_target' is not defined

Windows-10-10.0.19045 AMD64
Ren'Py 8.2.0.24012702
Bro King 0.3t.2 v250418
Sat Oct 11 17:52:58 2025

Jman

Quote from: Seekerps on Oct 11, 2025, 09:39 PMBro King 0.3t.2 v250418
I don't know what is it with you people on 'v250418' and not reading thread titles. ???
And with strange aeons even death may die...