HentHighSchool Development Forum

Game Development => Brothel King => Topic started by: Goldo on May 13, 2022, 09:52 AM

Title: [Feedback] *BUG REPORTS* Stable version only (v0.2)
Post by: Goldo on May 13, 2022, 09:52 AM
*Read this first*

Please use this thread to report any crash or unintended behavior you encounter in the game (and there will be many, since this is alpha). Do not use this thread to ask for gameplay changes or make suggestions, they are best asked elsewhere.

First, the DON'Ts of bug reporting:

The DOs of bug reports:

It isn't generally necessary to include your saved game, but it can help in the case of weird bugs that cannot be replicated (i.e. it happens only once in a particular setting, not in all games).


Please double check the following before reporting a bug (see the download section for links and more info):
- Have you applied the latest patch (https://www.mediafire.com/file/nnxnr2pkopkzv2y/game_patch_0.2.zip/file)?
- Have you installed a girl pack (https://www.mediafire.com/file/ms86oyaehplz6pn/basic-girl-pack-020.zip/file)?
- Have you removed all unnecessary files from the 'game' and 'game/girls' folders (especially the old .rpy files)?

I have to mention an issue that happens often: People install the game on top of an older version, sometimes in sub-folders. Don't do that. The game will try to compile all the .rpy files it encounters and it will crash when it runs into duplicates. Always install the game in its own, clean folder.
Title: Re: [Feedback] *BUG REPORTS*
Post by: neronero on May 19, 2022, 05:14 AM
Error from Trait King thread, but I don't think TK is the cause.

Quote from: EvilPenguin on May 18, 2022, 11:29 PMduring ninja hunt, triggering that event:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 368, in script call
    call ninja_hunt(selected_location) from _call_ninja_hunt
  File "game/BKchapter2.rpy", line 5367, in script call
    call ninja_game(NPC_haruka) from _call_ninja_game_2
  File "game/BKminigame.rpy", line 222, in script
    call expression ("ninja_" + guest) from _call_expression_7
  File "game/BKminigame.rpy", line 222, in <module>
    call expression ("ninja_" + guest) from _call_expression_7
NameError: name 'guest' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 368, in script call
    call ninja_hunt(selected_location) from _call_ninja_hunt
  File "game/BKchapter2.rpy", line 5367, in script call
    call ninja_game(NPC_haruka) from _call_ninja_game_2
  File "game/BKminigame.rpy", line 222, in script
    call expression ("ninja_" + guest) from _call_expression_7
  File "renpy/ast.py", line 1488, in execute
    label = renpy.python.py_eval(label)
  File "renpy/python.py", line 2276, in py_eval
    return py_eval_bytecode(code, globals, locals)
  File "renpy/python.py", line 2269, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "game/BKminigame.rpy", line 222, in <module>
    call expression ("ninja_" + guest) from _call_expression_7
NameError: name 'guest' is not defined

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220511
Thu May 19 01:20:13 2022

would attach a save file, but:
"Your file is too large. The maximum attachment size allowed is 512 KB. 0.8 MB"
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on May 19, 2022, 08:38 AM
New patch out, fixing this bug and updating the forum link.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Nyucian on May 21, 2022, 02:38 AM
My apologies if this is the wrong thread for it but:

Having a bit of an Issue with the "King's Way" V2.1 - I download and install the mod (dragging it fresh into the Mods folder) but even if I start a new game and run it: I get this error immediately

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 947, in script
    $ result = ui.interact()
  File "game/BKmain.rpy", line 947, in <module>
    $ result = ui.interact()
  File "game/Mods/King's Way/kings_way.rpy", line 85, in execute
    screen cheat_main():
  File "game/Mods/King's Way/kings_way.rpy", line 85, in execute
    screen cheat_main():
  File "game/Mods/King's Way/kings_way.rpy", line 87, in execute
    frame:
  File "game/Mods/King's Way/kings_way.rpy", line 91, in execute
    has vbox
  File "game/Mods/King's Way/kings_way.rpy", line 97, in execute
    if cheat_menu == "option":
  File "game/Mods/King's Way/kings_way.rpy", line 100, in execute
    if slave_id == "":
  File "game/Mods/King's Way/kings_way.rpy", line 103, in execute
    use cheat_slave_edit
  File "game/Mods/King's Way/kings_way.rpy", line 195, in execute
    screen cheat_slave_edit:
  File "game/Mods/King's Way/kings_way.rpy", line 195, in execute
    screen cheat_slave_edit:
  File "game/Mods/King's Way/kings_way.rpy", line 197, in execute
    hbox:
  File "game/Mods/King's Way/kings_way.rpy", line 198, in execute
    viewport:
  File "game/Mods/King's Way/kings_way.rpy", line 206, in execute
    has vbox
  File "game/Mods/King's Way/kings_way.rpy", line 461, in execute
    hbox:
  File "game/Mods/King's Way/kings_way.rpy", line 463, in execute
    bar:
  File "game/Mods/King's Way/kings_way.rpy", line 463, in keywords
    bar:
  File "game/Mods/King's Way/kings_way.rpy", line 465, in <module>
    value FieldValue(slave_id, "upkeep", max_upkeep[slave_id.rank])
NameError: name 'max_upkeep' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 947, in script
    $ result = ui.interact()
  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/BKmain.rpy", line 947, in <module>
    $ result = ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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/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/Mods/King's Way/kings_way.rpy", line 85, in execute
    screen cheat_main():
  File "game/Mods/King's Way/kings_way.rpy", line 85, in execute
    screen cheat_main():
  File "game/Mods/King's Way/kings_way.rpy", line 87, in execute
    frame:
  File "game/Mods/King's Way/kings_way.rpy", line 91, in execute
    has vbox
  File "game/Mods/King's Way/kings_way.rpy", line 97, in execute
    if cheat_menu == "option":
  File "game/Mods/King's Way/kings_way.rpy", line 100, in execute
    if slave_id == "":
  File "game/Mods/King's Way/kings_way.rpy", line 103, in execute
    use cheat_slave_edit
  File "game/Mods/King's Way/kings_way.rpy", line 195, in execute
    screen cheat_slave_edit:
  File "game/Mods/King's Way/kings_way.rpy", line 195, in execute
    screen cheat_slave_edit:
  File "game/Mods/King's Way/kings_way.rpy", line 197, in execute
    hbox:
  File "game/Mods/King's Way/kings_way.rpy", line 198, in execute
    viewport:
  File "game/Mods/King's Way/kings_way.rpy", line 206, in execute
    has vbox
  File "game/Mods/King's Way/kings_way.rpy", line 461, in execute
    hbox:
  File "game/Mods/King's Way/kings_way.rpy", line 463, in execute
    bar:
  File "game/Mods/King's Way/kings_way.rpy", line 463, in keywords
    bar:
  File "game/Mods/King's Way/kings_way.rpy", line 465, in <module>
    value FieldValue(slave_id, "upkeep", max_upkeep[slave_id.rank])
NameError: name 'max_upkeep' is not defined

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220519
Fri May 20 19:35:12 2022

Normally, I would post this in it's own dedicated thread but there doesn't seem to be a dedicated thread for this mod in paticular - except in the Resources thread.
Title: Re: [Feedback] *BUG REPORTS*
Post by: neronero on May 21, 2022, 12:24 PM
Quote from: Nyucian on May 21, 2022, 02:38 AMMy apologies if this is the wrong thread for it but:

Having a bit of an Issue with the "King's Way" V2.1 - I download and install the mod (dragging it fresh into the Mods folder) but even if I start a new game and run it: I get this error immediately

Normally, I would post this in it's own dedicated thread but there doesn't seem to be a dedicated thread for this mod in paticular - except in the Resources thread.
Apparently the version 2.1 I had linked in the resources/mods thread is outdated, and the 2.0 version (https://f95zone.to/threads/brothel-king-girl-packs-and-mods-collection.21058/) hosted on F95zone is the most recent version. (edit: or is it? ???) Try downloading the mod again from F95zone.

edit: There seems to be even more confusion about the versioning... See the latest posts in the thread linked above. Either way, I believe Kite80 might provide support for one of these versions, so pay extra attention to his posts.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Smaug on May 21, 2022, 02:04 PM
Dunno where else to post this, but with the addition of resolution options I scoured the internet for source pics and upscaled some to target 1080x1920 resolution. (Also a couple of MC portraits). Not a comprehensive replacer, just room and brothel pics mostly.

MEGA link (https://mega.nz/file/CwggwRqZ#nIpQ418sezPSoMWpVf55c3_Pgs8QSwX0lZP1rQ3CBts)
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on May 21, 2022, 02:20 PM
Quote from: neronero on May 21, 2022, 12:24 PM
Quote from: Nyucian on May 21, 2022, 02:38 AMMy apologies if this is the wrong thread for it but:

Having a bit of an Issue with the "King's Way" V2.1 - I download and install the mod (dragging it fresh into the Mods folder) but even if I start a new game and run it: I get this error immediately

Normally, I would post this in it's own dedicated thread but there doesn't seem to be a dedicated thread for this mod in paticular - except in the Resources thread.
Apparently the version 2.1 I had linked in the resources/mods thread is outdated, and the 2.0 version (https://f95zone.to/threads/brothel-king-girl-packs-and-mods-collection.21058/) hosted on F95zone is the most recent version. (edit: or is it? ???) Try downloading the mod again from F95zone.

edit: There seems to be even more confusion about the versioning... See the latest posts in the thread linked above. Either way, I believe Kite80 might provide support for one of these versions, so pay extra attention to his posts.

I posted my own King's way mod there. It's the 2.0 version if i remember correctly.
Edit: sorry i was wrong.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Toshiro on May 21, 2022, 06:04 PM
Got an error when doing a girls love event.  She also didn't get a pet.
Mods: Trait King, Headhunter, King's way.
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1308, in script call
    call slave_interact(girl) from _call_slave_interact
  File "game/BKinteractions.rpy", line 314, in script call
    call expression girl.story pass (girl=girl) from _call_expression_1
  File "game/BKinteractions.rpy", line 5068, in script call
    call slave_story_help(girl, act) from _call_slave_story_help_10
  File "game/BKinteractions.rpy", line 6188, in script
    $ girl.items.append(pet)
  File "game/BKinteractions.rpy", line 6188, in <module>
    $ girl.items.append(pet)
NameError: name 'pet' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 1308, in script call
    call slave_interact(girl) from _call_slave_interact
  File "game/BKinteractions.rpy", line 314, in script call
    call expression girl.story pass (girl=girl) from _call_expression_1
  File "game/BKinteractions.rpy", line 5068, in script call
    call slave_story_help(girl, act) from _call_slave_story_help_10
  File "game/BKinteractions.rpy", line 6188, in script
    $ girl.items.append(pet)
  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/BKinteractions.rpy", line 6188, in <module>
    $ girl.items.append(pet)
NameError: name 'pet' is not defined

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220519
Sat May 21 07:59:46 2022
Title: Re: [Feedback] *BUG REPORTS*
Post by: Razzy on May 22, 2022, 05:09 PM
No mods (except some homebrew number tweaks for max rooms etc), latest patch. Seemed pretty self explanatory so have "fixed" it myself by copying the tavern.webp and renaming it.

Edit: Error occurred a second time except with strip club room not having dusty variant, I just paid sill to clean (Happened on reload and forgot to clean up before people judge me :P)

I'm sorry, but an uncaught exception occurred.

While loading <'Image' u'brothels/rooms/tavern_dusty.webp'>:
  File "game/BKmain.rpy", line 909, in script
    with Dissolve(0.3)
IOError: Couldn't find file 'brothels/rooms/tavern_dusty.webp'.

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

Full traceback:
  File "game/BKmain.rpy", line 909, 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 1682, in with_statement
    return renpy.game.interface.do_with(trans, paired, clear=clear)
  File "renpy/display/core.py", line 2752, in do_with
    clear=clear)
  File "renpy/display/core.py", line 3315, 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 3834, in interact_core
    self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
  File "renpy/display/core.py", line 2555, in draw_screen
    renpy.config.screen_height,
  File "render.pyx", line 492, in renpy.display.render.render_screen
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/layout.py", line 824, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/transition.py", line 368, in render
    top = render(self.new_widget, width, height, st, at)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/layout.py", line 824, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/layout.py", line 824, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/transform.py", line 733, in render
    return transform_render(self, width, height, st, at)
  File "accelerator.pyx", line 187, in renpy.display.accelerator.transform_render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/im.py", line 623, in render
    return cache.get(self, render=True)
  File "renpy/display/im.py", line 287, in get
    surf = image.load()
  File "renpy/display/im.py", line 704, in load
    raise e
IOError: Couldn't find file 'brothels/rooms/tavern_dusty.webp'.

Windows-10-10.0.19041
Ren'Py 7.4.10.2178
Brothel King 0.2 v220519
Sun May 22 18:01:54 2022
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on May 22, 2022, 05:50 PM
This (https://www.mediafire.com/file/cbci3kc3mavi5d8/images.rar/file) should solve your missing image error. Just drop the contets of it the same way as you do with the patch.

Edit: but as i see it you are using the older version of the game. As the new base game should have them already included as far as i know.
Title: Re: [Feedback] *BUG REPORTS*
Post by: DougTheC on May 24, 2022, 06:52 PM
Quote from: Razzy on May 22, 2022, 05:09 PMNo mods (except some homebrew number tweaks for max rooms etc), latest patch. Seemed pretty self explanatory so have "fixed" it myself by copying the tavern.webp and renaming it.

Edit: Error occurred a second time except with strip club room not having dusty variant, I just paid sill to clean (Happened on reload and forgot to clean up before people judge me :P)

I'm sorry, but an uncaught exception occurred.

While loading <'Image' u'brothels/rooms/tavern_dusty.webp'>:
  File "game/BKmain.rpy", line 909, in script
    with Dissolve(0.3)
IOError: Couldn't find file 'brothels/rooms/tavern_dusty.webp'.

Windows-10-10.0.19041
Ren'Py 7.4.10.2178
Brothel King 0.2 v220519
Sun May 22 18:01:54 2022

I agree with vadi92 that you have an old base game, as noted in following FAQ quote, with real cure to download current v 0.2 Release base game in new folder, install latest patch, (can then move or copy girls folders to new install) & start new game.

The confusion arises since so many files are in the patch, that trying to update old base code almost works.

QuoteThe latest version is always available from (recommended):
The HHS Brothel King forum Download post,
or the direct links
current
 Win base game (v 0.2 Release) (http://https//www.mediafire.com/file/h81k39vblrz5co3/Brothel_King-0.2.zip/file), which must be followed by
latest patch (https://www.mediafire.com/file/nnxnr2pkopkzv2y/game_patch_0.2.zip/file).

The base game and required patch are always available from these links, which are also listed in creator @Goldo's sig.

Q: Am I using the latest release/version?
A: On Feb 12, 2022, the pre-patch base code changed from a "ver 0.2 Test" to "ver 0.2 Release" set of code. Those using older versions, with "faq.txt" file dated before February 7, 2022, need to download and extract the full base game again, before extracting the required latest update patch, and starting a new game.

It is highly recommended not to overwrite your old game folder but to install it in a new location.
If using the same install folder, you'll probably need to delete "game/*.rpyc" old compiled files, which are automatically recompiled on running game.

For those with current base game code, the version number shows in the start menu, top-right corner, as well as in game/options.rpy like
config.version = "0.2 v220222",
with the part after the "0.2 v" being the yymmdd date of patch creation.

The latest patch is always available from http://www.mediafire.com/file/nnxnr2pkopkzv2y/game+patch+0.2.zip/file
which has a upload date that you can compare to the yymmdd of your current patch.
Title: Re: [Feedback] *BUG REPORTS*
Post by: QuietBob on May 24, 2022, 08:47 PM
Since this is my first post on the new forum, I feel obligated to say, ah, it's good to have a home again.

Now that I've said that, on the old forum I mentioned an issue with girl's reactions changing drastically before and during training, going from, "Haha, that sounds like fun, master!" to "That's dirty! I don't want to!" and you had asked for specific examples.

I just started a new game with the latest patch and I've got a save here with only one slave, Leortha's Astrid Hofferson, right before training nude which demonstrates exactly what I'm talking about. If you try training again the next day, regular or advanced, you'll see it again. You might have to try a couple times because the dialogue is randomized, but it should show what I'm talking about more often than not.

Apparently I can't attach files here, so I've uploaded it to Mega here: https://mega.nz/folder/B01ByYCa#8OrOqUfdbgK8ZWU2ynMVGA
Title: Re: [Feedback] *BUG REPORTS*
Post by: QuietBob on May 24, 2022, 09:52 PM
Another thing I'm running into with the most recent patch, whenever I punish girls for "Disobeying you" I don't have any dialogue. It used to say, "You refused to work as (job)." but now it's just blank.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Razzy on May 25, 2022, 08:34 PM
Quote from: DougTheC on May 24, 2022, 06:52 PM
Quote from: Razzy on May 22, 2022, 05:09 PMNo mods (except some homebrew number tweaks for max rooms etc), latest patch. Seemed pretty self explanatory so have "fixed" it myself by copying the tavern.webp and renaming it.

Edit: Error occurred a second time except with strip club room not having dusty variant, I just paid sill to clean (Happened on reload and forgot to clean up before people judge me :P)

I'm sorry, but an uncaught exception occurred.

While loading <'Image' u'brothels/rooms/tavern_dusty.webp'>:
  File "game/BKmain.rpy", line 909, in script
    with Dissolve(0.3)
IOError: Couldn't find file 'brothels/rooms/tavern_dusty.webp'.

Windows-10-10.0.19041
Ren'Py 7.4.10.2178
Brothel King 0.2 v220519
Sun May 22 18:01:54 2022

I agree with vadi92 that you have an old base game, as noted in following FAQ quote, with real cure to download current v 0.2 Release base game in new folder, install latest patch, (can then move or copy girls folders to new install) & start new game.

The confusion arises since so many files are in the patch, that trying to update old base code almost works.

QuoteThe latest version is always available from (recommended):
The HHS Brothel King forum Download post,
or the direct links
current
 Win base game (v 0.2 Release) (http://https//www.mediafire.com/file/h81k39vblrz5co3/Brothel_King-0.2.zip/file), which must be followed by
latest patch (https://www.mediafire.com/file/nnxnr2pkopkzv2y/game_patch_0.2.zip/file).

The base game and required patch are always available from these links, which are also listed in creator @Goldo's sig.

Q: Am I using the latest release/version?
A: On Feb 12, 2022, the pre-patch base code changed from a "ver 0.2 Test" to "ver 0.2 Release" set of code. Those using older versions, with "faq.txt" file dated before February 7, 2022, need to download and extract the full base game again, before extracting the required latest update patch, and starting a new game.

It is highly recommended not to overwrite your old game folder but to install it in a new location.
If using the same install folder, you'll probably need to delete "game/*.rpyc" old compiled files, which are automatically recompiled on running game.

For those with current base game code, the version number shows in the start menu, top-right corner, as well as in game/options.rpy like
config.version = "0.2 v220222",
with the part after the "0.2 v" being the yymmdd date of patch creation.

The latest patch is always available from http://www.mediafire.com/file/nnxnr2pkopkzv2y/game+patch+0.2.zip/file
which has a upload date that you can compare to the yymmdd of your current patch.


Weird as I did do a fresh install sometime after 0.2 was officially released  ??? ahh well Maybe I messed it up or something, will do a new fresh install now then  ;D
Title: Re: [Feedback] *BUG REPORTS*
Post by: krakr on May 26, 2022, 02:41 AM
Replying here rather than F95 to Goldo's response to my "bitches be glitchin'" type post in which I received the appropriate console command to solve that.

MC.girls[number].name   (to find/check the right number)
MC.girls[number].away = False

"Of course the console works, but this is indicative of a larger bug. What happened exactly , can you reliably reproduce it?"
short answer = no
My error was a slave that was indefinitely "unavailable" every day, the day count changed randomly.
How I got to that was:
Took every "job" assigning the most appropriate gal per.
hit "end day"
5 of 6 ended well, #5 never ended.
That's the best I can give you. No Renpy error, just bitch got glitched.
Title: Re: [Feedback] *BUG REPORTS*
Post by: DougTheC on May 30, 2022, 12:51 AM
From F95zone,
Quote from: Silito13, post: 8128107, member: 1116On mac (after the patch) I am getting "The application can't be opened" error. Any help for those running it on mac
MacOS, Macbook, Apple, permissions, execute

This could unfortunately be the result of my editing the Mac install pack with Windows to change a file, which could have messed up file execute permissions.
(It was to have options.rpy config.version value set to end with "R" to indicate unpatched.)

Here are some fixes that worked on other games. Note the Mac version is relatively unsupported.

https://www.youtube.com/watch?v=w8r2oMwsgMg

https://superuser.com/questions/898124/the-application-someapp-app-can-t-be-opened

https://f95zone.to/threads/true-bond-ch-1-part-4-cloudlet.78538/post-5470769

https://f95zone.to/threads/panthea-act-2-v0-5-0-cracked-leave2gether.63320/post-6497379

https://www.youtube.com/watch?v=pOV9HY0-WDU
Title: Re: [Feedback] *BUG REPORTS*
Post by: j01ntr0l1a on Jun 02, 2022, 01:53 AM
hey i dunno if i saved mod somewhere i shouldnt or something but i get this error when i open mod file in main menu any help would be appreciated, thanks

I'm sorry, but an uncaught exception occurred.

While running game code:
IOError: Couldn't find file 'mods/Trait King/title.webm'.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  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 "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
    raise_(exc[0], exc[1], exc[2])
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
    periodic_pass()
  File "renpy/audio/audio.py", line 1082, in periodic_pass
    c.periodic()
  File "renpy/audio/audio.py", line 518, in periodic
    topf = load(filename)
  File "renpy/audio/audio.py", line 69, in load
    rv = renpy.loader.load(fn)
  File "renpy/loader.py", line 798, in load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'mods/Trait King/title.webm'.

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220519
Wed Jun  1 18:50:43 2022
Title: Re: [Feedback] *BUG REPORTS*
Post by: Ch12 on Jun 02, 2022, 02:55 AM
Slightly off-topic: I would recommend adding "Start a new game when installing a new patch" to the Do-s and Don't-s for Reporting Bugs.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Ch12 on Jun 02, 2022, 03:10 AM
Quote from: j01ntr0l1a on Jun 02, 2022, 01:53 AMhey i dunno if i saved mod somewhere i shouldnt or something but i get this error when i open mod file in main menu any help would be appreciated, thanks

I'm sorry, but an uncaught exception occurred.

While running game code:
IOError: Couldn't find file 'mods/Trait King/title.webm'.
...

Regarding this bug: I'm not sure if Trait King was updated to work with new versions of BK. Can someone confirm this?
Other than that, I'm surprised to see the WebM file extension in the error message. That's a video file format.

What files do exist in your Trait King folder?
Title: Re: [Feedback] *BUG REPORTS*
Post by: neronero on Jun 02, 2022, 05:11 AM
Quote from: Ch12 on Jun 02, 2022, 03:10 AM
Quote from: j01ntr0l1a on Jun 02, 2022, 01:53 AMhey i dunno if i saved mod somewhere i shouldnt or something but i get this error when i open mod file in main menu any help would be appreciated, thanks

Regarding this bug: I'm not sure if Trait King was updated to work with new versions of BK. Can someone confirm this?
Ever since Trait King's hooks were introduced in BK 0.2 I can't recall having to update the mod once due to a vanilla game patch.
It very much looks like the mod was improperly installed. It consists of the following files which are all required:

game/Mods/Trait King/Trait King.rpy
game/Mods/Trait King/title.webm
game/TKevents.rpy
Title: Re: [Feedback] *BUG REPORTS*
Post by: neronero on Jun 05, 2022, 08:38 AM
Two reports from F95

#1: BK.ini naming schemes don't always stick

Quote from: cosmonight19, post: 8274350, member: 4313842for people that have the BB and Karin packs i made, are the name settings in the ini file working? i don't see anything wrong when i check the files on my end but in-game their names aren't generating correctly but packs from other people are. for Karin, any clones should still keep "Kakudate" in their name and the original should be named "Kakudate Karin" but in my game all Karin clones generate without last names and the original comes up as "Karin (Blue Archive)". i didn't really care too much to worry about it for those two but it seems to be affecting every pack i've made since BB since the one i'm working on right now isn't generating properly either

Possibly related to this bug?

Quote from: RudolfU, post: 8070719, member: 169196I mean, my problem was not with saving the file (as i usually allowed clones in testing), but with them having keep_last_name = False in config, but in game they all generated with same last name (i thought it was because of keep_init line before). After small test rignt now, i found interesting bug - if game setting in BK have yes set to save first or last name for clones, it will take preference over .ini False setting ( even if use clonning name settings from .ini = yes). So you can have .ini file with keep_first_name = True, keep_last_name = False and game settings with keep first name: no, keep last name = yes, use ini settings = yes - clones will generate saving both first and last names :unsure:

Edit: My guess about naming bug : in BK functions.rpy lines ~3301- 3306, after checking for cloning options in ini, BK checks persistent.keep_firstname (game settings) and only if both checks are False it gets randomized. I probably will change those checks in my copy, but  maybe someone can report that to dev to fix globally :)



#2 Mindtrick spell should specify duration="turn". In its current state it's infinite.

Spell('Mindtrick', 'mindtrick.webp', type="trick", level=24, cost=10, effects=[Effect("boost", "job customer budget", 0.25, scope="brothel"), Effect("boost", "whore customer budget", 0.25, scope="brothel")], duration="turn", description="Learnt that trick from an old bum called Zobiwan. He was good at escorting druids, though.")
Title: Re: [Feedback] *BUG REPORTS*
Post by: Leortha on Jun 05, 2022, 06:55 PM
On the above issue, analysis on F95 continued.  From Araminth, and confirmed by  cosmonight19:


---------

So I've noticed this when using the BK.ini generating tool, my packs were generating with random names and I'm not sure why but a fix I found was simply to add a space between the " and the ; in the ini so instead of "Karin"; and "Kakudate"; it's "Karin" ; and "Kakudate" ; (and also inverted_names = False ; since idk which part fixed it)

-----------
 
Title: Re: [Feedback] *BUG REPORTS*
Post by: Justinof on Jun 06, 2022, 01:45 AM
Copy/pasted from F95:

My concern whit the game now is the lag i am esperiencing. Mostly, but not only, in the girls screen i have a terrible latency between the input and the command execution.
Before changing the Renpy graphic settings from "auto" to GL2 Renderer, this latency could reach 5-6 seconds very often!
Now is around 1 second at worst.
I have used all the tricks already posted in this thread. Another note worth mentioning is that in the console appears a message about a memory leak warning.
Another user said that he had the same issue and he got an "update" file from the old forum, i am running an updated game and this problem never happened whit the v. 0.15b.
And before you ask...my pc is not a potato  ::)   
Title: Re: [Feedback] *BUG REPORTS*
Post by: DougTheC on Jun 06, 2022, 05:22 AM
Quote from: Justinof on Jun 06, 2022, 01:45 AMMy concern whit the game now is the lag i am esperiencing. Mostly, but not only, in the girls screen i have a terrible latency between the input and the command execution.

Gone thru the fixes I know of; they are already in latest update.
One thing that could cause latency is having girlpack grades always visible. There was a suggestion to cache ratings, but I don't think it was done.

What version are you running?

Did you install new Release ver 0.2 base code properly (see FAQ)?
Title: Re: [Feedback] *BUG REPORTS*
Post by: Justinof on Jun 06, 2022, 11:51 PM
Quote from: DougTheC on Jun 06, 2022, 05:22 AMOne thing that could cause latency is having girlpack grades always visible. There was a suggestion to cache ratings, but I don't think it was done.
I am aware of this, girls grades are enabled only for city and slavemarket.

Quote from: DougTheC on Jun 06, 2022, 05:22 AMWhat version are you running?

Did you install new Release ver 0.2 base code properly (see FAQ)?
I have installed v. 0.2 "release" of late February, patched whit latest patch available to date 23/03, started a new game after moving all girl packs i was using whit v. 0.15b.
The problem appeared almost immediately, but since i was using the integrated gpu at that time due to a failure of the gaming gpu, i wasn't concerned much.

In the meantime i have patched the game 2 times until the last 19/05 release and installed a new Gpu.
I did not start a new game after 2nd and 3rd patch. I have changed the renpy rendering from Auto to GL2, and this solved partially the latency. Then i have raised the cache size up to 2048, enabled the memory refreshing, nothing helped.
I have made some slight adjustments to raise max girls in brothel and some minor changes, but this after the latency came up.
I use the Trait king mod (updated).
Title: Re: [Feedback] *BUG REPORTS*
Post by: Urza3142 on Jun 07, 2022, 08:37 AM
I've encountered a bug involving advanced training for slaves on my vanilla game. Randomly slaves that should have advanced training unlocked will go back to being locked into regular training only. When this first happened I installed the latest patch and hoped it would fix the issue, but after 2 weeks I've encountered the issue again. Training and exploring positive and negative fixations is something I quite enjoy in BK, so this bug really got under my skin.

My only hunch so far is that I think it has something to do with a new week starting.
Title: Re: [Feedback] *BUG REPORTS*
Post by: neronero on Jun 07, 2022, 04:41 PM
Some food for thought from our hero in exile, in response to Justinof experiencing lag with a modified default brothel size. No real urgency considering the circumstances, but I felt compelled to pass it along because he included a magical phrase... Damn wizard players.

Quote from: Jman9, post: 8291111, member: 1528105(...)

You're also insane. :eek: 100+ girls in the brothel... if I had a hat I'd take it off for you. No wonder the girls screen lags. Try getting rid of them until you get back to vanilla numbers and see how the lag is then.

I do think Goldo can help this a bit by either paging the girls or using vpgrid instead of viewport. A certain rodent might suggest it to him. :)

Also, your save size (https://f95zone.to/threads/brothel-king-v0-2-release-goldo.3282/page-211#post-8289914) is out of control and Goldo should take a hard look at what he's storing there. Especially since you only have about two years' worth of logs. config.save_dump can help some.
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on Jun 07, 2022, 07:05 PM
Well im not suprised that it's lagging with 100+ girl's. I already start to get some lag from around ~20 girl's in the girl's screen. ::)
Title: Re: [Feedback] *BUG REPORTS*
Post by: Ch12 on Jun 08, 2022, 03:22 AM
Justinof, a few questions to hopefully help pinpoint the problem:


I still suspect that you bug is the one I found in the release of 0.2 - a lot of people were having similar problems then. Please make double sure that you installed the patch correctly:
- extract to the correct directory
- you should be asked to overwrite files, which you have to answer with 'yes/allow'
Title: Re: [Feedback] *BUG REPORTS*
Post by: neronero on Jun 08, 2022, 07:30 AM
Trait King has 4 traits which use Effect("change", "mood", ...), including "Depressed" as depicted in the image below.
The default description for this effect is hardcoded into BKgirlclass.rpy as "She loves her outfit (Life of Luxury)". Could that be changed somehow?

(https://i.imgur.com/Sx5MY67.png)
Title: Re: [Feedback] *BUG REPORTS*
Post by: COOLBURNERBRO on Jun 08, 2022, 08:13 AM
I am having an error right after the conversation with the leader of the thieve's guild where she says she will get something for you from a goddess. I don't think there was anything I did wrong when installing the patch before I started playthrough. I'm on mac, an I saw in an earlier post that mac isn't really supported, but here is the error message anyway incase anything can be solved:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKchapter1.rpy", line 2831, in script
    return
Exception: Could not find return label (u'game/BKevents.rpy', 1653927894, 17988).

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

Full traceback:
  File "game/BKchapter1.rpy", line 2831, in script
    return
  File "/private/var/folders/xs/rhls8qh566b5jsr0t1g3_zdh0000gp/T/AppTranslocation/C7F78BD1-57A6-4D49-91C6-37D458D07406/d/Brothel_King.app/Contents/Resources/autorun/renpy/ast.py", line 1567, in execute
    next_node(renpy.game.context().lookup_return(pop=True))
  File "/private/var/folders/xs/rhls8qh566b5jsr0t1g3_zdh0000gp/T/AppTranslocation/C7F78BD1-57A6-4D49-91C6-37D458D07406/d/Brothel_King.app/Contents/Resources/autorun/renpy/execution.py", line 710, in lookup_return
    raise Exception("Could not find return label {!r}.".format(self.return_stack[-1]))
Exception: Could not find return label (u'game/BKevents.rpy', 1653927894, 17988).

Darwin-17.7.0-x86_64-i386-64bit
Ren'Py 7.4.10.2178
Brothel King 0.2 v220416
Wed Jun  8 01:00:03 2022
Title: Re: [Feedback] *BUG REPORTS*
Post by: Justinof on Jun 08, 2022, 11:25 AM
Ch12 i will try to be clear:

The v. 0.15b i have played was running fine even whit 140 girls in the brothel.
I have installed the v.0.2 Release (not the alpha) in a new folder, so the save folder was empty. But since i didn't know at that time that the game saves even in C:\Users\yourusername\AppData\Roaming\RenPy\Bro King-somenumber i didn't delete those saves.
Only when i went to save the first time i have seen that the old saves where still there somewhere.
I didn't bother at the time, i wasn't going to use them anymore. I have deleted those old saves a week ago.

I have installed the patches correctly, overwriting when asked. Here the lines:

        elif result == "assign":
            if not renpy.predicting():
                call hide_details()

            $ girl = selected_girl

The lag happens when i open the girls screen, when i assign points, when i use any button in the girl screen, even the tooltip is lagging. The scrolling in the right panel sometimes is very slow if i use the whell, work better whit the click+pull.
When the pointer is above a button the game takes even 1 second to recognise the position.
This behaviour is not costant, sometimes it seems to speed up for a bit and after few seconds it slow down again.

I could say that the imputs involving the mouse are way slower than those whit the Keyboard.
The mouse pointer has no issues, it moves flawlessy on the screen,

In the resting schedule screen i could tap on 10 buttons fast and wait 10 second for the whole sequence to actually be completed.

I might make a video if necessary, i don't know where i could upload it though.


Title: Re: [Feedback] *BUG REPORTS*
Post by: DougTheC on Jun 08, 2022, 07:51 PM
Quote from: COOLBURNERBRO on Jun 08, 2022, 08:13 AMI am having an error right after the conversation with the leader of the thieve's guild where she says she will get something for you from a goddess. I don't think there was anything I did wrong when installing the patch before I started playthrough. I'm on mac, an I saw in an earlier post that mac isn't really supported, but here is the error message anyway incase anything can be solved:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKchapter1.rpy", line 2831, in script
    return
Exception: Could not find return label (u'game/BKevents.rpy', 1653927894, 17988).

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

Full traceback:
  File "game/BKchapter1.rpy", line 2831, in script
    return
  File "/private/var/folders/xs/rhls8qh566b5jsr0t1g3_zdh0000gp/T/AppTranslocation/C7F78BD1-57A6-4D49-91C6-37D458D07406/d/Brothel_King.app/Contents/Resources/autorun/renpy/ast.py", line 1567, in execute
    next_node(renpy.game.context().lookup_return(pop=True))
  File "/private/var/folders/xs/rhls8qh566b5jsr0t1g3_zdh0000gp/T/AppTranslocation/C7F78BD1-57A6-4D49-91C6-37D458D07406/d/Brothel_King.app/Contents/Resources/autorun/renpy/execution.py", line 710, in lookup_return
    raise Exception("Could not find return label {!r}.".format(self.return_stack[-1]))
Exception: Could not find return label (u'game/BKevents.rpy', 1653927894, 17988).

Darwin-17.7.0-x86_64-i386-64bit
Ren'Py 7.4.10.2178
Brothel King 0.2 v220416
Wed Jun  8 01:00:03 2022


From info on Lemmasoft, it seems your call return stack is broken.

Some ways for that to happen are:

Try loading an earlier save that was not made during an event.

Latest patch is from 5-19-22, so you can update that also, while checking FAQ (https://henthighschool.net/index.php?msg=23) to make sure you originally installed Release (not Beta) base code.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Jun 09, 2022, 04:23 PM
Quote from: QuietBob on May 24, 2022, 08:47 PMSince this is my first post on the new forum, I feel obligated to say, ah, it's good to have a home again.

Now that I've said that, on the old forum I mentioned an issue with girl's reactions changing drastically before and during training, going from, "Haha, that sounds like fun, master!" to "That's dirty! I don't want to!" and you had asked for specific examples.

I just started a new game with the latest patch and I've got a save here with only one slave, Leortha's Astrid Hofferson, right before training nude which demonstrates exactly what I'm talking about. If you try training again the next day, regular or advanced, you'll see it again. You might have to try a couple times because the dialogue is randomized, but it should show what I'm talking about more often than not.

Apparently I can't attach files here, so I've uploaded it to Mega here: https://mega.nz/folder/B01ByYCa#8OrOqUfdbgK8ZWU2ynMVGA

Okay, so the problem lies in some of the custom community dialogue I'm afraid. Here is what the vanilla dialogue looked like:
add_dialogue("slave train accepted", ("generic"), ["Yes, Master.", "As you command, Master.", "Oh, Master [MC.name]... *blush*", "Of course, Master."])
Which did not imply she would like it or not, just that she would obey.

The community dialogue you encountered is like this:
add_dialogue("slave train accepted", ("pervert", "very lewd"), ("Gladly, Master.", "*giggle* That sounds like fun, Master.", "Ooh, I would love to!", "Oh Master, that is {i}so{/i} hot!"))
Which does heavily imply that she will enjoy herself. Hence the weird shift of tone.

I'll check with Neronero what can be done.

Quote from: neronero on Jun 05, 2022, 08:38 AM
Quote from: cosmonight19, post: 8274350, member: 4313842for people that have the BB and Karin packs i made, are the name settings in the ini file working? i don't see anything wrong when i check the files on my end but in-game their names aren't generating correctly but packs from other people are. for Karin, any clones should still keep "Kakudate" in their name and the original should be named "Kakudate Karin" but in my game all Karin clones generate without last names and the original comes up as "Karin (Blue Archive)". i didn't really care too much to worry about it for those two but it seems to be affecting every pack i've made since BB since the one i'm working on right now isn't generating properly either


This seems to be related to the ";" comment not being separated from the code by a space. It seems to be a limitation of the ConfigParser module. I can always make the template _BK.ini introduction clearer on that point.

QuotePossibly related to this bug?

Quote from: RudolfU, post: 8070719, member: 169196I mean, my problem was not with saving the file (as i usually allowed clones in testing), but with them having keep_last_name = False in config, but in game they all generated with same last name (i thought it was because of keep_init line before). After small test rignt now, i found interesting bug - if game setting in BK have yes set to save first or last name for clones, it will take preference over .ini False setting ( even if use clonning name settings from .ini = yes). So you can have .ini file with keep_first_name = True, keep_last_name = False and game settings with keep first name: no, keep last name = yes, use ini settings = yes - clones will generate saving both first and last names :unsure:

Edit: My guess about naming bug : in BK functions.rpy lines ~3301- 3306, after checking for cloning options in ini, BK checks persistent.keep_firstname (game settings) and only if both checks are False it gets randomized. I probably will change those checks in my copy, but  maybe someone can report that to dev to fix globally :)

This one is an interesting case: the game works as intended here. Every _BK.ini will have a setting of 'True' or 'False' (by default) for keeping first and last names for clones. If we go with the solution suggested here, _BK.ini settings will always overwrite the option menu choice, making it effectively useless. What I chose to do instead is to only apply the _BK.ini setting if set to 'True' (which requires an action by the pack maker), because I assume this is the intended behavior from the pack maker's point of view (when the setting is left to False which is default, I assume the pack maker doesn't actually care and is fine with the game settings overwriting that).

There are ways around this, such as adding three possible values to _BK.ini (such as 'True', 'False', and 'default'); but I'd like to know what real-world problem we are trying to solve here before over-complexifying things for pack makers.

QuoteNoticed a curious thing, no idea if it have been mentioned already. When you have a full brother and no space at a farm (but you can buy a pen) and you buy a slave, click on the option to send her to the farm and buy another pen, she gets sent to your brothel instead. Now I have 9/8 girls in my brothel.

I could not reproduce that bug. Has anyone else run into this?
Title: Re: [Feedback] *BUG REPORTS*
Post by: oratorio on Jun 10, 2022, 01:31 AM
Quote from: Goldo on Jun 09, 2022, 04:23 PM
QuoteNoticed a curious thing, no idea if it have been mentioned already. When you have a full brother and no space at a farm (but you can buy a pen) and you buy a slave, click on the option to send her to the farm and buy another pen, she gets sent to your brothel instead. Now I have 9/8 girls in my brothel.

I could not reproduce that bug. Has anyone else run into this?

I have had this happen before, but not for quite some time (I haven't tried to make it happen recently either).
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Jun 10, 2022, 01:03 PM
Quote from: oratorio on Jun 10, 2022, 01:31 AM
Quote from: Goldo on Jun 09, 2022, 04:23 PM
QuoteNoticed a curious thing, no idea if it have been mentioned already. When you have a full brother and no space at a farm (but you can buy a pen) and you buy a slave, click on the option to send her to the farm and buy another pen, she gets sent to your brothel instead. Now I have 9/8 girls in my brothel.

I could not reproduce that bug. Has anyone else run into this?

I have had this happen before, but not for quite some time (I haven't tried to make it happen recently either).

Sounds like a bug that was fixed in a patch a few months back, which is why I have doubts.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Jun 10, 2022, 02:40 PM
Quick update: as I have not noted any game-breaking bug for a while, I have moved on to the test version of 0.3 and will be focusing on this from now on.

I may release one final patch for 0.2, and then that will be it. Let me know if there are some fixes that are an absolute priority for you.
Title: Re: [Feedback] *BUG REPORTS*
Post by: DougTheC on Jun 12, 2022, 10:14 AM
Quote from: Justinof on Jun 08, 2022, 11:25 AMCh12 i will try to be clear:

The v. 0.15b i have played was running fine even whit 140 girls in the brothel.
I have installed the v.0.2 Release (not the alpha) in a new folder, so the save folder was empty. But since i didn't know at that time that the game saves even in C:\Users\yourusername\AppData\Roaming\RenPy\Bro King-somenumber i didn't delete those saves.
...
The lag happens when i open the girls screen, when i assign points, when i use any button in the girl screen, even the tooltip is lagging. The scrolling in the right panel sometimes is very slow if i use the whell, work better whit the click+pull.
When the pointer is above a button the game takes even 1 second to recognise the position.
This behaviour is not costant, sometimes it seems to speed up for a bit and after few seconds it slow down again.

Could you try commenting out the following lines in BKscreens.rpy by adding a # at start of each line, about line 286, and see if that improves lag after using interaction buttons. Run game to recompile; can load from save.

    if context != "farm":
        $ predict_images(girls, predict_portraits = False) # Portraits will be loaded directly, anyway. Also, they already get predicted in right_menu().

If this helps, then @Goldo could move the prediction to before each BKmain.rpy "show screen girls" command, instead of within the girls tab. Would avoid prediction for every cycle of screens with girls tab.

Would then be in BKmain.rpy (test if works):
    $ predict_images(slavemarket.girls, predict_portraits = False) # Portraits will be loaded directly, anyway. Also, they already get predicted in right_menu().
    show screen girls(slavemarket.girls, context = "slavemarket")

and (two places)
    $ predict_images(MC.girls, predict_portraits = False) # Portraits will be loaded directly, anyway. Also, they already get predicted in right_menu().
    show screen girls(MC.girls, "girls")

The "show screen girls" usages in BKinteractions.rpy would run without repetitive image prediction.

The note in predict_images about "# This function seems to work only if called from BKscreens." may relate to parameters not being passed to helper function, instead being treated as semi-global values, Might need some experimentation to work out.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Hermenegild on Jun 13, 2022, 03:04 PM
Not really a bug, just a visual glitch, but an annoying one, with two WTF moments.

Suppose a girl in the brothel is trained enough that all her skills are (almost) maxed, and she earns a level. The "Level up" icon next to the "Girls" button in the brothel screen appears, and the same icon appears next to the girl's portrait in the list. Also, the girl gets a "Level up" button in the top left menu, near "Interact". So far, so good.

However, you have no skills to spend all her new skill points on. Once you spend as much as you can, her "Level up" icon disappears. However, the "Level up" icon next to the "Girls" button doesn't, it stays there. So you end up with a signal saying "One of your girls has leveled up, take care of it!", and with no signal saying "Here's the girl that leveled up!". You think, "WTF?".

To find the girl you have to click each one and look for the "Level up" button being visible. And even if you find the girl, the button does nothing. Again, you think "WTF?".

I'm not sure what should be the correct course of action here. The main-menu "Level up" icon should definitely disappear in that case, but I think both the girl's icon and the "Level up" button should stay, the same way as it works if you have an unspent perk point (if you need two to unlock a tree and you only have one). What the button should do, I'm not sure. A message?

This situation is more likely to happen in the later chapters, where the skill points awarded for leveling up are pretty big. Mine has happened in chapter 6.

Base game, no mods.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Jun 14, 2022, 08:20 AM
Quote from: Hermenegild on Jun 13, 2022, 03:04 PMNot really a bug, just a visual glitch, but an annoying one, with two WTF moments.

Suppose a girl in the brothel is trained enough that all her skills are (almost) maxed, and she earns a level. The "Level up" icon next to the "Girls" button in the brothel screen appears, and the same icon appears next to the girl's portrait in the list. Also, the girl gets a "Level up" button in the top left menu, near "Interact". So far, so good.

However, you have no skills to spend all her new skill points on. Once you spend as much as you can, her "Level up" icon disappears. However, the "Level up" icon next to the "Girls" button doesn't, it stays there. So you end up with a signal saying "One of your girls has leveled up, take care of it!", and with no signal saying "Here's the girl that leveled up!". You think, "WTF?".

I see the problem here, because the game logic for the 'girls' indicators was not updated properly. It's an easy enough fix, but...

QuoteI'm not sure what should be the correct course of action here. The main-menu "Level up" icon should definitely disappear in that case, but I think both the girl's icon and the "Level up" button should stay, the same way as it works if you have an unspent perk point (if you need two to unlock a tree and you only have one). What the button should do, I'm not sure. A message?

...I'm not sure I understand the part highlighted in red. Why do you think the indicator needs to stay, if the girl cannot spend any more upgrade points? I think it would be more consistent if all warnings disappeared once you cannot spent any more upgrade points.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Hermenegild on Jun 14, 2022, 11:26 AM
Quote from: Goldo on Jun 14, 2022, 08:20 AM
Quote from: Hermenegild on Jun 13, 2022, 03:04 PM[...] I think both the girl's icon and the "Level up" button should stay, the same way as it works if you have an unspent perk point (if you need two to unlock a tree and you only have one).[...]

...I'm not sure I understand the part highlighted in red. Why do you think the indicator needs to stay, if the girl cannot spend any more upgrade points? I think it would be more consistent if all warnings disappeared once you cannot spent any more upgrade points.

This is simply how it currently works if you have a perk point you're unable to spend. If you end up in a situation where all your unlocked perk trees are finished, and you still have a lone perk point, you're unable to spend it because unlocking a new tree costs two points. In this case the game behaves exactly as I described: the main screen "Level up" icon goes away, but the girl's "level up" icon stays and her "Perks" button is still named "Level up". And I'm fine with how this works: there's no global indicator, but the girl still remains labelled as one which could be better if I can manage to overcome the current limit (level or rank her up).

I would just like some consistency here. If you think the girl's icon should also go away and her "Level up" button should revert to "Perks", that's fine. All I ask is for the two cases to be handled in the same way.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Justinof on Jun 14, 2022, 02:23 PM
Quote from: DougTheC on Jun 12, 2022, 10:14 AMCould you try commenting out the following lines in BKscreens.rpy by adding a # at start of each line, about line 286, and see if that improves lag after using interaction buttons. Run game to recompile; can load from save.

    if context != "farm":
        $ predict_images(girls, predict_portraits = False) # Portraits will be loaded directly, anyway. Also, they already get predicted in right_menu().
After commenting out those 2 lines the navigation in girls screen has indeed improved, not massively but substantially nonetheless.

Quote from: DougTheC on Jun 12, 2022, 10:14 AMIf this helps, then @Goldo could move the prediction to before each BKmain.rpy "show screen girls" command, instead of within the girls tab. Would avoid prediction for every cycle of screens with girls tab.
I think this the right thing to do, for what i can understand.

Quote from: DougTheC on Jun 12, 2022, 10:14 AMWould then be in BKmain.rpy (test if works):
    $ predict_images(slavemarket.girls, predict_portraits = False) # Portraits will be loaded directly, anyway. Also, they already get predicted in right_menu().
    show screen girls(slavemarket.girls, context = "slavemarket")

and (two places)
    $ predict_images(MC.girls, predict_portraits = False) # Portraits will be loaded directly, anyway. Also, they already get predicted in right_menu().
    show screen girls(MC.girls, "girls")
I have implemented these too, still testing, i haven't noticed weird behaviours.
I know i am pushing the game to the limits, but i am wondering why it can't make use of a powerful gpu to handle the images more efficiently.

Many thanks for the help!

Title: Re: [Feedback] *BUG REPORTS*
Post by: DougTheC on Jun 14, 2022, 04:07 PM
Quote from: Justinof on Jun 14, 2022, 02:23 PM
Quote from: DougTheC on Jun 12, 2022, 10:14 AMCould you try commenting out the following lines in BKscreens.rpy by adding a # at start of each line, about line 286, and see if that improves lag after using interaction buttons. Run game to recompile; can load from save.

    if context != "farm":
        $ predict_images(girls, predict_portraits = False) # Portraits will be loaded directly, anyway. Also, they already get predicted in right_menu().
After commenting out those 2 lines the navigation in girls screen has indeed improved, not massively but substantially nonetheless.

Quote from: DougTheC on Jun 12, 2022, 10:14 AMIf this helps, then @Goldo could move the prediction to before each BKmain.rpy "show screen girls" command, instead of within the girls tab. Would avoid prediction for every cycle of screens with girls tab.
I think this the right thing to do, for what i can understand.

Quote from: DougTheC on Jun 12, 2022, 10:14 AMWould then be in BKmain.rpy (test if works):
    $ predict_images(slavemarket.girls, predict_portraits = False) # Portraits will be loaded directly, anyway. Also, they already get predicted in right_menu().
    show screen girls(slavemarket.girls, context = "slavemarket")

and (two places)
    $ predict_images(MC.girls, predict_portraits = False) # Portraits will be loaded directly, anyway. Also, they already get predicted in right_menu().
    show screen girls(MC.girls, "girls")
I have implemented these too, still testing, i haven't noticed weird behaviours.
I know i am pushing the game to the limits, but i am wondering why it can't make use of a powerful gpu to handle the images more efficiently.

Many thanks for the help!

Quote from: Justinof on Jun 08, 2022, 11:25 AM...
The lag happens when i open the girls screen, when i assign points, when i use any button in the girl screen, even the tooltip is lagging. The scrolling in the right panel sometimes is very slow if i use the whell, work better whit the click+pull.
When the pointer is above a button the game takes even 1 second to recognise the position.
This behaviour is not costant, sometimes it seems to speed up for a bit and after few seconds it slow down again.

If this helps, then @Goldo could move the prediction to before each BKmain.rpy "show screen girls" command, instead of within the girls tab. Would avoid prediction for every cycle of screens with girls tab.

Would then be in BKmain.rpy line 73(test if works):
    $ predict_images(slavemarket.girls, predict_portraits = False) # Portraits will be loaded directly, anyway. Also, they already get predicted in right_menu().
    show screen girls(slavemarket.girls, context = "slavemarket")

and (two places) only line 1099 (line 983 has max 1 girl)
    $ predict_images(MC.girls, predict_portraits = False) # Portraits will be loaded directly, anyway. Also, they already get predicted in right_menu().
    show screen girls(MC.girls, "girls")

The "show screen girls" usages in BKinteractions.rpy would run without repetitive image prediction.

The note in predict_images about "# This function seems to work only if called from BKscreens." may relate to parameters not being passed to helper function, instead being treated as semi-global values. Might need some experimentation to work out, including testing if prediction being done by parameters.

@Goldo, also can consider parts of girls_loop to be done only after flag was set from change affecting them::
Title: Re: [Feedback] *BUG REPORTS*
Post by: j01ntr0l1a on Jun 14, 2022, 08:15 PM
hey i dunno where to put this if this is a glitch or not or just a loop(same diff to me tho im not a tech wiz or anything im just saying something that isnt supposed to happen i believe)and its for Trait King not the main game but i noticed if someone is in High-Demand and you move them over to the farm they will stay in High-Demand indefinitely long as they stay there
Title: Re: [Feedback] *BUG REPORTS*
Post by: neronero on Jun 14, 2022, 08:26 PM
Quote from: j01ntr0l1a on Jun 14, 2022, 08:15 PMhey i dunno where to put this if this is a glitch or not or just a loop(same diff to me tho im not a tech wiz or anything im just saying something that isnt supposed to happen i believe)and its for Trait King not the main game but i noticed if someone is in High-Demand and you move them over to the farm they will stay in High-Demand indefinitely long as they stay there
Thanks! I'll look into fixing this for future versions (probably not short term)
Trait King bugs can be reported in the Trait King thread (https://henthighschool.net/brothel-king/resources-trait-king-mod/).
Title: Re: [Feedback] *BUG REPORTS*
Post by: Ch12 on Jun 16, 2022, 05:03 AM
I gave DougTheC's suggestion a try. Basically, you're better off completely removing the prediction, because it's left completely broken. (As noted in the source code comment)
How to check:

Personally, I doubt that this part is related to Justinof's problem. The function works on a separate thread, so it doesn't block the UI thread and hence should not be responsible for lags.

To be completely safe, you can slightly modify the function like this (BKfunctions.rpy), adding a check for renpy.predicting():
    # Threading is necessary, because otherwise the screen only shows AFTER ALL images have been loaded.
    # That would actually make things slower. With threading, the images load in the background as intended.
    # This function seems to work only if called from BKscreens. Probably got something to do with interactions. Maybe I'm just misunderstanding, though.
    def predict_images(girls, predict_portraits = True, predict_profiles = True):
        if renpy.predicting(): return
        def predict_images_helper():
            try:
                # Predict all portraits first since they are needed immediately.
                if predict_portraits:
                    for girl in girls:
                        if girl.portrait is not None : renpy.predict(girl.portrait.get(side=True))

                # After that, begin loading the profile images
                if predict_profiles:
                    for girl in girls:
                        if girl.profile is not None : renpy.predict(girl.profile.get(profile=True))
            except: pass
        if girls is not None and len(girls) > 0:
            t = threading.Thread(target=predict_images_helper)
            t.daemon = True
            t.start()

I assume that the randomness of the lags adds some random fluctuations. IF this part is responsible, (though I don't see how) I would rather recommend an option in the game settings to allow turning it off. On my rather old laptop, image prediction is still noticably improving performance, so I would definitely miss it.
I think that at least with the improved function, this will not be necessary.

Anyway, thanks for the detailed description, Justinof. The reason I asked is because the release version of 0.2 caused me problems just like yours, but they should be fixed with the latest patch.
I wracked my brain, what else might be responsible for your weird lags. One more thing I would like to check is your pack rating setting.

If you go to the game settings, somehwere down the bottom you should find "Display pack rating on girl profiles". Does it help if you set this to OFF? (You said that it's on city/slavemarket) This used to be one of the worst troublemakers. I improved the performance quite a while ago, but it can still take seconds for even just a single girl. (Mostly depending on image count of the girl pack)

If that does not help, the last idea I have is comparing performance with an older version. Here's a patch of 0.2 from November 2021 (https://mega.nz/file/Zf90zLRA#uQtkN2ulJcomAQJUJGpkXA74YVwxFh8cEXHAj9U6W2g).
Before applying it, please create a backup of all RPY files in your game directory!

Then apply the patch and retry. The game may complain a bit, but you should be able to load a savegame. If not, please start a new game. (If you skip the prologue, you can start directly in e.g. chapter 3 with 50k gold if you want to quickly be able to buy a few girls. (-> Extras))

Do the weird lags stop with the old version?

FInally, you mentioned this: "I know i am pushing the game to the limits, but i am wondering why it can't make use of a powerful gpu to handle the images more efficiently."
It feels like I am missing something. What exactly do you mean?
Title: Re: [Feedback] *BUG REPORTS*
Post by: Justinof on Jun 17, 2022, 03:12 PM
Quote from: Ch12 on Jun 16, 2022, 05:03 AMI gave DougTheC's suggestion a try. Basically, you're better off completely removing the prediction, because it's left completely broken. (As noted in the source code comment)
How to check:
......
I have followed your istructions, and the behaviour is exactly as you described.
So what should i do now? Remove the changes suggested by DougTheC? Keep them?

Quote from: Ch12 on Jun 16, 2022, 05:03 AMPersonally, I doubt that this part is related to Justinof's problem. The function works on a separate thread, so it doesn't block the UI thread and hence should not be responsible for lags.

To be completely safe, you can slightly modify the function like this (BKfunctions.rpy), adding a check for renpy.predicting():
....
I have the same doubts. I have added the check and resetted this line to default value in BKsettings.rpy:
refresh_memory_on_home_screen = FalseThe access to girls screen is faster this way, and whit:
config.image_cache_size = 2048 i have enough memory to allocate the textures.

Quote from: Ch12 on Jun 16, 2022, 05:03 AMI assume that the randomness of the lags adds some random fluctuations. IF this part is responsible, (though I don't see how) I would rather recommend an option in the game settings to allow turning it off. On my rather old laptop, image prediction is still noticably improving performance, so I would definitely miss it.
I think that at least with the improved function, this will not be necessary.

About this, i have noticed this behaviour: upon entering the girls screen the 1st time, i start to select one girl after another to make changes as assign points etc.; the latency start to shows after the first 20 girls or so, not immediately, and remain there whit some fluctuations even during the successive accesses to the screen.

Quote from: Ch12 on Jun 16, 2022, 05:03 AMIf you go to the game settings, somehwere down the bottom you should find "Display pack rating on girl profiles". Does it help if you set this to OFF? (You said that it's on city/slavemarket)
Setting it to OFF doesn't give any performance improvement.

Quote from: Ch12 on Jun 16, 2022, 05:03 AMIf that does not help, the last idea I have is comparing performance with an older version. Here's a patch of 0.2 from November 2021 (https://mega.nz/file/Zf90zLRA#uQtkN2ulJcomAQJUJGpkXA74YVwxFh8cEXHAj9U6W2g).
.....

Do the weird lags stop with the old version?
Unfortunately i can't answer for this.
I have installed a new copy of v. 0.2 and applied the November's patch over in another disk, then copied saves, girl packs and mods.
At start the game throw me exception errors one after another, impossible to reach the main menu....

Quote from: Ch12 on Jun 16, 2022, 05:03 AMFInally, you mentioned this: "I know i am pushing the game to the limits, but i am wondering why it can't make use of a powerful gpu to handle the images more efficiently."
It feels like I am missing something. What exactly do you mean?

What i mean is that the game is almost Cpu dependent only, using a modern Gpu doesn't give any advantage. I could say that the performance difference between an integrated Gpu (old gen.) and a RTX 3060 Ti is negligible  :o
Title: Re: [Feedback] *BUG REPORTS*
Post by: DougTheC on Jun 17, 2022, 03:50 PM
Quote from: Justinof on Jun 17, 2022, 03:12 PM
Quote from: Ch12 on Jun 16, 2022, 05:03 AMI gave DougTheC's suggestion a try. Basically, you're better off completely removing the prediction, because it's left completely broken. (As noted in the source code comment)
How to check:
......
I have followed your istructions, and the behaviour is exactly as you described.
So what should i do now? Remove the changes suggested by DougTheC? Keep them?

Quote from: Ch12 on Jun 16, 2022, 05:03 AMPersonally, I doubt that this part is related to Justinof's problem. The function works on a separate thread, so it doesn't block the UI thread and hence should not be responsible for lags.

To be completely safe, you can slightly modify the function like this (BKfunctions.rpy), adding a check for renpy.predicting():
....
I have the same doubts. I have added the check and resetted this line to default value in BKsettings.rpy:
refresh_memory_on_home_screen = FalseThe access to girls screen is faster this way, and whit:
config.image_cache_size = 2048 i have enough memory to allocate the textures.

My suggestion was not to avoid calling image-prediction during screen-prediction itself, though it would accomplish that if it worked, but to run the image-prediction before calling the girls screen, & avoid doing it upon every pass of the girls loop.

I'll work on the image-prediction helper function to try getting it functioning properly no matter where it is called from.

Quote from: Justinof on Jun 17, 2022, 03:12 PM
Quote from: Ch12 on Jun 16, 2022, 05:03 AMIf that does not help, the last idea I have is comparing performance with an older version. Here's a patch of 0.2 from November 2021 (https://mega.nz/file/Zf90zLRA#uQtkN2ulJcomAQJUJGpkXA74YVwxFh8cEXHAj9U6W2g).
.....

Do the weird lags stop with the old version?
Unfortunately i can't answer for this.
I have installed a new copy of v. 0.2 and applied the November's patch over in another disk, then copied saves, girl packs and mods.
At start the game throw me exception errors one after another, impossible to reach the main menu....

Predictable, bad results trying to install Beta patch on Release base code. Sorry you had to go to the trouble...
Title: Re: [Feedback] *BUG REPORTS*
Post by: neronero on Jun 18, 2022, 05:49 PM
- In the main menu, the link to the forum says "henthighschool.com" instead of .net (it does hyperlink to the right place)

- The shortened patch link in Goldo's signature on this forum has expired or otherwise been hijacked by someone. Now links to some game on steam.
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on Jun 18, 2022, 07:07 PM
The link for the patch (http://www.mediafire.com/file/nnxnr2pkopkzv2y/game_patch_0.2.zip/file?dkey=nnxnr2pkopkzv2y) are still working though as i can acces it. Dont know what caused that it changed in Goldo sig.
Edit: This only happen's here the sig in the F95 forum still hyperlink you to the patch.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Ch12 on Jun 20, 2022, 03:43 AM
Hey guys, sorry for the late reply, didn't get to answer sooner.

Quote from: DougTheC on Jun 17, 2022, 03:50 PMMy suggestion was not to avoid calling image-prediction during screen-prediction itself, though it would accomplish that if it worked, but to run the image-prediction before calling the girls screen, & avoid doing it upon every pass of the girls loop.

I'll work on the image-prediction helper function to try getting it functioning properly no matter where it is called from.

IF you can make it work being called from the code, please do let me know how. But I thought I should let you know that I already wasted quite some time on this and ultimately failed to make it work in another way.

Renpy internally works exactly the same way, doing a new prediction with every interaction. (E.g. it automatically does so for all images on the screen, background, portraits, etc.) IF an image is already in the cache, it doesn't create an additional load on the game.

Since all your working girl's portraits are already getting predicted every interaction (since they're shown on the screen), having all profiles predicted as well should not make any real difference.

Anyway, I already added the code that makes sure that prediction happens only once during the interaction. I think you would have to go deep down the rabbit hole for anything more.


Quote from: Justinof on Jun 17, 2022, 03:12 PM
Quote from: Ch12 on Jun 16, 2022, 05:03 AMI gave DougTheC's suggestion a try. Basically, you're better off completely removing the prediction, because it's left completely broken. (As noted in the source code comment)
How to check:
......
I have followed your istructions, and the behaviour is exactly as you described.
So what should i do now? Remove the changes suggested by DougTheC? Keep them?

Basically, whatever you prefer. My concern was more about DougTheC suggesting that Goldo applies his changes to game's source code. If you want to enable/disable my function real quick, you can go to BKfunctions.rpy and change the function like this:

    def predict_images(girls, predict_portraits = True, predict_profiles = True):
        # return
        if renpy.predicting(): return
        def predict_images_helper():
        (...)

If you remove the # from the return in the first line, you will basically disable the function. (Since it just returns immediately) If you add the # comment back in, you'll enable it again. Keep in mind that you still have to restart the game, but at least the editing part is real simple, only removing / adding a single #.

Edit: This is if you want to test this more extensively. Personally, I still think this was an educated guess by DougTheC that's most likely not the issue.

Quote from: Justinof on Jun 17, 2022, 03:12 PMI have installed a new copy of v. 0.2 and applied the November's patch over in another disk, then copied saves, girl packs and mods.
At start the game throw me exception errors one after another, impossible to reach the main menu....

For me, it runs simply by installing - is what I wanted to say, and then my game crashed just now. I had installed a new girlpack, which had an events.rpy file that relied on the new get_current_folder() function.

Still, after deleting it, the game started again for me. If you have already created a complete copy of the game, please try this: Go to your game/girls directory, search for "*.rpy*" and delete all those files. Also, go to your game/Mods folder, and do the same.

My "patch" contains ALL .rpy files from that point in time, not just altered files. (Those in the game directory, anyway.) So the game should definitely boot. All you have to do is get rid of any external dependencies. The traceback also gives you hints about the exact files. (E.g. my error was like this: "File "game/girls/#various/Boa Hancock/_events.rpy", line 10, in <module>" - so I knew an events.rpy file was the cause)

Ultimately, this will NOT fix your problem, only help us a bit trying to find the exact cause. IF my suggestion does not make it work for some reason, do not waste too much time and please let me know about the exact trouble.


Epiphany: Could you try removing all MODS and events.rpy files from girls in an up to date BK installation? It is possible that some custom code is creating the problems.


Quote from: Justinof on Jun 17, 2022, 03:12 PM
Quote from: Ch12 on Jun 16, 2022, 05:03 AMFInally, you mentioned this: "I know i am pushing the game to the limits, but i am wondering why it can't make use of a powerful gpu to handle the images more efficiently."
It feels like I am missing something. What exactly do you mean?

What i mean is that the game is almost Cpu dependent only, using a modern Gpu doesn't give any advantage. I could say that the performance difference between an integrated Gpu (old gen.) and a RTX 3060 Ti is negligible  :o

What I meant was the first part of your statement - "I know I am pushing the game to the limits". That's the part I don't get. I reread your old posts, but I still feel like something I'm missing something. Your comment about the problems starting after the first 20 girls feels like it is a hint, also that increasing the cache size helped. Is this about performance problems when owning as many girls as possible?

Random bit of info: I remember Jman having problems in the items screen when owning a lot of items in the past. I do not remember how much "a lot" was exactly. though. I also don't know if/how it was resolved.

Anyway, you are correct that the GPU is usually quite bored when playing BK. It's not like there's any complicated 3D calculations or anything. Except for a few parts in the story segments, there's not a lot of animations or image transformations, either.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Jun 20, 2022, 04:49 PM
Quote from: neronero on Jun 18, 2022, 05:49 PM- The shortened patch link in Goldo's signature on this forum has expired or otherwise been hijacked by someone. Now links to some game on steam.


Damn, can't even trust a link shortener these days... Hopefully this one will work (the limitation on signature length makes it impossible to include two full paths...).

Quote from: Justinof on Jun 17, 2022, 03:12 PMI have followed your istructions, and the behaviour is exactly as you described.
So what should i do now? Remove the changes suggested by DougTheC? Keep them?

I have the same doubts. I have added the check and resetted this line to default value in BKsettings.rpy:
refresh_memory_on_home_screen = FalseThe access to girls screen is faster this way, and whit:
config.image_cache_size = 2048 i have enough memory to allocate the textures.

About this, i have noticed this behaviour: upon entering the girls screen the 1st time, i start to select one girl after another to make changes as assign points etc.; the latency start to shows after the first 20 girls or so, not immediately, and remain there whit some fluctuations even during the successive accesses to the screen. 

As regards the performance problem, I did have some lag but not a lot when loading your save, and removing prediction from both BKscreens.rpy and BKscreen_home.rpy did seem to improve things slightly (but it could simply be because the pictures were cached at that point).

I did not, however, test the game further such as having 20 interactions and so on, so maybe I missed the problem that arises from continuing the saved game.

Also, I do not have as many girl packs so I used console commands to replace the girls' pictures with packs I had. If some of the packs are unusually large or the sheer number of packs is the source of the problem, I may again have missed it.

I will be able to do more testing on the first point. On the second one, though, not sure how to proceed unless you want to share your entire girls folder for download (which may not even be doable if it's super large)...

Quote from: DougTheC on Jun 14, 2022, 04:07 PM@Goldo, also can consider parts of girls_loop to be done only after flag was set from change affecting them::
  •         $ game.sort(MC.girls, context = "girls")
  •         $ girl_status_dict = load_girl_status(MC.girls) # Test to increase performance
  •         $ brothel.update_customer_count()

This is unlikely to cause problems as the loop only runs after each 'ui.interact()' (in most cases, a mouse click). Moving this elsewhere may cause bugs as we won't be sure every event that changes statuses, sorting order or customer count will be caught.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Ch12 on Jun 20, 2022, 07:19 PM
Hm, so I like double-checked each post. No savegames attached... Did I still miss it? Is my account being blocked from downloading attachments?

Anyway, one more thing to rule out is image loading being part of the lags. Justinof, when the lags start, can you press F4 and tell us if images are being loaded in that moment (indicated by the profile picture of the girl being shown in red). On the other hand, if the image is already loaded, it's displayed either in green, or not at all.

(Note: I you see droplet / heart / skull in red, it's because the symbols needed to be rescaled, that's normal)
Title: Re: [Feedback] *BUG REPORTS*
Post by: Leortha on Jun 20, 2022, 10:29 PM
Quote from: Ch12 on Jun 20, 2022, 07:19 PMHm, so I like double-checked each post. No savegames attached... Did I still miss it? Is my account being blocked from downloading attachments?

The max attachment size on this new site is set very small because storage space is very limited.   It's too small for save games.   We've figured out a good workaround for images for pack announcements (Imgur), but I have not seen anyone come up with a good reliable way to share save games under these conditions.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Justinof on Jun 21, 2022, 03:47 PM
First thing: i am very grateful for all the efforts you guys are doing to solve my issue  :-*

Ch12, no mistery, the save game was posted in F95 forum, not here. This because i was asking Jman to help me about another problem whit mana points AND the issue we are talking about here.
Then, i believe, Jman has given the save to Goldo for a thorough check and for the fact that the size of the save was worringly big.

I did another try whit the Novenber's patch, this time i have made another copy of the game, deleted all the .rpyc files and applied the patch. Then removed Boa Hancock event.rpy and event.rpyc files (they were responsibles for the 3rd error at start in my first attempt). I had to delete all Mod files aswell (even Goldo's cool mod!) as resposibles of other errors.
Started the game (ok), loaded a save (no problem), in the girl screen all goes well....not really, after some interactions whit the girls the latency start to show her ugly head again,  >:(

In conclusion there isn't a performance difference between the November's patch and the current release. apart that in the former there are some bugs such as the perks tooltip that shows up when it shoulnd't and the girls' portraits that get loaded 2 times (although predicted) in the interaction screen.

I have even sold almost all the items i had to see if it improves the performance, whit no apparent gain. About this, the solution i believe was to introduce a limit of 30 items that get displayed in the left menu at once (i use a limit of 50).

About the "pushing the game to the limits"....maybe i was not enough clear before: i am playing  whit a number of girls in the brothel that is 5x the vanilla limit, but the latency i am experiencing was already present well before i did reach the 32 girls' limit.

That is why i am in conflict: "i am asking for the impossible due to my egoism or there is a issue that shoud be solved, so others will not have to go through this pain?"
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Jun 21, 2022, 06:01 PM
I think it's always good to look at fringe cases: you are pushing the envelope, but it may help us diagnose a performance problem that is otherwise not very easy to identify and solve, so to me it's a very good exercise.

Unfortunately, my living conditions right now don't allow for a lot of privacy to test the game. But whenever I get the chance, I plan to look at your case in more detail.

One avenue of investigation is to simply disable some screens one by one until we find the source of the performance hit. Should be possible to at least narrow it down to one area of the girls screen.
Title: Re: [Feedback] *BUG REPORTS*
Post by: DougTheC on Jun 21, 2022, 10:02 PM
Bro, you the Hokoman!

----
Miscelleaneous items, since ver 0.2 will be mostly wrapped soon:

* Why in BKsettings is this not using bro_cost[7] for consistency?
    chapter_goals = {
                    6 : [Goal("ranked", 4, 12), Goal("gold", 100000)],
change to:
    chapter_goals = {
                    6 : [Goal("ranked", 4, 12), Goal("gold", bro_cost[7])],

I'm looking at replacing all the word-processing apostrophes in BKdialogue.rpy with simple single-quote apostrophes.

While the fancier version may look a bit better in the sentences that include them, they interfere with searches:
("she's" not = "she's") and are different from non-community-dialog usage.

Thoughts?

----------------------

Typos as noticed:

Spoiler
BKchapter1.rpy
Change (line 1153)
  front of him"
to
  front of him."

Change (line 5042)
  homokan
to
  Hokoman

BKday_events.rpy
Change (line 6281)
  Homokan
to
  Hokoman

BKinit_variables.rpy
Change (line 1691)
  shaft run
to
  shaft runs

BKfunctions.rpy
Change (line 1083)
  loose
to
  lose

Change (line 1189,1194) add period
  str(damage)
to
  str(damage) + "."

Change (line 1361, 1365, 1369, 1373) Suggestion
Could add the translation __() to other diff descriptions,
            d = "Easy"
            d = "Medium"
            d = "Hard"
            d = "Very hard"


BKdialogue.rpy  (Community dialogue also fixed on Google spreadsheet)
Change (line 2893)
  {i}lso
to
  {i}so

Change (line 3465) Add g:
  "EHEHEHE! I can't
to
  "g: EHEHEHE! I can't

Change (line 5056) Add period; replace word-processor special apostrophe with single-quote to help search
  bitch's ... erm... lady's purse
to
  bitch's ... erm... lady's purse.

Change (line 5056) Add punctuation
  misunderstanding
to
  misunderstanding...

[close]
Title: Re: [Feedback] *BUG REPORTS*
Post by: Justinof on Jun 23, 2022, 04:04 PM
Quote from: Ch12 on Jun 20, 2022, 07:19 PMAnyway, one more thing to rule out is image loading being part of the lags. Justinof, when the lags start, can you press F4 and tell us if images are being loaded in that moment (indicated by the profile picture of the girl being shown in red). On the other hand, if the image is already loaded, it's displayed either in green, or not at all.

(Note: I you see droplet / heart / skull in red, it's because the symbols needed to be rescaled, that's normal)
The first time i interact whit a girl (select her) the message says that portrait pic is green (predicted) but profile pic is red.
Any successive interation, after exiting and reentering the girls screen, shows only portrait pic in green.

I don't think that the image prediction is the culprit for the latency at this point, there are not messages when i click other buttons AND the lag is high in most cases.
About the config.image_cache_size, now i understand that even the vanilla value (128) is more than enough, i believed that this cache was there for the textures and images. I was wrong so forget about it.

The game is still playable, even whit the latency, so it's not a priority to solve this issue atm.




Title: Re: [Feedback] *BUG REPORTS*
Post by: Justinof on Jun 23, 2022, 04:29 PM
Typo that i have found:
Spoiler
BKfunctions.rpy line 2291 text1 = "{size=" + str(res_font(18)) + "}" + __("A customer ordered") + girl.name + __(" to give him extra service. He wanted her to ") + __(s_des[s_act]) + "."Missing space after "ordered "
[close]

In a couple of occasions this happened: when a city girl ask the MC if he knows what is that she likes to do, among the possible answers there isn't the correct one, so the failure is certain.
If i remember correctly, the right answer was "hiking" or "swimming", but i could be wrong. I will take note the next time this happens.
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on Jun 23, 2022, 05:26 PM
Quote from: Justinof on Jun 23, 2022, 04:29 PMTypo that i have found:
Spoiler
BKfunctions.rpy line 2291 text1 = "{size=" + str(res_font(18)) + "}" + __("A customer ordered") + girl.name + __(" to give him extra service. He wanted her to ") + __(s_des[s_act]) + "."Missing space after "ordered "
[close]

In a couple of occasions this happened: when a city girl ask the MC if he knows what is that she likes to do, among the possible answers there isn't the correct one, so the failure is certain.
If i remember correctly, the right answer was "hiking" or "swimming", but i could be wrong. I will take note the next time this happens.

There are 2 possible answer for each girl. Sadly the girl only tells you 1 of her hobby.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Jun 24, 2022, 09:08 AM
New patch out (link in my signature), with some small fixes and tweaks.

I'm probably going to leave it at that for 0.2 and focus on 0.3, unless something major is broken of course.
Title: Re: [Feedback] *BUG REPORTS*
Post by: ryan555 on Jun 24, 2022, 09:31 PM
Here's two kind of big bugs that have been in the game for a while:

When starting a new game, going to the "Extras" menu and changing the "Farm", "Carpenter" etc. options from Locked to Unlocked and back to Locked and starting a new game, those options are still unlocked but you can get achievements. So for example the Farm is available on Day 1.



How to get more girls than you have rooms:
1) get the Farm
2) make sure you have free space on the Farm but no empty rooms in the brothel
3) buy a girl from the market and select "Send her to the farm"
4) immediately press right click on the mouse to cancel the interaction and she will be in your brothel, going over the room limit



Just tested on the new patch and both exploits still work.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Badaz23 on Jun 27, 2022, 07:45 PM
For updating pack state
Installed mod
Head Hunter
 

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKscreens.rpy", line 7801, in script call
    call girlpack_menu() from _call_girlpack_menu
  File "game/BKscreens.rpy", line 7786, in script
    call screen girl_mix(True) nopredict
  File "renpy/common/000statements.rpy", line 569, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "game/BKscreens.rpy", line 7805, in execute
    screen girl_mix(show_rating=False):
  File "game/BKscreens.rpy", line 7805, in execute
    screen girl_mix(show_rating=False):
  File "game/BKscreens.rpy", line 7813, in execute
    frame xfill True yfill True:
  File "game/BKscreens.rpy", line 7814, in execute
    has vbox
  File "game/BKscreens.rpy", line 7828, in execute
    viewport:
  File "game/BKscreens.rpy", line 7835, in execute
    has vbox spacing 0
  File "game/BKscreens.rpy", line 7837, in execute
    for gp in shown_gp:
  File "game/BKscreens.rpy", line 7838, in execute
    if show_rating:
  File "game/BKscreens.rpy", line 7839, in execute
    $ rating, rtg_text = get_girlpack_rating(path=gp)
  File "game/BKscreens.rpy", line 7839, in <module>
    $ rating, rtg_text = get_girlpack_rating(path=gp)
  File "game/BKfunctions.rpy", line 3774, in get_girlpack_rating
    d = girl.evaluate_girlpack()
  File "game/BKgirlclass.rpy", line 389, in evaluate_girlpack
    currentList = get_pic_list(self, [tag], not_tags=["naked"], weighted=False)
  File "game/BKfunctions.rpy", line 2754, in get_pic_list
    show_unrecognized = preferences.packstate_unrecognized != "Hide"
AttributeError: 'Preferences' object has no attribute 'packstate_unrecognized'

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

Full traceback:
  File "game/BKscreens.rpy", line 7801, in script call
    call girlpack_menu() from _call_girlpack_menu
  File "game/BKscreens.rpy", line 7786, in script
    call screen girl_mix(True) nopredict
  File "renpy/ast.py", line 2015, in execute
    self.call("execute")
  File "renpy/ast.py", line 2003, in call
    return renpy.statements.call(method, parsed, *args, **kwargs)
  File "renpy/statements.py", line 278, in call
    return method(parsed, *args, **kwargs)
  File "renpy/common/000statements.rpy", line 569, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "renpy/exports.py", line 3136, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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/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 7805, in execute
    screen girl_mix(show_rating=False):
  File "game/BKscreens.rpy", line 7805, in execute
    screen girl_mix(show_rating=False):
  File "game/BKscreens.rpy", line 7813, in execute
    frame xfill True yfill True:
  File "game/BKscreens.rpy", line 7814, in execute
    has vbox
  File "game/BKscreens.rpy", line 7828, in execute
    viewport:
  File "game/BKscreens.rpy", line 7835, in execute
    has vbox spacing 0
  File "game/BKscreens.rpy", line 7837, in execute
    for gp in shown_gp:
  File "game/BKscreens.rpy", line 7838, in execute
    if show_rating:
  File "game/BKscreens.rpy", line 7839, in execute
    $ rating, rtg_text = get_girlpack_rating(path=gp)
  File "game/BKscreens.rpy", line 7839, in <module>
    $ rating, rtg_text = get_girlpack_rating(path=gp)
  File "game/BKfunctions.rpy", line 3774, in get_girlpack_rating
    d = girl.evaluate_girlpack()
  File "game/BKgirlclass.rpy", line 389, in evaluate_girlpack
    currentList = get_pic_list(self, [tag], not_tags=["naked"], weighted=False)
  File "game/BKfunctions.rpy", line 2754, in get_pic_list
    show_unrecognized = preferences.packstate_unrecognized != "Hide"
AttributeError: 'Preferences' object has no attribute 'packstate_unrecognized'

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220519
Tue Jun 28 03:33:36 2022
Title: Re: [Feedback] *BUG REPORTS*
Post by: kawabaka on Jun 28, 2022, 02:51 PM
Good day all! First time ever posting here and so far I've been really enjoying this game for quite some time.
I did ran into a minor bug, not exactly the most important one and actually has zero impact on the gameplay itself but I thought I report it anyways.

When in main menu, if you click on Extras and then go to CG - Girl Packs, the game crashes and shows this report whenever the page of the gallery contains a .WEBM file:
I'm sorry, but an uncaught exception occurred.

While loading <'ProportionalScale' <'Image' u'girls/Megumin/libido sex cowgirl.webm'> 240 180 True>:
  File "game/BKdeclarations.rpy", line 1354, in execute
    screen gallery(gal_type="ev"): # The Gallery object must have a pics variable (a list of renpy displaybles or image files)
  File "game/BKdeclarations.rpy", line 1354, in execute
    screen gallery(gal_type="ev"): # The Gallery object must have a pics variable (a list of renpy displaybles or image files)
  File "game/BKdeclarations.rpy", line 1375, in execute
    hbox spacing 10:
  File "game/BKdeclarations.rpy", line 1379, in execute
    vbox spacing 10:
  File "game/BKdeclarations.rpy", line 1381, in execute
    text name + " (" + str(get_gallery_unlock_rate(gal_type, gal, name)) + "%)"
  File "game/BKdeclarations.rpy", line 1381, in <module>
    text name + " (" + str(get_gallery_unlock_rate(gal_type, gal, name)) + "%)"
  File "game/BKdeclarations.rpy", line 1299, in get_gallery_unlock_rate
    return sum(1 for pic in gal.blist if was_seen(pic)) * 100/len(gal.blist)
  File "game/BKdeclarations.rpy", line 1299, in <genexpr>
    return sum(1 for pic in gal.blist if was_seen(pic)) * 100/len(gal.blist)
  File "game/BKdeclarations.rpy", line 1282, in was_seen
    if not is_videofile(file):
  File "game/BKfunctions.rpy", line 3823, in is_videofile
    if (file[-4:].lower() in VIDEOFORMATS or file[-5:].lower() in VIDEOFORMATS):
TypeError: 'function' object has no attribute '__getitem__'

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  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 "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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/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/BKdeclarations.rpy", line 1354, in execute
    screen gallery(gal_type="ev"): # The Gallery object must have a pics variable (a list of renpy displaybles or image files)
  File "game/BKdeclarations.rpy", line 1354, in execute
    screen gallery(gal_type="ev"): # The Gallery object must have a pics variable (a list of renpy displaybles or image files)
  File "game/BKdeclarations.rpy", line 1375, in execute
    hbox spacing 10:
  File "game/BKdeclarations.rpy", line 1379, in execute
    vbox spacing 10:
  File "game/BKdeclarations.rpy", line 1381, in execute
    text name + " (" + str(get_gallery_unlock_rate(gal_type, gal, name)) + "%)"
  File "game/BKdeclarations.rpy", line 1381, in <module>
    text name + " (" + str(get_gallery_unlock_rate(gal_type, gal, name)) + "%)"
  File "game/BKdeclarations.rpy", line 1299, in get_gallery_unlock_rate
    return sum(1 for pic in gal.blist if was_seen(pic)) * 100/len(gal.blist)
  File "game/BKdeclarations.rpy", line 1299, in <genexpr>
    return sum(1 for pic in gal.blist if was_seen(pic)) * 100/len(gal.blist)
  File "game/BKdeclarations.rpy", line 1282, in was_seen
    if not is_videofile(file):
  File "game/BKfunctions.rpy", line 3823, in is_videofile
    if (file[-4:].lower() in VIDEOFORMATS or file[-5:].lower() in VIDEOFORMATS):
TypeError: 'function' object has no attribute '__getitem__'

Windows-10-10.0.22000
Ren'Py 7.4.11.2266
Brothel King 0.2 v220624
Tue Jun 28 16:37:15 2022

As you can probably guess from the report file, it has to do with the .WEBM file. I'm pretty sure this is a know bug as the bug itself already tells you that it can't display the image in your gallery but I'm still kind of curious if this is fixable or if it's impossible due to it being an animated image (or if it would make the game slow or even more buggy).
Also once you click on "ignore", the game decides to start a new game rather than going back to Main Menu.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Hermenegild on Jun 29, 2022, 08:22 AM
Hi! I have another... annoyance? bug? Nothing game breaking, just unexpected.

Assume you have a fully developed girl (for her level), and you want her at the farm, for example to identify her weakness (because a contract requires a specific one). So you put her in the farm, and ask Gizel to train her in service at the stables.

Next day, Gizel says that the girl is fully trained in service, and asks you to change her training. You switch her to sex at the pig stall. Great, she'll train there. And immediately Gizel says that the girl is already fascinated with service and asks you again to switch the girl's training to something else.

This second question is superfluous. It's also confusing, because if you don't switch the girl's training in the second question, she'll still be training service at the stables, regardless of whether you switched her in response to Gizel's first question or not.

This second question should never appear if the girl has switched the training mode in response to the first question.

Maybe it could appear if the girl's the newly selected training concerns something she's already fascinated about. In my humble opinion, though, this check can easily be postponed to the next day without confusing the player.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Hermenegild on Jun 30, 2022, 08:12 AM
Quote from: ryan555 on Jun 24, 2022, 09:31 PMHere's two kind of big bugs that have been in the game for a while:
[...]
How to get more girls than you have rooms:
1) get the Farm
2) make sure you have free space on the Farm but no empty rooms in the brothel
3) buy a girl from the market and select "Send her to the farm"
4) immediately press right click on the mouse to cancel the interaction and she will be in your brothel, going over the room limit

Another scenario with similar results, albeit more difficult to reproduce:
1) fill both the farm and the brothel to max capacity (for the chapter), with no empty space,
2) try to send one of the brothel girls to the farm, the game asks you to exchange the girl for one currently at the farm, so select one,
3) the brothel girl breaks down crying because she doesn't want to go to the farm,
4) you spare her this time, so she stays in the brothel.

... and you end up with one girl too many in the brothel and an empty farm pen.

The step 3) above is not easily triggered, so this particular scenario may be harder to debug. Fixing it, on the other hand, should be easy: return the farm girl back to the farm if the brothel girl is not going there.

EDIT: Or switch the checks so that the brothel girl breaks down before you're asked to select a farm girl.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Jul 01, 2022, 08:44 AM
Quote from: Badaz23 on Jun 27, 2022, 07:45 PMFor updating pack state
Installed mod
Head Hunter
 

I'm sorry, but an uncaught exception occurred.

[...]
  File "game/BKfunctions.rpy", line 2754, in get_pic_list
    show_unrecognized = preferences.packstate_unrecognized != "Hide"
AttributeError: 'Preferences' object has no attribute 'packstate_unrecognized'

-- Full Traceback ------------------------------------------------------------
[...]
  File "game/BKfunctions.rpy", line 2754, in get_pic_list
    show_unrecognized = preferences.packstate_unrecognized != "Hide"
AttributeError: 'Preferences' object has no attribute 'packstate_unrecognized'

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220519
Tue Jun 28 03:33:36 2022


Strange, nothing has changed recently that could create this bug. Could you check that this line is indeed present in your BKgirlclass.rpy file around line 4940?
default preferences.packstate_unrecognized = "Rename"If not, it may be because of changes from a mod you're using. Chris12 or Jman may be in a better position to answer this one.
Title: Re: [Feedback] *BUG REPORTS*
Post by: DougTheC on Jul 01, 2022, 08:59 AM
From F95zone:
Quote from: homerdante, post: 8445099, member: 4810171Yes i did update midgame which probably caused this - probably have to do a new game when Ch3 is fully out

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 368, in script call
    call ninja_hunt(selected_location) from _call_ninja_hunt

  File "game/BKchapter2.rpy", line 5364, in script call
    call ninja_game(NPC_mizuki) from _call_ninja_game_1
  File "game/BKminigame.rpy", line 197, in script
    python:
  File "game/BKminigame.rpy", line 205, in <module>
    njgame = NinjaGame(ninja=ninja, guest=ninja.guest, special=special)
AttributeError: 'NPC' object has no attribute 'guest'

Windows-10-10.0.22000
Ren'Py 7.4.10.2178
Brothel King 0.2 v220416
Thu Jun 30 14:16:35 2022


As Jman says, you are very out-of-date, in the Ren'Py supporting code, presumably the base BK code (scripts & files), and the latest update.

I would not wait a day; strongly suggest downloading & installing the base BK v 0.2 Release from OP, and the latest, required patch from https://www.mediafire.com/file/nnxnr2pkopkzv2y/game_patch_0.2.zip/file (updated June 24), in a new folder.
You can move over your "girls" folder to the new install.

A new game will be required, especially since upgrading from pre-Feb 2022 "beta Test" base code, but you'll be much safer from future errors.

@Goldo , I think this is a case where using default to set values of new variables/attributes could help in minor updates. Having this someplace:

        # Guest setup
        default NPC_narika.guest = "guest3"
        default NPC_mizuki.guest = "guest2"
        default NPC_haruka.guest = "guest1"

Edit: Jman's response
Quote from: Jman9, post: 8451228, member: 1528105defaulting an NPC objects attributes is unlikely to work any better. I suggest setting the .guest values right after the three ninja NPCs are created, in the NPC/trainer initialisation block.

Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Jul 01, 2022, 05:11 PM
Can't default an attribute before the NPC object is created, which happens in BKstart.rpy. I have included it in the newest patch, but it won't work on saved games, and people determined to break things will still easily be able to do so.

New patch out: https://www.mediafire.com/file/nnxnr2pkopkzv2y/game+patch+0.2.zip/file (link in sig)

Fixes the above issues, except the packstate problem (couldn't reproduce) and typoes. This is the last 0.2 patch, for real - next up will be the test version for 0.3 (still some time away).
Title: Re: [Feedback] *BUG REPORTS*
Post by: neronero on Jul 01, 2022, 05:59 PM
BKgirlclass.rpy line 768:

        def get_sex_act_modifier(self, sex_act = "all"):

            modifier = self.get_effect("change", "sex acts requirements")

            return modifier
The modifier searches for "sex acts requirements", but all existing effects are "sex act requirements"

Also, for 0.3 could you have a look at the tooltip for "mood" effects (https://henthighschool.net/brothel-king/*bug-reports*/msg554/#msg554)? (BKgirlclass.rpy line 3877) - would be nice if the description could be based on the source of the effect (perk/trait/item)
Title: Re: [Feedback] *BUG REPORTS*
Post by: Haywood on Jul 02, 2022, 05:16 AM
(https://i.imgur.com/EBbV1Vb.png)
Not a bug but a typo in the monster rape city event. Still seems like the right place to post it. RIP Spwaned.

Spoiler
(https://i.imgur.com/JjoD329.png)
[close]
Also I've been noticing "big" images outside of stallion training on the farm and I'm not sure why, I thought they were only meant to appear there. The above image is tagged "big anal happy sub finger cowgirl (00000)".
Title: Re: [Feedback] *BUG REPORTS*
Post by: Leortha on Jul 02, 2022, 02:09 PM
Quote from: Haywood on Jul 02, 2022, 05:16 AMAlso I've been noticing "big" images outside of stallion training on the farm and I'm not sure why, I thought they were only meant to appear there. The above image is tagged "big anal happy sub finger cowgirl (00000)".

Nope.  Big (and I think Machine) are not limited to the farm.   Beast and Monster are limited.   Big dicks and fuck machines do not have the negative implications that bestiality and/or tentacle porn have.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Jul 05, 2022, 05:50 PM
Quote from: Leortha on Jul 02, 2022, 02:09 PM
Quote from: Haywood on Jul 02, 2022, 05:16 AMAlso I've been noticing "big" images outside of stallion training on the farm and I'm not sure why, I thought they were only meant to appear there. The above image is tagged "big anal happy sub finger cowgirl (00000)".

Nope.  Big (and I think Machine) are not limited to the farm.   Beast and Monster are limited.   Big dicks and fuck machines do not have the negative implications that bestiality and/or tentacle porn have.

This is a somewhat debatable design choice but I erred on the side of picture diversity, because some girl packs had a limited pool of vanilla pictures to choose from.

If this bothers people too much, I guess I could add a setting in H Preferences to turn it on/off.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Zuracha on Jul 06, 2022, 07:55 PM
Hello, hope you're all having a good day. I'm new to this site, and have recently started to enjoy the game again. Lately, however, I haven't been able to start the application. WHen starting it, I run into this:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/kite_jobgirl_variables.rpy", line 81, in script
    image elf_lady_5 = "NPC/Jobgirl/elf house/lady 5.webp"
  File "game/kite_jobgirl_variables.rpy", line 81, in script
    image elf_lady_5 = "NPC/Jobgirl/elf house/lady 5.webp"
Exception: Possible infinite loop.

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

Full traceback:
  File "renpy/bootstrap.py", line 331, in bootstrap
    renpy.main.main()
  File "renpy/main.py", line 560, in main
    renpy.game.context().run(node)
  File "game/kite_jobgirl_variables.rpy", line 81, in script
    image elf_lady_5 = "NPC/Jobgirl/elf house/lady 5.webp"
  File "game/kite_jobgirl_variables.rpy", line 81, in script
    image elf_lady_5 = "NPC/Jobgirl/elf house/lady 5.webp"
  File "renpy/execution.py", line 61, in check_infinite_loop
    raise Exception("Possible infinite loop.")
Exception: Possible infinite loop.

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220630
Wed Jul  6 12:34:43 2022

If it means anything, this happened after I added a lot of girls to the game. Would too many girls cause a problem? I didn't have this problem beforehand. The errors seem to vary, but this is the one that seems to show up the most lately.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Haywood on Jul 07, 2022, 11:34 AM
Quote from: Goldo on Jul 05, 2022, 05:50 PMThis is a somewhat debatable design choice but I erred on the side of picture diversity, because some girl packs had a limited pool of vanilla pictures to choose from.

If this bothers people too much, I guess I could add a setting in H Preferences to turn it on/off.
I would prefer that option. In some cases "big" images only make sense in the context of someone modified for gigantism or are otherwise not quite human and feel out of place for regular customers or the MC. I think the pic I linked is a good example, another one would be packs from fantasy settings using orcs, ogres etc for those images.
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on Jul 07, 2022, 03:45 PM
Quote from: Zuracha on Jul 06, 2022, 07:55 PMHello, hope you're all having a good day. I'm new to this site, and have recently started to enjoy the game again. Lately, however, I haven't been able to start the application. WHen starting it, I run into this:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/kite_jobgirl_variables.rpy", line 81, in script
    image elf_lady_5 = "NPC/Jobgirl/elf house/lady 5.webp"
  File "game/kite_jobgirl_variables.rpy", line 81, in script
    image elf_lady_5 = "NPC/Jobgirl/elf house/lady 5.webp"
Exception: Possible infinite loop.

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

Full traceback:
  File "renpy/bootstrap.py", line 331, in bootstrap
    renpy.main.main()
  File "renpy/main.py", line 560, in main
    renpy.game.context().run(node)
  File "game/kite_jobgirl_variables.rpy", line 81, in script
    image elf_lady_5 = "NPC/Jobgirl/elf house/lady 5.webp"
  File "game/kite_jobgirl_variables.rpy", line 81, in script
    image elf_lady_5 = "NPC/Jobgirl/elf house/lady 5.webp"
  File "renpy/execution.py", line 61, in check_infinite_loop
    raise Exception("Possible infinite loop.")
Exception: Possible infinite loop.

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220630
Wed Jul  6 12:34:43 2022

If it means anything, this happened after I added a lot of girls to the game. Would too many girls cause a problem? I didn't have this problem beforehand. The errors seem to vary, but this is the one that seems to show up the most lately.

With a potato pc it can happen. I do get this error too when the game start to think way to long. With many girl pack's added to the game it can have a hard time choosing wich picture to show resulting in this infinite loop.
Title: Re: [Feedback] *BUG REPORTS*
Post by: neronero on Jul 10, 2022, 01:32 PM
Quote from: artghrl, post: 8513391, member: 3275141( halp pls I cant acces game gillary )

```

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKdeclarations.rpy", line 1354, in execute
    screen gallery(gal_type="ev"): # The Gallery object must have a pics variable (a list of renpy displaybles or image files)
  File "game/BKdeclarations.rpy", line 1354, in execute
    screen gallery(gal_type="ev"): # The Gallery object must have a pics variable (a list of renpy displaybles or image files)
  File "game/BKdeclarations.rpy", line 1375, in execute
    hbox spacing 10:
  File "game/BKdeclarations.rpy", line 1379, in execute
    vbox spacing 10:
  File "game/BKdeclarations.rpy", line 1381, in execute
    text name + " (" + str(get_gallery_unlock_rate(gal_type, gal, name)) + "%)"
  File "game/BKdeclarations.rpy", line 1381, in <module>
    text name + " (" + str(get_gallery_unlock_rate(gal_type, gal, name)) + "%)"
  File "game/BKdeclarations.rpy", line 1293, in get_gallery_unlock_rate
    r += sum(1 for pic in game_image_dict[name] if was_seen(pic))
  File "game/BKdeclarations.rpy", line 1293, in <genexpr>
    r += sum(1 for pic in game_image_dict[name] if was_seen(pic))
  File "game/BKdeclarations.rpy", line 1282, in was_seen
    if not is_videofile(file):
  File "game/BKfunctions.rpy", line 3823, in is_videofile
    if (file[-4:].lower() in VIDEOFORMATS or file[-5:].lower() in VIDEOFORMATS):
TypeError: 'function' object has no attribute '__getitem__'

Possible fix:
Quote from: Jman9it looks like it's a typo. file should actually be pic in the definition of was_seen().
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Jul 11, 2022, 09:26 PM
Hotfix out for the gallery issue.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Smaug on Jul 18, 2022, 01:04 PM
As a preface this error is from the Bonanza mod that does not have a thread any more in the new site but maybe someone has an idea how to fix this?
Maybe it has even been fixed previously?
Spoiler
QuoteI'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 557, in script
    $ mychoice = ui.interact()
  File "game/BKmain.rpy", line 557, in <module>
    $ mychoice = ui.interact()
  File "game/BKscreens.rpy", line 4634, in execute
    screen brothel():
  File "game/BKscreens.rpy", line 4634, in execute
    screen brothel():
  File "game/BKscreens.rpy", line 4709, in execute
    frame:
  File "game/BKscreens.rpy", line 4718, in execute
    has vbox
  File "game/BKscreens.rpy", line 4722, in execute
    if not brothel_firstvisit:
  File "game/BKscreens.rpy", line 4737, in execute
    hbox:
  File "game/BKscreens.rpy", line 4802, in execute
    vbox spacing 10 xalign 1.0 xoffset -6:
  File "game/BKscreens.rpy", line 4805, in execute
    frame:
  File "game/BKscreens.rpy", line 4811, in execute
    has vbox spacing 10 xalign 0.0 yalign 0.5
  File "game/BKscreens.rpy", line 4940, in execute
    hbox xfill True spacing 10:
  File "game/BKscreens.rpy", line 4942, in execute
    vbox spacing 6 xsize 180:
  File "game/BKscreens.rpy", line 4944, in execute
    textbutton str(brothel.get_cust_count(estimate_dice = True)) + "{image=img_cust}" style "inv_no_padding" action NullAction() tooltip brothel.get_cust_count_description()
  File "game/BKscreens.rpy", line 4944, in keywords
    textbutton str(brothel.get_cust_count(estimate_dice = True)) + "{image=img_cust}" style "inv_no_padding" action NullAction() tooltip brothel.get_cust_count_description()
  File "game/BKclasses.rpy", line 2469, in get_cust_count_description
    cust_nb, base_cust_nb, adv_cust_nb, girl_cust_nb = self.get_cust_count(True)
  File "game/BKclasses.rpy", line 2443, in get_cust_count
    cust_nb += brothel.get_effect("change", "customers")
  File "game/BKclasses.rpy", line 1810, in get_effect
    return get_effect(self, type, target, estimate_dice = estimate_dice, items_only = items_only, prec = prec)
  File "game/BKfunctions.rpy", line 5829, in get_effect
    else:
  File "game/BKfunctions.rpy", line 438, in dice
    int(sides)
  File "game/BKfunctions.rpy", line 438, in <genexpr>
    int(sides)
ValueError: non-integer stop for randrange()

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

Full traceback:
  File "game/BKmain.rpy", line 557, in script
    $ mychoice = ui.interact()
  File "G:\Games\KORINTHOS\Games\Brothel_King Bonanza 4.1.1\renpy\ast.py", line 862, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "G:\Games\KORINTHOS\Games\Brothel_King Bonanza 4.1.1\renpy\python.py", line 1912, in py_exec_bytecode
    exec bytecode in globals, locals
  File "game/BKmain.rpy", line 557, in <module>
    $ mychoice = ui.interact()
  File "G:\Games\KORINTHOS\Games\Brothel_King Bonanza 4.1.1\renpy\ui.py", line 287, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "G:\Games\KORINTHOS\Games\Brothel_King Bonanza 4.1.1\renpy\display\core.py", line 2649, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs)
  File "G:\Games\KORINTHOS\Games\Brothel_King Bonanza 4.1.1\renpy\display\core.py", line 3033, in interact_core
    root_widget.visit_all(lambda i : i.per_interact())
  File "G:\Games\KORINTHOS\Games\Brothel_King Bonanza 4.1.1\renpy\display\core.py", line 511, in visit_all
    d.visit_all(callback)
  File "G:\Games\KORINTHOS\Games\Brothel_King Bonanza 4.1.1\renpy\display\core.py", line 511, in visit_all
    d.visit_all(callback)
  File "G:\Games\KORINTHOS\Games\Brothel_King Bonanza 4.1.1\renpy\display\core.py", line 511, in visit_all
    d.visit_all(callback)
  File "G:\Games\KORINTHOS\Games\Brothel_King Bonanza 4.1.1\renpy\display\screen.py", line 424, in visit_all
    callback(self)
  File "G:\Games\KORINTHOS\Games\Brothel_King Bonanza 4.1.1\renpy\display\core.py", line 3033, in <lambda>
    root_widget.visit_all(lambda i : i.per_interact())
  File "G:\Games\KORINTHOS\Games\Brothel_King Bonanza 4.1.1\renpy\display\screen.py", line 434, in per_interact
    self.update()
  File "G:\Games\KORINTHOS\Games\Brothel_King Bonanza 4.1.1\renpy\display\screen.py", line 619, in update
    self.screen.function(**self.scope)
  File "game/BKscreens.rpy", line 4634, in execute
    screen brothel():
  File "game/BKscreens.rpy", line 4634, in execute
    screen brothel():
  File "game/BKscreens.rpy", line 4709, in execute
    frame:
  File "game/BKscreens.rpy", line 4718, in execute
    has vbox
  File "game/BKscreens.rpy", line 4722, in execute
    if not brothel_firstvisit:
  File "game/BKscreens.rpy", line 4737, in execute
    hbox:
  File "game/BKscreens.rpy", line 4802, in execute
    vbox spacing 10 xalign 1.0 xoffset -6:
  File "game/BKscreens.rpy", line 4805, in execute
    frame:
  File "game/BKscreens.rpy", line 4811, in execute
    has vbox spacing 10 xalign 0.0 yalign 0.5
  File "game/BKscreens.rpy", line 4940, in execute
    hbox xfill True spacing 10:
  File "game/BKscreens.rpy", line 4942, in execute
    vbox spacing 6 xsize 180:
  File "game/BKscreens.rpy", line 4944, in execute
    textbutton str(brothel.get_cust_count(estimate_dice = True)) + "{image=img_cust}" style "inv_no_padding" action NullAction() tooltip brothel.get_cust_count_description()
  File "game/BKscreens.rpy", line 4944, in keywords
    textbutton str(brothel.get_cust_count(estimate_dice = True)) + "{image=img_cust}" style "inv_no_padding" action NullAction() tooltip brothel.get_cust_count_description()
  File "<screen language>", line 4944, in <module>
  File "game/BKclasses.rpy", line 2469, in get_cust_count_description
    cust_nb, base_cust_nb, adv_cust_nb, girl_cust_nb = self.get_cust_count(True)
  File "game/BKclasses.rpy", line 2443, in get_cust_count
    cust_nb += brothel.get_effect("change", "customers")
  File "game/BKclasses.rpy", line 1810, in get_effect
    return get_effect(self, type, target, estimate_dice = estimate_dice, items_only = items_only, prec = prec)
  File "game/BKfunctions.rpy", line 5829, in get_effect
    else:
  File "game/BKfunctions.rpy", line 438, in dice
    int(sides)
  File "game/BKfunctions.rpy", line 438, in <genexpr>
    int(sides)
  File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/random.py", line 242, in randint
  File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/random.py", line 198, in randrange
ValueError: non-integer stop for randrange()

Windows-8-6.2.9200
Ren'Py 7.0.0.196
Brothel King 0.15b
Mon Jul 18 15:25:16 2022
[close]

I think this is caused by the Trait King Irresistible trait that increases customer count by a roll?
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Jul 18, 2022, 04:01 PM
Seems like something is trying to pass a non-integer as the number of sides on a dice. Worth looking what value 'estimate_dice' is passed.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Smaug on Jul 19, 2022, 12:24 PM
Thanks, got it working.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Kingbob on Jul 23, 2022, 04:34 PM
Im not sure what I did wrong here

Fresh install
patched
no mods

The odd thing was that even on a fresh install it seemed to know it was missing  girl packs from a previous install but that was from awhile ago. Thanks for any help.

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKstart.rpy", line 125, in script
    $ enemy_general = get_girls(1, free=True, p_traits=["Warrior"])[0]
  File "game/BKstart.rpy", line 125, in <module>
    $ enemy_general = get_girls(1, free=True, p_traits=["Warrior"])[0]
  File "game/BKfunctions.rpy", line 352, in get_girls
    girl.randomize(free=free, p_traits=p_traits, n_trait=n_trait, perks=perks, level=lvl)
  File "game/BKgirlclass.rpy", line 263, in randomize
    self.refresh_pictures()
  File "game/BKgirlclass.rpy", line 496, in refresh_pictures
    self.portrait = self.get_pic("portrait", "profile", naked_filter = True, and_priority=False, soft=True)
  File "game/BKgirlclass.rpy", line 1025, in get_pic
    return get_pic(self, tags=tags, alt_tags1=alt_tags1, alt_tags2=alt_tags2, alt_tags3=alt_tags3, and_tags=and_tags, not_tags=not_tags, strict=strict, and_priority=and_priority, attempts=attempts, always_stock=always_stock)
  File "game/BKfunctions.rpy", line 2792, in get_pic
    piclist = get_pic_list(target, search_tags, and_tags, not_tags)
  File "game/BKfunctions.rpy", line 2743, in get_pic_list
    show_unrecognized = preferences.packstate_unrecognized != "Hide"
AttributeError: 'Preferences' object has no attribute 'packstate_unrecognized'

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

Full traceback:
  File "game/BKstart.rpy", line 125, in script
    $ enemy_general = get_girls(1, free=True, p_traits=["Warrior"])[0]
  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/BKstart.rpy", line 125, in <module>
    $ enemy_general = get_girls(1, free=True, p_traits=["Warrior"])[0]
  File "game/BKfunctions.rpy", line 352, in get_girls
    girl.randomize(free=free, p_traits=p_traits, n_trait=n_trait, perks=perks, level=lvl)
  File "game/BKgirlclass.rpy", line 263, in randomize
    self.refresh_pictures()
  File "game/BKgirlclass.rpy", line 496, in refresh_pictures
    self.portrait = self.get_pic("portrait", "profile", naked_filter = True, and_priority=False, soft=True)
  File "game/BKgirlclass.rpy", line 1025, in get_pic
    return get_pic(self, tags=tags, alt_tags1=alt_tags1, alt_tags2=alt_tags2, alt_tags3=alt_tags3, and_tags=and_tags, not_tags=not_tags, strict=strict, and_priority=and_priority, attempts=attempts, always_stock=always_stock)
  File "game/BKfunctions.rpy", line 2792, in get_pic
    piclist = get_pic_list(target, search_tags, and_tags, not_tags)
  File "game/BKfunctions.rpy", line 2743, in get_pic_list
    show_unrecognized = preferences.packstate_unrecognized != "Hide"
AttributeError: 'Preferences' object has no attribute 'packstate_unrecognized'

Windows-10-10.0.22000
Ren'Py 7.4.11.2266
Brothel King 0.2 v220416
Sat Jul 23 12:26:10 2022
Title: Re: [Feedback] *BUG REPORTS*
Post by: Leortha on Jul 24, 2022, 12:29 AM
As per the old girl pack stuff, Ren'py keeps all it's save data in two places.   One of them is a central location for that game down in the windows user data.   So even if you do a fresh install in a new directory, unless you also clear out the BK user data all you old saves will still be accessible by the new install.

As for it being a new install, you are out of date for your patch.  So first thing is to always make sure you have the latest patch.   I can tell it's out of date because towards the end of your error report it shows the date of your patch as 22/04/26.   The most recent patch is from only a week or so ago.   Look for Goldo's post a few above this and get the latest patch from the location linked in his signature.   Doing this will help make sure that you are not reporting something that has already been fixed.
Title: Re: [Feedback] *BUG REPORTS*
Post by: DougTheC on Jul 24, 2022, 06:49 AM
Quote from: Kingbob on Jul 23, 2022, 04:34 PMIm not sure what I did wrong here

Fresh install
patched
no mods

The odd thing was that even on a fresh install it seemed to know it was missing  girl packs from a previous install but that was from awhile ago. Thanks for any help.

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKstart.rpy", line 125, in script
    $ enemy_general = get_girls(1, free=True, p_traits=["Warrior"])[0]
  File "game/BKstart.rpy", line 125, in <module>
    $ enemy_general = get_girls(1, free=True, p_traits=["Warrior"])[0]
  File "game/BKfunctions.rpy", line 352, in get_girls
    girl.randomize(free=free, p_traits=p_traits, n_trait=n_trait, perks=perks, level=lvl)
  File "game/BKgirlclass.rpy", line 263, in randomize
    self.refresh_pictures()
  File "game/BKgirlclass.rpy", line 496, in refresh_pictures
    self.portrait = self.get_pic("portrait", "profile", naked_filter = True, and_priority=False, soft=True)
  File "game/BKgirlclass.rpy", line 1025, in get_pic
    return get_pic(self, tags=tags, alt_tags1=alt_tags1, alt_tags2=alt_tags2, alt_tags3=alt_tags3, and_tags=and_tags, not_tags=not_tags, strict=strict, and_priority=and_priority, attempts=attempts, always_stock=always_stock)
  File "game/BKfunctions.rpy", line 2792, in get_pic
    piclist = get_pic_list(target, search_tags, and_tags, not_tags)
  File "game/BKfunctions.rpy", line 2743, in get_pic_list
    show_unrecognized = preferences.packstate_unrecognized != "Hide"
AttributeError: 'Preferences' object has no attribute 'packstate_unrecognized'

Windows-10-10.0.22000
Ren'Py 7.4.11.2266
Brothel King 0.2 v220416
Sat Jul 23 12:26:10 2022


From F95zone, try this if still get an error after updating to latest patch and starting new game.

Quote from: DougTheC, post: 7784395, member: 950785Best try we can think of to make this work:

Run game to get Start menu,
use shift-o to get console, copy-paste

preferences.packstate_unrecognized = "Rename"
followed by the Enter key, and Esc key to return from console.

Will probably work if you then even load a saved game.
Title: Re: [Feedback] *BUG REPORTS*
Post by: zt511422 on Jul 26, 2022, 11:16 AM
I'm not sure what I did wrong here
Fresh install
latest patched 07/11
default girls pack installed
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 309, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 120, in script
    if not persistent.girl_mix["default"]:
  File "game/BKevents.rpy", line 120, in <module>
    if not persistent.girl_mix["default"]:
KeyError: u'default'

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

Full traceback:
  File "renpy/common/00start.rpy", line 309, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 120, in script
    if not persistent.girl_mix["default"]:
  File "renpy/ast.py", line 1898, in execute
    if renpy.python.py_eval(condition):
  File "renpy/python.py", line 2276, in py_eval
    return py_eval_bytecode(code, globals, locals)
  File "renpy/python.py", line 2269, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "game/BKevents.rpy", line 120, in <module>
    if not persistent.girl_mix["default"]:
KeyError: u'default'

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711
Tue Jul 26 19:08:52 2022
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on Jul 26, 2022, 01:26 PM
Quote from: zt511422 on Jul 26, 2022, 11:16 AMI'm not sure what I did wrong here
Fresh install
latest patched 07/11
default girls pack installed
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 309, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 120, in script
    if not persistent.girl_mix["default"]:
  File "game/BKevents.rpy", line 120, in <module>
    if not persistent.girl_mix["default"]:
KeyError: u'default'

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

Full traceback:
  File "renpy/common/00start.rpy", line 309, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 120, in script
    if not persistent.girl_mix["default"]:
  File "renpy/ast.py", line 1898, in execute
    if renpy.python.py_eval(condition):
  File "renpy/python.py", line 2276, in py_eval
    return py_eval_bytecode(code, globals, locals)
  File "renpy/python.py", line 2269, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "game/BKevents.rpy", line 120, in <module>
    if not persistent.girl_mix["default"]:
KeyError: u'default'

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711
Tue Jul 26 19:08:52 2022


Delete both save folders. One is in the brothelking_pc/game/saves the other one is in the username/%appdata/roaming/renpy/bro king folder.

Edit: btw you can find the answer for this in the FAQ.
Side note: DougTheC you forgot to type wich command the player should type in the console.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Badaz23 on Aug 03, 2022, 08:15 PM
Fresh Download
New base game
and patched
No mods installed
When Updating Pack state   


I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKscreens.rpy", line 7796, in script call
    call girlpack_menu() from _call_girlpack_menu
  File "game/BKscreens.rpy", line 7786, in script call
    call packstates_menu from _call_packstates_menu
  File "game/BKscreens.rpy", line 8157, in script
    menu:
  File "game/screens.rpy", line 66, in execute
    screen choice(items):
  File "game/screens.rpy", line 66, in execute
    screen choice(items):
  File "game/screens.rpy", line 75, in execute
    window:
  File "game/screens.rpy", line 86, in execute
    vbox:
  File "game/screens.rpy", line 90, in execute
    for caption, action, chosen in items:
  File "game/screens.rpy", line 92, in execute
    if action:
  File "game/screens.rpy", line 94, in execute
    button:
  File "game/screens.rpy", line 98, in execute
    text caption style "menu_choice"
AttributeError: 'Preferences' object has no attribute 'packstate_unrecognized'

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

Full traceback:
  File "game/BKscreens.rpy", line 7796, in script call
    call girlpack_menu() from _call_girlpack_menu
  File "game/BKscreens.rpy", line 7786, in script call
    call packstates_menu from _call_packstates_menu
  File "game/BKscreens.rpy", line 8157, in script
    menu:
  File "renpy/ast.py", line 1688, in execute
    choice = renpy.exports.menu(choices, self.set, args, kwargs, item_arguments)
  File "renpy/exports.py", line 1060, in menu
    rv = renpy.store.menu(new_items)
  File "renpy/exports.py", line 1296, in display_menu
    rv = renpy.ui.interact(mouse='menu', type=type, roll_forward=roll_forward)
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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/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/screens.rpy", line 66, in execute
    screen choice(items):
  File "game/screens.rpy", line 66, in execute
    screen choice(items):
  File "game/screens.rpy", line 75, in execute
    window:
  File "game/screens.rpy", line 86, in execute
    vbox:
  File "game/screens.rpy", line 90, in execute
    for caption, action, chosen in items:
  File "game/screens.rpy", line 92, in execute
    if action:
  File "game/screens.rpy", line 94, in execute
    button:
  File "game/screens.rpy", line 98, in execute
    text caption style "menu_choice"
  File "renpy/text/text.py", line 1574, in __init__
    self.set_text(text, scope, substitute)
  File "renpy/text/text.py", line 1693, in set_text
    i, did_sub = renpy.substitutions.substitute(i, scope, substitute)
  File "renpy/substitutions.py", line 270, in substitute
    s = formatter.vformat(s, (), kwargs)
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/string.py", line 563, in vformat
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/string.py", line 585, in _vformat
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/string.py", line 652, in get_field
AttributeError: 'Preferences' object has no attribute 'packstate_unrecognized'

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711
Thu Aug  4 04:13:32 2022
Title: Re: [Feedback] *BUG REPORTS*
Post by: DougTheC on Aug 04, 2022, 04:33 PM
Quote from: Badaz23 on Aug 03, 2022, 08:15 PMFresh Download
New base game
and patched
No mods installed
When Updating Pack state 


I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKscreens.rpy", line 7796, in script call
    call girlpack_menu() from _call_girlpack_menu
  File "game/BKscreens.rpy", line 7786, in script call
    call packstates_menu from _call_packstates_menu
  File "game/BKscreens.rpy", line 8157, in script
    menu:
  File "game/screens.rpy", line 66, in execute
    screen choice(items):
  File "game/screens.rpy", line 66, in execute
    screen choice(items):
  File "game/screens.rpy", line 75, in execute
    window:
  File "game/screens.rpy", line 86, in execute
    vbox:
  File "game/screens.rpy", line 90, in execute
    for caption, action, chosen in items:
  File "game/screens.rpy", line 92, in execute
    if action:
  File "game/screens.rpy", line 94, in execute
    button:
  File "game/screens.rpy", line 98, in execute
    text caption style "menu_choice"
AttributeError: 'Preferences' object has no attribute 'packstate_unrecognized'
...
Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711
Thu Aug  4 04:13:32 2022


See a few posts above; search is your friend.

https://henthighschool.net/index.php?msg=1120
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Aug 05, 2022, 01:07 PM
Hi guys,

Just to let you know I'm still working little by little on Chapter 3, but I'll be off the grid until the end of August for some much-needed vacation.  8)
Title: Re: [Feedback] *BUG REPORTS*
Post by: XLVyBedaM on Aug 20, 2022, 06:33 PM
Hi, so my problem is, that when I start the game the wermgr.exe stops it. I havent got anything into the log, with uncaught exception occurred, so I cant paste it here. (It stops the .exe even If I run as administrator.) I dowloaded the game again, with the patch and the basic gir pack, but nothing, wermgr just stops it. I hope I write it the good place(sorry if not), thanks for the help in advance.
Everything is Fresh as I said,
fresh download
new base game
and patched
No mods installed
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on Aug 21, 2022, 01:22 PM
Other then suggesting to try the other exe file in the main game folder i cant tell you much.
As the "Windows Problem Reporting" shouldn't do that to the game. ???
Title: Re: [Feedback] *BUG REPORTS*
Post by: XLVyBedaM on Aug 22, 2022, 01:02 PM
Quote from: vadi92 on Aug 21, 2022, 01:22 PMOther then suggesting to try the other exe file in the main game folder i cant tell you much.
As the "Windows Problem Reporting" shouldn't do that to the game. ???
I tried the normal, and the ...32.exe but it still stops, maybe itself, maybe the WPR stops it, I dont really know.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Aug 23, 2022, 10:35 AM
Quote from: XLVyBedaM on Aug 22, 2022, 01:02 PM
Quote from: vadi92 on Aug 21, 2022, 01:22 PMOther then suggesting to try the other exe file in the main game folder i cant tell you much.
As the "Windows Problem Reporting" shouldn't do that to the game. ???
I tried the normal, and the ...32.exe but it still stops, maybe itself, maybe the WPR stops it, I dont really know.

No idea what wermgr.exe is, but since it seems like a window manager problem, perhaps it's a matter of window size or resolution? Do you have unreasonably large settings in BKsettings.rpy or gui.rpy (unlikely if you haven't touched them)?

Any leftover persistent data from a previous game install? (also check in your documents, as mentioned by Leortha (https://henthighschool.net/index.php?msg=1116))
Title: Re: [Feedback] *BUG REPORTS*
Post by: DougTheC on Sep 03, 2022, 03:06 PM
Quote from: XLVyBedaM on Aug 20, 2022, 06:33 PMHi, so my problem is, that when I start the game the wermgr.exe stops it. I havent got anything into the log, with uncaught exception occurred, so I cant paste it here. (It stops the .exe even If I run as administrator.) I dowloaded the game again, with the patch and the basic gir pack, but nothing, wermgr just stops it. I hope I write it the good place(sorry if not), thanks for the help in advance.
Everything is Fresh as I said,
fresh download
new base game
and patched
No mods installed


Your system is having an error dectected by Windows OS while trying to start the game, and wermgr.exe creates error report info that can be sent to Microsoft.

You can try these two steps I found in thewindowsclub.com to try fixing your system. You probably don't need to download any of the add-ons the site tries to have you download.

1] Run System File Checker
What you can do is to run System File Checker (https://www.thewindowsclub.com/run-system-file-checker-safe-mode-boot-time) to scan your PC for and repair your corrupted system files. Once the scan is completed, restart your computer.

2] Run the Windows Memory Diagnostic Tool
The other option would be to run the Windows Memory Diagnostic Tool (https://www.thewindowsclub.com/windows-memory-diagnostics-tool-in-windows-7).

Click on Restart now and check for problems and let the tool scan for and fix memory-related problems.

Title: Re: [Feedback] *BUG REPORTS*
Post by: Aetheran on Oct 14, 2022, 09:43 PM
Windows-10-10.0.18362
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711

- Game is patched to the latest version. I double-checked this by re-downloading the patch and applying it, and testing again.
- Mods active: King's Way, Augment Mod, traitking, Headhunter Mod, chrisjobmod. Mods installed before this save was started, no mods were installed mid-game.

Game date: Year 1, Month 7, Day 24

The following error happens when I click on a particular girl in my brothel. This is not a new girl, I've had her for in-game months. This never happened with her before, and she has not recently gotten any level ups. This does not happen with any other girl.

Since I don't know what this error is saying, I figured I'd do some troubleshooting to see if I can find out. I used King's Way to edit everything from her traits, skill levels, experience, level, perks. No matter what I change, this error persists.

I'm hoping it's not related to the girl pack itself, since I'm the one who made it. But the BK picture ReNamer was able to open/rename all the images in the pack so hopefully there's no issue there.

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1133, in script
    $ result = ui.interact()
  File "game/BKmain.rpy", line 1133, in <module>
    $ result = ui.interact()
  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 297, in execute
    if selected_girl in girls:
  File "game/BKscreens.rpy", line 298, in execute
    use girl_stats(selected_girl, context=context)
  File "game/BKscreens.rpy", line 1052, in execute
    screen girl_stats(girl, context = "girls"): # context can be girls, slavemarket, farm, free, postings, contracts, capture
  File "game/BKscreens.rpy", line 1052, in execute
    screen girl_stats(girl, context = "girls"): # context can be girls, slavemarket, farm, free, postings, contracts, capture
  File "game/BKscreens.rpy", line 1058, in execute
    frame:
  File "game/BKscreens.rpy", line 1074, in execute
    vbox:
  File "game/BKscreens.rpy", line 1174, in execute
    if context in ("girls", "farm", "contract", "postings"):
  File "game/BKscreens.rpy", line 1178, in execute
    button:
  File "game/BKscreens.rpy", line 1187, in execute
    has hbox
  File "game/BKscreens.rpy", line 1268, in execute
    if jp_show:
  File "game/BKscreens.rpy", line 1269, in execute
    $ jp_text = __(job.capitalize()) + " " + str(girl.job_level[job]) + " {image=img_star}"
  File "game/BKscreens.rpy", line 1269, in <module>
    $ jp_text = __(job.capitalize()) + " " + str(girl.job_level[job]) + " {image=img_star}"
AttributeError: 'NoneType' object has no attribute 'capitalize'

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

Full traceback:
  File "game/BKmain.rpy", line 1133, in script
    $ result = ui.interact()
  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/BKmain.rpy", line 1133, in <module>
    $ result = ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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/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 297, in execute
    if selected_girl in girls:
  File "game/BKscreens.rpy", line 298, in execute
    use girl_stats(selected_girl, context=context)
  File "game/BKscreens.rpy", line 1052, in execute
    screen girl_stats(girl, context = "girls"): # context can be girls, slavemarket, farm, free, postings, contracts, capture
  File "game/BKscreens.rpy", line 1052, in execute
    screen girl_stats(girl, context = "girls"): # context can be girls, slavemarket, farm, free, postings, contracts, capture
  File "game/BKscreens.rpy", line 1058, in execute
    frame:
  File "game/BKscreens.rpy", line 1074, in execute
    vbox:
  File "game/BKscreens.rpy", line 1174, in execute
    if context in ("girls", "farm", "contract", "postings"):
  File "game/BKscreens.rpy", line 1178, in execute
    button:
  File "game/BKscreens.rpy", line 1187, in execute
    has hbox
  File "game/BKscreens.rpy", line 1268, in execute
    if jp_show:
  File "game/BKscreens.rpy", line 1269, in execute
    $ jp_text = __(job.capitalize()) + " " + str(girl.job_level[job]) + " {image=img_star}"
  File "game/BKscreens.rpy", line 1269, in <module>
    $ jp_text = __(job.capitalize()) + " " + str(girl.job_level[job]) + " {image=img_star}"
AttributeError: 'NoneType' object has no attribute 'capitalize'

Windows-10-10.0.18362
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711
Fri Oct 14 17:17:24 2022
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on Oct 15, 2022, 05:38 AM
If i remember correctly this was related to the whoring job.  ???
QuoteLoad your savegame, and check if some girl has been assigned as whore but
1. no sexacts checked to perform
2. has lost/may lose libido/obedience and be disqualified from whoring (such a shame...)

The last time it's happened it's almost a year ago when we got an error like this.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Aetheran on Oct 15, 2022, 12:54 PM
Quote from: vadi92 on Oct 15, 2022, 05:38 AMIf i remember correctly this was related to the whoring job.  ???
QuoteLoad your savegame, and check if some girl has been assigned as whore but
1. no sexacts checked to perform
2. has lost/may lose libido/obedience and be disqualified from whoring (such a shame...)

This last time it's happened it's almost a year ago when we got an error like this.

The girl is assigned as a whore. However I can't check to see if she has any sexacts checked since whenever I click on her portrait I get the error. King's Way cheat mod doesn't have a way to change her job or check/uncheck sexacts. Her libido/obedience are both over 200, same with all other stats, and she's a rank S slave with all maxed job/sex skills for rank S (425)

Is there anyway I can use the console to see if she has checked sexacts?

Title: Re: [Feedback] *BUG REPORTS*
Post by: Trytoxic on Oct 16, 2022, 08:18 AM
Hi, I have a Problem when I start a new Game.

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKstart.rpy", line 75, in script
    $ enemy_general = get_girls(1, free=True, p_traits=["Warrior"])[0]
  File "game/BKstart.rpy", line 75, in <module>
    $ enemy_general = get_girls(1, free=True, p_traits=["Warrior"])[0]
  File "game/BKfunctions.rpy", line 356, in get_girls
    girl.randomize(free=free, p_traits=p_traits, n_trait=n_trait, perks=perks, level=lvl)
  File "game/BKgirlclass.rpy", line 263, in randomize
    self.refresh_pictures()
  File "game/BKgirlclass.rpy", line 496, in refresh_pictures
    self.portrait = self.get_pic("portrait", "profile", naked_filter = True, and_priority=False, soft=True)
  File "game/BKgirlclass.rpy", line 1025, in get_pic
    return get_pic(self, tags=tags, alt_tags1=alt_tags1, alt_tags2=alt_tags2, alt_tags3=alt_tags3, and_tags=and_tags, not_tags=not_tags, strict=strict, and_priority=and_priority, attempts=attempts, always_stock=always_stock)
  File "game/BKfunctions.rpy", line 2796, in get_pic
    piclist = get_pic_list(target, search_tags, and_tags, not_tags)
  File "game/BKfunctions.rpy", line 2747, in get_pic_list
    show_unrecognized = preferences.packstate_unrecognized != "Hide"
AttributeError: 'Preferences' object has no attribute 'packstate_unrecognized'

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

Full traceback:
  File "game/BKstart.rpy", line 75, in script
    $ enemy_general = get_girls(1, free=True, p_traits=["Warrior"])[0]
  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/BKstart.rpy", line 75, in <module>
    $ enemy_general = get_girls(1, free=True, p_traits=["Warrior"])[0]
  File "game/BKfunctions.rpy", line 356, in get_girls
    girl.randomize(free=free, p_traits=p_traits, n_trait=n_trait, perks=perks, level=lvl)
  File "game/BKgirlclass.rpy", line 263, in randomize
    self.refresh_pictures()
  File "game/BKgirlclass.rpy", line 496, in refresh_pictures
    self.portrait = self.get_pic("portrait", "profile", naked_filter = True, and_priority=False, soft=True)
  File "game/BKgirlclass.rpy", line 1025, in get_pic
    return get_pic(self, tags=tags, alt_tags1=alt_tags1, alt_tags2=alt_tags2, alt_tags3=alt_tags3, and_tags=and_tags, not_tags=not_tags, strict=strict, and_priority=and_priority, attempts=attempts, always_stock=always_stock)
  File "game/BKfunctions.rpy", line 2796, in get_pic
    piclist = get_pic_list(target, search_tags, and_tags, not_tags)
  File "game/BKfunctions.rpy", line 2747, in get_pic_list
    show_unrecognized = preferences.packstate_unrecognized != "Hide"
AttributeError: 'Preferences' object has no attribute 'packstate_unrecognized'

Windows-10-10.0.22621
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711
Sun Oct 16 10:14:09 2022

Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on Oct 16, 2022, 08:44 AM
Quote from: Trytoxic on Oct 16, 2022, 08:18 AMHi, I have a Problem when I start a new Game.

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKstart.rpy", line 75, in script
    $ enemy_general = get_girls(1, free=True, p_traits=["Warrior"])[0]
  File "game/BKstart.rpy", line 75, in <module>
    $ enemy_general = get_girls(1, free=True, p_traits=["Warrior"])[0]
  File "game/BKfunctions.rpy", line 356, in get_girls
    girl.randomize(free=free, p_traits=p_traits, n_trait=n_trait, perks=perks, level=lvl)
  File "game/BKgirlclass.rpy", line 263, in randomize
    self.refresh_pictures()
  File "game/BKgirlclass.rpy", line 496, in refresh_pictures
    self.portrait = self.get_pic("portrait", "profile", naked_filter = True, and_priority=False, soft=True)
  File "game/BKgirlclass.rpy", line 1025, in get_pic
    return get_pic(self, tags=tags, alt_tags1=alt_tags1, alt_tags2=alt_tags2, alt_tags3=alt_tags3, and_tags=and_tags, not_tags=not_tags, strict=strict, and_priority=and_priority, attempts=attempts, always_stock=always_stock)
  File "game/BKfunctions.rpy", line 2796, in get_pic
    piclist = get_pic_list(target, search_tags, and_tags, not_tags)
  File "game/BKfunctions.rpy", line 2747, in get_pic_list
    show_unrecognized = preferences.packstate_unrecognized != "Hide"
AttributeError: 'Preferences' object has no attribute 'packstate_unrecognized'

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

Full traceback:
  File "game/BKstart.rpy", line 75, in script
    $ enemy_general = get_girls(1, free=True, p_traits=["Warrior"])[0]
  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/BKstart.rpy", line 75, in <module>
    $ enemy_general = get_girls(1, free=True, p_traits=["Warrior"])[0]
  File "game/BKfunctions.rpy", line 356, in get_girls
    girl.randomize(free=free, p_traits=p_traits, n_trait=n_trait, perks=perks, level=lvl)
  File "game/BKgirlclass.rpy", line 263, in randomize
    self.refresh_pictures()
  File "game/BKgirlclass.rpy", line 496, in refresh_pictures
    self.portrait = self.get_pic("portrait", "profile", naked_filter = True, and_priority=False, soft=True)
  File "game/BKgirlclass.rpy", line 1025, in get_pic
    return get_pic(self, tags=tags, alt_tags1=alt_tags1, alt_tags2=alt_tags2, alt_tags3=alt_tags3, and_tags=and_tags, not_tags=not_tags, strict=strict, and_priority=and_priority, attempts=attempts, always_stock=always_stock)
  File "game/BKfunctions.rpy", line 2796, in get_pic
    piclist = get_pic_list(target, search_tags, and_tags, not_tags)
  File "game/BKfunctions.rpy", line 2747, in get_pic_list
    show_unrecognized = preferences.packstate_unrecognized != "Hide"
AttributeError: 'Preferences' object has no attribute 'packstate_unrecognized'

Windows-10-10.0.22621
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711
Sun Oct 16 10:14:09 2022



Open the console with shift+o. And copy paste this code there:
preferences.packstate_unrecognized = "Rename"

Quote from: Aetheran on Oct 15, 2022, 12:54 PMIs there anyway I can use the console to see if she has checked sexacts?

Idk if there is a code for it. The best way for now what i can think of is selling and rebuying her the next week.  :-\ 
Edit: Send me a save. Maybe i can check it for you.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Trytoxic on Oct 16, 2022, 09:08 AM
sorry, i deleted the RenPy folder in the roaming directory, i thought this would solve the problem.

here is an autosave which I was able to create with your tip
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on Oct 16, 2022, 09:17 AM
Quote from: Trytoxic on Oct 16, 2022, 09:08 AMhere is an autosave which I was able to create with your tip
I asked Aetheran for the the save. For your problem use the code what i provided.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Aetheran on Oct 16, 2022, 04:17 PM
Quote from: vadi92 on Oct 16, 2022, 08:44 AM
Quote from: Aetheran on Oct 15, 2022, 12:54 PMIs there anyway I can use the console to see if she has checked sexacts?

Idk if there is a code for it. The best way for now what i can think of is selling and rebuying her the next week.  :-\ 
Edit: Send me a save. Maybe i can check it for you.


Thanks for the reply!

I can't sell her because I can't click on her portrait to select her to do anything, because of the error.

Is there a console command to sell/get rid of her? I'm 100% fine with going that route if she'll reappear in the slave market (or if there's also a console command to respawn her).

Would me sending a save even work, since you'd need the same girl packs and installed mods?
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on Oct 16, 2022, 04:41 PM
Quote from: Aetheran on Oct 16, 2022, 04:17 PMWould me sending a save even work, since you'd need the same girl packs and installed mods?
I dont need the girl pack (just get a few message that i dont have xyz image). And dont worry i have most mod's.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Aetheran on Oct 16, 2022, 06:16 PM
Quote from: vadi92 on Oct 16, 2022, 04:41 PMI dont need the girl pack (just get a few message that i dont have xyz image). And dont worry i have most mod's.

I seem to have fixed the error...

So I had my save file uploaded, and an entire post written for you about it... and then I recalled what you said about her being disqualified from whoring.

And I thought to myself "well... I can't click her portrait to sell her or change her job... but what if I go into the schedule and set her to Rest today..."

And thats what I did. I set her to "Rest" for the current day, and tried to click on her portrait again, and it worked! I got a message "Leneel Mercury cannot work as a whore anymore." and her job was taken away from her. I can click her portrait fine, interact with her, and set her job back to Whore. So it SEEMS to be fixed now...

I'll include below what I was going to post before I fixed the issue, incase you (or anyone else) wants to see themselves the issue I was having. So anyone in the future having this same issue, the fix that (seems to have) worked for me is to go into the Schedule, and set her to Rest for the current day, then clicking on her will force the game to give her no job.

Spoiler
Here's the post I was going to make before I fixed it with the solution above

The file is too big to add as an attachment, so I uploaded it here: https://www.mediafire.com/file/fzi37mcdt4umvtg/1-1-LT1.save/file

The girl causing the error is Leneel Mercury. She's the first one set to the Whore job.

Unfortunately I saved over my original save while doing some testing so I don't have an "untainted" save file anymore...

So with this save, I used King's Way cheat mod to remove the girl's (Leneel Mercury) traits to see if that was the problem. It wasn't. I didn't give her traits back yet so if you're wondering why she doesn't have any, that's why.
[close]
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Oct 18, 2022, 03:31 PM
Thank you for providing details about your error, it will allow me to narrow it down.

We now know that a/ the problem happens when selecting the girl and b/ she should be able to pass the check for whoring, so that's very useful information for working on a fix.

Meanwhile, you can work around such a bug if it comes up again with the following fix:
- Figure out the 'index' of your girl, it is equal to her position in the girl list minus 1 (first girl is 0, second girl is 1...)
- Type this in the console:
MC.girls[i].job = "rest" # Replace 'i' with the index number
Edit: Could you do me a favor and check the following in your original saved game:
Open the console (shift+o), type this:
all_sex_actsand send me the results please.
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on Oct 18, 2022, 04:20 PM
the result with his save are:
[u'service',u'sex',u'anal','u'fetish']
Title: Re: [Feedback] *BUG REPORTS*
Post by: Aetheran on Oct 18, 2022, 05:29 PM
EDIT: vadi92 beat me to it, lol...


Quote from: Goldo on Oct 18, 2022, 03:31 PMEdit: Could you do me a favor and check the following in your original saved game:
Open the console (shift+o), type this:
all_sex_actsand send me the results please.

Opened console while in main Brothel screen and typed it, result:

all_sex_acts
[u'service', u'sex', u'anal', u'fetish']


Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Oct 18, 2022, 09:36 PM
Okay, nothing to see here, those values are normal. I'm trying to understand how a 'None' value could skip past the logic in the python block above, no bright ideas so far. It's easy enough to write a safety check, but I am afraid of fixing a bug without understanding it first. :(
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Oct 21, 2022, 02:59 PM
I was going to take a look at the bugged file, but I see you've taken it down. If you can send it back to me I would appreciate it: this bug warrants a second look.
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on Oct 21, 2022, 04:30 PM
Quote from: Goldo on Oct 21, 2022, 02:59 PMI was going to take a look at the bugged file, but I see you've taken it down. If you can send it back to me I would appreciate it: this bug warrants a second look.

The bugged save file:
https://www.mediafire.com/file/js4uhzfq35iejvj/10-1-LT1.save/file (https://www.mediafire.com/file/js4uhzfq35iejvj/10-1-LT1.save/file)
Title: Re: [Feedback] *BUG REPORTS*
Post by: kawabaka on Oct 23, 2022, 09:43 AM
I don't know if this has been mentioned before but there are these event interactions with girls which have give them the wrong traits if they are virgins (so it's not actually a bug but rather just wrong results). Whenever there is an event such as the massage event or that event in which you can either join the crowd or go on stage, if you yourself choose to have sex with a virgin girl, they will receive the "housebroken" trait rather than the "teachers pet" or "traumatized" trait (Depending if they wanted it or not). Then there is also the event at the beach at which you can choose between putting oil on them or having sex. If you choose sex (and they accept) they even remain virgin after that.
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on Oct 23, 2022, 05:55 PM
Quote from: kawabaka on Oct 23, 2022, 09:43 AMWhenever there is an event such as the massage event or that event in which you can either join the crowd or go on stage, if you yourself choose to have sex with a virgin girl, they will receive the "housebroken" trait rather than the "teachers pet" or "traumatized" trait

That's pretty much becuse you doing it in front of the customer's. The girl even get the housebroken trait if  you visit her room and she want to have sex with you. (She treat you like a 'customer')

Quote from: kawabaka on Oct 23, 2022, 09:43 AMhen there is also the event at the beach at which you can choose between putting oil on them or having sex. If you choose sex (and they accept) they even remain virgin after that.

Now that one will be a bug.

Title: Re: [Feedback] *BUG REPORTS*
Post by: cottonb on Oct 24, 2022, 11:50 PM
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 243, in script
    with Dissolve(0.3)
  File "game/BKscreens.rpy", line 3168, in execute
    screen visit_district():
  File "game/BKscreens.rpy", line 3168, in execute
    screen visit_district():
  File "game/BKscreens.rpy", line 3195, in execute
    frame:
  File "game/BKscreens.rpy", line 3201, in execute
    has vbox
  File "game/BKscreens.rpy", line 3211, in execute
    grid 3 2:
  File "game/BKscreens.rpy", line 3215, in execute
    for location in location_dict[selected_district.name]:
  File "game/BKscreens.rpy", line 3217, in execute
    button:
  File "game/BKscreens.rpy", line 3231, in execute
    vbox:
  File "game/BKscreens.rpy", line 3235, in execute
    if location.secret:
  File "game/BKscreens.rpy", line 3246, in execute
    fixed:
  File "game/BKscreens.rpy", line 3262, in execute
    if location.action:
  File "game/BKscreens.rpy", line 3263, in execute
    button xsize xres(50) ysize yres(50) xpos 105 ypos 55 background None xmargin 0 ymargin 0 xpadding 0 ypadding 0:
  File "game/BKscreens.rpy", line 3264, in execute
    if location.can_do_action():
  File "game/BKscreens.rpy", line 3265, in execute
    add location_tb[location.menu[1]] insensitive_alpha 0.33 idle_alpha 0.66 hover_alpha 1.0
  File "game/BKscreens.rpy", line 3265, in <module>
    add location_tb[location.menu[1]] insensitive_alpha 0.33 idle_alpha 0.66 hover_alpha 1.0
KeyError: u'c3_contact_homura'

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

Full traceback:
  File "game/BKmain.rpy", line 243, 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 1682, in with_statement
    return renpy.game.interface.do_with(trans, paired, clear=clear)
  File "renpy/display/core.py", line 2752, in do_with
    clear=clear)
  File "renpy/display/core.py", line 3315, 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 3735, 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 3735, 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 3168, in execute
    screen visit_district():
  File "game/BKscreens.rpy", line 3168, in execute
    screen visit_district():
  File "game/BKscreens.rpy", line 3195, in execute
    frame:
  File "game/BKscreens.rpy", line 3201, in execute
    has vbox
  File "game/BKscreens.rpy", line 3211, in execute
    grid 3 2:
  File "game/BKscreens.rpy", line 3215, in execute
    for location in location_dict[selected_district.name]:
  File "game/BKscreens.rpy", line 3217, in execute
    button:
  File "game/BKscreens.rpy", line 3231, in execute
    vbox:
  File "game/BKscreens.rpy", line 3235, in execute
    if location.secret:
  File "game/BKscreens.rpy", line 3246, in execute
    fixed:
  File "game/BKscreens.rpy", line 3262, in execute
    if location.action:
  File "game/BKscreens.rpy", line 3263, in execute
    button xsize xres(50) ysize yres(50) xpos 105 ypos 55 background None xmargin 0 ymargin 0 xpadding 0 ypadding 0:
  File "game/BKscreens.rpy", line 3264, in execute
    if location.can_do_action():
  File "game/BKscreens.rpy", line 3265, in execute
    add location_tb[location.menu[1]] insensitive_alpha 0.33 idle_alpha 0.66 hover_alpha 1.0
  File "game/BKscreens.rpy", line 3265, in <module>
    add location_tb[location.menu[1]] insensitive_alpha 0.33 idle_alpha 0.66 hover_alpha 1.0
KeyError: u'c3_contact_homura'

Windows-10-10.0.19041
Ren'Py 7.4.10.2178
Brothel King 0.2 v220711
Tue Oct 25 01:29:20 2022

is this just buggy or at the moment not patched in?
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on Oct 25, 2022, 06:44 AM
Quote from: cottonb on Oct 24, 2022, 11:50 PMI'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 243, in script
    with Dissolve(0.3)
  File "game/BKscreens.rpy", line 3168, in execute
    screen visit_district():
  File "game/BKscreens.rpy", line 3168, in execute
    screen visit_district():
  File "game/BKscreens.rpy", line 3195, in execute
    frame:
  File "game/BKscreens.rpy", line 3201, in execute
    has vbox
  File "game/BKscreens.rpy", line 3211, in execute
    grid 3 2:
  File "game/BKscreens.rpy", line 3215, in execute
    for location in location_dict[selected_district.name]:
  File "game/BKscreens.rpy", line 3217, in execute
    button:
  File "game/BKscreens.rpy", line 3231, in execute
    vbox:
  File "game/BKscreens.rpy", line 3235, in execute
    if location.secret:
  File "game/BKscreens.rpy", line 3246, in execute
    fixed:
  File "game/BKscreens.rpy", line 3262, in execute
    if location.action:
  File "game/BKscreens.rpy", line 3263, in execute
    button xsize xres(50) ysize yres(50) xpos 105 ypos 55 background None xmargin 0 ymargin 0 xpadding 0 ypadding 0:
  File "game/BKscreens.rpy", line 3264, in execute
    if location.can_do_action():
  File "game/BKscreens.rpy", line 3265, in execute
    add location_tb[location.menu[1]] insensitive_alpha 0.33 idle_alpha 0.66 hover_alpha 1.0
  File "game/BKscreens.rpy", line 3265, in <module>
    add location_tb[location.menu[1]] insensitive_alpha 0.33 idle_alpha 0.66 hover_alpha 1.0
KeyError: u'c3_contact_homura'

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

Full traceback:
  File "game/BKmain.rpy", line 243, 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 1682, in with_statement
    return renpy.game.interface.do_with(trans, paired, clear=clear)
  File "renpy/display/core.py", line 2752, in do_with
    clear=clear)
  File "renpy/display/core.py", line 3315, 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 3735, 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 3735, 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 3168, in execute
    screen visit_district():
  File "game/BKscreens.rpy", line 3168, in execute
    screen visit_district():
  File "game/BKscreens.rpy", line 3195, in execute
    frame:
  File "game/BKscreens.rpy", line 3201, in execute
    has vbox
  File "game/BKscreens.rpy", line 3211, in execute
    grid 3 2:
  File "game/BKscreens.rpy", line 3215, in execute
    for location in location_dict[selected_district.name]:
  File "game/BKscreens.rpy", line 3217, in execute
    button:
  File "game/BKscreens.rpy", line 3231, in execute
    vbox:
  File "game/BKscreens.rpy", line 3235, in execute
    if location.secret:
  File "game/BKscreens.rpy", line 3246, in execute
    fixed:
  File "game/BKscreens.rpy", line 3262, in execute
    if location.action:
  File "game/BKscreens.rpy", line 3263, in execute
    button xsize xres(50) ysize yres(50) xpos 105 ypos 55 background None xmargin 0 ymargin 0 xpadding 0 ypadding 0:
  File "game/BKscreens.rpy", line 3264, in execute
    if location.can_do_action():
  File "game/BKscreens.rpy", line 3265, in execute
    add location_tb[location.menu[1]] insensitive_alpha 0.33 idle_alpha 0.66 hover_alpha 1.0
  File "game/BKscreens.rpy", line 3265, in <module>
    add location_tb[location.menu[1]] insensitive_alpha 0.33 idle_alpha 0.66 hover_alpha 1.0
KeyError: u'c3_contact_homura'

Windows-10-10.0.19041
Ren'Py 7.4.10.2178
Brothel King 0.2 v220711
Tue Oct 25 01:29:20 2022

is this just buggy or at the moment not patched in?


This line shouldn't exists in the rpy files:
'c3_contact_homura'

It's either you are trying to use an old save. Or didn't patched it correctly because as i see it you are using the lastest patch.
Title: Re: [Feedback] *BUG REPORTS*
Post by: cottonb on Oct 25, 2022, 05:10 PM
i downloaded the base game like 2 or 3 months ago, patched it 4 days ago and 2 days after i started a new game

i dont think i patched it wrong, i mean its just drag/drop and overwrit the old files

at the moment im trying a new file with the newest base game and patch
maybe the base game was to old
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on Oct 25, 2022, 06:45 PM
As DougTheC always says it's recomended to delete the rpyc files too when you patch. Rarely but it can cause some errors if it's not overwritten.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Oct 27, 2022, 04:42 PM
Quote from: kawabaka on Oct 23, 2022, 09:43 AMI don't know if this has been mentioned before but there are these event interactions with girls which have give them the wrong traits if they are virgins (so it's not actually a bug but rather just wrong results). Whenever there is an event such as the massage event or that event in which you can either join the crowd or go on stage, if you yourself choose to have sex with a virgin girl, they will receive the "housebroken" trait rather than the "teachers pet" or "traumatized" trait (Depending if they wanted it or not). Then there is also the event at the beach at which you can choose between putting oil on them or having sex. If you choose sex (and they accept) they even remain virgin after that.

You're right, there were problems with those checks. I will correct it in v0.3.

Quote from: cottonb on Oct 25, 2022, 05:10 PMi downloaded the base game like 2 or 3 months ago, patched it 4 days ago and 2 days after i started a new game

i dont think i patched it wrong, i mean its just drag/drop and overwrit the old files

at the moment im trying a new file with the newest base game and patch
maybe the base game was to old

Yes your save is broken. Try this to fix it, if you can load your save before the bug happens:
- Call the console with Shift+o
- Type the following in the console:
plaza.action = False
Title: Re: [Feedback] *BUG REPORTS*
Post by: gleansome on Nov 03, 2022, 09:32 PM
Hello - I have an issue where the girl's pic in the "Girls" section never changes.  End day, new week, the pic stays the same.  I can train to stay naked, but then that pic sticks and never changes, too. Any tips/fixes?
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Nov 04, 2022, 10:00 AM
Quote from: gleansome on Nov 03, 2022, 09:32 PMHello - I have an issue where the girl's pic in the "Girls" section never changes.  End day, new week, the pic stays the same.  I can train to stay naked, but then that pic sticks and never changes, too. Any tips/fixes?

That's never happened before, the most likely answer is that you have a girlpack with a single profile picture. I don't know what else could cause that.
Title: Re: [Feedback] *BUG REPORTS*
Post by: gleansome on Nov 04, 2022, 03:58 PM
Thanks for the reply.  The girlpack in question has hundreds of profile pics, but I had a look, and the problem might be that it had only one pic where the only tag was profile (i.e. all the others are profile + something else)...that seems to be what caused it, but I'll see if it recurs.
Title: Re: [Feedback] *BUG REPORTS*
Post by: DougTheC on Nov 09, 2022, 01:24 AM
Let's call a toad a toad...
----

Typos as noticed (since June):

Spoiler
BKdialogue.rpy  (Community dialogue also fixed on Google spreadsheet)
Change (line 2256)
  looks flustered
to
  looks flustered.

Change (line 2256)
  bright red, it
to
  bright red; it

Change (line 2267)
  Baby what's
to
  Baby, what's

Change (line 2267)
  [girl.name] calm
to
  [girl.name], calm

Change (line 3454, 3457)
  you her answer
to
  you her answer.

BKcity_events.rpy
Change (line 227)
  freezes in its track
to
  freezes in its tracks

Change (line 373)
  willow
to
  Willow

BKstory_events.rpy
Change (line 7804)
  Here
to
  Here's

Change (line 8960)
  meanning
to
  meaning

Change (line 8960)  Quotes that are not literals like programming strings should
        include ending punctuation, with exceptions like not including question mark if
        quoted section is not a question.
  'crumble'.
to
  'crumble.'

Change (line 9114)  Second request.
              Gizel should know proper scientific genus for toads, not frogs. The rest can be made up,
                especially as commonly-called "horny toads" are actually lizards.
  batrachius
to
  bufo

Change (line 9193)
  you mouth
to
  your mouth

Change (line 9213)
  inoffensively
to
  ineffectively

Change (line 9237)
  walls of her womb move apart
to
  walls of her pussy move apart

OR
  walls of her channel move apart

Change (line 10156)
  Bumping
to
  Bumped

[close]
Title: Re: [Feedback] *BUG REPORTS*
Post by: Inuman9668 on Nov 11, 2022, 08:41 PM
been a while since I've played the game so i decided to wipe the game folder clean and reinstall girl packs and mods as well. unfortunately  I've only managed to boot up the game a few times. most times i got the following trace back.

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/girls/Akali (League of Legends)/_events.rpy", line 40, in script
    image menagerie_games = ProportionalScale("girls/Akali (League of Legends)/special/menagerie games.jpg", config.screen_width//1, config.screen_height//1)
  File "game/girls/Akali (League of Legends)/_events.rpy", line 40, in script
    image menagerie_games = ProportionalScale("girls/Akali (League of Legends)/special/menagerie games.jpg", config.screen_width//1, config.screen_height//1)
Exception: Possible infinite loop.

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

Full traceback:
  File "renpy/bootstrap.py", line 331, in bootstrap
    renpy.main.main()
  File "renpy/main.py", line 560, in main
    renpy.game.context().run(node)
  File "game/girls/Akali (League of Legends)/_events.rpy", line 40, in script
    image menagerie_games = ProportionalScale("girls/Akali (League of Legends)/special/menagerie games.jpg", config.screen_width//1, config.screen_height//1)
  File "game/girls/Akali (League of Legends)/_events.rpy", line 40, in script
    image menagerie_games = ProportionalScale("girls/Akali (League of Legends)/special/menagerie games.jpg", config.screen_width//1, config.screen_height//1)
  File "renpy/execution.py", line 61, in check_infinite_loop
    raise Exception("Possible infinite loop.")
Exception: Possible infinite loop.

---------------------------------------------

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/kite_jobgirl_variables.rpy", line 44, in script
    image beach_arrival = "NPC/Jobgirl/beach/beach arrival.webp"
  File "game/kite_jobgirl_variables.rpy", line 44, in script
    image beach_arrival = "NPC/Jobgirl/beach/beach arrival.webp"
Exception: Possible infinite loop.

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

Full traceback:
  File "renpy/bootstrap.py", line 331, in bootstrap
    renpy.main.main()
  File "renpy/main.py", line 560, in main
    renpy.game.context().run(node)
  File "game/kite_jobgirl_variables.rpy", line 44, in script
    image beach_arrival = "NPC/Jobgirl/beach/beach arrival.webp"
  File "game/kite_jobgirl_variables.rpy", line 44, in script
    image beach_arrival = "NPC/Jobgirl/beach/beach arrival.webp"
  File "renpy/execution.py", line 61, in check_infinite_loop
    raise Exception("Possible infinite loop.")
Exception: Possible infinite loop.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Nov 14, 2022, 10:58 AM
Quote from: Inuman9668 on Nov 11, 2022, 08:41 PMbeen a while since I've played the game so i decided to wipe the game folder clean and reinstall girl packs and mods as well. unfortunately  I've only managed to boot up the game a few times. most times i got the following trace back.

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/girls/Akali (League of Legends)/_events.rpy", line 40, in script
    image menagerie_games = ProportionalScale("girls/Akali (League of Legends)/special/menagerie games.jpg", config.screen_width//1, config.screen_height//1)
  File "game/girls/Akali (League of Legends)/_events.rpy", line 40, in script
    image menagerie_games = ProportionalScale("girls/Akali (League of Legends)/special/menagerie games.jpg", config.screen_width//1, config.screen_height//1)
Exception: Possible infinite loop.

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

Full traceback:
  File "renpy/bootstrap.py", line 331, in bootstrap
    renpy.main.main()
  File "renpy/main.py", line 560, in main
    renpy.game.context().run(node)
  File "game/girls/Akali (League of Legends)/_events.rpy", line 40, in script
    image menagerie_games = ProportionalScale("girls/Akali (League of Legends)/special/menagerie games.jpg", config.screen_width//1, config.screen_height//1)
  File "game/girls/Akali (League of Legends)/_events.rpy", line 40, in script
    image menagerie_games = ProportionalScale("girls/Akali (League of Legends)/special/menagerie games.jpg", config.screen_width//1, config.screen_height//1)
  File "renpy/execution.py", line 61, in check_infinite_loop
    raise Exception("Possible infinite loop.")
Exception: Possible infinite loop.

---------------------------------------------

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/kite_jobgirl_variables.rpy", line 44, in script
    image beach_arrival = "NPC/Jobgirl/beach/beach arrival.webp"
  File "game/kite_jobgirl_variables.rpy", line 44, in script
    image beach_arrival = "NPC/Jobgirl/beach/beach arrival.webp"
Exception: Possible infinite loop.

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

Full traceback:
  File "renpy/bootstrap.py", line 331, in bootstrap
    renpy.main.main()
  File "renpy/main.py", line 560, in main
    renpy.game.context().run(node)
  File "game/kite_jobgirl_variables.rpy", line 44, in script
    image beach_arrival = "NPC/Jobgirl/beach/beach arrival.webp"
  File "game/kite_jobgirl_variables.rpy", line 44, in script
    image beach_arrival = "NPC/Jobgirl/beach/beach arrival.webp"
  File "renpy/execution.py", line 61, in check_infinite_loop
    raise Exception("Possible infinite loop.")
Exception: Possible infinite loop.
Sorry, don't know what to make of this. Since you're the only one experiencing this, it has to be something about your install and/or your girl packs.

Try removing some girl packs, starting with Akali, see if you can narrow down the problem.
Title: Re: [Feedback] *BUG REPORTS*
Post by: neronero on Jan 10, 2023, 09:04 PM
Odd bug report on F95zone, no idea what to make of this.

Quote from: gengarmite2, post: 9809363, member: 3512435Can anyone help me out ,i have this bug which appears while chatting with girls here is the trace back



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


While running game code:
  File "game/BKmain.rpy", line 1320, in script call
  File "game/BKinteractions.rpy", line 389, in script call
  File "game/BKinteractions.rpy", line 1069, in script call
  File "game/BKinteractions.rpy", line 434, in script call
  File "game/BKinteractions.rpy", line 155, in script
  File "game/BKscreens.rpy", line 7311, in execute
  File "game/BKscreens.rpy", line 7311, in execute
  File "game/BKscreens.rpy", line 7316, in execute
  File "game/BKscreens.rpy", line 1052, in execute
  File "game/BKscreens.rpy", line 1052, in execute
  File "game/BKscreens.rpy", line 1058, in execute
  File "game/BKscreens.rpy", line 1074, in execute
  File "game/BKscreens.rpy", line 1554, in execute
  File "game/BKscreens.rpy", line 1558, in execute
  File "game/BKscreens.rpy", line 1564, in execute
  File "game/BKscreens.rpy", line 1578, in execute
  File "renpy/common/00action_other.rpy", line 540, in __eq__
TypeError: 'unicode' object is not callable


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


Full traceback:
  File "game/BKmain.rpy", line 1320, in script call
  File "game/BKinteractions.rpy", line 389, in script call
  File "game/BKinteractions.rpy", line 1069, in script call
  File "game/BKinteractions.rpy", line 434, in script call
  File "game/BKinteractions.rpy", line 155, in script
  File "renpy/ast.py", line 1919, in execute
  File "renpy/exports.py", line 1010, in menu
  File "renpy/exports.py", line 1250, in display_menu
  File "renpy/ui.py", line 299, in interact
  File "renpy/display\core.py", line 3423, in interact
  File "renpy/display\core.py", line 3856, in interact_core
  File "renpy/display\core.py", line 582, in visit_all
  File "renpy/display\core.py", line 582, in visit_all
  File "renpy/display\core.py", line 582, in visit_all
  File "renpy/display\screen.py", line 451, in visit_all
  File "renpy/display\core.py", line 3856, in <lambda>
  File "renpy/display\screen.py", line 462, in per_interact
  File "renpy/display\screen.py", line 653, in update
  File "game/BKscreens.rpy", line 7311, in execute
  File "game/BKscreens.rpy", line 7311, in execute
  File "game/BKscreens.rpy", line 7316, in execute
  File "game/BKscreens.rpy", line 1052, in execute
  File "game/BKscreens.rpy", line 1052, in execute
  File "game/BKscreens.rpy", line 1058, in execute
  File "game/BKscreens.rpy", line 1074, in execute
  File "game/BKscreens.rpy", line 1554, in execute
  File "game/BKscreens.rpy", line 1558, in execute
  File "game/BKscreens.rpy", line 1564, in execute
  File "game/BKscreens.rpy", line 1578, in execute
  File "renpy/common/00action_other.rpy", line 540, in __eq__

TypeError: 'unicode' object is not callable
[close]
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Jan 13, 2023, 10:06 AM
I seems to be a problem with label 'slave_fear_test', and specifically a call to the dialogue() function but I don't see why this would happen only to this one person, unless they have manually edited something.

I don't believe custom dialogue could cause that bug, but worth checking if they are using any.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Hermenegild on Feb 02, 2023, 09:48 AM
Hi!

I have found a bug in the game. The Girl class has a method called 'is_()', which takes two arguments, the second of them optional and defaulting to "and"; the only supported values of that second argument are "and" and "or", otherwise the function returns None.

Yet in many places the method is called as in
if girl.is_("extravert", "dom"):This call result is None, which is treated as if it was False, therefore such a check is useless. To actually work as intended, that call should be written as
if girl.is_(("extravert", "dom")):or
if girl.is_(["extravert", "dom"]):
You can check the current behavior in the console. Entering MC.girls[0].is_("lewd", "sub") prints "None", but MC.girls[0].is_(("lewd", "sub")) prints "True" or "False" as it should.

I found this bug in many places in BKinteractions.rpy and in one place in BKfarm.rpy. I worked with the latest 0.2 patch, released in July last year.

On a side note, @Goldo, may I ask you to rename the files so that there's no spaces in paths? This is just for three files:

game/kite_jobgirl 1_riddle.rpy
game/kite_jobgirl 2_beach.rpy
game/Mods/Goldo's cool mod/goldo's cool mod.rpy

Just replacing spaces with underscores in filenames should work.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Feb 03, 2023, 03:15 PM
Quote from: Hermenegild on Feb 02, 2023, 09:48 AMHi!

I have found a bug in the game. The Girl class has a method called 'is_()', which takes two arguments, the second of them optional and defaulting to "and"; the only supported values of that second argument are "and" and "or", otherwise the function returns None.

Thank you for spotting that, you're correct there was an error in BKfarm.rpy and a bunch in legacy code in BKinteractions.rpy.

This mostly impacted personal story choices for girls where some paths were locked out, but nothing game breaking. I will fix it in v0.3.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Whiny_tomato on Feb 07, 2023, 04:56 AM
```
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 917, in script
IOError: Couldn't find file 'music/518978_Desert-Winds.mp3'.

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

Full traceback:
  File "game/BKmain.rpy", line 917, in script
  File "renpy/ast.py", line 1443, in execute
    renpy.exports.with_statement(trans, paired)
  File "renpy/exports.py", line 1684, in with_statement
  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 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
  File "renpy/audio/audio.py", line 1082, in periodic_pass
  File "renpy/audio/audio.py", line 518, in periodic
  File "renpy/audio/audio.py", line 69, in load
  File "renpy/loader.py", line 798, in load
IOError: Couldn't find file 'music/518978_Desert-Winds.mp3'.

Windows-10-10.0.22000
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711
Mon Feb  6 23:54:10 2023
```
i've tried closing the game and restarting my computorits a recent problem
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Feb 07, 2023, 09:43 AM
Quote from: Whiny_tomato on Feb 07, 2023, 04:56 AM```
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 917, in script
IOError: Couldn't find file 'music/518978_Desert-Winds.mp3'.

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

Full traceback:
  File "game/BKmain.rpy", line 917, in script
  File "renpy/ast.py", line 1443, in execute
    renpy.exports.with_statement(trans, paired)
  File "renpy/exports.py", line 1684, in with_statement
  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 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
  File "renpy/audio/audio.py", line 1082, in periodic_pass
  File "renpy/audio/audio.py", line 518, in periodic
  File "renpy/audio/audio.py", line 69, in load
  File "renpy/loader.py", line 798, in load
IOError: Couldn't find file 'music/518978_Desert-Winds.mp3'.

Windows-10-10.0.22000
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711
Mon Feb  6 23:54:10 2023
```
i've tried closing the game and restarting my computorits a recent problem

Obvious question: Do you have the file 518978_Desert-Winds.mp3 in the game\music\ directory? It's part of the base game distribution so if you don't, there's likely something wrong with your install.
Title: Bug - 2nd visit to Princess
Post by: Drehschleuder on Feb 15, 2023, 07:31 PM
I'm using the Mac version with the latest patch.
It is a new game and the error always repeats.


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

While running game code:
  File "game/BKchapter2.rpy", line 1472, in script
    return
Exception: Could not find return label (u'game/BKevents.rpy', 1676154577, 17992).

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

Full traceback:
  File "game/BKchapter2.rpy", line 1472, in script
    return
  File "/private/var/folders/8d/46fmtm011md_p12gjx4ppf340000gn/T/AppTranslocation/0F52F292-944B-4C9A-A89D-EFA44EFEC719/d/Brothel_King.app/Contents/Resources/autorun/renpy/ast.py", line 1567, in execute
    next_node(renpy.game.context().lookup_return(pop=True))
  File "/private/var/folders/8d/46fmtm011md_p12gjx4ppf340000gn/T/AppTranslocation/0F52F292-944B-4C9A-A89D-EFA44EFEC719/d/Brothel_King.app/Contents/Resources/autorun/renpy/execution.py", line 710, in lookup_return
    raise Exception("Could not find return label {!r}.".format(self.return_stack[-1]))
Exception: Could not find return label (u'game/BKevents.rpy', 1676154577, 17992).

Darwin-21.6.0-x86_64-i386-64bit
Ren'Py 7.4.10.2178
Brothel King 0.2 v220711
Wed Feb 15 20:21:55 2023
```



Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Feb 16, 2023, 02:32 PM
I'm sorry, I don't support a Mac version so your download is likely fan-made. Maybe write to the poster who shared that distribution?
Title: Re: [Feedback] *BUG REPORTS*
Post by: Yukogrulius on Feb 19, 2023, 10:11 PM
Quote from: Goldo on Nov 14, 2022, 10:58 AM
Quote from: Inuman9668 on Nov 11, 2022, 08:41 PMbeen a while since I've played the game so i decided to wipe the game folder clean and reinstall girl packs and mods as well. unfortunately  I've only managed to boot up the game a few times. most times i got the following trace back.

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/girls/Akali (League of Legends)/_events.rpy", line 40, in script
    image menagerie_games = ProportionalScale("girls/Akali (League of Legends)/special/menagerie games.jpg", config.screen_width//1, config.screen_height//1)
  File "game/girls/Akali (League of Legends)/_events.rpy", line 40, in script
    image menagerie_games = ProportionalScale("girls/Akali (League of Legends)/special/menagerie games.jpg", config.screen_width//1, config.screen_height//1)
Exception: Possible infinite loop.

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

Full traceback:
  File "renpy/bootstrap.py", line 331, in bootstrap
    renpy.main.main()
  File "renpy/main.py", line 560, in main
    renpy.game.context().run(node)
  File "game/girls/Akali (League of Legends)/_events.rpy", line 40, in script
    image menagerie_games = ProportionalScale("girls/Akali (League of Legends)/special/menagerie games.jpg", config.screen_width//1, config.screen_height//1)
  File "game/girls/Akali (League of Legends)/_events.rpy", line 40, in script
    image menagerie_games = ProportionalScale("girls/Akali (League of Legends)/special/menagerie games.jpg", config.screen_width//1, config.screen_height//1)
  File "renpy/execution.py", line 61, in check_infinite_loop
    raise Exception("Possible infinite loop.")
Exception: Possible infinite loop.

---------------------------------------------

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/kite_jobgirl_variables.rpy", line 44, in script
    image beach_arrival = "NPC/Jobgirl/beach/beach arrival.webp"
  File "game/kite_jobgirl_variables.rpy", line 44, in script
    image beach_arrival = "NPC/Jobgirl/beach/beach arrival.webp"
Exception: Possible infinite loop.

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

Full traceback:
  File "renpy/bootstrap.py", line 331, in bootstrap
    renpy.main.main()
  File "renpy/main.py", line 560, in main
    renpy.game.context().run(node)
  File "game/kite_jobgirl_variables.rpy", line 44, in script
    image beach_arrival = "NPC/Jobgirl/beach/beach arrival.webp"
  File "game/kite_jobgirl_variables.rpy", line 44, in script
    image beach_arrival = "NPC/Jobgirl/beach/beach arrival.webp"
  File "renpy/execution.py", line 61, in check_infinite_loop
    raise Exception("Possible infinite loop.")
Exception: Possible infinite loop.
Sorry, don't know what to make of this. Since you're the only one experiencing this, it has to be something about your install and/or your girl packs.

Try removing some girl packs, starting with Akali, see if you can narrow down the problem.
I have this error very often.
It happens when there are too many girls. It can swear at any picture, even at the files of the game itself. Most likely it's because I have an old PC.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Feb 21, 2023, 04:40 PM
Okay, if you are having this exact same error, I strongly suggest deactivating the Akali girlpack and test to see if it actually solves your problem (on a new game).

Make sure it is the exact same error, though. Lots of things can cause an infinite loop.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Yukogrulius on Feb 21, 2023, 06:03 PM
Quote from: Goldo on Feb 21, 2023, 04:40 PMOkay, if you are having this exact same error, I strongly suggest deactivating the Akali girlpack and test to see if it actually solves your problem (on a new game).

Make sure it is the exact same error, though. Lots of things can cause an infinite loop.
I just delete a few girls. And everything works. When it was 700, there was an infinite loop error. Now 607, game working. I just think, that the error is caused, that my computer can't handle with a huge number of pictures. I divided the pack into 2 parts and both parts worked, but together it's too much.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Overnin on Mar 06, 2023, 12:43 PM
Quote from: j01ntr0l1a on Jun 02, 2022, 01:53 AMhey i dunno if i saved mod somewhere i shouldnt or something but i get this error when i open mod file in main menu any help would be appreciated, thanks

I'm sorry, but an uncaught exception occurred.

While running game code:
IOError: Couldn't find file 'mods/Trait King/title.webm'.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  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 "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
    raise_(exc[0], exc[1], exc[2])
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
    periodic_pass()
  File "renpy/audio/audio.py", line 1082, in periodic_pass
    c.periodic()
  File "renpy/audio/audio.py", line 518, in periodic
    topf = load(filename)
  File "renpy/audio/audio.py", line 69, in load
    rv = renpy.loader.load(fn)
  File "renpy/loader.py", line 798, in load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'mods/Trait King/title.webm'.

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220519
Wed Jun  1 18:50:43 2022



Have you been able to solve this issue?

I seem to have this issue with multiple mods, such as the ChrisJobMod, HH mod, and Trait King. I have tried reinstalling the mods and BK 0.2, but I have not got it to work yet.

ChrisJobMod shows:

I'm sorry, but an uncaught exception occurred.

While loading <'Image' u'mods/ChrisJobMod/titleJobMod.png'>:
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  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 "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
    raise_(exc[0], exc[1], exc[2])
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
    periodic_pass()
  File "renpy/audio/audio.py", line 1082, in periodic_pass
    c.periodic()
  File "renpy/audio/audio.py", line 518, in periodic
    topf = load(filename)
  File "renpy/audio/audio.py", line 69, in load
    rv = renpy.loader.load(fn)
  File "renpy/loader.py", line 798, in load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

HH mod shows:

[code]
I'm sorry, but an uncaught exception occurred.

While loading <'Image' u'mods/Headhunter/Headhunter_portrait2.webp'>:
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  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 "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
    raise_(exc[0], exc[1], exc[2])
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
    periodic_pass()
  File "renpy/audio/audio.py", line 1082, in periodic_pass
    c.periodic()
  File "renpy/audio/audio.py", line 518, in periodic
    topf = load(filename)
  File "renpy/audio/audio.py", line 69, in load
    rv = renpy.loader.load(fn)
  File "renpy/loader.py", line 798, in load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

Windows-10-10.0.22621
Ren'Py 7.4.11.2266
Brothel King 0.2 v220211R
Mon Mar  6 08:55:55 2023


Windows-10-10.0.22621
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711
Mon Mar  6 08:53:24 2023
[/code]
Title: Re: [Feedback] *BUG REPORTS*
Post by: Overnin on Mar 06, 2023, 12:59 PM
Quote from: Overnin on Mar 06, 2023, 12:43 PM
Quote from: j01ntr0l1a on Jun 02, 2022, 01:53 AMhey i dunno if i saved mod somewhere i shouldnt or something but i get this error when i open mod file in main menu any help would be appreciated, thanks

I'm sorry, but an uncaught exception occurred.

While running game code:
IOError: Couldn't find file 'mods/Trait King/title.webm'.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  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 "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
    raise_(exc[0], exc[1], exc[2])
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
    periodic_pass()
  File "renpy/audio/audio.py", line 1082, in periodic_pass
    c.periodic()
  File "renpy/audio/audio.py", line 518, in periodic
    topf = load(filename)
  File "renpy/audio/audio.py", line 69, in load
    rv = renpy.loader.load(fn)
  File "renpy/loader.py", line 798, in load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'mods/Trait King/title.webm'.

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220519
Wed Jun  1 18:50:43 2022



Have you been able to solve this issue?

I seem to have this issue with multiple mods, such as the ChrisJobMod, HH mod, and Trait King. I have tried reinstalling the mods and BK 0.2, but I have not got it to work yet.

ChrisJobMod shows:

I'm sorry, but an uncaught exception occurred.

While loading <'Image' u'mods/ChrisJobMod/titleJobMod.png'>:
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  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 "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
    raise_(exc[0], exc[1], exc[2])
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
    periodic_pass()
  File "renpy/audio/audio.py", line 1082, in periodic_pass
    c.periodic()
  File "renpy/audio/audio.py", line 518, in periodic
    topf = load(filename)
  File "renpy/audio/audio.py", line 69, in load
    rv = renpy.loader.load(fn)
  File "renpy/loader.py", line 798, in load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

HH mod shows:

[code]
I'm sorry, but an uncaught exception occurred.

While loading <'Image' u'mods/Headhunter/Headhunter_portrait2.webp'>:
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  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 "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
    raise_(exc[0], exc[1], exc[2])
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
    periodic_pass()
  File "renpy/audio/audio.py", line 1082, in periodic_pass
    c.periodic()
  File "renpy/audio/audio.py", line 518, in periodic
    topf = load(filename)
  File "renpy/audio/audio.py", line 69, in load
    rv = renpy.loader.load(fn)
  File "renpy/loader.py", line 798, in load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

Windows-10-10.0.22621
Ren'Py 7.4.11.2266
Brothel King 0.2 v220211R
Mon Mar  6 08:55:55 2023


Windows-10-10.0.22621
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711
Mon Mar  6 08:53:24 2023
[/code]


HH mod show:

I'm sorry, but an uncaught exception occurred.

While loading <'Image' u'mods/Headhunter/Headhunter_portrait2.webp'>:
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  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 "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
    raise_(exc[0], exc[1], exc[2])
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
    periodic_pass()
  File "renpy/audio/audio.py", line 1082, in periodic_pass
    c.periodic()
  File "renpy/audio/audio.py", line 518, in periodic
    topf = load(filename)
  File "renpy/audio/audio.py", line 69, in load
    rv = renpy.loader.load(fn)
  File "renpy/loader.py", line 798, in load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

Windows-10-10.0.22621
Ren'Py 7.4.11.2266
Brothel King 0.2 v220211R
Mon Mar  6 08:55:55 2023
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on Mar 06, 2023, 03:25 PM
Quote from: Overnin on Mar 06, 2023, 12:59 PM
Quote from: Overnin on Mar 06, 2023, 12:43 PM
Quote from: j01ntr0l1a on Jun 02, 2022, 01:53 AMhey i dunno if i saved mod somewhere i shouldnt or something but i get this error when i open mod file in main menu any help would be appreciated, thanks

I'm sorry, but an uncaught exception occurred.

While running game code:
IOError: Couldn't find file 'mods/Trait King/title.webm'.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  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 "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
    raise_(exc[0], exc[1], exc[2])
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
    periodic_pass()
  File "renpy/audio/audio.py", line 1082, in periodic_pass
    c.periodic()
  File "renpy/audio/audio.py", line 518, in periodic
    topf = load(filename)
  File "renpy/audio/audio.py", line 69, in load
    rv = renpy.loader.load(fn)
  File "renpy/loader.py", line 798, in load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'mods/Trait King/title.webm'.

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220519
Wed Jun  1 18:50:43 2022



Have you been able to solve this issue?

I seem to have this issue with multiple mods, such as the ChrisJobMod, HH mod, and Trait King. I have tried reinstalling the mods and BK 0.2, but I have not got it to work yet.

ChrisJobMod shows:

I'm sorry, but an uncaught exception occurred.

While loading <'Image' u'mods/ChrisJobMod/titleJobMod.png'>:
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  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 "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
    raise_(exc[0], exc[1], exc[2])
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
    periodic_pass()
  File "renpy/audio/audio.py", line 1082, in periodic_pass
    c.periodic()
  File "renpy/audio/audio.py", line 518, in periodic
    topf = load(filename)
  File "renpy/audio/audio.py", line 69, in load
    rv = renpy.loader.load(fn)
  File "renpy/loader.py", line 798, in load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

HH mod shows:

[code]
I'm sorry, but an uncaught exception occurred.

While loading <'Image' u'mods/Headhunter/Headhunter_portrait2.webp'>:
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  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 "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
    raise_(exc[0], exc[1], exc[2])
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
    periodic_pass()
  File "renpy/audio/audio.py", line 1082, in periodic_pass
    c.periodic()
  File "renpy/audio/audio.py", line 518, in periodic
    topf = load(filename)
  File "renpy/audio/audio.py", line 69, in load
    rv = renpy.loader.load(fn)
  File "renpy/loader.py", line 798, in load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

Windows-10-10.0.22621
Ren'Py 7.4.11.2266
Brothel King 0.2 v220211R
Mon Mar  6 08:55:55 2023


Windows-10-10.0.22621
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711
Mon Mar  6 08:53:24 2023
[/code]


HH mod show:

I'm sorry, but an uncaught exception occurred.

While loading <'Image' u'mods/Headhunter/Headhunter_portrait2.webp'>:
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  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 "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
    raise_(exc[0], exc[1], exc[2])
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
    periodic_pass()
  File "renpy/audio/audio.py", line 1082, in periodic_pass
    c.periodic()
  File "renpy/audio/audio.py", line 518, in periodic
    topf = load(filename)
  File "renpy/audio/audio.py", line 69, in load
    rv = renpy.loader.load(fn)
  File "renpy/loader.py", line 798, in load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

Windows-10-10.0.22621
Ren'Py 7.4.11.2266
Brothel King 0.2 v220211R
Mon Mar  6 08:55:55 2023


Most likely you didnt installed the mod's correctly.
https://henthighschool.net/brothel-king/resources-trait-king-mod/30/ (https://henthighschool.net/brothel-king/resources-trait-king-mod/30/)
Title: Re: [Feedback] *BUG REPORTS*
Post by: Overnin on Mar 06, 2023, 05:03 PM
Quote from: vadi92 on Mar 06, 2023, 03:25 PM
Quote from: Overnin on Mar 06, 2023, 12:59 PM
Quote from: Overnin on Mar 06, 2023, 12:43 PM
Quote from: j01ntr0l1a on Jun 02, 2022, 01:53 AMhey i dunno if i saved mod somewhere i shouldnt or something but i get this error when i open mod file in main menu any help would be appreciated, thanks

I'm sorry, but an uncaught exception occurred.

While running game code:
IOError: Couldn't find file 'mods/Trait King/title.webm'.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  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 "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
    raise_(exc[0], exc[1], exc[2])
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
    periodic_pass()
  File "renpy/audio/audio.py", line 1082, in periodic_pass
    c.periodic()
  File "renpy/audio/audio.py", line 518, in periodic
    topf = load(filename)
  File "renpy/audio/audio.py", line 69, in load
    rv = renpy.loader.load(fn)
  File "renpy/loader.py", line 798, in load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'mods/Trait King/title.webm'.

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220519
Wed Jun  1 18:50:43 2022



Have you been able to solve this issue?

I seem to have this issue with multiple mods, such as the ChrisJobMod, HH mod, and Trait King. I have tried reinstalling the mods and BK 0.2, but I have not got it to work yet.

ChrisJobMod shows:

I'm sorry, but an uncaught exception occurred.

While loading <'Image' u'mods/ChrisJobMod/titleJobMod.png'>:
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  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 "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
    raise_(exc[0], exc[1], exc[2])
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
    periodic_pass()
  File "renpy/audio/audio.py", line 1082, in periodic_pass
    c.periodic()
  File "renpy/audio/audio.py", line 518, in periodic
    topf = load(filename)
  File "renpy/audio/audio.py", line 69, in load
    rv = renpy.loader.load(fn)
  File "renpy/loader.py", line 798, in load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

HH mod shows:

[code]
I'm sorry, but an uncaught exception occurred.

While loading <'Image' u'mods/Headhunter/Headhunter_portrait2.webp'>:
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  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 "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
    raise_(exc[0], exc[1], exc[2])
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
    periodic_pass()
  File "renpy/audio/audio.py", line 1082, in periodic_pass
    c.periodic()
  File "renpy/audio/audio.py", line 518, in periodic
    topf = load(filename)
  File "renpy/audio/audio.py", line 69, in load
    rv = renpy.loader.load(fn)
  File "renpy/loader.py", line 798, in load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

Windows-10-10.0.22621
Ren'Py 7.4.11.2266
Brothel King 0.2 v220211R
Mon Mar  6 08:55:55 2023


Windows-10-10.0.22621
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711
Mon Mar  6 08:53:24 2023
[/code]


HH mod show:

I'm sorry, but an uncaught exception occurred.

While loading <'Image' u'mods/Headhunter/Headhunter_portrait2.webp'>:
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  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 "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
    raise_(exc[0], exc[1], exc[2])
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
    periodic_pass()
  File "renpy/audio/audio.py", line 1082, in periodic_pass
    c.periodic()
  File "renpy/audio/audio.py", line 518, in periodic
    topf = load(filename)
  File "renpy/audio/audio.py", line 69, in load
    rv = renpy.loader.load(fn)
  File "renpy/loader.py", line 798, in load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

Windows-10-10.0.22621
Ren'Py 7.4.11.2266
Brothel King 0.2 v220211R
Mon Mar  6 08:55:55 2023


Most likely you didnt installed the mod's correctly.
https://henthighschool.net/brothel-king/resources-trait-king-mod/30/ (https://henthighschool.net/brothel-king/resources-trait-king-mod/30/)

Thank you a ton, guess I skipped over to far when reading.

Still a bit of confusion though. The ChrisJobMod file only has the RPY and title.png. Does the title.png go into the game folder as well, or does everything go into the mods folder?
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on Mar 06, 2023, 06:22 PM
Everything else go into the mods folder.
https://imgur.com/a/C3O6yNu (https://imgur.com/a/C3O6yNu)

Only the TKevents.rpy from TraitKing go into the game folder normaly.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Mar 10, 2023, 05:56 PM
Quote from: Overnin on Mar 06, 2023, 12:43 PM
Quote from: j01ntr0l1a on Jun 02, 2022, 01:53 AMhey i dunno if i saved mod somewhere i shouldnt or something but i get this error when i open mod file in main menu any help would be appreciated, thanks

I'm sorry, but an uncaught exception occurred.

While running game code:
IOError: Couldn't find file 'mods/Trait King/title.webm'.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  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 "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
    raise_(exc[0], exc[1], exc[2])
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
    periodic_pass()
  File "renpy/audio/audio.py", line 1082, in periodic_pass
    c.periodic()
  File "renpy/audio/audio.py", line 518, in periodic
    topf = load(filename)
  File "renpy/audio/audio.py", line 69, in load
    rv = renpy.loader.load(fn)
  File "renpy/loader.py", line 798, in load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'mods/Trait King/title.webm'.

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220519
Wed Jun  1 18:50:43 2022



Have you been able to solve this issue?

I seem to have this issue with multiple mods, such as the ChrisJobMod, HH mod, and Trait King. I have tried reinstalling the mods and BK 0.2, but I have not got it to work yet.

ChrisJobMod shows:

I'm sorry, but an uncaught exception occurred.

While loading <'Image' u'mods/ChrisJobMod/titleJobMod.png'>:
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  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 "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
    raise_(exc[0], exc[1], exc[2])
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
    periodic_pass()
  File "renpy/audio/audio.py", line 1082, in periodic_pass
    c.periodic()
  File "renpy/audio/audio.py", line 518, in periodic
    topf = load(filename)
  File "renpy/audio/audio.py", line 69, in load
    rv = renpy.loader.load(fn)
  File "renpy/loader.py", line 798, in load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

HH mod shows:

[code]
I'm sorry, but an uncaught exception occurred.

While loading <'Image' u'mods/Headhunter/Headhunter_portrait2.webp'>:
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  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 "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
    raise_(exc[0], exc[1], exc[2])
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
    periodic_pass()
  File "renpy/audio/audio.py", line 1082, in periodic_pass
    c.periodic()
  File "renpy/audio/audio.py", line 518, in periodic
    topf = load(filename)
  File "renpy/audio/audio.py", line 69, in load
    rv = renpy.loader.load(fn)
  File "renpy/loader.py", line 798, in load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'mods/King's Way/KWtitle.webm'.

Windows-10-10.0.22621
Ren'Py 7.4.11.2266
Brothel King 0.2 v220211R
Mon Mar  6 08:55:55 2023


Windows-10-10.0.22621
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711
Mon Mar  6 08:53:24 2023
[/code]


Well, it's quite straightforward: Do you have the following subfolders and files in the game/mods/ folder?
Trait King/title.webm
King's Way/KWtitle.webm

If not, there's probably something wrong with your mod installation.
Title: Re: [Feedback] *BUG REPORTS*
Post by: DougTheC on Apr 11, 2023, 04:29 AM
Quote from: Drehschleuder on Feb 15, 2023, 07:31 PMI'm using the Mac version with the latest patch.
It is a new game and the error always repeats.


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

While running game code:
  File "game/BKchapter2.rpy", line 1472, in script
    return
Exception: Could not find return label (u'game/BKevents.rpy', 1676154577, 17992).

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

Full traceback:
  File "game/BKchapter2.rpy", line 1472, in script
    return
  File "/private/var/folders/8d/46fmtm011md_p12gjx4ppf340000gn/T/AppTranslocation/0F52F292-944B-4C9A-A89D-EFA44EFEC719/d/Brothel_King.app/Contents/Resources/autorun/renpy/ast.py", line 1567, in execute
    next_node(renpy.game.context().lookup_return(pop=True))
  File "/private/var/folders/8d/46fmtm011md_p12gjx4ppf340000gn/T/AppTranslocation/0F52F292-944B-4C9A-A89D-EFA44EFEC719/d/Brothel_King.app/Contents/Resources/autorun/renpy/execution.py", line 710, in lookup_return
    raise Exception("Could not find return label {!r}.".format(self.return_stack[-1]))
Exception: Could not find return label (u'game/BKevents.rpy', 1676154577, 17992).

Darwin-21.6.0-x86_64-i386-64bit
Ren'Py 7.4.10.2178
Brothel King 0.2 v220711
Wed Feb 15 20:21:55 2023
```





Quote from: White Baron, post: 10469442, member: 2841271I have the same problem, could you solve the issue?



Game is not formally supported on Macs, but problems might be caused by two things: file permissions and protections against running unregistered / unknown source downloads. (App Translocation)

Try info from these links (no promises).

You will need to adjust their steps to apply to BK.


https://f95zone.to/threads/permission-fixer-for-mac-and-linux.24233/


https://f95zone.to/threads/tales-of-androgyny-v0-3-31-1-majalis.1643/post-9713214


https://f95zone.to/threads/monster-girl-1-000-v19-0-0e-twistedscarlett.74670/post-6074203



Title: Re: [Feedback] *BUG REPORTS*
Post by: neronero on May 09, 2023, 05:35 AM
Quote from: kokmaker on May 03, 2023, 06:09 AMHow do I get the bedded achievements for the princess and the banker girl? I completed the TJB special more than a few times and got the scenes but the achievement has yet to pop. As for the princess, I'm not sure what the correct route is, if it exists.
Crossposting this here as a bug: "h banker" achievement is never unlocked.
(princess route climax doesn't exist yet)
Title: Re: [Feedback] *BUG REPORTS*
Post by: father77 on May 17, 2023, 08:02 PM
Cant sell any slaves in my game, tried to make a new game and sellback the first slave you buy.. still cant do it. have tried to ignore and rollback.. but any slave i try to sell triggers error and theres no way past it.

I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/BKmain.rpy", line 1386, in script
python:
File "game/BKmain.rpy", line 1389, in <module>
MC.sell(slavemarket, girl, price)
File "game/BKclasses.rpy", line 1087, in sell
if not obj.type.sellable:
AttributeError: 'unicode' object has no attribute 'sellable'

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

Full traceback:
File "game/BKmain.rpy", line 1386, 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/BKmain.rpy", line 1389, in <module>
MC.sell(slavemarket, girl, price)
File "game/BKclasses.rpy", line 1087, in sell
if not obj.type.sellable:
AttributeError: 'unicode' object has no attribute 'sellable'

Windows-10-10.0.22621
Ren'Py 7.4.11.2266
Brothel King 0.2 v220211R
Wed May 17 15:56:34 2023
```
Title: Re: [Feedback] *BUG REPORTS*
Post by: roscoson on May 17, 2023, 11:21 PM
I installed the patch an now a passing script failed message shows up every time I try to play the game. Why invent a patch that makes the game unplayable?
Title: Re: [Feedback] *BUG REPORTS*
Post by: Deimos96 on May 18, 2023, 12:46 AM
Quote from: roscoson on May 17, 2023, 11:21 PMI installed the patch an now a passing script failed message shows up every time I try to play the game. Why invent a patch that makes the game unplayable?

Did you install the patch correctly? Try and delete all RPYC files before booting the game.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on May 18, 2023, 11:50 AM
Quote from: father77 on May 17, 2023, 08:02 PMCant sell any slaves in my game, tried to make a new game and sellback the first slave you buy.. still cant do it. have tried to ignore and rollback.. but any slave i try to sell triggers error and theres no way past it.

I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/BKmain.rpy", line 1386, in script
python:
File "game/BKmain.rpy", line 1389, in <module>
MC.sell(slavemarket, girl, price)
File "game/BKclasses.rpy", line 1087, in sell
if not obj.type.sellable:
AttributeError: 'unicode' object has no attribute 'sellable'

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

Full traceback:
File "game/BKmain.rpy", line 1386, 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/BKmain.rpy", line 1389, in <module>
MC.sell(slavemarket, girl, price)
File "game/BKclasses.rpy", line 1087, in sell
if not obj.type.sellable:
AttributeError: 'unicode' object has no attribute 'sellable'

Windows-10-10.0.22621
Ren'Py 7.4.11.2266
Brothel King 0.2 v220211R
Wed May 17 15:56:34 2023
```

You did not install the latest patch, start there with a new game.

Quote from: roscoson on May 17, 2023, 11:21 PMI installed the patch an now a passing script failed message shows up every time I try to play the game. Why invent a patch that makes the game unplayable?

This is most likely because you didn't install the patch in the right folder ('game/') or you didn't overwrite old files, resulting in conflicts. You will need to scrub the patch files manually if that's the case, then delete every .rpyc file, and finally re-install the patch in the 'game/' folder making sure to choose 'overwrite'.
Title: Re: [Feedback] *BUG REPORTS*
Post by: roscoson on May 19, 2023, 12:06 AM
This appeared after I did what you said to do after deleting all RYPC files.

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/game patch 0.2/BKfunctions.rpy", line 13, in <module>
    import ConfigParser
ImportError: No module named ConfigParser

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

Full traceback:
  File "renpy/bootstrap.py", line 331, in bootstrap
    renpy.main.main()
  File "renpy/main.py", line 492, 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 485, in finish_load
    node.early_execute()
  File "renpy/ast.py", line 985, in early_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/game patch 0.2/BKfunctions.rpy", line 13, in <module>
    import ConfigParser
ImportError: No module named ConfigParser

Windows-10-10.0.18362
Ren'Py 7.4.11.2266
 
Fri May 19 12:03:24 2023
Please explain what i did wrong.
Title: Re: [Feedback] *BUG REPORTS*
Post by: neronero on May 19, 2023, 08:35 AM
Quote from: TekynineTime, post: 10802357, member: 5846697I have been having issues trying to run version 0.2 .

I have added mods, that were working before but I have now been getting an exception right at the start after skipping the intro and picking the game mode/character, which I am able to ignore. Another exception right after pick what my shop starts out as, which I can again ignore, and finally another exception right after ignoring the past exception. I am not sure if i added something in the wrong way or not, I have tried re downloading, but still am having issues.

Here are the 3 exceptions.

----------------
First one after intro and game starting selections:
----------------

I'm sorry, but an uncaught exception occurred.


While running game code:
  File "game/BKstart.rpy", line 86, in script
    $ calendar.updates()
  File "game/BKstart.rpy", line 86, in <module>
    $ calendar.updates()
  File "game/BKclasses.rpy", line 2753, in updates
    weekly_updates(new_district)
  File "game/BKfunctions.rpy", line 2501, in weekly_updates
    cycle_free_girls()
  File "game/BKfunctions.rpy", line 580, in cycle_free_girls
    girl.location = game.locations[i]
IndexError: list index out of range

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

Full traceback:
  File "game/BKstart.rpy", line 86, in script
    $ calendar.updates()
  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/BKstart.rpy", line 86, in <module>
    $ calendar.updates()
  File "game/BKclasses.rpy", line 2753, in updates
    weekly_updates(new_district)
  File "game/BKfunctions.rpy", line 2501, in weekly_updates
    cycle_free_girls()
  File "game/BKfunctions.rpy", line 580, in cycle_free_girls
    girl.location = game.locations[i]
  File "renpy/python.py", line 992, in __getitem__
    rv = list.__getitem__(self, index)
IndexError: list index out of range

Windows-10-10.0.22621
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711
Fri May 19 00:47:04 2023

(removed the 2nd and 3rd exceptions)
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on May 19, 2023, 02:13 PM
Quote from: roscoson on May 19, 2023, 12:06 AMThis appeared after I did what you said to do after deleting all RYPC files.

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/game patch 0.2/BKfunctions.rpy", line 13, in <module>
    import ConfigParser
ImportError: No module named ConfigParser

[...]
Please explain what i did wrong.

In your game/ folder, there should be a file called 'ConfigParser.py'. If it's not there, you probably deleted it by mistake. My advice would be to re-install cleanly at this stage, because there's no telling if other files haven't been deleted also.

To make a clean install, please follow the instructions closely:
Quote from: Goldo on May 13, 2022, 10:24 AMDownloads
You need at least 3 things to install Brothel King: the base game, the latest patch, and girl packs! If it is your first time, I strongly suggest starting out with the base girl pack. Follow the installation instructions carefully.

Base game (v0.2): https://www.mediafire.com/file/h81k39vblrz5co3/Brothel_King-0.2.zip/file
Install this first. Unpack it to a clean folder, and please don't try to overwrite older versions of BK.

Game patch (0.2): https://www.mediafire.com/file/nnxnr2pkopkzv2y/game_patch_0.2.zip/file
Install this on top of the game files in the 'game/' folder, overwriting existing files as needed. Note that you only ever need the latest patch (not previous ones), and that the link doesn't change and can always be found in my signature.

Base girl pack: https://www.mediafire.com/file/ms86oyaehplz6pn/basic-girl-pack-020.zip/file
Install this in the 'girls/' folder (unless you have set-up custom folders). You don't technically need this girl pack, you could start with any other player-made girl pack or packs, but this one is fully supported, it's very nice, it's got variety, so I highly recommend it.

Title: Re: [Feedback] *BUG REPORTS*
Post by: dylanrivers10000 on May 21, 2023, 08:38 PM
I'm sorry, but an uncaught exception occurred.

While loading <'ProportionalScale' <'Image' u'girls/Darkness/portrait happy (00001).webp'> 200 200 True>:
  File "game/BKmain.rpy", line 919, in script call
    $ calendar.play_alarms() # Also triggers "day" conditional events
  File "game/BKevents.rpy", line 698, in script call
    $ ev.play()
  File "game/BKevents.rpy", line 1256, in script
    call screen OK_screen(title, description, pic = girl.portrait)
  File "renpy/common/000statements.rpy", line 569, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "game/BKclasses.rpy", line 7531, in load
    child = im.cache.get(self.image)
KeyError: <'Image' u'girls/Darkness/portrait happy (00001).webp'>

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

Full traceback:
  File "game/BKmain.rpy", line 919, in script call
    $ calendar.play_alarms() # Also triggers "day" conditional events
  File "game/BKevents.rpy", line 698, in script call
    $ ev.play()
  File "game/BKevents.rpy", line 1256, in script
    call screen OK_screen(title, description, pic = girl.portrait)
  File "renpy/ast.py", line 2015, in execute
    self.call("execute")
  File "renpy/ast.py", line 2003, in call
    return renpy.statements.call(method, parsed, *args, **kwargs)
  File "renpy/statements.py", line 278, in call
    return method(parsed, *args, **kwargs)
  File "renpy/common/000statements.rpy", line 569, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "renpy/exports.py", line 3136, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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 3839, in interact_core
    self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
  File "renpy/display/core.py", line 2565, in draw_screen
    renpy.config.screen_height,
  File "render.pyx", line 492, in renpy.display.render.render_screen
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/layout.py", line 826, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/layout.py", line 826, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/layout.py", line 826, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/screen.py", line 688, in render
    child = renpy.display.render.render(self.child, w, h, st, at)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/layout.py", line 826, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/layout.py", line 1264, in render
    st, at)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/layout.py", line 1029, in render
    surf = render(d, width - x, rh, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/viewport.py", line 572, in render
    rend = renpy.display.render.render(self.children[0], child_width, child_height, st, at)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/layout.py", line 1029, in render
    surf = render(d, width - x, rh, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/transform.py", line 733, in render
    return transform_render(self, width, height, st, at)
  File "accelerator.pyx", line 187, in renpy.display.accelerator.transform_render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/im.py", line 625, in render
    return cache.get(self, render=True)
  File "renpy/display/im.py", line 287, in get
    surf = image.load()
  File "game/BKclasses.rpy", line 7531, in load
    child = im.cache.get(self.image)
  File "renpy/display/im.py", line 357, in get
    self.kill(ce)
  File "renpy/display/im.py", line 369, in kill
    del self.cache[ce.what]
KeyError: <'Image' u'girls/Darkness/portrait happy (00001).webp'>

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711
Sun May 21 15:37:57 2023
Title: Re: [Feedback] *BUG REPORTS*
Post by: roscoson on May 22, 2023, 03:28 AM
Overwrote every file and now it says passing script failed as it did first time I tried it.
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on May 22, 2023, 02:34 PM
Quote from: roscoson on May 22, 2023, 03:28 AMOverwrote every file and now it says passing script failed as it did first time I tried it.

Install the base game. And unzip the patch into Brothelking-pc/game.

https://imgur.com/OM0qe2P (https://imgur.com/OM0qe2P)

If you still cant figure it out how to do it after this. Here is a patched version:

https://www.mediafire.com/file/y9g2sjxvboa4yav/Brothel_King-pc.rar/file (https://www.mediafire.com/file/y9g2sjxvboa4yav/Brothel_King-pc.rar/file)

Just put some girl pack into Brothelking-pc/game/girls
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on May 22, 2023, 02:41 PM
Quote from: dylanrivers10000 on May 21, 2023, 08:38 PMI'm sorry, but an uncaught exception occurred.

While loading <'ProportionalScale' <'Image' u'girls/Darkness/portrait happy (00001).webp'> 200 200 True>:
  File "game/BKmain.rpy", line 919, in script call
    $ calendar.play_alarms() # Also triggers "day" conditional events
  File "game/BKevents.rpy", line 698, in script call
    $ ev.play()
  File "game/BKevents.rpy", line 1256, in script
    call screen OK_screen(title, description, pic = girl.portrait)
  File "renpy/common/000statements.rpy", line 569, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "game/BKclasses.rpy", line 7531, in load
    child = im.cache.get(self.image)
KeyError: <'Image' u'girls/Darkness/portrait happy (00001).webp'>

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

Full traceback:
  File "game/BKmain.rpy", line 919, in script call
    $ calendar.play_alarms() # Also triggers "day" conditional events
  File "game/BKevents.rpy", line 698, in script call
    $ ev.play()
  File "game/BKevents.rpy", line 1256, in script
    call screen OK_screen(title, description, pic = girl.portrait)
  File "renpy/ast.py", line 2015, in execute
    self.call("execute")
  File "renpy/ast.py", line 2003, in call
    return renpy.statements.call(method, parsed, *args, **kwargs)
  File "renpy/statements.py", line 278, in call
    return method(parsed, *args, **kwargs)
  File "renpy/common/000statements.rpy", line 569, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "renpy/exports.py", line 3136, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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 3839, in interact_core
    self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
  File "renpy/display/core.py", line 2565, in draw_screen
    renpy.config.screen_height,
  File "render.pyx", line 492, in renpy.display.render.render_screen
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/layout.py", line 826, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/layout.py", line 826, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/layout.py", line 826, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/screen.py", line 688, in render
    child = renpy.display.render.render(self.child, w, h, st, at)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/layout.py", line 826, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/layout.py", line 1264, in render
    st, at)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/layout.py", line 1029, in render
    surf = render(d, width - x, rh, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/viewport.py", line 572, in render
    rend = renpy.display.render.render(self.children[0], child_width, child_height, st, at)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/layout.py", line 1029, in render
    surf = render(d, width - x, rh, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/transform.py", line 733, in render
    return transform_render(self, width, height, st, at)
  File "accelerator.pyx", line 187, in renpy.display.accelerator.transform_render
  File "render.pyx", line 263, in renpy.display.render.render
  File "renpy/display/im.py", line 625, in render
    return cache.get(self, render=True)
  File "renpy/display/im.py", line 287, in get
    surf = image.load()
  File "game/BKclasses.rpy", line 7531, in load
    child = im.cache.get(self.image)
  File "renpy/display/im.py", line 357, in get
    self.kill(ce)
  File "renpy/display/im.py", line 369, in kill
    del self.cache[ce.what]
KeyError: <'Image' u'girls/Darkness/portrait happy (00001).webp'>

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711
Sun May 21 15:37:57 2023


Your problem commes from your "Darkness" girl pack. Either the game couldnt load it or the image size it's to big.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Jasuke1991 on Jul 01, 2023, 03:36 PM
Hi,
For some reason I get this on bootup.
I've used the latest patched version and even the version posted here in chat, and for some reason on startup this is an error I get.
Is this due to something I'm missing like net framework update or some renpy external files?
[code]
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 309, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 120, in script
    if not persistent.girl_mix["default"]:
  File "game/BKevents.rpy", line 120, in <module>
    if not persistent.girl_mix["default"]:
KeyError: u'default'

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

Full traceback:
  File "renpy/common/00start.rpy", line 309, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 120, in script
    if not persistent.girl_mix["default"]:
  File "renpy/ast.py", line 1898, in execute
    if renpy.python.py_eval(condition):
  File "renpy/python.py", line 2276, in py_eval
    return py_eval_bytecode(code, globals, locals)
  File "renpy/python.py", line 2269, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "game/BKevents.rpy", line 120, in <module>
    if not persistent.girl_mix["default"]:
KeyError: u'default'

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711
Sat Jul  1 16:33:17 2023
[/code]
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on Jul 02, 2023, 05:25 AM
Quote from: Jasuke1991 on Jul 01, 2023, 03:36 PMHi,
For some reason I get this on bootup.
I've used the latest patched version and even the version posted here in chat, and for some reason on startup this is an error I get.
Is this due to something I'm missing like net framework update or some renpy external files?
[code]
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 309, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 120, in script
    if not persistent.girl_mix["default"]:
  File "game/BKevents.rpy", line 120, in <module>
    if not persistent.girl_mix["default"]:
KeyError: u'default'

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

Full traceback:
  File "renpy/common/00start.rpy", line 309, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 120, in script
    if not persistent.girl_mix["default"]:
  File "renpy/ast.py", line 1898, in execute
    if renpy.python.py_eval(condition):
  File "renpy/python.py", line 2276, in py_eval
    return py_eval_bytecode(code, globals, locals)
  File "renpy/python.py", line 2269, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "game/BKevents.rpy", line 120, in <module>
    if not persistent.girl_mix["default"]:
KeyError: u'default'

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711
Sat Jul  1 16:33:17 2023
[/code]

Either press shift+o and type this into the console:
persistent.girl_mix["default"] = []
After typing it reload the game.

Or if this dosn't help then delete both save folder.
1. Brothel_King-pc/game/saves
2. users/your username/appdata/roaming/renpy/bro king

Edit: for this error you can find the answer in the FAQ
Title: Re: [Feedback] *BUG REPORTS*
Post by: Lub3c on Jul 02, 2023, 03:28 PM
Hi,
I've been playing for a while now and when I want to see items in the shop I get this error:
QuoteI'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1723, in script
    $ r = ui.interact()
  File "game/BKmain.rpy", line 1723, in <module>
    $ r = ui.interact()
  File "game/BKscreens.rpy", line 4915, in execute
    screen item_tab(left, right, context):
  File "game/BKscreens.rpy", line 4915, in execute
    screen item_tab(left, right, context):
  File "game/BKscreens.rpy", line 4955, in execute
    if left != None:
  File "game/BKscreens.rpy", line 4962, in execute
    vbox:
  File "game/BKscreens.rpy", line 4967, in execute
    hbox xfill False yfill False spacing 6:
  File "game/BKscreens.rpy", line 4969, in execute
    frame:
  File "game/BKscreens.rpy", line 4998, in execute
    viewport:
  File "game/BKscreens.rpy", line 5005, in execute
    vbox:
  File "game/BKscreens.rpy", line 5023, in execute
    for it in it_list1:
  File "game/BKscreens.rpy", line 5024, in execute
    if it == "more_button":
  File "game/BKscreens.rpy", line 5028, in execute
    $ ttip = it.description
  File "game/BKscreens.rpy", line 5028, in <module>
    $ ttip = it.description
AttributeError: 'bool' object has no attribute 'description'

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

Full traceback:
  File "game/BKmain.rpy", line 1723, in script
    $ r = ui.interact()
  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/BKmain.rpy", line 1723, in <module>
    $ r = ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  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/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 4915, in execute
    screen item_tab(left, right, context):
  File "game/BKscreens.rpy", line 4915, in execute
    screen item_tab(left, right, context):
  File "game/BKscreens.rpy", line 4955, in execute
    if left != None:
  File "game/BKscreens.rpy", line 4962, in execute
    vbox:
  File "game/BKscreens.rpy", line 4967, in execute
    hbox xfill False yfill False spacing 6:
  File "game/BKscreens.rpy", line 4969, in execute
    frame:
  File "game/BKscreens.rpy", line 4998, in execute
    viewport:
  File "game/BKscreens.rpy", line 5005, in execute
    vbox:
  File "game/BKscreens.rpy", line 5023, in execute
    for it in it_list1:
  File "game/BKscreens.rpy", line 5024, in execute
    if it == "more_button":
  File "game/BKscreens.rpy", line 5028, in execute
    $ ttip = it.description
  File "game/BKscreens.rpy", line 5028, in <module>
    $ ttip = it.description
AttributeError: 'bool' object has no attribute 'description'

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711
Sun Jul  2 17:24:19 2023
I don't know what's going on because I was able to go into the shop and buy items before.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Jul 03, 2023, 08:39 AM
Quote from: Lub3c on Jul 02, 2023, 03:28 PMHi,
I've been playing for a while now and when I want to see items in the shop I get this error:
Quote...
I don't know what's going on because I was able to go into the shop and buy items before.

Not sure what is causing that in the first place, could you send me a saved game if it continues?

In the meantime, you can try the following:
- go to your girls' item tab and see if you are able to interact with that normally. If so, try to go back to the shop and see if it fixes anything.
- Open the console (Shift+o) and type
MC.itemsIt should be a list of item objects, but if you see something like 'False' or 'True' amidst the items, that could be the culprit.
- If there are indeed True/False entries in your items, run the following line exactly as shown to get rid of them:
MC.items = [it for it in MC.items if not isinstance(it, bool)]- Check the same for the shop, replacing 'MC' above with 'shop':
shop.itemsshop.items = [it for it in shop.items if not isinstance(it, bool)]
Title: Re: [Feedback] *BUG REPORTS*
Post by: YPJ on Aug 07, 2023, 11:17 AM
hey! im not sure is it a bug or not, but i got this strange mood "bug"(?) sometimes
https://imgur.com/a/qtbAHLN (https://imgur.com/a/qtbAHLN)
1 image my girl have -0.5 mood but i got this Blue Drop badge and im sure its +0,5...
https://imgur.com/a/wto4hao (https://imgur.com/a/wto4hao)
2 image itls looks ok but i got Blue Drop badge and Skull badge in same time but mood is positive
Title: Re: [Feedback] *BUG REPORTS*
Post by: neronero on Aug 07, 2023, 01:13 PM
Quote from: YPJ on Aug 07, 2023, 11:17 AMhey! im not sure is it a bug or not, but i got this strange mood "bug"(?) sometimes
https://imgur.com/a/qtbAHLN (https://imgur.com/a/qtbAHLN)
1 image my girl have -0.5 mood but i got this Blue Drop badge and im sure its +0,5...
https://imgur.com/a/wto4hao (https://imgur.com/a/wto4hao)
2 image itls looks ok but i got Blue Drop badge and Skull badge in same time but mood is positive
Image #1: She may have the "masochist" personality. Masochists are unusual because they become uncomfortable when they're treated well and enjoy the thrill of living in fear.

Image #2: The droplet + skull badge means she hasn't made up her mind if she should trust you (= droplet icon, which you get with a "negative" fear value) or fear you (the skull icon). So in other words, that icon means her fear value is somewhere close to zero. The formulas that determine the mood change, description and icon all differ slightly so you may get different combinations of the exact mood change, text and icon.
Title: Re: [Feedback] *BUG REPORTS*
Post by: YPJ on Aug 07, 2023, 01:27 PM
Quote from: neronero on Aug 07, 2023, 01:13 PM
Quote from: YPJ on Aug 07, 2023, 11:17 AMhey! im not sure is it a bug or not, but i got this strange mood "bug"(?) sometimes
https://imgur.com/a/qtbAHLN (https://imgur.com/a/qtbAHLN)
1 image my girl have -0.5 mood but i got this Blue Drop badge and im sure its +0,5...
https://imgur.com/a/wto4hao (https://imgur.com/a/wto4hao)
2 image itls looks ok but i got Blue Drop badge and Skull badge in same time but mood is positive
Image #1: She may have the "masochist" personality. Masochists are unusual because they become uncomfortable when they're treated well and enjoy the thrill of living in fear.

Image #2: The droplet + skull badge means she hasn't made up her mind if she should trust you (= droplet icon, which you get with a "negative" fear value) or fear you (the skull icon). So in other words, that icon means her fear value is somewhere close to zero. The formulas that determine the mood change, description and icon all differ slightly so you may get different combinations of the exact mood change, text and icon.

#1 and also my interactions with the girl could not affect the mood. i noticed it twice. the first time i just decided that the girl was broken and sold her, and the second time it somehow passed by itself, unfortunately i did not notice how it happened

#2 ok got it. sad that it is impossible to see the mood scale in order to understand at what stage the girl's mood is now
Title: Re: [Feedback] *BUG REPORTS*
Post by: sunti on Aug 14, 2023, 08:14 PM
Hello everyone, my game save file has crashed and I can't load the save. Whenever I try to load the save, the game crashes immediately. However, starting a new game or loading save files from a long time ago works fine. What should I do to resolve this issue?
my English is not good, these are translations :(


Title: Re: [Feedback] *BUG REPORTS*
Post by: Pepitoxxxx on Aug 16, 2023, 02:53 PM
Sorry to bother for this i've got a tiny issue with event.rpy

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


The label _call_free_girl_talk_1 is defined twice, at File "game/girls/Apolonia Lapiedra/_events.rpy", line 181:
        call free_girl_talk(girl) from _call_free_girl_talk_1
and File "game/girls/Boa Hancock/_events.rpyc", line 108:
        call free_girl_talk(girl) from _call_free_girl_talk_1


Ren'Py Version: Ren'Py 7.4.11.2266
Wed Aug 16 15:31:39 2023

[close]
As stated above the game doesn't allow those similar call although they seems to be fallback safeties for events. How should i fix those ? Are those events somehow outdated for the current patch? I've searched a bit to find a fix for this the only thing i've found for now is to change" from _call_free_girl_talk_1" to "...talk_3" cause 2 was already use from another event file resulting in the same error.. I was just wondering if it only require from us to change this iteration without problem or is it just a little workaround that could lead to a bigger problem eventually thanks for answering....
Title: Re: [Feedback] *BUG REPORTS*
Post by: neronero on Aug 16, 2023, 05:33 PM
Quote from: Pepitoxxxx on Aug 16, 2023, 02:53 PMSorry to bother for this i've got a tiny issue with event.rpy

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


The label _call_free_girl_talk_1 is defined twice, at File "game/girls/Apolonia Lapiedra/_events.rpy", line 181:
        call free_girl_talk(girl) from _call_free_girl_talk_1
and File "game/girls/Boa Hancock/_events.rpyc", line 108:
        call free_girl_talk(girl) from _call_free_girl_talk_1


Ren'Py Version: Ren'Py 7.4.11.2266
Wed Aug 16 15:31:39 2023

[close]
As stated above the game doesn't allow those similar call although they seems to be fallback safeties for events. How should i fix those ? Are those events somehow outdated for the current patch? I've searched a bit to find a fix for this the only thing i've found for now is to change" from _call_free_girl_talk_1" to "...talk_3" cause 2 was already use from another event file resulting in the same error.. I was just wondering if it only require from us to change this iteration without problem or is it just a little workaround that could lead to a bigger problem eventually thanks for answering....

I always assumed that the "from ..." part is there to help Goldo with debugging. I don't think it's strictly needed, so it's okay to keep the line simple:
        call free_girl_talk(girl)
If we look at Boa Hancock's events file, the "Note" in the comment there also mentions that you shouldn't use it:
    else: # Defaults to normal city dialog by using 'call free_girl_talk(girl)' if girl and MC have already met (Note: Do NOT use the 'from ...' clause)
        call free_girl_talk(girl) from _call_free_girl_talk_1

If you do still want to keep the "from ..." part for some reason, then increasing the number at the end might lead to a problem when Goldo or someone else tries to do the same later. It would need to be something unique that no one else is likely to use, even accidentally. Eg: from _call_free_girl_talk_apolonia_1
Title: Re: [Feedback] *BUG REPORTS*
Post by: wings on Aug 17, 2023, 08:40 AM
Hi, I got below error while playing. Could you please help me out. Below exception while trying to collect 3 hint of 3 girls(Ninja?).

Exception 1:
-----------------------------------------------------------------------------------------------------------------------------------------
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 162, in script call
    $ selected_district = ui.interact()
  File "game/BKchapter3.rpy", line 370, in script call
    call c3_papa_cells() from _call_c3_papa_cells_1
  File "game/BKchapter3.rpy", line 1499, in script
    $ set_task("Bring a whore to Papa with at least {b}75 in Service, Beauty and Libido{/b}.", "special")
  File "game/BKchapter3.rpy", line 1499, in <module>
    $ set_task("Bring a whore to Papa with at least {b}75 in Service, Beauty and Libido{/b}.", "special")
NameError: name 'set_task' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 162, in script call
    $ selected_district = ui.interact()
  File "game/BKchapter3.rpy", line 370, in script call
    call c3_papa_cells() from _call_c3_papa_cells_1
  File "game/BKchapter3.rpy", line 1499, in script
    $ set_task("Bring a whore to Papa with at least {b}75 in Service, Beauty and Libido{/b}.", "special")
  File "C:\Users\vetri\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\vetri\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKchapter3.rpy", line 1499, in <module>
    $ set_task("Bring a whore to Papa with at least {b}75 in Service, Beauty and Libido{/b}.", "special")
NameError: name 'set_task' is not defined

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Thu Aug 17 14:08:42 2023

Exception 2:
---------------------------------------------------------------------------------------------------------------------------------------
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 162, in script call
    $ selected_district = ui.interact()
  File "game/BKchapter3.rpy", line 221, in script call
    call c3_hint(npc, nin) from _call_c3_hint
  File "game/BKchapter3.rpy", line 386, in script
    show expression npc.char.image_tag
Exception: Not a displayable: None

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

Full traceback:
  File "game/BKmain.rpy", line 162, in script call
    $ selected_district = ui.interact()
  File "game/BKchapter3.rpy", line 221, in script call
    call c3_hint(npc, nin) from _call_c3_hint
  File "game/BKchapter3.rpy", line 386, in script
    show expression npc.char.image_tag
  File "C:\Users\vetri\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1428, in execute
    show_imspec(self.imspec, atl=getattr(self, "atl", None))
  File "C:\Users\vetri\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1385, in show_imspec
    expression = renpy.easy.displayable(expression)
  File "C:\Users\vetri\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\easy.py", line 145, in displayable
    raise Exception("Not a displayable: %r" % (d,))
Exception: Not a displayable: None

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Thu Aug 17 13:53:51 2023

Thanks in advance.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Pepitoxxxx on Aug 18, 2023, 03:31 PM
Quote from: neronero on Aug 16, 2023, 05:33 PM
Quote from: Pepitoxxxx on Aug 16, 2023, 02:53 PMSorry to bother for this i've got a tiny issue with event.rpy

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


The label _call_free_girl_talk_1 is defined twice, at File "game/girls/Apolonia Lapiedra/_events.rpy", line 181:
        call free_girl_talk(girl) from _call_free_girl_talk_1
and File "game/girls/Boa Hancock/_events.rpyc", line 108:
        call free_girl_talk(girl) from _call_free_girl_talk_1


Ren'Py Version: Ren'Py 7.4.11.2266
Wed Aug 16 15:31:39 2023

[close]
As stated above the game doesn't allow those similar call although they seems to be fallback safeties for events. How should i fix those ? Are those events somehow outdated for the current patch? I've searched a bit to find a fix for this the only thing i've found for now is to change" from _call_free_girl_talk_1" to "...talk_3" cause 2 was already use from another event file resulting in the same error.. I was just wondering if it only require from us to change this iteration without problem or is it just a little workaround that could lead to a bigger problem eventually thanks for answering....

I always assumed that the "from ..." part is there to help Goldo with debugging. I don't think it's strictly needed, so it's okay to keep the line simple:
        call free_girl_talk(girl)
If we look at Boa Hancock's events file, the "Note" in the comment there also mentions that you shouldn't use it:
    else: # Defaults to normal city dialog by using 'call free_girl_talk(girl)' if girl and MC have already met (Note: Do NOT use the 'from ...' clause)
        call free_girl_talk(girl) from _call_free_girl_talk_1

If you do still want to keep the "from ..." part for some reason, then increasing the number at the end might lead to a problem when Goldo or someone else tries to do the same later. It would need to be something unique that no one else is likely to use, even accidentally. Eg: from _call_free_girl_talk_apolonia_1

Ok I've removed the "from.." part of the line and it seems to work (no errors on launch ...) thx for the advice
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Aug 31, 2023, 09:43 AM
Quote from: neronero on Aug 16, 2023, 05:33 PM
Quote from: Pepitoxxxx on Aug 16, 2023, 02:53 PMSorry to bother for this i've got a tiny issue with event.rpy

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


The label _call_free_girl_talk_1 is defined twice, at File "game/girls/Apolonia Lapiedra/_events.rpy", line 181:
        call free_girl_talk(girl) from _call_free_girl_talk_1
and File "game/girls/Boa Hancock/_events.rpyc", line 108:
        call free_girl_talk(girl) from _call_free_girl_talk_1


Ren'Py Version: Ren'Py 7.4.11.2266
Wed Aug 16 15:31:39 2023

[close]
As stated above the game doesn't allow those similar call although they seems to be fallback safeties for events. How should i fix those ? Are those events somehow outdated for the current patch? I've searched a bit to find a fix for this the only thing i've found for now is to change" from _call_free_girl_talk_1" to "...talk_3" cause 2 was already use from another event file resulting in the same error.. I was just wondering if it only require from us to change this iteration without problem or is it just a little workaround that could lead to a bigger problem eventually thanks for answering....

I always assumed that the "from ..." part is there to help Goldo with debugging.

I have nothing to do with the 'from' clauses, they are added automatically by Ren'py when you create a build. My interpretation is that when the game is compiled, it needs the info to be able to return to the right 'call' line after a return. But really, I've never actually looked it up, so your guess is as good as mine.

But leaving that clause out never causes problems in the set-up that we are using, so the best course of action would be to leave it out entirely (although I'm sure you can write 'from _whatever0001' at the end and it would also work).

Quote from: wings on Aug 17, 2023, 08:40 AMHi, I got below error while playing. Could you please help me out. Below exception while trying to collect 3 hint of 3 girls(Ninja?).

Exception 1:
-----------------------------------------------------------------------------------------------------------------------------------------
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 162, in script call
    $ selected_district = ui.interact()
  File "game/BKchapter3.rpy", line 370, in script call
    call c3_papa_cells() from _call_c3_papa_cells_1
  File "game/BKchapter3.rpy", line 1499, in script
    $ set_task("Bring a whore to Papa with at least {b}75 in Service, Beauty and Libido{/b}.", "special")
  File "game/BKchapter3.rpy", line 1499, in <module>
    $ set_task("Bring a whore to Papa with at least {b}75 in Service, Beauty and Libido{/b}.", "special")
NameError: name 'set_task' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 162, in script call
    $ selected_district = ui.interact()
  File "game/BKchapter3.rpy", line 370, in script call
    call c3_papa_cells() from _call_c3_papa_cells_1
  File "game/BKchapter3.rpy", line 1499, in script
    $ set_task("Bring a whore to Papa with at least {b}75 in Service, Beauty and Libido{/b}.", "special")
  File "C:\Users\vetri\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\vetri\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKchapter3.rpy", line 1499, in <module>
    $ set_task("Bring a whore to Papa with at least {b}75 in Service, Beauty and Libido{/b}.", "special")
NameError: name 'set_task' is not defined

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Thu Aug 17 14:08:42 2023

Exception 2:
---------------------------------------------------------------------------------------------------------------------------------------
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 162, in script call
    $ selected_district = ui.interact()
  File "game/BKchapter3.rpy", line 221, in script call
    call c3_hint(npc, nin) from _call_c3_hint
  File "game/BKchapter3.rpy", line 386, in script
    show expression npc.char.image_tag
Exception: Not a displayable: None

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

Full traceback:
  File "game/BKmain.rpy", line 162, in script call
    $ selected_district = ui.interact()
  File "game/BKchapter3.rpy", line 221, in script call
    call c3_hint(npc, nin) from _call_c3_hint
  File "game/BKchapter3.rpy", line 386, in script
    show expression npc.char.image_tag
  File "C:\Users\vetri\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1428, in execute
    show_imspec(self.imspec, atl=getattr(self, "atl", None))
  File "C:\Users\vetri\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1385, in show_imspec
    expression = renpy.easy.displayable(expression)
  File "C:\Users\vetri\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\easy.py", line 145, in displayable
    raise Exception("Not a displayable: %r" % (d,))
Exception: Not a displayable: None

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Thu Aug 17 13:53:51 2023

Thanks in advance.

Wrong thread, reporting bugs on the experimental 0.3 version go here (https://henthighschool.net/brothel-king/v0-3-test-version-gameplay-only/) (but this particular bug has already been reported so don't worry).
Title: Re: [Feedback] *BUG REPORTS*
Post by: Alpha_and_omega on Oct 07, 2023, 07:08 PM
Hi Goldo,

Just a typo thing that has bothered my slightly for a long time, don't know how easy it is to correct though.
When a customer chooses a girl, the customer's pronoun is with a lower case, even though it is directly after a fullstop (see screenshot in attachment).

Seems to come from the choose_girl method in BKclasses.rpy, and the use of :pron:
Unfortunatly I don't know the cleanest way to capitalize the first letter of a word in rpy.

Spoiler
def choose_girl(self, girls): # For xxx interactions: returns a girl and a reason for choosing her.

            chosen = None
            best_score = 0
            sex_act = self.wants_sex_act

            # Sanity check

            if not girls:
                raise AssertionError("Customer could not find girls to choose from. (%s)" % and_text([g.name for g in girls]))

#             girls = [g for g in girls if g.does_anything()]

#             if not girls:
#                 raise AssertionError, "Customer could not find girls with an active sex act to choose from. (%s)" % and_text([g.name for g in girls])

            # Looks for the best girl

            for girl in girls:

                girl_score = 0
                reason = ""

                # 1. The customer looks for a particular trait (his fetish)

                if girl.has_trait(self.fetish):
                    girl_score += 250

                    if trait_dict[self.fetish].verb == "be":
                        reason = __(":cust: came looking for a ") + __(self.fetish) + __(" girl. :pron: :verb: elated to meet :girl:.")
                    elif trait_dict[self.fetish].verb == "be a":
                        reason = __(":cust: came looking for a ") + __(self.fetish) + __(". :pron: :verb: elated to meet :girl:.")
                    elif trait_dict[self.fetish].verb == "have":
                        reason = __(":cust: came looking for a girl with ") + __(self.fetish) + __(". :pron: :verb: elated to meet :girl:.")
                    elif trait_dict[self.fetish].verb == "have a":
                        reason = __(":cust: came looking for a girl with a ") + __(self.fetish) + __(". :pron: :verb: elated to meet :girl:.")

                # 2. The customer looks for a particular stat

                girl_score += girl.get_stat(self.preference) # Customers are looking for one stat in particular

                if not reason:
                    reason = __(":cust: wanted to meet ") + __(gstats_descript[self.preference]) + ". "

                    if girl_score >= 50*self.rank:
                        reason += __(":pron: :verb: elated to meet :girl:.")
                    elif girl_score >= 35*self.rank:
                        reason += __(":pron: :verb: pleased to meet :girl:.")
                    elif girl_score >= 20*self.rank:
                        reason += __(":pron: settled for :girl:.") # Special case handled with a try / except clause within the perform method
                    else:
                        reason += __(":pron: :verb: disappointed to meet :girl:.")
[close]

edit: forgot this is the new forum, don't know how to add an attachment...  :'(
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on Oct 11, 2023, 02:24 PM
cumthos posted this on the f95 forum:

Can i get some help please.

My game crashes immediately after the Gina Scene in the Prison during Chapter 2. There is no ignore option and rollback takes me to just before the scene.

I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/BKstory_events.rpy", line 4734, in script
return
Exception: Could not find return label (u'game/BKevents.rpy', 1696972869, 17992).

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

Full traceback:
File "game/BKstory_events.rpy", line 4734, in script
return
File "/private/var/folders/r8/bp__7lw536x_1c3p667m6cbc0000gn/T/AppTranslocation/C487250D-99DC-4FEF-81C4-F3433671194E/d/Brothel_King.app/Contents/Resources/autorun/renpy/ast.py", line 1567, in execute
next_node(renpy.game.context().lookup_return(pop=True))
File "/private/var/folders/r8/bp__7lw536x_1c3p667m6cbc0000gn/T/AppTranslocation/C487250D-99DC-4FEF-81C4-F3433671194E/d/Brothel_King.app/Contents/Resources/autorun/renpy/execution.py", line 710, in lookup_return
raise Exception("Could not find return label {!r}.".format(self.return_stack[-1]))
Exception: Could not find return label (u'game/BKevents.rpy', 1696972869, 17992).

Darwin-23.0.0-x86_64-i386-64bit
Ren'Py 7.4.10.2178
Brothel King 0.2 v220711
Wed Oct 11 13:06:57 2023

Edit: No worries, I found the autosave page and went there while having all my AP for the day
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Oct 11, 2023, 04:27 PM
Quote from: vadi92 on Oct 11, 2023, 02:24 PMcumthos posted this on the f95 forum:

Can i get some help please.

My game crashes immediately after the Gina Scene in the Prison during Chapter 2. There is no ignore option and rollback takes me to just before the scene.

I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/BKstory_events.rpy", line 4734, in script
return
Exception: Could not find return label (u'game/BKevents.rpy', 1696972869, 17992).

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

Full traceback:
File "game/BKstory_events.rpy", line 4734, in script
return
File "/private/var/folders/r8/bp__7lw536x_1c3p667m6cbc0000gn/T/AppTranslocation/C487250D-99DC-4FEF-81C4-F3433671194E/d/Brothel_King.app/Contents/Resources/autorun/renpy/ast.py", line 1567, in execute
next_node(renpy.game.context().lookup_return(pop=True))
File "/private/var/folders/r8/bp__7lw536x_1c3p667m6cbc0000gn/T/AppTranslocation/C487250D-99DC-4FEF-81C4-F3433671194E/d/Brothel_King.app/Contents/Resources/autorun/renpy/execution.py", line 710, in lookup_return
raise Exception("Could not find return label {!r}.".format(self.return_stack[-1]))
Exception: Could not find return label (u'game/BKevents.rpy', 1696972869, 17992).

Darwin-23.0.0-x86_64-i386-64bit
Ren'Py 7.4.10.2178
Brothel King 0.2 v220711
Wed Oct 11 13:06:57 2023

Edit: No worries, I found the autosave page and went there while having all my AP for the day


That error message looks like garbage to me. Perhaps it's a freak Ren'Py bug because of rollback or saving/loading in the middle of the event?

Unless anyone got through that particular scene with the same problem, I'm going to chalk this up to some random bad luck for now.
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on Oct 11, 2023, 08:03 PM
Quote from: YPJ on Oct 11, 2023, 07:14 PMhi

first time posting bug report, if something wrong pls tell me

1. bug happens when i switching shops
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1693, in script call
    call visit_merchant(shop) from _call_visit_merchant_10
  File "game/BKmain.rpy", line 1756, in script
    $ game.sort(right_focus.items, context = context + " items")
  File "game/BKmain.rpy", line 1756, in <module>
    $ game.sort(right_focus.items, context = context + " items")
  File "game/BKclasses.rpy", line 80, in sort
    target.sort(key=lambda x, s=sorter[1]: getattr(x, s), reverse=sorter[3]) # str(getattr(x, s))
  File "game/BKclasses.rpy", line 80, in <lambda>
    target.sort(key=lambda x, s=sorter[1]: getattr(x, s), reverse=sorter[3]) # str(getattr(x, s))
AttributeError: 'Minion' object has no attribute 'price'

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

Full traceback:
  File "game/BKmain.rpy", line 1693, in script call
    call visit_merchant(shop) from _call_visit_merchant_10
  File "game/BKmain.rpy", line 1756, in script
    $ game.sort(right_focus.items, context = context + " items")
  File "F:\BK\Brothel_King 0.3\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\BK\Brothel_King 0.3\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 1756, in <module>
    $ game.sort(right_focus.items, context = context + " items")
  File "game/BKclasses.rpy", line 80, in sort
    target.sort(key=lambda x, s=sorter[1]: getattr(x, s), reverse=sorter[3]) # str(getattr(x, s))
  File "F:\BK\Brothel_King 0.3\renpy\revertable.py", line 97, in do_mutation
    return method(self, *args, **kwargs)
  File "game/BKclasses.rpy", line 80, in <lambda>
    target.sort(key=lambda x, s=sorter[1]: getattr(x, s), reverse=sorter[3]) # str(getattr(x, s))
AttributeError: 'Minion' object has no attribute 'price'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Wed Oct 11 21:00:32 2023
[close]

2. bug happens when i take item from girl
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1461, in script
    $ res = ui.interact()
  File "game/BKmain.rpy", line 1461, in <module>
    $ res = ui.interact()
  File "game/BKitems.rpy", line 427, in execute
    screen item_tab(context, left_party, right_party): # Where X_party are a list of inventory-holding characters
  File "game/BKitems.rpy", line 427, in execute
    screen item_tab(context, left_party, right_party): # Where X_party are a list of inventory-holding characters
  File "game/BKitems.rpy", line 455, in execute
    fixed:
  File "game/BKitems.rpy", line 470, in execute
    if right_focus:
  File "game/BKitems.rpy", line 471, in execute
    vbox xsize xres(255) xalign 1.0 xanchor 1.0 ypos 0.1:
  File "game/BKitems.rpy", line 476, in execute
    hbox xalign 1.0:
  File "game/BKitems.rpy", line 480, in execute
    use item_list(items=right_focus.items, owner=right_focus, counterpart=left_focus, sc_prefix="shift_") id "il2"
  File "game/BKitems.rpy", line 588, in execute
    screen item_list(items, owner, counterpart, sc_prefix, search=False): # May also accept Minions as 'items'
  File "game/BKitems.rpy", line 588, in execute
    screen item_list(items, owner, counterpart, sc_prefix, search=False): # May also accept Minions as 'items'
  File "game/BKitems.rpy", line 612, in execute
    vbox xsize xres(180):
  File "game/BKitems.rpy", line 613, in execute
    frame xfill True:
  File "game/BKitems.rpy", line 618, in execute
    has vbox
  File "game/BKitems.rpy", line 625, in execute
    if items:
  File "game/BKitems.rpy", line 627, in execute
    for i in range(line_nb):
  File "game/BKitems.rpy", line 628, in execute
    if page_index+i < len(items):
  File "game/BKitems.rpy", line 629, in execute
    $ it = items[page_index+i]
  File "game/BKitems.rpy", line 629, in <module>
    $ it = items[page_index+i]
IndexError: list index out of range

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

Full traceback:
  File "game/BKmain.rpy", line 1461, in script
    $ res = ui.interact()
  File "F:\BK\Brothel_King 0.3\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\BK\Brothel_King 0.3\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 1461, in <module>
    $ res = ui.interact()
  File "F:\BK\Brothel_King 0.3\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "F:\BK\Brothel_King 0.3\renpy\display\core.py", line 3579, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, pause_modal=pause_modal, **kwargs) # type: ignore
  File "F:\BK\Brothel_King 0.3\renpy\display\core.py", line 4052, in interact_core
    root_widget.visit_all(lambda d : d.per_interact())
  File "F:\BK\Brothel_King 0.3\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "F:\BK\Brothel_King 0.3\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "F:\BK\Brothel_King 0.3\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "F:\BK\Brothel_King 0.3\renpy\display\screen.py", line 476, in visit_all
    callback(self)
  File "F:\BK\Brothel_King 0.3\renpy\display\core.py", line 4052, in <lambda>
    root_widget.visit_all(lambda d : d.per_interact())
  File "F:\BK\Brothel_King 0.3\renpy\display\screen.py", line 487, in per_interact
    self.update()
  File "F:\BK\Brothel_King 0.3\renpy\display\screen.py", line 680, in update
    self.screen.function(**self.scope)
  File "game/BKitems.rpy", line 427, in execute
    screen item_tab(context, left_party, right_party): # Where X_party are a list of inventory-holding characters
  File "game/BKitems.rpy", line 427, in execute
    screen item_tab(context, left_party, right_party): # Where X_party are a list of inventory-holding characters
  File "game/BKitems.rpy", line 455, in execute
    fixed:
  File "game/BKitems.rpy", line 470, in execute
    if right_focus:
  File "game/BKitems.rpy", line 471, in execute
    vbox xsize xres(255) xalign 1.0 xanchor 1.0 ypos 0.1:
  File "game/BKitems.rpy", line 476, in execute
    hbox xalign 1.0:
  File "game/BKitems.rpy", line 480, in execute
    use item_list(items=right_focus.items, owner=right_focus, counterpart=left_focus, sc_prefix="shift_") id "il2"
  File "game/BKitems.rpy", line 588, in execute
    screen item_list(items, owner, counterpart, sc_prefix, search=False): # May also accept Minions as 'items'
  File "game/BKitems.rpy", line 588, in execute
    screen item_list(items, owner, counterpart, sc_prefix, search=False): # May also accept Minions as 'items'
  File "game/BKitems.rpy", line 612, in execute
    vbox xsize xres(180):
  File "game/BKitems.rpy", line 613, in execute
    frame xfill True:
  File "game/BKitems.rpy", line 618, in execute
    has vbox
  File "game/BKitems.rpy", line 625, in execute
    if items:
  File "game/BKitems.rpy", line 627, in execute
    for i in range(line_nb):
  File "game/BKitems.rpy", line 628, in execute
    if page_index+i < len(items):
  File "game/BKitems.rpy", line 629, in execute
    $ it = items[page_index+i]
  File "game/BKitems.rpy", line 629, in <module>
    $ it = items[page_index+i]
  File "F:\BK\Brothel_King 0.3\renpy\revertable.py", line 217, in __getitem__
    rv = list.__getitem__(self, index)
IndexError: list index out of range

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Wed Oct 11 20:17:55 2023
[close]
also i have a lot of errors when i scroll up job reports
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1077, in script call
    call show_night_event(ev) from _call_show_night_event
  File "game/BKevents.rpy", line 784, in script
    python:
  File "game/BKevents.rpy", line 788, in <module>
    raise AssertionError("Error displaying text: %s. Farm debug log: %s" % (text_descript, str(debug_night_text)))
AssertionError: Error displaying text: {size=29}{color=[c_pink]}'Mister! Would you like to come and have a look at our wares? *giggles*'{/color}
{/size}. Farm debug log: [['', "{size=29}{color=[c_pink]}'Mister! Would you like to come and have a look at our wares? *giggles*'{/color}\n{/size}"], <store.NightChangeLog object at 0x0000000010dbc5e0>]

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

Full traceback:
  File "game/BKendday.rpy", line 1077, in script call
    call show_night_event(ev) from _call_show_night_event
  File "game/BKevents.rpy", line 784, in script
    python:
  File "F:\BK\Brothel_King 0.3\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\BK\Brothel_King 0.3\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 788, in <module>
    raise AssertionError("Error displaying text: %s. Farm debug log: %s" % (text_descript, str(debug_night_text)))
AssertionError: Error displaying text: {size=29}{color=[c_pink]}'Mister! Would you like to come and have a look at our wares? *giggles*'{/color}
{/size}. Farm debug log: [['', "{size=29}{color=[c_pink]}'Mister! Would you like to come and have a look at our wares? *giggles*'{/color}\n{/size}"], <store.NightChangeLog object at 0x0000000010dbc5e0>]

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Wed Oct 11 21:12:43 2023
[close]

Wrong thread. For the test version post it here. (https://henthighschool.net/brothel-king/v0-3-test-version-gameplay-only/)
Title: Re: [Feedback] *BUG REPORTS*
Post by: Inuman9668 on Oct 14, 2023, 10:33 AM
hello there. been a while. went to get an employee from the free girl selection and got all the way to the end and got the following. it can be ignored and the game still runs but the girl does not show up as being employed.

While running game code:
  File "game/BKmain.rpy", line 243, in script call
    call free_girl_interact(result) from _call_free_girl_interact
  File "game/BKinteractions_free.rpy", line 20, in script call
    call expression city_label pass (girl=girl) from _call_expression_4
  File "game/__completed/Sill/_events.rpy", line 83, in <module>
NameError: name 'acquire_girl' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 243, in script call
    call free_girl_interact(result) from _call_free_girl_interact
  File "game/BKinteractions_free.rpy", line 20, in script call
    call expression city_label pass (girl=girl) from _call_expression_4
  File "game/girls/Sill/_events.rpyc", line 83, in script
  File "D:\18\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "D:\18\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/__completed/Sill/_events.rpy", line 83, in <module>
NameError: name 'acquire_girl' is not defined

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Sat Oct 14 06:19:48 2023

not sure what to do to fix this one. the girl pack runs well on 0.2, but I'm running 0.3 with latest patch. any help would be appreciated. thanks in advance.
Title: Re: [Feedback] *BUG REPORTS*
Post by: vadi92 on Oct 14, 2023, 11:36 AM
Quote from: Inuman9668 on Oct 14, 2023, 10:33 AMhello there. been a while. went to get an employee from the free girl selection and got all the way to the end and got the following. it can be ignored and the game still runs but the girl does not show up as being employed.

While running game code:
  File "game/BKmain.rpy", line 243, in script call
    call free_girl_interact(result) from _call_free_girl_interact
  File "game/BKinteractions_free.rpy", line 20, in script call
    call expression city_label pass (girl=girl) from _call_expression_4
  File "game/__completed/Sill/_events.rpy", line 83, in <module>
NameError: name 'acquire_girl' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 243, in script call
    call free_girl_interact(result) from _call_free_girl_interact
  File "game/BKinteractions_free.rpy", line 20, in script call
    call expression city_label pass (girl=girl) from _call_expression_4
  File "game/girls/Sill/_events.rpyc", line 83, in script
  File "D:\18\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "D:\18\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/__completed/Sill/_events.rpy", line 83, in <module>
NameError: name 'acquire_girl' is not defined

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Sat Oct 14 06:19:48 2023

not sure what to do to fix this one. the girl pack runs well on 0.2, but I'm running 0.3 with latest patch. any help would be appreciated. thanks in advance.

Again wrong thread. Everything related to 0.3 goes here. (https://henthighschool.net/brothel-king/v0-3-test-version-gameplay-only/) And most likely the problem is with the _event.rpy in the girls folder. @neronero you should take a look at it. It was a pack you made.
Title: Re: [Feedback] *BUG REPORTS*
Post by: neronero on Oct 16, 2023, 10:37 PM
Quote from: Inuman9668 on Oct 14, 2023, 10:33 AMFile "game/__completed/Sill/_events.rpy", line 83, in <module>
NameError: name 'acquire_girl' is not defined
I'll wait with a patch until 0.3 becomes the main release, but here's a DIY fix:

Open the _events.rpy file in her folder with notepad or any other text editor.

Find this line (it's in the file twice)
$ acquire_girl(girl, free = True)

Replace it (both times) with this line
call acquire_girl(girl, context="free")
Title: Re: [Feedback] *BUG REPORTS*
Post by: TyranntX on Dec 06, 2023, 02:49 PM
Okay, I don't know if this is a bug or not, but that Blowhard Kosmo constantly gloats more than once whenever he shows up, hell the first time he does it he says the same thing twice, and it gets to the point where errors pop up multiple times.
Title: Re: [Feedback] *BUG REPORTS*
Post by: Goldo on Dec 07, 2023, 04:05 PM
Quote from: TyranntX on Dec 06, 2023, 02:49 PMOkay, I don't know if this is a bug or not, but that Blowhard Kosmo constantly gloats more than once whenever he shows up, hell the first time he does it he says the same thing twice, and it gets to the point where errors pop up multiple times.

Sounds like a bug that was resolved a while ago (https://henthighschool.net/index.php?msg=3783), if you're talking about the test 0.3 version (wrong thread, by the way). Make sure you have the latest patch.
Title: Re: [Feedback] *BUG REPORTS* Stable version only (v0.2)
Post by: Zxuz on Dec 18, 2023, 07:54 AM
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1032, in script call
  File "game/BKevents.rpy", line 686, in script call
  File "game/BKevents.rpy", line 698, in script call
  File "game/BKstory_events.rpy", line 13652, in script
  File "game/BKscreens.rpy", line 4605, in execute
  File "game/BKscreens.rpy", line 4605, in execute
  File "game/BKscreens.rpy", line 4609, in execute
  File "game/BKscreens.rpy", line 4610, in execute
  File "game/BKscreens.rpy", line 4611, in execute
  File "renpy/common/00action_other.rpy", line 547, in __eq__
TypeError: 'unicode' object is not callable

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

Full traceback:
  File "game/BKendday.rpy", line 1032, in script call
  File "game/BKevents.rpy", line 686, in script call
  File "game/BKevents.rpy", line 698, in script call
  File "game/BKstory_events.rpy", line 13652, in script
  File "renpy/ast.py", line 925, in execute
  File "renpy/exports.py", line 1474, in say
  File "renpy/character.py", line 1352, in __call__
  File "renpy/character.py", line 1006, in do_display
  File "renpy/character.py", line 693, in display_say
  File "renpy/ui.py", line 299, in interact
  File "renpy/display/core.py", line 3628, in interact
  File "renpy/display/core.py", line 4101, in interact_core
  File "renpy/display/core.py", line 684, in visit_all
  File "renpy/display/core.py", line 684, in visit_all
  File "renpy/display/core.py", line 684, in visit_all
  File "renpy/display/screen.py", line 476, in visit_all
  File "renpy/display/core.py", line 4101, in <lambda>
  File "renpy/display/screen.py", line 487, in per_interact
  File "renpy/display/screen.py", line 680, in update
  File "game/BKscreens.rpy", line 4605, in execute
  File "game/BKscreens.rpy", line 4605, in execute
  File "game/BKscreens.rpy", line 4609, in execute
  File "game/BKscreens.rpy", line 4610, in execute
  File "game/BKscreens.rpy", line 4611, in execute
  File "renpy/common/00action_other.rpy", line 547, in __eq__
TypeError: 'unicode' object is not callable



Can someone help me with this? Its start poping out when an event start in the morning
Title: Re: [Feedback] *BUG REPORTS* Stable version only (v0.2)
Post by: vadi92 on Dec 18, 2023, 05:11 PM
Quote from: Zxuz on Dec 18, 2023, 07:54 AMI'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1032, in script call
  File "game/BKevents.rpy", line 686, in script call
  File "game/BKevents.rpy", line 698, in script call
  File "game/BKstory_events.rpy", line 13652, in script
  File "game/BKscreens.rpy", line 4605, in execute
  File "game/BKscreens.rpy", line 4605, in execute
  File "game/BKscreens.rpy", line 4609, in execute
  File "game/BKscreens.rpy", line 4610, in execute
  File "game/BKscreens.rpy", line 4611, in execute
  File "renpy/common/00action_other.rpy", line 547, in __eq__
TypeError: 'unicode' object is not callable

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

Full traceback:
  File "game/BKendday.rpy", line 1032, in script call
  File "game/BKevents.rpy", line 686, in script call
  File "game/BKevents.rpy", line 698, in script call
  File "game/BKstory_events.rpy", line 13652, in script
  File "renpy/ast.py", line 925, in execute
  File "renpy/exports.py", line 1474, in say
  File "renpy/character.py", line 1352, in __call__
  File "renpy/character.py", line 1006, in do_display
  File "renpy/character.py", line 693, in display_say
  File "renpy/ui.py", line 299, in interact
  File "renpy/display/core.py", line 3628, in interact
  File "renpy/display/core.py", line 4101, in interact_core
  File "renpy/display/core.py", line 684, in visit_all
  File "renpy/display/core.py", line 684, in visit_all
  File "renpy/display/core.py", line 684, in visit_all
  File "renpy/display/screen.py", line 476, in visit_all
  File "renpy/display/core.py", line 4101, in <lambda>
  File "renpy/display/screen.py", line 487, in per_interact
  File "renpy/display/screen.py", line 680, in update
  File "game/BKscreens.rpy", line 4605, in execute
  File "game/BKscreens.rpy", line 4605, in execute
  File "game/BKscreens.rpy", line 4609, in execute
  File "game/BKscreens.rpy", line 4610, in execute
  File "game/BKscreens.rpy", line 4611, in execute
  File "renpy/common/00action_other.rpy", line 547, in __eq__
TypeError: 'unicode' object is not callable



Can someone help me with this? Its start poping out when an event start in the morning


1st: did you ignore the 1st error? (from this we dont know whats the cause)
2nd: send the full traceback with the version number included
Title: Re: [Feedback] *BUG REPORTS* Stable version only (v0.2)
Post by: Zxuz on Dec 18, 2023, 06:04 PM
Quote from: vadi92 on Dec 18, 2023, 05:11 PM
Quote from: Zxuz on Dec 18, 2023, 07:54 AMI'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1032, in script call
  File "game/BKevents.rpy", line 686, in script call
  File "game/BKevents.rpy", line 698, in script call
  File "game/BKstory_events.rpy", line 13652, in script
  File "game/BKscreens.rpy", line 4605, in execute
  File "game/BKscreens.rpy", line 4605, in execute
  File "game/BKscreens.rpy", line 4609, in execute
  File "game/BKscreens.rpy", line 4610, in execute
  File "game/BKscreens.rpy", line 4611, in execute
  File "renpy/common/00action_other.rpy", line 547, in __eq__
TypeError: 'unicode' object is not callable

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

Full traceback:
  File "game/BKendday.rpy", line 1032, in script call
  File "game/BKevents.rpy", line 686, in script call
  File "game/BKevents.rpy", line 698, in script call
  File "game/BKstory_events.rpy", line 13652, in script
  File "renpy/ast.py", line 925, in execute
  File "renpy/exports.py", line 1474, in say
  File "renpy/character.py", line 1352, in __call__
  File "renpy/character.py", line 1006, in do_display
  File "renpy/character.py", line 693, in display_say
  File "renpy/ui.py", line 299, in interact
  File "renpy/display/core.py", line 3628, in interact
  File "renpy/display/core.py", line 4101, in interact_core
  File "renpy/display/core.py", line 684, in visit_all
  File "renpy/display/core.py", line 684, in visit_all
  File "renpy/display/core.py", line 684, in visit_all
  File "renpy/display/screen.py", line 476, in visit_all
  File "renpy/display/core.py", line 4101, in <lambda>
  File "renpy/display/screen.py", line 487, in per_interact
  File "renpy/display/screen.py", line 680, in update
  File "game/BKscreens.rpy", line 4605, in execute
  File "game/BKscreens.rpy", line 4605, in execute
  File "game/BKscreens.rpy", line 4609, in execute
  File "game/BKscreens.rpy", line 4610, in execute
  File "game/BKscreens.rpy", line 4611, in execute
  File "renpy/common/00action_other.rpy", line 547, in __eq__
TypeError: 'unicode' object is not callable



Can someone help me with this? Its start poping out when an event start in the morning


1st: did you ignore the 1st error? (from this we dont know whats the cause)
2nd: send the full traceback with the version number included
This is the first error code,and the problem i think is the "File "renpy/common/00action_other.rpy", line 547, in __eq__
TypeError: 'unicode' object is not callable" and its on BK V0.2

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1032, in script call
  File "game/BKevents.rpy", line 686, in script call
  File "game/BKevents.rpy", line 698, in script call
  File "game/BKday_events.rpy", line 103, in script
  File "game/BKscreens.rpy", line 4617, in execute
  File "game/BKscreens.rpy", line 4617, in execute
  File "game/BKscreens.rpy", line 4621, in execute
  File "game/BKscreens.rpy", line 4622, in execute
  File "renpy/common/00action_other.rpy", line 547, in __eq__
TypeError: 'unicode' object is not callable

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

Full traceback:
  File "game/BKendday.rpy", line 1032, in script call
  File "game/BKevents.rpy", line 686, in script call
  File "game/BKevents.rpy", line 698, in script call
  File "game/BKday_events.rpy", line 103, in script
  File "renpy/ast.py", line 1673, in execute
  File "renpy/exports.py", line 1758, in with_statement
  File "renpy/display/core.py", line 3021, in do_with
  File "renpy/display/core.py", line 3628, in interact
  File "renpy/display/core.py", line 4101, in interact_core
  File "renpy/display/core.py", line 684, in visit_all
  File "renpy/display/core.py", line 684, in visit_all
  File "renpy/display/core.py", line 684, in visit_all
  File "renpy/display/core.py", line 684, in visit_all
  File "renpy/display/screen.py", line 476, in visit_all
  File "renpy/display/core.py", line 4101, in <lambda>
  File "renpy/display/screen.py", line 487, in per_interact
  File "renpy/display/screen.py", line 680, in update
  File "game/BKscreens.rpy", line 4617, in execute
  File "game/BKscreens.rpy", line 4617, in execute
  File "game/BKscreens.rpy", line 4621, in execute
  File "game/BKscreens.rpy", line 4622, in execute
  File "renpy/common/00action_other.rpy", line 547, in __eq__
TypeError: 'unicode' object is not callable

Title: Re: [Feedback] *BUG REPORTS* Stable version only (v0.2)
Post by: Goldo on Dec 21, 2023, 03:42 PM
This is an internal Renpy file that doesn't point to anything BK related. My guess is you are trying to read a girl pack file that includes non-unicode characters. Remove recently-added girlpacks one by one and try to isolate the culprit.