News:

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

Former www.henthighschool.com

v0.3 Test Version (April 2025 Update)

Started by Goldo, Aug 25, 2024, 10:58 PM

Previous topic - Next topic

Chordless___D

Code based question...

It appears that when working and whoring, the whoring media are exclusively those tagged with the job tag (e.g. dancer bis). I want to make it so it selects from those and from all the other sex act media available, except those associated with different job types.

I think I've found the bit of code in BKfunctions.rpy which tells the programme to do this, but a) I don't know how to change it so it does what I want, and b) I'm not entirely sure if this really is the right bit of code or not.

Anyone here able to help me?

BKfunctions.rpy
...
2158 if (girl.work_whore or job_filter) and girl.job in all_jobs: # Adds a job tag if the girl is doing work & whore or job_filter is on
2159 and_tags += perform_job_dict[girl.job + "_tags"]

Jman

Should be the right bit of code, yes.

For banning only non-relevant job tags, something like this (note that original job tag addition is commented out, that's the #):
            if (girl.work_whore or job_filter) and girl.job in all_jobs: # Adds a job tag if the girl is doing work & whore or job_filter is on
#                and_tags += perform_job_dict[girl.job + "_tags"]
                not_tags += [jtag for taglist in [perform_job_dict[badjob + "_tags"] for badjob in [jb for jb in all_jobs if jb != girl.job]] for jtag in taglist]

From very brief testing, it should be doing what you want. Note that this also applies to the 'extra service' events in addition to W&W. If you only want W&W, remove the 'job_filter' check.
And with strange aeons even death may die...

Chordless___D

Quote from: Jman on Sep 25, 2025, 08:35 AMFrom very brief testing, it should be doing what you want. Note that this also applies to the 'extra service' events in addition to W&W. If you only want W&W, remove the 'job_filter' check.


Thanks very much Jman.  I'll plug that in, and look forward to enjoying your assistance.

Jman

#693
Quote from: yuraina56 on Oct 06, 2025, 11:24 AMI need help

autorest_limit[self]

KeyError: <store.Girl object at 0x000000002f07d9d0>
First result when I search the forum for "KeyError: <store.Girl": linky. The help you need is exactly one post above that.


Also, you should update to 'v250613' instead of 'v250418'.
And with strange aeons even death may die...

Tienteaser

Hopefully this is the correct thread for v3 bugs. If not, please link to the right one.

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

#695
The girl, mostly. Although you could say that your save is a bit corrupted, too. I suppose these are kinda the same thing here.

Anyway, read my answer just above your post.
And with strange aeons even death may die...

Tienteaser

Quote from: Jman on Oct 06, 2025, 08:03 PM
Quote from: yuraina56 on Oct 06, 2025, 11:24 AMI need help

autorest_limit[self]

KeyError: <store.Girl object at 0x000000002f07d9d0>
First result when I search the forum for "KeyError: <store.Girl": linky. The help you need is exactly one post above that.


Also, you should update to 'v250613' instead of 'v250418'.

Hmm. The version I'm using is v.250603. See screencap attached.
https://share.icloud.com/photos/089c8PIHobdkqNowqFPNPr71A

Supposedly this bug was fixed in 250509, yes?

Why did you think I was using v250418?

Jman

#697
Because of this?
Quote from: Tienteaser on Oct 10, 2025, 12:24 AMWindows-10-10.0.26100 AMD64
Ren'Py 8.2.0.24012702
Bro King 0.3t.2 v250418
Thu Oct  9 13:51:56 2025

Not sure how this mismatch happened. Maybe you're running some Frankenstein combination of different patches?

What does your BKevents.rpy file say around line 7670, after these lines?
    # 2. Transfer girl from giver to taker

    if result:
        $ MC.girls.append(girl)


Anyway, if you got your girl(s) farmed before updating to 'v250603', you likely still have the same issue. 'v250509' only eliminates the cause of the bug, it doesn't fix already affected girls.
And with strange aeons even death may die...

Jman

Quote from: Seekerps on Oct 11, 2025, 09:39 PMNameError: name 'jp_target' is not defined

Bro King 0.3t.2 v250418
Is there a secret club of plain unpatched 'v250418' enjoyers out there or something? This bug was fixed in pretty much the first patch for 0.3t.2 ever. And there have been a multitude of patches since then.
And with strange aeons even death may die...

Seekerps

Quote from: Jman on Oct 11, 2025, 11:15 PM
Quote from: Seekerps on Oct 11, 2025, 09:39 PMNameError: name 'jp_target' is not defined

Bro King 0.3t.2 v250418
Is there a secret club of plain unpatched 'v250418' enjoyers out there or something? This bug was fixed in pretty much the first patch for 0.3t.2 ever. And there have been a multitude of patches since then.

I tried installing new patch and now i get this

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/BKgirlclass.rpy", line 4977: invalid syntax
                                raise AssertionError, "Two girl packs with the name '%s' were found:\n%s\n%s\nRename one of them to avoid conflicts." % (girlpack_name, self._m1_BKgirlclass__path_dict[girlpack_name], girlpack_path)
                                                     ^

File "game/BKintro.rpy", line 1116: show statement expects a non-empty block.
    show princess fucked at top with dissolve:
                                              ^

File "game/BKmain.rpy", line 388: show statement expects a non-empty block.
    show expression bg_bro at top:
                                  ^

File "game/BKmain.rpy", line 983: show statement expects a non-empty block.
    show expression brothel.bedroom_type.pic_path at top:
                                                         ^

Ren'Py Version: Ren'Py 8.2.0.24012702
Sun Oct 12 07:52:21 2025

Jman

What patch did you install? There's no such line in the last version, and you apparently broke the install badly enough that it doesn't even show what version it is.


Edit: As far as I can tell, you're using some version of 0.2 patch on top of 0.3. Don't.
And with strange aeons even death may die...

Seekerps

Quote from: Jman on Oct 12, 2025, 02:32 PMWhat patch did you install? There's no such line in the last version, and you apparently broke the install badly enough that it doesn't even show what version it is.


Edit: As far as I can tell, you're using some version of 0.2 patch on top of 0.3. Don't.

Then I will need to be pointed to the latest patch link. i have this one

https://www.mediafire.com/file/nnxnr2pkopkzv2y/game_patch_0.2.zip/file

Jman

And with strange aeons even death may die...