HentHighSchool Development Forum

Game Development => Brothel King => Topic started by: Goldo on Jul 21, 2023, 09:54 PM

Title: v0.3 Test version (gameplay only)
Post by: Goldo on Jul 21, 2023, 09:54 PM
Hey guys!

So it's been a lo-o-o-ong time coming... But here it is: I give you the test version for Brothel King, v0.3!

https://www.mediafire.com/file/da0luyi63xgczfp/Brothel_King-0.3t.zip/file

Current hotfix (make sure to apply it before testing! Unzip in your 'game/' folder):
https://www.mediafire.com/file/1va1v7cq1psp53x/game_patch_0.3.zip/file

A usual, you will need to install girl packs to make it work.



Curb your enthusiasm though, this is an early version and it is gameplay-only, as it lacks many story events for chapter 3.

Warning: This version is for testing and debugging purposes only. There is no guaranty of any kind that it is playable or balanced. It will crash, you will most likely need to start new games regularly, you might lose saved games, and I won't go out of my way to fix your broken saves - so please don't ask me to. You might want to sit this one out, at least for a few days, if you want to avoid the worst of it.

What it does have is some new features - most importantly the new evil power mechanic (kuddos to Deimos96 for helping me with designing the interface).
How to unlock evil powers
You need to have unlocked the farm and have generated a bit of fear with your girls. The introduction event will happen a few days into Chapter 3. Then, visit the farm screen.
[close]
In addition, there are a lot of additional QOL features, such as the 'new game+/no-story mode' (unlocked by default in this test version), the ability to 'ignore' girl pack pictures you dislike (press 'DEL' when it is displayed), and of course the most noticeable change of all, the increase in screen resolution.

Lots of changes big and small happened under the hood, with some cool things you might not immediately notice (such as the new tooltips, the in-game notifications, the Brokipedia...). These new features have yet to be consistently implemented and fleshed out, but will create a good foundation for things to come.

Now, I expect you won't need to poke this thing to hard to find the first game-breaking bugs... So please keep those bug reports coming!  :D
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Jul 21, 2023, 09:56 PM
And I would like to report the first issue myself: As documented here (https://lemmasoft.renai.us/forums/viewtopic.php?f=32&t=66900#p561771), I experience graphical glitches since porting the game to Ren'py 8.1.1 (I couldn't leave good enough alone, I did it a week before this release and it broke things  :-[).

Please let me know if you have the same experience or if my computer or drivers are jinxed.
Title: Re: v0.3 Test version (gameplay only)
Post by: Calob on Jul 21, 2023, 10:29 PM
First, a UI-related issue, right click does not close the spellbook.

A mod-related error: I had multiple mods installed on 0.2, and didn't carry them over to 0.3. I got this error every time I hit the main menu, each time removing one mod, until all the mods were removed.

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

While running game code:
  File "renpy/common/00start.rpy", line 310, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 60, in script
    $ update_mods()
  File "game/BKevents.rpy", line 60, in <module>
    $ update_mods()
  File "game/BKfunctions.rpy", line 3801, in update_mods
    for name, d in persistent.mods.items():
RuntimeError: dictionary changed size during iteration

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

Full traceback:
  File "renpy/common/00start.rpy", line 310, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 60, in script
    $ update_mods()
  File "D:\Games\Brothel King 0.3 alpha\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "D:\Games\Brothel King 0.3 alpha\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 60, in <module>
    $ update_mods()
  File "game/BKfunctions.rpy", line 3801, in update_mods
    for name, d in persistent.mods.items():
RuntimeError: dictionary changed size during iteration

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Fri Jul 21 18:17:55 2023
[close]

edit 1: When doing constitution or obedience training, the girl image shows under the profile/UI.

Trying to do magic training, the 'roll' button takes me directly to failure, doesn't seem to roll. I think this is the same issue of profile/UI being on top.

Also, after introducing myself to some of the free girls, their love-heart appears at the biggest size (or at least the biggest size it was in 0.2). Increasing their love a bit returns the heart sizes to normal. (edit) This happened on 2 of the 13 free girls.

edit 2: I'm enjoying the new UI. The girl stats showing increases from items/perks is fantastic.

edit 3: Freeform training gave me this error:

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

While running game code:
  File "game/BKmain.rpy", line 1305, in script call
    call slave_interact(girl) from _call_slave_interact
  File "game/BKinteractions.rpy", line 394, in script call
    $ renpy.call(topic.label, girl)
  File "game/BKinteractions.rpy", line 1168, in script
    $ pic = girl.get_pic("naked", "rest", "profile", and_tags = and_tags, not_tags = not_tags, hide_farm=True)
  File "game/BKinteractions.rpy", line 1168, in <module>
    $ pic = girl.get_pic("naked", "rest", "profile", and_tags = and_tags, not_tags = not_tags, hide_farm=True)
NameError: name 'and_tags' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 1305, in script call
    call slave_interact(girl) from _call_slave_interact
  File "game/BKinteractions.rpy", line 394, in script call
    $ renpy.call(topic.label, girl)
  File "game/BKinteractions.rpy", line 1168, in script
    $ pic = girl.get_pic("naked", "rest", "profile", and_tags = and_tags, not_tags = not_tags, hide_farm=True)
  File "D:\Games\Brothel King 0.3 alpha\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "D:\Games\Brothel King 0.3 alpha\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKinteractions.rpy", line 1168, in <module>
    $ pic = girl.get_pic("naked", "rest", "profile", and_tags = and_tags, not_tags = not_tags, hide_farm=True)
NameError: name 'and_tags' is not defined

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Fri Jul 21 19:38:06 2023
[close]

Edit 4: Gift-giving, both to free girls and slaves, isn't recognizing flowers. Not sure yet if other gifts are affected.

UI issue is also affecting buying from the guild warehouse.

Tavern event got me a placeholder image (picked girl wasn't working the tavern)

Additionally, Stella the stallion shop is available from the shop menu in Chapter 1, using the fancy new shop-cycling arrows.

Also holy shit you can buy direct to slave's equipment now???
Title: Re: v0.3 Test version (gameplay only)
Post by: neronero on Jul 21, 2023, 11:18 PM
✨It's happening!✨

The screen is so big! The hover-tooltips are awesome! Very excited!

I got some black profile pics (https://i.imgur.com/YdzOw8J.png). It was showing up fine before I bought her, in the slavemarket. Portrait was also black. The next day it seemed to be fixed.

When first entering the Perks screen, the game seems to freeze until I click (anywhere) once.

On day 6 I encountered the black buttons issue you were describing (everything seemed fine before that)

When I cheated my way into having every room, my girls revolted and only considered "rest" a valid job (https://i.imgur.com/kdu2LoF.png) (just a screen problem, I could still change jobs with the keybinds)

Regarding Calob's errors:
+1 on the mod-related error and the training/roll screen being underneath some UI element,
but I can close the spellbook with rightclick and the love-heart for free girls starts tiny as expected for me.
Title: Re: v0.3 Test version (gameplay only)
Post by: Netscape1964 on Jul 22, 2023, 03:17 AM
my main problem is cosmo event keeps getting longer and longer. that idiot comes with one more slave to show off every time the event triggers. i'm up to about 7 or 8 slave he shows to me. it's getting a bit long.
Title: Re: v0.3 Test version (gameplay only)
Post by: neronero on Jul 22, 2023, 08:42 AM
Started new game, activated more girlmixes (previously only #misc was active) got this error after selecting the initial room of my brothel. Strangely, when I pressed rollback I no longer got the error.
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00gamemenu.rpy", line 170, in script
    $ ui.interact()
  File "renpy/common/00gamemenu.rpy", line 170, in <module>
    $ ui.interact()
  File "renpy/common/00action_file.rpy", line 397, in __call__
    renpy.save(fn, extra_info=save_name)
TypeError: cannot pickle 'dict_keys' object (perhaps renpy.game.log.log[27].context.scene_lists.layers['screens'][0].displayable.scope['available_mixes'] = dict_keys(['default', '#misc ', '#Others ', '#Basic Bitches ']))

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

Full traceback:
  File "renpy/common/00gamemenu.rpy", line 170, in script
    $ ui.interact()
  File "F:\ilx\BK03T\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\ilx\BK03T\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "renpy/common/00gamemenu.rpy", line 170, in <module>
    $ ui.interact()
  File "F:\ilx\BK03T\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "F:\ilx\BK03T\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:\ilx\BK03T\renpy\display\core.py", line 4540, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "F:\ilx\BK03T\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "F:\ilx\BK03T\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "F:\ilx\BK03T\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "F:\ilx\BK03T\renpy\display\screen.py", line 770, in event
    rv = self.child.event(ev, x, y, st)
  File "F:\ilx\BK03T\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "F:\ilx\BK03T\renpy\display\layout.py", line 1401, in event
    rv = super(Window, self).event(ev, x, y, st)
  File "F:\ilx\BK03T\renpy\display\layout.py", line 279, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "F:\ilx\BK03T\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "F:\ilx\BK03T\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "F:\ilx\BK03T\renpy\display\behavior.py", line 1138, in event
    return handle_click(self.clicked)
  File "F:\ilx\BK03T\renpy\display\behavior.py", line 1071, in handle_click
    rv = run(action)
  File "F:\ilx\BK03T\renpy\display\behavior.py", line 368, in run
    new_rv = run(i, *args, **kwargs)
  File "F:\ilx\BK03T\renpy\display\behavior.py", line 375, in run
    return action(*args, **kwargs)
  File "renpy/common/00action_file.rpy", line 397, in __call__
    renpy.save(fn, extra_info=save_name)
  File "F:\ilx\BK03T\renpy\loadsave.py", line 432, in save
    reraise(t, e, tb)
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/site-packages/future/utils/__init__.py", line 444, in raise_
  File "F:\ilx\BK03T\renpy\loadsave.py", line 413, in save
    dump((roots, renpy.game.log), logf)
  File "F:\ilx\BK03T\renpy\compat\pickle.py", line 103, in dump
    pickle.dump(o, f, pickle.HIGHEST_PROTOCOL if highest else PROTOCOL)
TypeError: cannot pickle 'dict_keys' object (perhaps renpy.game.log.log[27].context.scene_lists.layers['screens'][0].displayable.scope['available_mixes'] = dict_keys(['default', '#misc ', '#Others ', '#Basic Bitches ']))

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sat Jul 22 10:00:21 2023
[close]

Arson attempt thwarted by exceptional bug. This one also didn't reappear after a rollback.
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 758, in script
    python:
  File "game/BKendday.rpy", line 771, in <module>
    crazy_ev, crazy_cust = crazy_customer([girl], ent_dict[girl])
  File "game/BKfunctions.rpy", line 1256, in crazy_customer
    renpy.notify("%s: Arson attempt" % (brothel.name, plus_text(chg, color_scheme="rep")))
TypeError: not all arguments converted during string formatting

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

Full traceback:
  File "game/BKendday.rpy", line 758, in script
    python:
  File "F:\ilx\BK03T\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\ilx\BK03T\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 771, in <module>
    crazy_ev, crazy_cust = crazy_customer([girl], ent_dict[girl])
  File "game/BKfunctions.rpy", line 1256, in crazy_customer
    renpy.notify("%s: Arson attempt" % (brothel.name, plus_text(chg, color_scheme="rep")))
TypeError: not all arguments converted during string formatting

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sat Jul 22 10:09:22 2023
[close]

Confirmation buttons obscured in the warehouse (https://i.imgur.com/es95eRZ.png). Same issue for the "Do you want to upgrade XXX?" dialogue when buying a monster you don't have room for from the rancher/monstercatcher/scientist.

Below is my favorite bug so far. Almost looks intentional.  ;D

(https://i.imgur.com/W4cG0z6.png)

Edit: In the city, collecting resources says it costs "-1 🔵", but looking around costs "🔵 1".
Title: Re: v0.3 Test version (gameplay only)
Post by: neronero on Jul 22, 2023, 01:22 PM
Now I suddenly did encounter Calob's issue with bighearted free girls (https://i.imgur.com/a5GE1EW.png). Ran here only has 1.625 love from saying hi, while Ibaraki left of her has 3.25 love.

I like the new 'knobs' on sliders, but it's counterintuitive that you can't click just anywhere on them to drag them around. You must click on the (height of the) slider.

I may give a free girl flowers (https://i.imgur.com/CyQW1zQ.png). I have two flowers on me, but the interface isn't showing them?

Inflation has really gotten out of control. Selling items to the shop gives you negative gold!

Some morning events are happening twice for me. Not sure if it's all morning events or just certain ones. The carpenter is the most obvious one, she tells me about every improvement twice.

edit: I tried free-form training, got this error:
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1305, in script call
    call slave_interact(girl) from _call_slave_interact
  File "game/BKinteractions.rpy", line 394, in script call
    $ renpy.call(topic.label, girl)
  File "game/BKinteractions.rpy", line 1168, in script
    $ pic = girl.get_pic("naked", "rest", "profile", and_tags = and_tags, not_tags = not_tags, hide_farm=True)
  File "game/BKinteractions.rpy", line 1168, in <module>
    $ pic = girl.get_pic("naked", "rest", "profile", and_tags = and_tags, not_tags = not_tags, hide_farm=True)
NameError: name 'and_tags' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 1305, in script call
    call slave_interact(girl) from _call_slave_interact
  File "game/BKinteractions.rpy", line 394, in script call
    $ renpy.call(topic.label, girl)
  File "game/BKinteractions.rpy", line 1168, in script
    $ pic = girl.get_pic("naked", "rest", "profile", and_tags = and_tags, not_tags = not_tags, hide_farm=True)
  File "F:\ilx\BK03T\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\ilx\BK03T\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKinteractions.rpy", line 1168, in <module>
    $ pic = girl.get_pic("naked", "rest", "profile", and_tags = and_tags, not_tags = not_tags, hide_farm=True)
NameError: name 'and_tags' is not defined

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sat Jul 22 15:31:17 2023
[close]
Title: Re: v0.3 Test version (gameplay only)
Post by: wbfox on Jul 22, 2023, 02:42 PM
The sorting by price sorts alphabetically instead of by value.(https://i.gyazo.com/9b0d93ca16e947a9f5ed4d1cdcf1abeb.png)
Title: Re: v0.3 Test version (gameplay only)
Post by: wbfox on Jul 22, 2023, 03:08 PM
Sending girls to the farm has the menu appearing under the purple overlay so you can't click anything.
Probably the same reason as constitution and obedience training pic and warehouse menu showing on wrong layer.
Title: Re: v0.3 Test version (gameplay only)
Post by: sorwedeya on Jul 22, 2023, 04:33 PM
I have a girl in the city which love dont increase, no matter i talk to her. There are just the starting dialoge.

Another girl in the city i cant gift anything, i have different gift´s in inventory.
Title: Re: v0.3 Test version (gameplay only)
Post by: hughfj08 on Jul 22, 2023, 04:57 PM
Quick query
Is the link above a patch or a full download.
Because I thought it was a separate install, so I unzipepd it, added only the basic girl mix pack, but got hit with this error right off the bat on start up from exe file

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 310, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 60, in script
    $ update_mods()
  File "game/BKevents.rpy", line 60, in <module>
    $ update_mods()
  File "game/BKfunctions.rpy", line 3801, in update_mods
    for name, d in persistent.mods.items():
RuntimeError: dictionary changed size during iteration

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

Full traceback:
  File "renpy/common/00start.rpy", line 310, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 60, in script
    $ update_mods()
  File "C:\Users\insan\Downloads\Brothel Kind 0.3 test\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\insan\Downloads\Brothel Kind 0.3 test\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 60, in <module>
    $ update_mods()
  File "game/BKfunctions.rpy", line 3801, in update_mods
    for name, d in persistent.mods.items():
RuntimeError: dictionary changed size during iteration

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sun Jul 23 00:56:02 2023


It mentions mods, and I have a couple of those in my 0.2 game folder, but not in my 0.3 folder
Title: Re: v0.3 Test version (gameplay only)
Post by: neronero on Jul 22, 2023, 05:45 PM
Quote from: hughfj08 on Jul 22, 2023, 04:57 PMIt mentions mods, and I have a couple of those in my 0.2 game folder, but not in my 0.3 folder
Keep starting up the game and it'll go away. It'll repeat that error once per mod you had in 0.2, and from then on it'll start normally.



Another exception from a threat event, probably the same issue as the arson-error from earlier.
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 758, in script
    python:
  File "game/BKendday.rpy", line 771, in <module>
    crazy_ev, crazy_cust = crazy_customer([girl], ent_dict[girl])
  File "game/BKfunctions.rpy", line 1117, in crazy_customer
    renpy.notify("%s: Assault attempt" % girl.fullname, pic=girl.portrait)
TypeError: notify() got an unexpected keyword argument 'pic'

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

Full traceback:
  File "game/BKendday.rpy", line 758, in script
    python:
  File "F:\ilx\BK03T\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\ilx\BK03T\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 771, in <module>
    crazy_ev, crazy_cust = crazy_customer([girl], ent_dict[girl])
  File "game/BKfunctions.rpy", line 1117, in crazy_customer
    renpy.notify("%s: Assault attempt" % girl.fullname, pic=girl.portrait)
TypeError: notify() got an unexpected keyword argument 'pic'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sat Jul 22 19:50:37 2023
[close]

edit: The free-girls with big hearts issue only seems to happen when their love is below 2.
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Jul 22, 2023, 09:27 PM
Thank you guys, you're awesome (although it will take me a while to go through all the bugs!)!

I want to say I know where most of them come from, but here are a few that are puzzling:

Quote from: hughfj08 on Jul 22, 2023, 04:57 PMQuick query
Is the link above a patch or a full download.
Because I thought it was a separate install, so I unzipepd it, added only the basic girl mix pack, but got hit with this error right off the bat on start up from exe file

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 310, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 60, in script
    $ update_mods()
  File "game/BKevents.rpy", line 60, in <module>
    $ update_mods()
  File "game/BKfunctions.rpy", line 3801, in update_mods
    for name, d in persistent.mods.items():
RuntimeError: dictionary changed size during iteration

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

Full traceback:
  File "renpy/common/00start.rpy", line 310, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 60, in script
    $ update_mods()
  File "C:\Users\insan\Downloads\Brothel Kind 0.3 test\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\insan\Downloads\Brothel Kind 0.3 test\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 60, in <module>
    $ update_mods()
  File "game/BKfunctions.rpy", line 3801, in update_mods
    for name, d in persistent.mods.items():
RuntimeError: dictionary changed size during iteration

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sun Jul 23 00:56:02 2023


It mentions mods, and I have a couple of those in my 0.2 game folder, but not in my 0.3 folder
I can't quite figure this one out as I thought all persistent data would be brand new with this version, why is it 'remembering' old mods? I suggest erasing (or renaming for backup) any BK persistent data you might have from previous versions.

Quote from: neronero on Jul 22, 2023, 08:42 AMStarted new game, activated more girlmixes (previously only #misc was active) got this error after selecting the initial room of my brothel. Strangely, when I pressed rollback I no longer got the error.
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00gamemenu.rpy", line 170, in script
    $ ui.interact()
  File "renpy/common/00gamemenu.rpy", line 170, in <module>
    $ ui.interact()
  File "renpy/common/00action_file.rpy", line 397, in __call__
    renpy.save(fn, extra_info=save_name)
TypeError: cannot pickle 'dict_keys' object (perhaps renpy.game.log.log[27].context.scene_lists.layers['screens'][0].displayable.scope['available_mixes'] = dict_keys(['default', '#misc ', '#Others ', '#Basic Bitches ']))

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

Full traceback:
  File "renpy/common/00gamemenu.rpy", line 170, in script
    $ ui.interact()
  File "F:\ilx\BK03T\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\ilx\BK03T\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "renpy/common/00gamemenu.rpy", line 170, in <module>
    $ ui.interact()
  File "F:\ilx\BK03T\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "F:\ilx\BK03T\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:\ilx\BK03T\renpy\display\core.py", line 4540, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "F:\ilx\BK03T\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "F:\ilx\BK03T\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "F:\ilx\BK03T\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "F:\ilx\BK03T\renpy\display\screen.py", line 770, in event
    rv = self.child.event(ev, x, y, st)
  File "F:\ilx\BK03T\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "F:\ilx\BK03T\renpy\display\layout.py", line 1401, in event
    rv = super(Window, self).event(ev, x, y, st)
  File "F:\ilx\BK03T\renpy\display\layout.py", line 279, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "F:\ilx\BK03T\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "F:\ilx\BK03T\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "F:\ilx\BK03T\renpy\display\behavior.py", line 1138, in event
    return handle_click(self.clicked)
  File "F:\ilx\BK03T\renpy\display\behavior.py", line 1071, in handle_click
    rv = run(action)
  File "F:\ilx\BK03T\renpy\display\behavior.py", line 368, in run
    new_rv = run(i, *args, **kwargs)
  File "F:\ilx\BK03T\renpy\display\behavior.py", line 375, in run
    return action(*args, **kwargs)
  File "renpy/common/00action_file.rpy", line 397, in __call__
    renpy.save(fn, extra_info=save_name)
  File "F:\ilx\BK03T\renpy\loadsave.py", line 432, in save
    reraise(t, e, tb)
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/site-packages/future/utils/__init__.py", line 444, in raise_
  File "F:\ilx\BK03T\renpy\loadsave.py", line 413, in save
    dump((roots, renpy.game.log), logf)
  File "F:\ilx\BK03T\renpy\compat\pickle.py", line 103, in dump
    pickle.dump(o, f, pickle.HIGHEST_PROTOCOL if highest else PROTOCOL)
TypeError: cannot pickle 'dict_keys' object (perhaps renpy.game.log.log[27].context.scene_lists.layers['screens'][0].displayable.scope['available_mixes'] = dict_keys(['default', '#misc ', '#Others ', '#Basic Bitches ']))

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sat Jul 22 10:00:21 2023
[close]
Looks like an error during renpy saving, can't really figure this one out either. Let's see if it is reproducible.

Quote from: neronero on Jul 21, 2023, 11:18 PMI got some black profile pics (https://i.imgur.com/YdzOw8J.png). It was showing up fine before I bought her, in the slavemarket. Portrait was also black. The next day it seemed to be fixed.

When first entering the Perks screen, the game seems to freeze until I click (anywhere) once.

On day 6 I encountered the black buttons issue you were describing (everything seemed fine before that)
Yeah strange one, same as what I had, didn't happen at all with Ren'py's previous versions. As it stands, I might just rollback to Ren'py 8.0.1. The only consequence will be that the shortcut 'shift+mousewheel' will no longer work in the shop, but I think we can live with that.
Title: Re: v0.3 Test version (gameplay only)
Post by: Hermenegild on Jul 22, 2023, 09:56 PM
About the gift list being empty, the reason is, the code looks for items with usage of "give" while the items in inventory have a usage of "gift". I don't know which way you want to go, "gift" or "give", but for this to work you have to be consistent.

EDIT: after changing all items in the inventory via the console, gifting works. However, new giftable items are generated as "gift" (obviously), so you may need to run this code to enable new items to be gifted:

for i in MC.items:
    if i.usage == "gift":
        i.usage = "give"

This is a temporary solution until the code is fixed.
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Jul 22, 2023, 11:32 PM
So here is the first hotfix, hopefully ironing out a few wrinkles:

https://www.mediafire.com/file/1va1v7cq1psp53x/game+patch+0.3.zip/file
(Don't be silly, don't install the 0.2 patch from my sig)


A few comments:

Quote from: Calob on Jul 21, 2023, 10:29 PMAlso holy shit you can buy direct to slave's equipment now???
Yessir!

Quote from: neronero on Jul 21, 2023, 11:18 PMWhen first entering the Perks screen, the game seems to freeze until I click (anywhere) once.
I may be wrong but I think that's not a bug but a change in the way the perk screen works: you now need to click on a perk archetype button to change the perk tree (not just hover, unlike how it used to work). I can go back to the old behavior if people prefer, I thought changing perk trees just by hovering might be needlessly distracting.

Quote from: neronero on Jul 22, 2023, 01:22 PMI like the new 'knobs' on sliders, but it's counterintuitive that you can't click just anywhere on them to drag them around. You must click on the (height of the) slider.
Can't reproduce that one, the whole 'knob' is interactive for me (in fact even clicking outside of the knob works). Is it on a specific screen?

Quote from: sorwedeya on Jul 22, 2023, 04:33 PMI have a girl in the city which love dont increase, no matter i talk to her. There are just the starting dialoge.
Couldn't reproduce that one. Try this while talking to her: call the console with Shift+o, then type:
girl.personality.nameThen tell me what it says.
Title: Re: v0.3 Test version (gameplay only)
Post by: neronero on Jul 23, 2023, 12:02 AM
Quote from: Goldo on Jul 22, 2023, 11:32 PM
Quote from: neronero on Jul 22, 2023, 01:22 PMI like the new 'knobs' on sliders, but it's counterintuitive that you can't click just anywhere on them to drag them around. You must click on the (height of the) slider.
Can't reproduce that one, the whole 'knob' is interactive for me (in fact even clicking outside of the knob works). Is it on a specific screen?
Brothel settings/helpers & customer options are examples. I think it's due to me running the game in 4k on custom resolution. The knobs stay big while the sliders take up less screenspace, and that makes the issue more obvious.
There are some other scaling issues, but for now I'll switch to testing in 1920x1080. I'll try listing them all in one go at some point.
Title: Re: v0.3 Test version (gameplay only)
Post by: oratorio on Jul 23, 2023, 12:44 AM
In the shop ... if you have 2 tabs of items available, go to the second tab, buy everything until the tab is empty ... you lose the ability to go back to the first tab and the tab remains empty. (You can go back to the main screen and then into the shop. The items from tab 1 are still there)
Title: Re: v0.3 Test version (gameplay only)
Post by: oratorio on Jul 23, 2023, 01:01 AM
Give and equip a thong to my girl. It shows in both of our inventories as "Equipped". Select it in my inventory and try to give it again and get this error:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1471, in script
    $ owner.unequip(it)
  File "game/BKmain.rpy", line 1471, in <module>
    $ owner.unequip(it)
  File "game/BKclasses.rpy", line 1285, in unequip
    self.equipped.remove(item)
ValueError: list.remove(x): x not in list

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

Full traceback:
  File "game/BKmain.rpy", line 1471, in script
    $ owner.unequip(it)
  File "C:\Games\Brothel_King-0.3t\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Games\Brothel_King-0.3t\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 1471, in <module>
    $ owner.unequip(it)
  File "game/BKclasses.rpy", line 1285, in unequip
    self.equipped.remove(item)
  File "C:\Games\Brothel_King-0.3t\renpy\revertable.py", line 97, in do_mutation
    return method(self, *args, **kwargs)
ValueError: list.remove(x): x not in list

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sat Jul 22 21:00:17 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: zvb123 on Jul 23, 2023, 02:49 AM
Quote from: Goldo on Jul 22, 2023, 09:27 PMI can't quite figure this one out as I thought all persistent data would be brand new with this version, why is it 'remembering' old mods? I suggest erasing (or renaming for backup) any BK persistent data you might have from previous versions.


there's definitely something weird going on with persistent storage.
I had a clean new install, and even removed the folder in AppData\Roaming\RenPy\Bro King-1419249291 and it still complained about the girl packs I had previously installed going missing.
Title: Re: v0.3 Test version (gameplay only)
Post by: sorwedeya on Jul 23, 2023, 03:42 AM
Quote from: Goldo on Jul 22, 2023, 11:32 PM
Quote from: sorwedeya on Jul 22, 2023, 04:33 PMI have a girl in the city which love dont increase, no matter i talk to her. There are just the starting dialoge.
Couldn't reproduce that one. Try this while talking to her: call the console with Shift+o, then type:
girl.personality.nameThen tell me what it says.

The name of the girl is "Aerith Gainsborough" and tipping girl.personality.name just say 'aerith'
Title: Re: v0.3 Test version (gameplay only)
Post by: Netscape1964 on Jul 23, 2023, 03:51 AM
i got this from an event with the idiot brothel owner
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1510, in script call
    call play_events(_type = "morning") from _call_play_events_1 # Note: Morning events are set with the new day's date: beware of the confusion
  File "game/BKevents.rpy", line 713, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 725, in script call
    $ ev.play()
  File "game/BKstory_events.rpy", line 13536, in script
    $ MC.rand_say("Yes, I'm sure you love to jerk off in front of 20 dudes...", "Cool. That should give you the audience you need when you're bouncing on your boy's dick.")
  File "game/BKstory_events.rpy", line 13536, in <module>
    $ MC.rand_say("Yes, I'm sure you love to jerk off in front of 20 dudes...", "Cool. That should give you the audience you need when you're bouncing on your boy's dick.")
TypeError: rand_say() takes 2 positional arguments but 3 were given

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

Full traceback:
  File "game/BKendday.rpy", line 1510, in script call
    call play_events(_type = "morning") from _call_play_events_1 # Note: Morning events are set with the new day's date: beware of the confusion
  File "game/BKevents.rpy", line 713, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 725, in script call
    $ ev.play()
  File "game/BKstory_events.rpy", line 13536, in script
    $ MC.rand_say("Yes, I'm sure you love to jerk off in front of 20 dudes...", "Cool. That should give you the audience you need when you're bouncing on your boy's dick.")
  File "C:\Users\****\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\****\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKstory_events.rpy", line 13536, in <module>
    $ MC.rand_say("Yes, I'm sure you love to jerk off in front of 20 dudes...", "Cool. That should give you the audience you need when you're bouncing on your boy's dick.")
TypeError: rand_say() takes 2 positional arguments but 3 were given

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sun Jul 23 05:49:55 2023

it arrived after multiple instances of the kosmo bragging event in a single night
Title: Re: v0.3 Test version (gameplay only)
Post by: zvb123 on Jul 23, 2023, 04:49 AM
I convinced a city girl (unique) to take the job but she never showed up at the brothel. I got a save from just before the job offer so let me know if you'd like me to print out any variables for you
Title: Re: v0.3 Test version (gameplay only)
Post by: neronero on Jul 23, 2023, 07:32 AM
Quote from: sorwedeya on Jul 23, 2023, 03:42 AM
Quote from: Goldo on Jul 22, 2023, 11:32 PM
Quote from: sorwedeya on Jul 22, 2023, 04:33 PMI have a girl in the city which love dont increase, no matter i talk to her. There are just the starting dialoge.
Couldn't reproduce that one. Try this while talking to her: call the console with Shift+o, then type:
girl.personality.nameThen tell me what it says.

The name of the girl is "Aerith Gainsborough" and tipping girl.personality.name just say 'aerith'
This'll likely be an issue with her custom personality, not with 0.3

I think it's an issue that has been fixed. Try replacing her _personality.rpy file with the latest version (https://mega.nz/file/9t4ilKpT#TLSnF0eM3ISfuaGVW-YbdLdrIJ6cZw3lMnm3gfRM6Ys). If the issue persists, let me know via a DM so we can keep this thread rolling in one direction :)
Title: Re: v0.3 Test version (gameplay only)
Post by: vadi92 on Jul 23, 2023, 07:47 AM
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1156, in script
    python:
  File "game/BKendday.rpy", line 1196, in <module>
    girl2_changes.append()
TypeError: list.append() takes exactly one argument (0 given)

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

Full traceback:
  File "game/BKendday.rpy", line 1156, in script
    python:
  File "D:\Games\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:\Games\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 1196, in <module>
    girl2_changes.append()
  File "D:\Games\Brothel_King-pc\renpy\revertable.py", line 97, in do_mutation
    return method(self, *args, **kwargs)
TypeError: list.append() takes exactly one argument (0 given)

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sun Jul 23 09:42:17 2023

Stats dosn't change for other slaves. (Having a girl with mentor trait)
Title: Re: v0.3 Test version (gameplay only)
Post by: Hermenegild on Jul 23, 2023, 08:36 AM
Quote from: Netscape1964 on Jul 22, 2023, 03:17 AMmy main problem is cosmo event keeps getting longer and longer. that idiot comes with one more slave to show off every time the event triggers. i'm up to about 7 or 8 slave he shows to me. it's getting a bit long.
This is happening for me as well. In addition, he now comes almost every day. The new patch doesn't seem to fix it (at least not without restarting the game).
Title: Re: v0.3 Test version (gameplay only)
Post by: neronero on Jul 23, 2023, 08:50 AM
Quote from: vadi92 on Jul 23, 2023, 07:47 AMStats dosn't change for other slaves. (Having a girl with mentor trait)
@Goldo Mentor is a Trait King trait that gives the "skill catch up" effect, like the Leading by Example perk. Looks like a genuine issue with the refactored skill catch up code.
Title: Re: v0.3 Test version (gameplay only)
Post by: vadi92 on Jul 23, 2023, 08:58 AM
Arson event's still give's you error even with the new patch.
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 758, in script
    python:
  File "game/BKendday.rpy", line 771, in <module>
    crazy_ev, crazy_cust = crazy_customer([girl], ent_dict[girl])
  File "game/BKfunctions.rpy", line 1256, in crazy_customer
    notify("%s: Arson attempt" % (brothel.name, plus_text(chg, color_scheme="rep")))
TypeError: not all arguments converted during string formatting

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

Full traceback:
  File "game/BKendday.rpy", line 758, in script
    python:
  File "D:\Games\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:\Games\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 771, in <module>
    crazy_ev, crazy_cust = crazy_customer([girl], ent_dict[girl])
  File "game/BKfunctions.rpy", line 1256, in crazy_customer
    notify("%s: Arson attempt" % (brothel.name, plus_text(chg, color_scheme="rep")))
TypeError: not all arguments converted during string formatting

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sun Jul 23 10:56:40 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: vadi92 on Jul 23, 2023, 09:07 AM
For small brothel events the background dosn't seem to loading up. For me neither the tavern or onsen background loading up for them.
Title: Re: v0.3 Test version (gameplay only)
Post by: Hermenegild on Jul 23, 2023, 09:11 AM
The issue with recruited free girls never showing up in the brothel is related to acquire_girl() not handling this case properly in step #1 (check if you have money and room for the girl). The handling should happen in the "else" clause for the "if price:" check. As it is, we enter step #2 with $result still being set to False, and the rest of the code doesn't execute.

Add the "else:" and "$result = True" lines to around line #7375 of BKevents.rpy:

        if len(MC.girls) < brothel.bedrooms:
            if price:
                if MC.has_gold(price):
                    $ result = renpy.call_screen("yes_no", "Do you really want to buy [girl.fullname] for [price] gold?")
                else:
                    if context == "slavemarket":
                        slavegirl1 "Sorry Master, but you don't have enough gold to buy [girl.fullname]."
                    else:
                        you "Shoot, I don't have enough gold..."
            else:
                $result = True
        else:

Be careful with indentation, it should be exactly as shown.
Title: Re: v0.3 Test version (gameplay only)
Post by: vadi92 on Jul 23, 2023, 10:20 AM
Another error for the new type of training.
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1305, in script call
    call slave_interact(girl) from _call_slave_interact
  File "game/BKinteractions.rpy", line 394, in script call
    $ renpy.call(topic.label, girl)
  File "game/BKinteractions.rpy", line 1213, in script call
    call slave_do(girl, act, context="free-form") from _call_slave_do_1
  File "game/BKinteractions.rpy", line 2012, in script
    $ inter.score = girl.get_stat(act) - reluctance
  File "game/BKinteractions.rpy", line 2012, in <module>
    $ inter.score = girl.get_stat(act) - reluctance
NameError: name 'reluctance' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 1305, in script call
    call slave_interact(girl) from _call_slave_interact
  File "game/BKinteractions.rpy", line 394, in script call
    $ renpy.call(topic.label, girl)
  File "game/BKinteractions.rpy", line 1213, in script call
    call slave_do(girl, act, context="free-form") from _call_slave_do_1
  File "game/BKinteractions.rpy", line 2012, in script
    $ inter.score = girl.get_stat(act) - reluctance
  File "D:\Games\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:\Games\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKinteractions.rpy", line 2012, in <module>
    $ inter.score = girl.get_stat(act) - reluctance
NameError: name 'reluctance' is not defined

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sun Jul 23 12:18:29 2023

And it's showing another sex act during it. https://imgur.com/a/KSWTmH5 (https://imgur.com/a/KSWTmH5) Dont know if it's for extra training or not.
Title: Re: v0.3 Test version (gameplay only)
Post by: Hermenegild on Jul 23, 2023, 10:32 AM
One of the Kosmo events, the one with the ninja girl, crashes.

In line #13536 of BKstory_events.rpy, put the arguments to MC.rand_say() into the list and the issue disappears:

$ MC.rand_say(["Yes, I'm sure you love to jerk off in front of 20 dudes...", "Cool. That should give you the audience you need when you're bouncing on your boy's dick."])

In other words, change the "(" and ")" pair to "([" and"])". I believe "((" and "))" would also work.
Title: Re: v0.3 Test version (gameplay only)
Post by: Hermenegild on Jul 23, 2023, 05:27 PM
Another crash: if a girl has the Leading by Example perk, the game can crash at the end of the day.

The actual crash can be fixed by changing line 1196 of BKendday.rpy from
girl2_changes.append()to
girl2_changes.append(stat)
It's not a complete fix, however, as a message later still shows variable placeholders ("[girl.fullname]") instead of the real girl's name. You also have to change line #1397 of BKendday.rpy from
$ text1 = "[girl.fullname] helped "to
$ text1 = girl.fullname + " helped "
And it's not a complete fix, either: sometimes there's an error "No list" displayed in the message.
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Jul 23, 2023, 11:41 PM
https://www.mediafire.com/file/1va1v7cq1psp53x/game+patch+0.3.zip/file

Another hotfix (includes changes from the previous one).

Please be aware that hotfixes most of the time do not solve issues in existing games, you need to start a new game to make sure it works. Please don't report a bug as not fixed unless you have tested it in a new game.



Quote from: neronero on Jul 23, 2023, 12:02 AM
Quote from: Goldo on Jul 22, 2023, 11:32 PM
Quote from: neronero on Jul 22, 2023, 01:22 PMI like the new 'knobs' on sliders, but it's counterintuitive that you can't click just anywhere on them to drag them around. You must click on the (height of the) slider.
Can't reproduce that one, the whole 'knob' is interactive for me (in fact even clicking outside of the knob works). Is it on a specific screen?
Brothel settings/helpers & customer options are examples. I think it's due to me running the game in 4k on custom resolution. The knobs stay big while the sliders take up less screenspace, and that makes the issue more obvious.
There are some other scaling issues, but for now I'll switch to testing in 1920x1080. I'll try listing them all in one go at some point.
Sorry about that, but I can't figure out an easy way to dynamically resize bars and a quick search on lemmasoft's forum didn't turn up any answer. Since I only plan to support a couple of resolutions in the interest of my own sanity, I'm going to put that bug on the back burner for now.  :(

Quote from: oratorio on Jul 23, 2023, 01:01 AMGive and equip a thong to my girl. It shows in both of our inventories as "Equipped". Select it in my inventory and try to give it again and get this error:
[...]
Cannot seem to reproduce that one. Can you detail the sequence of events needed to reproduce it? Does it happen with any other item?

Quote from: zvb123 on Jul 23, 2023, 02:49 AMthere's definitely something weird going on with persistent storage.
I had a clean new install, and even removed the folder in AppData\Roaming\RenPy\Bro King-1419249291 and it still complained about the girl packs I had previously installed going missing.
I'm guessing the fix is telling Ren'py that BK 0.3 is a different game altogether (probably by changing 'config.name'). Kind of too late to do that on the test version, but I will make sure to change it for the actual release.

Quote from: Hermenegild on Jul 23, 2023, 08:36 AM
Quote from: Netscape1964 on Jul 22, 2023, 03:17 AMmy main problem is cosmo event keeps getting longer and longer. that idiot comes with one more slave to show off every time the event triggers. i'm up to about 7 or 8 slave he shows to me. it's getting a bit long.
This is happening for me as well. In addition, he now comes almost every day. The new patch doesn't seem to fix it (at least not without restarting the game).
Does it happen in a new game? If you use an older save with the bug, the bug will remain. Please don't make a bug report unless this happens in a new game after applying the hotfix.

Quote from: neronero on Jul 23, 2023, 08:50 AM
Quote from: vadi92 on Jul 23, 2023, 07:47 AMStats dosn't change for other slaves. (Having a girl with mentor trait)
@Goldo Mentor is a Trait King trait that gives the "skill catch up" effect, like the Leading by Example perk. Looks like a genuine issue with the refactored skill catch up code.
Well the game would crash first because of the 'girl2_changes.append()' bug, so I assume the original poster used 'ignore' or he wouldn't have been able to get through. I don't expect the python code to proceed as normal in that situation so it will be necessary to test it again before determining if it is indeed broken.

Quote from: vadi92 on Jul 23, 2023, 09:07 AMFor small brothel events the background dosn't seem to loading up. For me neither the tavern or onsen background loading up for them.
Please list the precise events for which it is happening so I can fix them in an appropriate manner.

Thank you guys again for all the reports!
Title: Re: v0.3 Test version (gameplay only)
Post by: Netscape1964 on Jul 24, 2023, 05:44 AM
the kosmo bug where he comes more often and overstays his welcome seems fixed.
Title: Re: v0.3 Test version (gameplay only)
Post by: wbfox on Jul 24, 2023, 12:57 PM
problem with farm training

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "game/BKendday.rpy", line 949, in <module>
    farm_events += farm.programs[girl].resolve("training")
  File "game/BKfarm.rpy", line 388, in resolve
    raise AssertionError("Reaction " + reaction + " not recognized.")
AssertionError: Reaction accepted not recognized.

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

Full traceback:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "C:\Users\FS\Downloads\ry\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\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 949, in <module>
    farm_events += farm.programs[girl].resolve("training")
  File "game/BKfarm.rpy", line 388, in resolve
    raise AssertionError("Reaction " + reaction + " not recognized.")
AssertionError: Reaction accepted not recognized.

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Mon Jul 24 14:54:48 2023

edit: different one after changing from gentle to rough

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "game/BKendday.rpy", line 949, in <module>
    farm_events += farm.programs[girl].resolve("training")
  File "game/BKfarm.rpy", line 529, in resolve
    change_log = self.apply_changes(girl, changes)
  File "game/BKfarm.rpy", line 976, in apply_changes
    mojo_color = mojo_dict[self.act]
KeyError: 'naked'

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

Full traceback:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "C:\Users\FS\Downloads\ry\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\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 949, in <module>
    farm_events += farm.programs[girl].resolve("training")
  File "game/BKfarm.rpy", line 529, in resolve
    change_log = self.apply_changes(girl, changes)
  File "game/BKfarm.rpy", line 976, in apply_changes
    mojo_color = mojo_dict[self.act]
KeyError: 'naked'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Mon Jul 24 14:58:43 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: wbfox on Jul 24, 2023, 01:59 PM
sorting girls by badge doesn't work if one doesn't have one picked

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1115, in script
    $ result = ui.interact()
  File "game/BKmain.rpy", line 1115, in <module>
    $ result = ui.interact()
  File "renpy/common/00action_other.rpy", line 583, in __call__
    rv = self.callable(*self.args, **self.kwargs)
TypeError: '<' not supported between instances of 'int' and 'str'

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

Full traceback:
  File "game/BKmain.rpy", line 1115, in script
    $ result = ui.interact()
  File "C:\Users\FS\Downloads\ry\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\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 1115, in <module>
    $ result = ui.interact()
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\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 "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4540, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 770, in event
    rv = self.child.event(ev, x, y, st)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  [Previous line repeated 1 more time]
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 1401, in event
    rv = super(Window, self).event(ev, x, y, st)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\layout.py", line 279, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\behavior.py", line 1138, in event
    return handle_click(self.clicked)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\behavior.py", line 1071, in handle_click
    rv = run(action)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\behavior.py", line 368, in run
    new_rv = run(i, *args, **kwargs)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\display\behavior.py", line 375, in run
    return action(*args, **kwargs)
  File "renpy/common/00action_other.rpy", line 583, in __call__
    rv = self.callable(*self.args, **self.kwargs)
  File "C:\Users\FS\Downloads\ry\Brothel_King-0.3t\Brothel_King-pc\renpy\revertable.py", line 97, in do_mutation
    return method(self, *args, **kwargs)
TypeError: '<' not supported between instances of 'int' and 'str'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Mon Jul 24 15:57:10 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: vadi92 on Jul 24, 2023, 02:26 PM
Quote from: Goldo on Jul 23, 2023, 11:41 PMWell the game would crash first because of the 'girl2_changes.append()' bug, so I assume the original poster used 'ignore' or he wouldn't have been able to get through. I don't expect the python code to proceed as normal in that situation so it will be necessary to test it again before determining if it is indeed broken.

The mentor trait is working the same way as the "Leading by Example" perk. But it was posted by Hermenegild too that it was broken.
Title: Re: v0.3 Test version (gameplay only)
Post by: oratorio on Jul 24, 2023, 02:45 PM
Cannot buy MK1 resource extractor. It says the item cannot be traded.

Also, occasionally items will duplicate in inventory. When this happens, you can give it to a girl and equip it. It still shows up in the MC's inventory. It will show as equipped in both. When you select either one, both become selected. If you try to give away or sell the one in the MC's inventory, it causes a skippable error. If you collect all copies in the MC's inventory you can sell it to the shop. You are paid for the first copy. All future copies she will tell you that she will only pay you for the item once. This appears to be the only way to remove the broken item from the MC's inventory. Once this happens you can give as many copies as you want to any girl (with errors each time). I have not identified the conditions for the initial duplication but it has happened to me four times (two weapons, two panties).
Title: Re: v0.3 Test version (gameplay only)
Post by: vadi92 on Jul 24, 2023, 04:05 PM
Quote from: Goldo on Jul 23, 2023, 11:41 PMPlease list the precise events for which it is happening so I can fix them in an appropriate manner.

For this i cant really give you a precise event because it's pretty random.
But the ones where i never seen a background it's the tavern event, the okiya event, the onsen event. And most of the time i dont see a background at the obedience event either.
Title: Re: v0.3 Test version (gameplay only)
Post by: darksythe53 on Jul 24, 2023, 06:40 PM
Quote from: vadi92 on Jul 24, 2023, 04:05 PM
Quote from: Goldo on Jul 23, 2023, 11:41 PMPlease list the precise events for which it is happening so I can fix them in an appropriate manner.

For this i cant really give you a precise event because it's pretty random.
But the ones where i never seen a background it's the tavern event, the okiya event, the onsen event. And most of the time i dont see a background at the obedience event either.
Here is an example image from my game. I started a new game viewing the into.  When it is time to select my starting room, I can see everything except the strip club which appears like this. Any subsequent events involving the strip club appear like this as well. (https://media.discordapp.net/attachments/1133105827457278005/1133106290512642209/image.png?width=1148&height=616)
Title: Re: v0.3 Test version (gameplay only)
Post by: hughfj08 on Jul 24, 2023, 07:42 PM
The Lightning Rod cannot be purchased.

Says this item cannot be traded.

Also if you hold CTRL to skip text, sometimes it causes the girls portrait to black out until the following day or a close program.
Reloading the save, or just returning to main menu doesnt fix it
Title: Re: v0.3 Test version (gameplay only)
Post by: kingthandra on Jul 24, 2023, 10:26 PM
Can't even start the game, getting this error:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 310, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 64, in script
    python:
  File "game/BKevents.rpy", line 67, in <module>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 67, in <lambda>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 67, in <listcomp>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKfunctions.rpy", line 3468, in read_init_file_generate_as
    v = read_init_file_field(file, "background story", "generate_as", _default="all", skip_checks=True)
  File "game/BKfunctions.rpy", line 3474, in read_init_file_field
    field = read_init_file(file, search_for = {_key : [_value]}, skip_checks=skip_checks)[_key + "/" + _value]
  File "game/BKfunctions.rpy", line 3495, in read_init_file
    parser.read(config.gamedir + "/" + file)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 20: invalid continuation byte

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

Full traceback:
  File "renpy/common/00start.rpy", line 310, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 64, in script
    python:
  File "D:\Proyectos\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:\Proyectos\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 67, in <module>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 67, in <lambda>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 67, in <listcomp>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKfunctions.rpy", line 3468, in read_init_file_generate_as
    v = read_init_file_field(file, "background story", "generate_as", _default="all", skip_checks=True)
  File "game/BKfunctions.rpy", line 3474, in read_init_file_field
    field = read_init_file(file, search_for = {_key : [_value]}, skip_checks=skip_checks)[_key + "/" + _value]
  File "game/BKfunctions.rpy", line 3495, in read_init_file
    parser.read(config.gamedir + "/" + file)
  File "configparser.py", line 653, in read
  File "configparser.py", line 960, in _read
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/codecs.py", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 20: invalid continuation byte

Windows-10-10.0.19041 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Tue Jul 25 00:25:33 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: Calob on Jul 24, 2023, 11:02 PM
No-story mode does not unlock the customer options on reaching chapter 2, despite it automatically unlocking the wagon. You still get the morning event with the blacksmith once you start building something.

Edit: Confirm the second farm error as wbfox:

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

While running game code:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "game/BKendday.rpy", line 949, in <module>
    farm_events += farm.programs[girl].resolve("training")
  File "game/BKfarm.rpy", line 718, in resolve
    change_log = self.apply_changes(girl, changes)
  File "game/BKfarm.rpy", line 976, in apply_changes
    mojo_color = mojo_dict[self.act]
KeyError: 'naked'

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

Full traceback:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "D:\Games\Brothel King 0.3 alpha\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "D:\Games\Brothel King 0.3 alpha\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 949, in <module>
    farm_events += farm.programs[girl].resolve("training")
  File "game/BKfarm.rpy", line 718, in resolve
    change_log = self.apply_changes(girl, changes)
  File "game/BKfarm.rpy", line 976, in apply_changes
    mojo_color = mojo_dict[self.act]
KeyError: 'naked'

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Mon Jul 24 19:27:39 2023
[close]

Edit2: The above error also occurs with KeyError: 'bisexual' as well as 'naked'.

Edit3: This error the morning after using an 'abduction' card:
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1511, in script call
    call play_events(_type = "morning") from _call_play_events_1 # Note: Morning events are set with the new day's date: beware of the confusion
  File "game/BKevents.rpy", line 713, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 725, in script call
    $ ev.play()
  File "game/BKpowers.rpy", line 1332, in script
    with dissolve
  File "renpy/common/00action_other.rpy", line 583, in __call__
    rv = self.callable(*self.args, **self.kwargs)
  File "game/BKdeclarations.rpy", line 1373, in unlock_pic
    if path not in persistent.seen_list:
UnboundLocalError: local variable 'path' referenced before assignment

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

Full traceback:
  File "game/BKendday.rpy", line 1511, in script call
    call play_events(_type = "morning") from _call_play_events_1 # Note: Morning events are set with the new day's date: beware of the confusion
  File "game/BKevents.rpy", line 713, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 725, in script call
    $ ev.play()
  File "game/BKpowers.rpy", line 1332, in script
    with dissolve
  File "D:\Games\Brothel King 0.3 alpha\renpy\ast.py", line 1678, in execute
    renpy.exports.with_statement(trans, paired=paired)
  File "D:\Games\Brothel King 0.3 alpha\renpy\exports.py", line 1757, in with_statement
    return renpy.game.interface.do_with(trans, paired, clear=clear)
  File "D:\Games\Brothel King 0.3 alpha\renpy\display\core.py", line 2975, in do_with
    return self.interact(trans_pause=True,
  File "D:\Games\Brothel King 0.3 alpha\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 "D:\Games\Brothel King 0.3 alpha\renpy\display\core.py", line 4052, in interact_core
    root_widget.visit_all(lambda d : d.per_interact())
  File "D:\Games\Brothel King 0.3 alpha\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "D:\Games\Brothel King 0.3 alpha\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "D:\Games\Brothel King 0.3 alpha\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  [Previous line repeated 3 more times]
  File "D:\Games\Brothel King 0.3 alpha\renpy\display\screen.py", line 476, in visit_all
    callback(self)
  File "D:\Games\Brothel King 0.3 alpha\renpy\display\core.py", line 4052, in <lambda>
    root_widget.visit_all(lambda d : d.per_interact())
  File "D:\Games\Brothel King 0.3 alpha\renpy\display\screen.py", line 487, in per_interact
    self.update()
  File "D:\Games\Brothel King 0.3 alpha\renpy\display\screen.py", line 706, in update
    i.set_transform_event(self.current_transform_event)
  File "D:\Games\Brothel King 0.3 alpha\renpy\display\behavior.py", line 2673, in set_transform_event
    rv = run(self.action)
  File "D:\Games\Brothel King 0.3 alpha\renpy\display\behavior.py", line 375, in run
    return action(*args, **kwargs)
  File "renpy/common/00action_other.rpy", line 583, in __call__
    rv = self.callable(*self.args, **self.kwargs)
  File "game/BKdeclarations.rpy", line 1373, in unlock_pic
    if path not in persistent.seen_list:
UnboundLocalError: local variable 'path' referenced before assignment

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Mon Jul 24 19:49:01 2023
[close]

Edit4: Spell icons seem to not be working, they give me the girl silhouette icon (https://imgur.com/a/wsYvpl0)
Title: Re: v0.3 Test version (gameplay only)
Post by: DarkFire on Jul 25, 2023, 02:34 AM
I have this error when selecting any Sexual Training in Act 2. (Didn't happened in Act 1)

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 693, in script call
    call farm_change_program(obj) from _call_farm_change_program
  File "game/BKevents.rpy", line 3838, in script call
    call send_to_farm_menu() from _call_send_to_farm_menu
  File "game/BKevents.rpy", line 3467, in script
    call screen farm_menu(prog)
  File "renpy/common/000statements.rpy", line 670, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "game/BKscreens.rpy", line 6997, in execute
    screen farm_tab():
  File "game/BKscreens.rpy", line 6997, in execute
    screen farm_tab():
  File "game/BKscreens.rpy", line 7007, in execute
    if selected_girl and selected_girl in farm.girls:
  File "game/BKscreens.rpy", line 7015, in execute
    use girl_profile(selected_girl, context="farm")
  File "game/BKscreens.rpy", line 1164, in execute
    screen girl_profile(girl, context = None): # context can be girls, slavemarket, farm, free
  File "game/BKscreens.rpy", line 1164, in execute
    screen girl_profile(girl, context = None): # context can be girls, slavemarket, farm, free
  File "game/BKscreens.rpy", line 1172, in execute
    fixed:
  File "game/BKscreens.rpy", line 1179, in execute
    if girl.profile != None:
  File "game/BKscreens.rpy", line 1184, in execute
    if context == "farm":
  File "game/BKscreens.rpy", line 1185, in execute
    frame background c_ui_dark:
  File "game/BKscreens.rpy", line 1191, in execute
    has vbox
  File "game/BKscreens.rpy", line 1222, in execute
    if farm.programs[girl].target != "no training":
  File "game/BKscreens.rpy", line 1232, in execute
    hbox spacing xres(10):
  File "game/BKscreens.rpy", line 1234, in execute
    textbutton farm.programs[girl].installation_name.capitalize() style "inv_no_padding" yalign 0.5 text_size res_font(14) text_bold True action NullAction() tooltip farm.programs[girl].installation.get_tooltip()
  File "game/BKscreens.rpy", line 1234, in keywords
    textbutton farm.programs[girl].installation_name.capitalize() style "inv_no_padding" yalign 0.5 text_size res_font(14) text_bold True action NullAction() tooltip farm.programs[girl].installation.get_tooltip()
  File "game/BKscreens.rpy", line 1234, in <module>
    textbutton farm.programs[girl].installation_name.capitalize() style "inv_no_padding" yalign 0.5 text_size res_font(14) text_bold True action NullAction() tooltip farm.programs[girl].installation.get_tooltip()
AttributeError: 'NoneType' object has no attribute 'get_tooltip'

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

Full traceback:
  File "game/BKmain.rpy", line 693, in script call
    call farm_change_program(obj) from _call_farm_change_program
  File "game/BKevents.rpy", line 3838, in script call
    call send_to_farm_menu() from _call_send_to_farm_menu
  File "game/BKevents.rpy", line 3467, in script
    call screen farm_menu(prog)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 2259, in execute
    self.call("execute")
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 2241, in call
    return renpy.statements.call(method, parsed, *args, **kwargs)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\statements.py", line 342, in call
    return method(parsed, *args, **kwargs)
  File "renpy/common/000statements.rpy", line 670, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\exports.py", line 3345, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\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 "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in interact_core
    root_widget.visit_all(lambda d : d.per_interact())
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 476, in visit_all
    callback(self)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in <lambda>
    root_widget.visit_all(lambda d : d.per_interact())
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 487, in per_interact
    self.update()
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 680, in update
    self.screen.function(**self.scope)
  File "game/BKscreens.rpy", line 6997, in execute
    screen farm_tab():
  File "game/BKscreens.rpy", line 6997, in execute
    screen farm_tab():
  File "game/BKscreens.rpy", line 7007, in execute
    if selected_girl and selected_girl in farm.girls:
  File "game/BKscreens.rpy", line 7015, in execute
    use girl_profile(selected_girl, context="farm")
  File "game/BKscreens.rpy", line 1164, in execute
    screen girl_profile(girl, context = None): # context can be girls, slavemarket, farm, free
  File "game/BKscreens.rpy", line 1164, in execute
    screen girl_profile(girl, context = None): # context can be girls, slavemarket, farm, free
  File "game/BKscreens.rpy", line 1172, in execute
    fixed:
  File "game/BKscreens.rpy", line 1179, in execute
    if girl.profile != None:
  File "game/BKscreens.rpy", line 1184, in execute
    if context == "farm":
  File "game/BKscreens.rpy", line 1185, in execute
    frame background c_ui_dark:
  File "game/BKscreens.rpy", line 1191, in execute
    has vbox
  File "game/BKscreens.rpy", line 1222, in execute
    if farm.programs[girl].target != "no training":
  File "game/BKscreens.rpy", line 1232, in execute
    hbox spacing xres(10):
  File "game/BKscreens.rpy", line 1234, in execute
    textbutton farm.programs[girl].installation_name.capitalize() style "inv_no_padding" yalign 0.5 text_size res_font(14) text_bold True action NullAction() tooltip farm.programs[girl].installation.get_tooltip()
  File "game/BKscreens.rpy", line 1234, in keywords
    textbutton farm.programs[girl].installation_name.capitalize() style "inv_no_padding" yalign 0.5 text_size res_font(14) text_bold True action NullAction() tooltip farm.programs[girl].installation.get_tooltip()
  File "game/BKscreens.rpy", line 1234, in <module>
    textbutton farm.programs[girl].installation_name.capitalize() style "inv_no_padding" yalign 0.5 text_size res_font(14) text_bold True action NullAction() tooltip farm.programs[girl].installation.get_tooltip()
AttributeError: 'NoneType' object has no attribute 'get_tooltip'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Tue Jul 25 04:31:42 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Jul 25, 2023, 11:00 PM
New hotfix fixing a few bugs (and hopefully not raising new ones):

https://www.mediafire.com/file/1va1v7cq1psp53x/game+patch+0.3.zip/file



Not everything can be fixed though.

Quote from: oratorio on Jul 24, 2023, 02:45 PMAlso, occasionally items will duplicate in inventory. When this happens, you can give it to a girl and equip it. It still shows up in the MC's inventory. It will show as equipped in both. When you select either one, both become selected. If you try to give away or sell the one in the MC's inventory, it causes a skippable error. If you collect all copies in the MC's inventory you can sell it to the shop. You are paid for the first copy. All future copies she will tell you that she will only pay you for the item once. This appears to be the only way to remove the broken item from the MC's inventory. Once this happens you can give as many copies as you want to any girl (with errors each time). I have not identified the conditions for the initial duplication but it has happened to me four times (two weapons, two panties).
It would be most useful to identify the context for this duplication. Until we can reproduce it I won't be able to fix it.

Quote from: hughfj08 on Jul 24, 2023, 07:42 PMAlso if you hold CTRL to skip text, sometimes it causes the girls portrait to black out until the following day or a close program.
Reloading the save, or just returning to main menu doesnt fix it
I don't think it's related to using 'Ctrl' at all, it's the issue highlighted in my first reply to this post. There's nothing I can do on my end until I figure out what Ren'py 8.1.1 broke. But the most likely answer will be to roll back to 8.0.1.

Quote from: kingthandra on Jul 24, 2023, 10:26 PMCan't even start the game, getting this error:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 310, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 64, in script
    python:
  File "game/BKevents.rpy", line 67, in <module>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 67, in <lambda>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 67, in <listcomp>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKfunctions.rpy", line 3468, in read_init_file_generate_as
    v = read_init_file_field(file, "background story", "generate_as", _default="all", skip_checks=True)
  File "game/BKfunctions.rpy", line 3474, in read_init_file_field
    field = read_init_file(file, search_for = {_key : [_value]}, skip_checks=skip_checks)[_key + "/" + _value]
  File "game/BKfunctions.rpy", line 3495, in read_init_file
    parser.read(config.gamedir + "/" + file)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 20: invalid continuation byte

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

Full traceback:
  File "renpy/common/00start.rpy", line 310, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 64, in script
    python:
  File "D:\Proyectos\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:\Proyectos\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 67, in <module>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 67, in <lambda>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 67, in <listcomp>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKfunctions.rpy", line 3468, in read_init_file_generate_as
    v = read_init_file_field(file, "background story", "generate_as", _default="all", skip_checks=True)
  File "game/BKfunctions.rpy", line 3474, in read_init_file_field
    field = read_init_file(file, search_for = {_key : [_value]}, skip_checks=skip_checks)[_key + "/" + _value]
  File "game/BKfunctions.rpy", line 3495, in read_init_file
    parser.read(config.gamedir + "/" + file)
  File "configparser.py", line 653, in read
  File "configparser.py", line 960, in _read
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/codecs.py", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 20: invalid continuation byte

Windows-10-10.0.19041 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Tue Jul 25 00:25:33 2023

This is probably because one of your girl pack has a strange _BK.ini file, featuring non-unicode characters or something. I recommend removing a few girl packs until you can find the culprit.
Title: Re: v0.3 Test version (gameplay only)
Post by: DarkFire on Jul 26, 2023, 03:28 AM
This appeared after the hotfix while trying to train a girl in the farm, at the end of day:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "game/BKendday.rpy", line 949, in <module>
    farm_events += farm.programs[girl].resolve("training")
  File "game/BKfarm.rpy", line 531, in resolve
    change_log = self.apply_changes(girl, changes)
  File "game/BKfarm.rpy", line 980, in apply_changes
    changes[stat] = girl.change_fear(chg*reverse_if(girl.get_effect("boost", "farm fear generation"), chg), mojo_color=mojo_color)
  File "game/BKgirlclass.rpy", line 4170, in change_fear
    MC.raise_mojo(mojo_color, mojo = change / FARM_MOJO_VALUE)
  File "game/BKclasses.rpy", line 435, in raise_mojo
    self.mojo[mojo_color] += mojo * self.get_effect("boost", mojo_color + " mojo gains") * self.get_effect("boost", "all mojo gains") + self.get_effect("change", mojo_color + " mojo gains") + self.get_effect("change", "all mojo gains")
KeyError: 'r'

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

Full traceback:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "C:\Users\Dani\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\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 949, in <module>
    farm_events += farm.programs[girl].resolve("training")
  File "game/BKfarm.rpy", line 531, in resolve
    change_log = self.apply_changes(girl, changes)
  File "game/BKfarm.rpy", line 980, in apply_changes
    changes[stat] = girl.change_fear(chg*reverse_if(girl.get_effect("boost", "farm fear generation"), chg), mojo_color=mojo_color)
  File "game/BKgirlclass.rpy", line 4170, in change_fear
    MC.raise_mojo(mojo_color, mojo = change / FARM_MOJO_VALUE)
  File "game/BKclasses.rpy", line 435, in raise_mojo
    self.mojo[mojo_color] += mojo * self.get_effect("boost", mojo_color + " mojo gains") * self.get_effect("boost", "all mojo gains") + self.get_effect("change", mojo_color + " mojo gains") + self.get_effect("change", "all mojo gains")
KeyError: 'r'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Wed Jul 26 05:17:19 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: Netscape1964 on Jul 26, 2023, 05:10 AM
tried giving a bag of gold to one of my girls in a new game with latest patch and got this she was rank C lvl1
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1502, in script
    $ r = counterpart.use_item(it)
  File "game/BKmain.rpy", line 1502, in <module>
    $ r = counterpart.use_item(it)
  File "game/BKgirlclass.rpy", line 1590, in use_item
    changes.append("Level", 1)
AttributeError: 'NightChangeLog' object has no attribute 'append'

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

Full traceback:
  File "game/BKmain.rpy", line 1502, in script
    $ r = counterpart.use_item(it)
  File "C:\Users\****\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\****\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 1502, in <module>
    $ r = counterpart.use_item(it)
  File "game/BKgirlclass.rpy", line 1590, in use_item
    changes.append("Level", 1)
AttributeError: 'NightChangeLog' object has no attribute 'append'

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Wed Jul 26 07:08:44 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: neronero on Jul 26, 2023, 12:55 PM
I bought this ring from Renza. Somehow it ended up in my inventory twice. When I select one of them while in the girl item menu, both rings go blue at once (https://i.imgur.com/ktL4uXZ.jpg).

When I equip it on a girl or sell it, one of the rings stays behind in the MC's inventory while being quantum-linked to the other ring (eg, it'll get the "equipped" status when the other ring is equipped by a girl)
Interacting with it afterwards leads to errors, eg:
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1471, in script
    $ owner.unequip(it)
  File "game/BKmain.rpy", line 1471, in <module>
    $ owner.unequip(it)
  File "game/BKclasses.rpy", line 1295, in unequip
    self.equipped.remove(item)
ValueError: list.remove(x): x not in list

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

Full traceback:
  File "game/BKmain.rpy", line 1471, in script
    $ owner.unequip(it)
  File "F:\ilx\BK03T\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\ilx\BK03T\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 1471, in <module>
    $ owner.unequip(it)
  File "game/BKclasses.rpy", line 1295, in unequip
    self.equipped.remove(item)
  File "F:\ilx\BK03T\renpy\revertable.py", line 97, in do_mutation
    return method(self, *args, **kwargs)
ValueError: list.remove(x): x not in list

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Wed Jul 26 14:45:46 2023
[close]
But I think the main issue is somewhere else, that cloned quantum-ring shouldn't exist in the first place.


edit: "➜" (arrow, used in bast's resource exchange) is not a valid glyph in the new font, and needs to be added to the exceptions.

edit2: Love the new results screen btw  :-*

edit3: Error when trying to export a text file of ignored pictures
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 937, in script call
    $ result = ui.interact()
  File "game/BKhelp.rpy", line 557, in script
    $ print_ignore_list()
  File "game/BKhelp.rpy", line 557, in <module>
    $ print_ignore_list()
  File "game/BKfunctions.rpy", line 5233, in print_ignore_list
    with open(config.gamedir[:config.gamedir.rfind("/")] + "/ignored_pictures.txt", "wt") as ignore_file:
FileNotFoundError: [Errno 2] No such file or directory: 'F:\\ilx\\BK03T\\gam/ignored_pictures.txt'

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

Full traceback:
  File "game/BKmain.rpy", line 937, in script call
    $ result = ui.interact()
  File "game/BKhelp.rpy", line 557, in script
    $ print_ignore_list()
  File "F:\ilx\BK03T\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\ilx\BK03T\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKhelp.rpy", line 557, in <module>
    $ print_ignore_list()
  File "game/BKfunctions.rpy", line 5233, in print_ignore_list
    with open(config.gamedir[:config.gamedir.rfind("/")] + "/ignored_pictures.txt", "wt") as ignore_file:
FileNotFoundError: [Errno 2] No such file or directory: 'F:\\ilx\\BK03T\\gam/ignored_pictures.txt'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Wed Jul 26 15:37:52 2023
[close]

edit4: Nighttime error, assume it happens when one of the girls is using or refusing to use an expendable item I gifted to them.
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "game/BKendday.rpy", line 1012, in <module>
    change_log.merge(changes)
NameError: name 'change_log' is not defined

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

Full traceback:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "F:\ilx\BK03T\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\ilx\BK03T\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 1012, in <module>
    change_log.merge(changes)
NameError: name 'change_log' is not defined

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Wed Jul 26 15:46:49 2023
[close]
Title: Re: v0.3 Test version (gameplay only)
Post by: kingthandra on Jul 26, 2023, 01:01 PM
Quote from: Goldo on Jul 25, 2023, 11:00 PM
Quote from: kingthandra on Jul 24, 2023, 10:26 PMCan't even start the game, getting this error:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 310, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 64, in script
    python:
  File "game/BKevents.rpy", line 67, in <module>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 67, in <lambda>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 67, in <listcomp>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKfunctions.rpy", line 3468, in read_init_file_generate_as
    v = read_init_file_field(file, "background story", "generate_as", _default="all", skip_checks=True)
  File "game/BKfunctions.rpy", line 3474, in read_init_file_field
    field = read_init_file(file, search_for = {_key : [_value]}, skip_checks=skip_checks)[_key + "/" + _value]
  File "game/BKfunctions.rpy", line 3495, in read_init_file
    parser.read(config.gamedir + "/" + file)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 20: invalid continuation byte

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

Full traceback:
  File "renpy/common/00start.rpy", line 310, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 64, in script
    python:
  File "D:\Proyectos\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:\Proyectos\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 67, in <module>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 67, in <lambda>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 67, in <listcomp>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKfunctions.rpy", line 3468, in read_init_file_generate_as
    v = read_init_file_field(file, "background story", "generate_as", _default="all", skip_checks=True)
  File "game/BKfunctions.rpy", line 3474, in read_init_file_field
    field = read_init_file(file, search_for = {_key : [_value]}, skip_checks=skip_checks)[_key + "/" + _value]
  File "game/BKfunctions.rpy", line 3495, in read_init_file
    parser.read(config.gamedir + "/" + file)
  File "configparser.py", line 653, in read
  File "configparser.py", line 960, in _read
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/codecs.py", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 20: invalid continuation byte

Windows-10-10.0.19041 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Tue Jul 25 00:25:33 2023

This is probably because one of your girl pack has a strange _BK.ini file, featuring non-unicode characters or something. I recommend removing a few girl packs until you can find the culprit.

Yay, solved.

The problematic girl was Vladilena Milizé

Isn't supported anymore the accent mark in the name?
Title: Re: v0.3 Test version (gameplay only)
Post by: oratorio on Jul 26, 2023, 03:08 PM
Quote from: neronero on Jul 26, 2023, 12:55 PMI bought this ring from Renza. Somehow it ended up in my inventory twice. When I select one of them while in the girl item menu, both rings go blue at once (https://i.imgur.com/ktL4uXZ.jpg).

When I equip it on a girl or sell it, one of the rings stays behind in the MC's inventory while being quantum-linked to the other ring (eg, it'll get the "equipped" status when the other ring is equipped by a girl)
Interacting with it afterwards leads to errors, eg:

I'm almost sorry to hear that this is not an error confined to my computer. I believe that the primary error is the cloning. Occasionally an item gets cloned (this may be an error deep in renpy). When this happens, there is a cascade of other errors due to the cloned item.
Title: Re: v0.3 Test version (gameplay only)
Post by: Hermenegild on Jul 26, 2023, 05:08 PM
Quote from: neronero on Jul 26, 2023, 12:55 PM[...]
edit: "➜" (arrow, used in bast's resource exchange) is not a valid glyph in the new font, and needs to be added to the exceptions.
[...]
The same goes for up/down arrows, used in Bast's exchange to indicate better/worse than normal prices.
Title: Re: v0.3 Test version (gameplay only)
Post by: neronero on Jul 26, 2023, 06:37 PM
Quote from: oratorio on Jul 26, 2023, 03:08 PMI'm almost sorry to hear that this is not an error confined to my computer. I believe that the primary error is the cloning. Occasionally an item gets cloned (this may be an error deep in renpy). When this happens, there is a cascade of other errors due to the cloned item.
All the following items I bought from Renza also came with duplicates. Either my savegame is borked or the warehouse is :(

Quote from: neronero on Jul 26, 2023, 12:55 PMedit4: Nighttime error, assume it happens when one of the girls is using or refusing to use an expendable item I gifted to them.
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "game/BKendday.rpy", line 1012, in <module>
    change_log.merge(changes)
NameError: name 'change_log' is not defined

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

Full traceback:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "F:\ilx\BK03T\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\ilx\BK03T\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 1012, in <module>
    change_log.merge(changes)
NameError: name 'change_log' is not defined

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Wed Jul 26 15:46:49 2023
[close]
I suspect that this one was caused by a butt plug with only 1 use left, if that helps.

Spellbook layout is a bit off in 16:9 / 1920:1080 (https://i.imgur.com/3mXwWLJ.png)
Title: Re: v0.3 Test version (gameplay only)
Post by: oratorio on Jul 26, 2023, 09:21 PM
Quote from: neronero on Jul 26, 2023, 06:37 PM
Quote from: oratorio on Jul 26, 2023, 03:08 PMI'm almost sorry to hear that this is not an error confined to my computer. I believe that the primary error is the cloning. Occasionally an item gets cloned (this may be an error deep in renpy). When this happens, there is a cascade of other errors due to the cloned item.
All the following items I bought from Renza also came with duplicates. Either my savegame is borked or the warehouse is :(

I found it!

In "label thieves_guild_loop" (BKevents) ...
line 2622: $ MC.buy(NPC_renza, it, price)  --> function buy is in BKclasses
line 2628: $ transact(it, NPC_renza, MC, price)  --> function transact is in BKfunctions

Both of these functions take money from MC and transfer item to MC. We get two identical copies and pay twice.
Title: Re: v0.3 Test version (gameplay only)
Post by: DarkFire on Jul 27, 2023, 02:22 AM
This error happened when I clicked the deck in the farm:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 559, in script call
    call farm_powers() from _call_farm_powers
  File "game/BKpowers.rpy", line 373, in script call
    call powers_intro() from _call_powers_intro
  File "game/BKpowers.rpy", line 1498, in script call
    call draw_powers() from _call_draw_powers_1
  File "game/BKpowers.rpy", line 344, in script
    pause 0.8
  File "renpy/common/000statements.rpy", line 459, in execute_pause
    renpy.pause(delay)
  File "game/BKscreens.rpy", line 9017, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 9017, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 9043, in execute
    for i in range(len(hand)):
  File "game/BKscreens.rpy", line 9053, in execute
    if i >= start_at: # Only newly drawn cards will be flipped
  File "game/BKscreens.rpy", line 9054, in execute
    use power_card(pow, context, xc, y, size_boost)
  File "game/BKscreens.rpy", line 9077, in execute
    screen power_card(pow, context = "idle", x = 0, y = 0, size_boost=1.0, existing=False):
  File "game/BKscreens.rpy", line 9077, in execute
    screen power_card(pow, context = "idle", x = 0, y = 0, size_boost=1.0, existing=False):
  File "game/BKscreens.rpy", line 9084, in execute
    if context == "move":
  File "game/BKscreens.rpy", line 9092, in execute
    frame style "inv_no_padding" xanchor 0.5 yanchor 1.0 xpos x ypos y:
  File "game/BKscreens.rpy", line 9093, in execute
    fixed fit_first True at flip_to_back:
  File "game/BKscreens.rpy", line 9095, in execute
    fixed fit_first True at reverse_horizontal:
  File "game/BKscreens.rpy", line 9096, in execute
    use power_card_content
  File "game/BKscreens.rpy", line 9116, in execute
    screen power_card_content:
  File "game/BKscreens.rpy", line 9116, in execute
    screen power_card_content:
  File "game/BKscreens.rpy", line 9125, in execute
    fixed fit_first True xysize (xs, ys):
  File "game/BKscreens.rpy", line 9148, in execute
    vbox align (0.05, 0.05) spacing yres(3):
  File "game/BKscreens.rpy", line 9149, in execute
    for mcolor, mcost in pow.get_mojo_cost():
  File "game/BKscreens.rpy", line 9149, in <module>
    for mcolor, mcost in pow.get_mojo_cost():
  File "game/BKpowers.rpy", line 236, in get_mojo_cost
    if isinstance(conduct, Girl):
NameError: name 'conduct' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 559, in script call
    call farm_powers() from _call_farm_powers
  File "game/BKpowers.rpy", line 373, in script call
    call powers_intro() from _call_powers_intro
  File "game/BKpowers.rpy", line 1498, in script call
    call draw_powers() from _call_draw_powers_1
  File "game/BKpowers.rpy", line 344, in script
    pause 0.8
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 2259, in execute
    self.call("execute")
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 2241, in call
    return renpy.statements.call(method, parsed, *args, **kwargs)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\statements.py", line 342, in call
    return method(parsed, *args, **kwargs)
  File "renpy/common/000statements.rpy", line 459, in execute_pause
    renpy.pause(delay)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\exports.py", line 1637, in pause
    rv = renpy.ui.interact(mouse='pause', type='pause', roll_forward=roll_forward, pause=delay, pause_modal=modal)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\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 "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in interact_core
    root_widget.visit_all(lambda d : d.per_interact())
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 476, in visit_all
    callback(self)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in <lambda>
    root_widget.visit_all(lambda d : d.per_interact())
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 487, in per_interact
    self.update()
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 680, in update
    self.screen.function(**self.scope)
  File "game/BKscreens.rpy", line 9017, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 9017, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 9043, in execute
    for i in range(len(hand)):
  File "game/BKscreens.rpy", line 9053, in execute
    if i >= start_at: # Only newly drawn cards will be flipped
  File "game/BKscreens.rpy", line 9054, in execute
    use power_card(pow, context, xc, y, size_boost)
  File "game/BKscreens.rpy", line 9077, in execute
    screen power_card(pow, context = "idle", x = 0, y = 0, size_boost=1.0, existing=False):
  File "game/BKscreens.rpy", line 9077, in execute
    screen power_card(pow, context = "idle", x = 0, y = 0, size_boost=1.0, existing=False):
  File "game/BKscreens.rpy", line 9084, in execute
    if context == "move":
  File "game/BKscreens.rpy", line 9092, in execute
    frame style "inv_no_padding" xanchor 0.5 yanchor 1.0 xpos x ypos y:
  File "game/BKscreens.rpy", line 9093, in execute
    fixed fit_first True at flip_to_back:
  File "game/BKscreens.rpy", line 9095, in execute
    fixed fit_first True at reverse_horizontal:
  File "game/BKscreens.rpy", line 9096, in execute
    use power_card_content
  File "game/BKscreens.rpy", line 9116, in execute
    screen power_card_content:
  File "game/BKscreens.rpy", line 9116, in execute
    screen power_card_content:
  File "game/BKscreens.rpy", line 9125, in execute
    fixed fit_first True xysize (xs, ys):
  File "game/BKscreens.rpy", line 9148, in execute
    vbox align (0.05, 0.05) spacing yres(3):
  File "game/BKscreens.rpy", line 9149, in execute
    for mcolor, mcost in pow.get_mojo_cost():
  File "game/BKscreens.rpy", line 9149, in <module>
    for mcolor, mcost in pow.get_mojo_cost():
  File "game/BKpowers.rpy", line 236, in get_mojo_cost
    if isinstance(conduct, Girl):
NameError: name 'conduct' is not defined

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Thu Jul 27 04:17:19 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: Deimos96 on Jul 28, 2023, 07:37 AM
The way sex stats are displayed when they get a bonus from traits seems odd. Her sex stat should be 20 but is displayed as 40. Note that the sex stat gains come from a trait from the Trait King mod.
(https://i.imgur.com/ZcqTpnH.png)
Title: Re: v0.3 Test version (gameplay only)
Post by: Hermenegild on Jul 28, 2023, 10:14 AM
A bug in the rape_attempt() function or in how it is used results in a crash:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 818, in script
    python:
  File "game/BKendday.rpy", line 885, in <module>
    perform_events += perform(sex_act, _girls, _customers)
  File "game/BKfunctions.rpy", line 1662, in perform
    rape, rape_text, rape_changes = rape_attempt(girl, cust, brothel.get_threat(), change_log)
ValueError: not enough values to unpack (expected 3, got 2)

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

Full traceback:
  File "game/BKendday.rpy", line 818, in script
    python:
  File "/repo/private/Brothel_King-pc/renpy/ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/repo/private/Brothel_King-pc/renpy/python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 885, in <module>
    perform_events += perform(sex_act, _girls, _customers)
  File "game/BKfunctions.rpy", line 1662, in perform
    rape, rape_text, rape_changes = rape_attempt(girl, cust, brothel.get_threat(), change_log)
ValueError: not enough values to unpack (expected 3, got 2)

Linux-6.1.0-9-amd64-x86_64-with-glibc2.37 x86_64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Fri Jul 28 12:05:56 2023

The actual bug lies somewhere between the rape_attempt() function returning only two items (rape and rape_text) and the code calling it expecting three (those two plus a changes list). Both the function and the calling code are part of BKfunctions.rpy.

EDIT: Actually, I don't think the rape_changes variable needs to be returned at all: it's passed to the function in the first place (as change_log), and never referenced afterwards. So, it should be enough to change line 1662 of BKfunctions.rpy from
rape, rape_text, rape_changes = rape_attempt(girl, cust, brothel.get_threat(), change_log) to rape, rape_text = rape_attempt(girl, cust, brothel.get_threat(), change_log)and everything should work.
Title: Re: v0.3 Test version (gameplay only)
Post by: Hermenegild on Jul 28, 2023, 02:24 PM
In the morning, if a girl is training (of her own accord), sometimes there's no background at all, and an error message shows about the "bg_bro" image missing.

A quick investigation turned out line #23 of BKday_events.rpy:
show expression "bg_bro" at top with dissolve
Shouldn't "bg_bro" be without the quotes, as in almost all other contexts?
Title: Re: v0.3 Test version (gameplay only)
Post by: AnalogSquirrel on Jul 28, 2023, 02:54 PM
Is there something that can be done about performance with respect to mouse-over items?

Granted, I'm running the game on an old linux laptop, through a USB stick (girl packs were taking up too much space on the hard driver, so I gave the game its own space), so I'm not really set up for speed...

Anyway, whenever I mouse-over one of the items with the tool tips, the whole game gets real "jumpy" - it's hard to use the mouse to navigate that way.

I suspect this may be a renpy thing, and there isn't too much you can do about it, but if you could figure out how to smooth it out, it'd be a big improvement.

Oh, one other thing - I just had a girl come up who is both Sane and Insane at the same time.  It isn't game-breaking (they basically offset each other), but I'm not sure it's intentional, either.
Title: Re: v0.3 Test version (gameplay only)
Post by: Netscape1964 on Jul 28, 2023, 03:20 PM
Quote from: AnalogSquirrel on Jul 28, 2023, 02:54 PMIs there something that can be done about performance with respect to mouse-over items?

Granted, I'm running the game on an old linux laptop, through a USB stick (girl packs were taking up too much space on the hard driver, so I gave the game its own space), so I'm not really set up for speed...

Anyway, whenever I mouse-over one of the items with the tool tips, the whole game gets real "jumpy" - it's hard to use the mouse to navigate that way.

I suspect this may be a renpy thing, and there isn't too much you can do about it, but if you could figure out how to smooth it out, it'd be a big improvement.

Oh, one other thing - I just had a girl come up who is both Sane and Insane at the same time.  It isn't game-breaking (they basically offset each other), but I'm not sure it's intentional, either.

since you are on linux, it should be easier to make a mirror folder for the girls folder which, lets face it, is usually the biggest of the game folders. that way you can run the main files from diskdrive to see if it's still jumpy. you can see that way if it's your use stick the problem or the game engine
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Jul 28, 2023, 03:34 PM
New hotfix out fixing the various issues reported (except spellbook display):
https://www.mediafire.com/file/1va1v7cq1psp53x/game_patch_0.3.zip/file

Quote from: kingthandra on Jul 26, 2023, 01:01 PMCan't even start the game, getting this error:

[...]

The problematic girl was Vladilena Milizé

Isn't supported anymore the accent mark in the name?

I just tested it and accents work fine. I'm guessing it's something more exotic than that.

Title: Re: v0.3 Test version (gameplay only)
Post by: Hermenegild on Jul 28, 2023, 03:35 PM
Quote from: Netscape1964 on Jul 28, 2023, 03:20 PMsince you are on linux, it should be easier to make a mirror folder for the girls folder which, lets face it, is usually the biggest of the game folders. that way you can run the main files from diskdrive to see if it's still jumpy. you can see that way if it's your use stick the problem or the game engine

Actually, I'm on Linux too at the moment (my other laptop is Windows only). The way I use the girls is so that I have a separate folder named BrothelKingGirls for all the girls and girlpacks I'm using, alongside the Brothel_King-pc one. This folder is then symlinked as game/girls into all Brothel King installations (regardless of version). This setup saves a lot of space (my girls are 12GB in size).

@Goldo, just an idea: could we get an option to set up the path to girls on all the systems? Girl folders are read-only, so it should be possible. There can be some mess if version-specific features are used, but you don't have to bother with it, burden the player with the issues. Simply create a variable which can be overridden by some .ini file, set up the "game/girls" folder as a default value, and never document the variable outside of code; this way most players won't even notice the feature, and if one does, you can assume (s)he is knowledgeable enough to be able to pick the pieces themselves once something breaks.
Title: Re: v0.3 Test version (gameplay only)
Post by: zvb123 on Jul 28, 2023, 03:41 PM
Quote from: Hermenegild on Jul 28, 2023, 03:35 PMActually, I'm on Linux too at the moment (my other laptop is Windows only). The way I use the girls is so that I have a separate folder named BrothelKingGirls for all the girls and girlpacks I'm using, alongside the Brothel_King-pc one. This folder is then symlinked as game/girls into all Brothel King installations (regardless of version). This setup saves a lot of space (my girls are 12GB in size).
good trick.
symlinks should also work the same for windows users  :)
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Jul 28, 2023, 03:41 PM
Quote from: AnalogSquirrel on Jul 28, 2023, 02:54 PMIs there something that can be done about performance with respect to mouse-over items?

Granted, I'm running the game on an old linux laptop, through a USB stick (girl packs were taking up too much space on the hard driver, so I gave the game its own space), so I'm not really set up for speed...

Anyway, whenever I mouse-over one of the items with the tool tips, the whole game gets real "jumpy" - it's hard to use the mouse to navigate that way.

I suspect this may be a renpy thing, and there isn't too much you can do about it, but if you could figure out how to smooth it out, it'd be a big improvement.

Oh, one other thing - I just had a girl come up who is both Sane and Insane at the same time.  It isn't game-breaking (they basically offset each other), but I'm not sure it's intentional, either.

Just saw your message, one thing you can do is look for line 630 in BKitems.rpy:
tooltip it.descriptionand comment it out or delete it.

But it's unlikely to be the only issue you encounter running the game from a USB stick.
And it's kind of surprising that a static tooltip would give you that much trouble, so it may be Ren'py predicting the next screen that's slowing you down - in which case it'll be harder to fix.
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Jul 28, 2023, 03:59 PM
By the way, I believe this variable in options.rpy is the culprit for 0.3 receiving persistent information from 0.2:
python early:
    config.save_directory = "Bro King-1419249291"

Warning: I haven't tested changing this. If you change it, let me know how it goes.
Title: Re: v0.3 Test version (gameplay only)
Post by: AnalogSquirrel on Jul 28, 2023, 05:23 PM
Quote from: Goldo on Jul 28, 2023, 03:41 PMJust saw your message, one thing you can do is look for line 630 in BKitems.rpy:
tooltip it.descriptionand comment it out or delete it.

But it's unlikely to be the only issue you encounter running the game from a USB stick.
And it's kind of surprising that a static tooltip would give you that much trouble, so it may be Ren'py predicting the next screen that's slowing you down - in which case it'll be harder to fix.

I've tried the symlink trick, and it does seem to have improved things.  I'll try the tooltip line next.  It seems weird that simply displaying a tooltip would require so much from File/IO system.

Also also managed to nuke about half of my girl folders.  Remember to be careful with rm -rf kids  :)
Title: Re: v0.3 Test version (gameplay only)
Post by: Hermenegild on Jul 28, 2023, 05:34 PM
Quote from: AnalogSquirrel on Jul 28, 2023, 05:23 PMAlso also managed to nuke about half of my girl folders.  Remember to be careful with rm -rf kids  :)

True ;-) But this is actually another moment where the symlink trick saves you: without additional options, "rm -rf" does not follow symbolic links, just removes them, so you remove your game folder but not your girls.
Title: Re: v0.3 Test version (gameplay only)
Post by: DarkFire on Jul 29, 2023, 03:20 AM
Got this after using a card: (It can be ignored)

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 559, in script call
    call farm_powers() from _call_farm_powers
  File "game/BKpowers.rpy", line 474, in script
    $ spent_mojo = evpower_deck.play(selected_power, conduct)
  File "game/BKpowers.rpy", line 474, in <module>
    $ spent_mojo = evpower_deck.play(selected_power, conduct)
  File "game/BKpowers.rpy", line 285, in play
    return MC.spend_mojo(power.get_mojo_cost(conduct))
  File "game/BKclasses.rpy", line 448, in spend_mojo
    if not self.has_mojo(cost_list, use_purple=use_purple, mod=mod):
NameError: name 'mod' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 559, in script call
    call farm_powers() from _call_farm_powers
  File "game/BKpowers.rpy", line 474, in script
    $ spent_mojo = evpower_deck.play(selected_power, conduct)
  File "C:\Users\Dani\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\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKpowers.rpy", line 474, in <module>
    $ spent_mojo = evpower_deck.play(selected_power, conduct)
  File "game/BKpowers.rpy", line 285, in play
    return MC.spend_mojo(power.get_mojo_cost(conduct))
  File "game/BKclasses.rpy", line 448, in spend_mojo
    if not self.has_mojo(cost_list, use_purple=use_purple, mod=mod):
NameError: name 'mod' is not defined

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sat Jul 29 05:16:28 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: 22ndgentlemen on Jul 29, 2023, 06:49 PM
Quote from: Deimos96 on Jul 28, 2023, 07:37 AMThe way sex stats are displayed when they get a bonus from traits seems odd. Her sex stat should be 20 but is displayed as 40. Note that the sex stat gains come from a trait from the Trait King mod.
(https://i.imgur.com/ZcqTpnH.png)

DISCLAIMER:  I have Trait King v21 installed.  Using a post by Deimos96 here as he has the perfect screenshot for visuals and I am too lazy to create my own :)  Have not been able to replicate Deimos96's issue so far, but will update if I can replicate.

More of a feedback post than anything.

I think that when the cursor hovers over a trait that gives a boost or detriment to skills like Service or Sex or to a stat like Charm or Beauty, the green/red bar should illuminate.  To use the example in the screenshot, when the player hovers over "Fake Orgasms", the green bar should illuminate with the bonus provided.

Current behavior does not do this.  In fact, the bar only illuminates when the cursor hovers over any skill or stat bar to get the tooltip about what it does and what it affects.  It does not have to be the stat or skill bar in question.

Title: Re: v0.3 Test version (gameplay only)
Post by: LostInSmut on Jul 29, 2023, 09:49 PM
I downloaded the game and the latest patch today.
The game exited after I visited the save screen, got this from the traceback.txt

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 310, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 66, in script
    $ update_mods()
  File "game/BKevents.rpy", line 66, in <module>
    $ update_mods()
  File "game/BKfunctions.rpy", line 3803, in update_mods
    for name, d in persistent.mods.items():
RuntimeError: dictionary changed size during iteration

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

Full traceback:
  File "renpy/common/00start.rpy", line 310, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 66, in script
    $ update_mods()
  File "D:\Games\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:\Games\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 66, in <module>
    $ update_mods()
  File "game/BKfunctions.rpy", line 3803, in update_mods
    for name, d in persistent.mods.items():
RuntimeError: dictionary changed size during iteration

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sat Jul 29 23:20:51 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: Toshiro on Jul 30, 2023, 01:53 AM
So I'm getting this error every so often when I get to the Farm scenes. I more or less downloaded the patch either today.

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

While processing the color property of anonymous style:
  File "game/BKendday.rpy", line 1122, in script call
    call show_night_event(ev) from _call_show_night_event_1
  File "game/BKevents.rpy", line 775, in script
    $ renpy.say(ev.char, text_descript + "{/size}")
  File "game/BKevents.rpy", line 775, in <module>
    $ renpy.say(ev.char, text_descript + "{/size}")
ValueError: invalid literal for int() with base 16: '=#'

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

Full traceback:
  File "game/BKendday.rpy", line 1122, in script call
    call show_night_event(ev) from _call_show_night_event_1
  File "game/BKevents.rpy", line 775, in script
    $ renpy.say(ev.char, text_descript + "{/size}")
  File "E:\Skyrim\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 "E:\Skyrim\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 775, in <module>
    $ renpy.say(ev.char, text_descript + "{/size}")
  File "E:\Skyrim\Brothel_King-0.3t\Brothel_King-pc\renpy\exports.py", line 1473, in say
    who(what, *args, **kwargs)
  File "E:\Skyrim\Brothel_King-0.3t\Brothel_King-pc\renpy\character.py", line 1352, in __call__
    self.do_display(who, what, cb_args=self.cb_args, dtt=dtt, **display_args)
  File "E:\Skyrim\Brothel_King-0.3t\Brothel_King-pc\renpy\character.py", line 1003, in do_display
    display_say(who,
  File "E:\Skyrim\Brothel_King-0.3t\Brothel_King-pc\renpy\character.py", line 693, in display_say
    rv = renpy.ui.interact(mouse='say', type=type, roll_forward=roll_forward)
  File "E:\Skyrim\Brothel_King-0.3t\Brothel_King-pc\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "E:\Skyrim\Brothel_King-0.3t\Brothel_King-pc\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 "E:\Skyrim\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in interact_core
    root_widget.visit_all(lambda d : d.per_interact())
  File "E:\Skyrim\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\Skyrim\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\Skyrim\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\Skyrim\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 481, in visit_all
    self.child.visit_all(callback, seen=None)
  File "E:\Skyrim\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\Skyrim\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\Skyrim\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  [Previous line repeated 5 more times]
  File "E:\Skyrim\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 683, in visit_all
    callback(self)
  File "E:\Skyrim\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in <lambda>
    root_widget.visit_all(lambda d : d.per_interact())
  File "E:\Skyrim\Brothel_King-0.3t\Brothel_King-pc\renpy\text\text.py", line 1792, in per_interact
    if self.style.slow_abortable:
  File "gen3-static/styleclass.pxi", line 533, in renpy.styledata.styleclass.Style.slow_abortable.__get__
  File "style.pyx", line 493, in renpy.style.StyleCore._get
  File "style.pyx", line 710, in renpy.style.build_style
  File "style.pyx", line 707, in renpy.style.build_style
  File "gen3-static/style_functions.pyx", line 323, in style_functions.color_property
  File "E:\Skyrim\Brothel_King-0.3t\Brothel_King-pc\renpy\color.py", line 147, in __new__
    r = int(c[0]+c[1], 16)
ValueError: invalid literal for int() with base 16: '=#'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sat Jul 29 15:49:10 2023

[/code]
Title: Re: v0.3 Test version (gameplay only)
Post by: Toshiro on Jul 30, 2023, 01:59 AM
Welp just found another error.  This time I just finished the first ninja minigame.  I went after the water one.  Also I guess I should mention I'm using the widescreen option for the game.

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

While running game code:
  File "game/BKmain.rpy", line 305, in script call
    call ninja_hunt(selected_location) from _call_ninja_hunt
  File "game/BKchapter2.rpy", line 5361, in script call
    call ninja_game(NPC_mizuki) from _call_ninja_game_1
  File "game/BKminigame.rpy", line 230, in script call
    call ninja_intercept(ninja, njgame.special) from _call_ninja_intercept_1
  File "game/BKchapter2.rpy", line 5546, in script
    $ shuffle_ninja_location(ninja)
  File "game/BKchapter2.rpy", line 5546, in <module>
    $ shuffle_ninja_location(ninja)
  File "game/BKminigame.rpy", line 18, in shuffle_ninja_location
    ninja.used_loc.append(ninja.loc)
AttributeError: 'NPC' object has no attribute 'used_loc'

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

Full traceback:
  File "game/BKmain.rpy", line 305, in script call
    call ninja_hunt(selected_location) from _call_ninja_hunt
  File "game/BKchapter2.rpy", line 5361, in script call
    call ninja_game(NPC_mizuki) from _call_ninja_game_1
  File "game/BKminigame.rpy", line 230, in script call
    call ninja_intercept(ninja, njgame.special) from _call_ninja_intercept_1
  File "game/BKchapter2.rpy", line 5546, in script
    $ shuffle_ninja_location(ninja)
  File "E:\Skyrim\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 "E:\Skyrim\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKchapter2.rpy", line 5546, in <module>
    $ shuffle_ninja_location(ninja)
  File "game/BKminigame.rpy", line 18, in shuffle_ninja_location
    ninja.used_loc.append(ninja.loc)
AttributeError: 'NPC' object has no attribute 'used_loc'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sat Jul 29 15:58:22 2023

[/code]
Title: Re: v0.3 Test version (gameplay only)
Post by: 22ndgentlemen on Jul 30, 2023, 12:03 PM
Just picked up a bugged(?) girl from the market.  She is level 2 but has -1 perk points to spend.  I also cannot level her up despite having the button and proper indicating icons to do so.

UPDATE:  Now that the girl is leveled up to level 3, I was able to spend only the +10 points going from level 2 to 3, but here perk points are at 0 now having gone from -1 to 0.

EDIT:  Wanted to add additional information in case it mattered or for replication:
girl was bought in year 1 month 2
still in slums location
girl was 3rd total girl
brothel room was bought at same time as girl


DISCLAIMER:  I do have the Trait King v21 mod installed.  It should not affect leveling though.  Just informing for transparency.


Another minor issue I noticed, unrelated to the above, the player's spellbook seems to not have the options aligned properly so they are off-center and are blocking some instruction text and almost the entirety of the back button.  If the player does not know about right-clicking to go backwards in the menus, they may get trapped in the spellbook.
Title: Re: v0.3 Test version (gameplay only)
Post by: Netscape1964 on Jul 30, 2023, 08:16 PM
that becasue i beleive the level up button unlocks when it's different from 0 not if it's strictly under 1 so -1 not being 0 it unlocks the level up routines despite not being eligible to a "level up"
Title: Re: v0.3 Test version (gameplay only)
Post by: Iconic9875667 on Jul 30, 2023, 09:17 PM
Quote from: Goldo on Jul 28, 2023, 03:59 PMBy the way, I believe this variable in options.rpy is the culprit for 0.3 receiving persistent information from 0.2:
python early:
    config.save_directory = "Bro King-1419249291"

Warning: I haven't tested changing this. If you change it, let me know how it goes.

I changed it to 696969696 and didnt get any popups or messages and it successfully created a new save folder
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Jul 30, 2023, 11:34 PM
New hotfix out:
https://www.mediafire.com/file/1va1v7cq1psp53x/game+patch+0.3.zip/file

Warning: This changes config save_directory to a different dir to avoid conflicts with 0.2 persistent data. If for some reason, you don't want that, you should revert to the old line in game/options.rpy:
config.save_directory = "Bro King-1419249291"(The first two digits have changed).



Quote from: 22ndgentlemen on Jul 29, 2023, 06:49 PMDISCLAIMER:  I have Trait King v21 installed.  Using a post by Deimos96 here as he has the perfect screenshot for visuals and I am too lazy to create my own :)  Have not been able to replicate Deimos96's issue so far, but will update if I can replicate.
Hopefully you won't be able to replicate, since this issue has been fixed.

QuoteMore of a feedback post than anything.

I think that when the cursor hovers over a trait that gives a boost or detriment to skills like Service or Sex or to a stat like Charm or Beauty, the green/red bar should illuminate.  To use the example in the screenshot, when the player hovers over "Fake Orgasms", the green bar should illuminate with the bonus provided.

Current behavior does not do this.  In fact, the bar only illuminates when the cursor hovers over any skill or stat bar to get the tooltip about what it does and what it affects.  It does not have to be the stat or skill bar in question.
Unfortunately it's not possible for now. I can't make sense of the way Ren'py deals with hover_alpha: as you can see while hovering, the '+10' text or whatever shows up properly when hovering over a given bonus bar, but the corresponding alpha setting for the bar doesn't work as expected (hovering over any bar lights up all of them). Giving them different ids doesn't solve the problem.

All of my tests have failed to fix this issue, and there are other screens where hover_alpha acts up. Either it is a bug within Ren'py, or there is some fundamental screen logic that I am missing here.

Quote from: LostInSmut on Jul 29, 2023, 09:49 PMI downloaded the game and the latest patch today.
The game exited after I visited the save screen, got this from the traceback.txt

[...]
This is a known issue due to the aforementioned persistent data. Try a new game with the new patch or follow the workarounds others have posted before.

Quote from: 22ndgentlemen on Jul 30, 2023, 12:03 PMJust picked up a bugged(?) girl from the market.  She is level 2 but has -1 perk points to spend.  I also cannot level her up despite having the button and proper indicating icons to do so.

UPDATE:  Now that the girl is leveled up to level 3, I was able to spend only the +10 points going from level 2 to 3, but here perk points are at 0 now having gone from -1 to 0.

EDIT:  Wanted to add additional information in case it mattered or for replication:
girl was bought in year 1 month 2
still in slums location
girl was 3rd total girl
brothel room was bought at same time as girl


DISCLAIMER:  I do have the Trait King v21 mod installed.  It should not affect leveling though.  Just informing for transparency.
It is most likely related to the mod, having more traits than intended may cause you to unlock extra perk trees and throw off the perk point calculation. I will have to see what kind of sanity check can be added.

Quote from: Iconic9875667 on Jul 30, 2023, 09:17 PM
Quote from: Goldo on Jul 28, 2023, 03:59 PMBy the way, I believe this variable in options.rpy is the culprit for 0.3 receiving persistent information from 0.2:
python early:
    config.save_directory = "Bro King-1419249291"

Warning: I haven't tested changing this. If you change it, let me know how it goes.

I changed it to 696969696 and didnt get any popups or messages and it successfully created a new save folder
Thank you for testing this! Also, see what you did there...  ;D
Title: Re: v0.3 Test version (gameplay only)
Post by: LostInSmut on Jul 31, 2023, 12:00 AM
I downloaded the new patch and had to watch the intro of a new game, but game crashed before the end :(

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 124, in script
    if isinstance(result, Girl):
  File "game/BKmain.rpy", line 124, in <module>
    if isinstance(result, Girl):
NameError: name 'result' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 124, in script
    if isinstance(result, Girl):
  File "D:\Games\Brothel_King-pc\renpy\ast.py", line 2133, in execute
    if renpy.python.py_eval(condition):
  File "D:\Games\Brothel_King-pc\renpy\python.py", line 1153, in py_eval
    return py_eval_bytecode(code, globals, locals)
  File "D:\Games\Brothel_King-pc\renpy\python.py", line 1146, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "game/BKmain.rpy", line 124, in <module>
    if isinstance(result, Girl):
NameError: name 'result' is not defined

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Mon Jul 31 01:50:21 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: darksythe53 on Jul 31, 2023, 03:16 AM
On new build. First security event resulted in my girl getting injured, decided to reload save and encountered this error.

I was able to hit rollback then select my save again and load it.

Just to test, I continued to reload the save, after hitting end turn I would resolve anything that happened and attempt to reload again. Any time my girl was injured I would receive this error while attempting to load a save, any other time it would reload normally.

I'm sorry, but an uncaught exception occurred.

While loading <renpy.display.im.Image object ("mods/Goldo's cool mod/title.webp") at 0x000000001684c490>:
  File "game/BKendday.rpy", line 730, in script call
    call security(working_girls) from _call_security
  File "game/BKsecurity.rpy", line 1131, in script call
    call show_night_event(ev) from _call_show_night_event_6
  File "game/BKevents.rpy", line 774, in script
    python:
  File "game/BKevents.rpy", line 778, in <module>
    raise AssertionError("Couldn't display the following text: %s" % text_descript + "{/size}")
AssertionError: Couldn't display the following text: {size=29}You paid {image=img_gold_24} {color=#F78181}57{/color} in brothel costs.
Your girls brought in {image=img_gold_24} {color=#66FF99}182{/color}, netting you a profit of {image=img_gold_24} {b}{color=#66FF99}125{/color}{/b}.{/size}

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

Full traceback:
  File "game/BKendday.rpy", line 730, in script call
    call security(working_girls) from _call_security
  File "game/BKsecurity.rpy", line 1131, in script call
    call show_night_event(ev) from _call_show_night_event_6
  File "game/BKevents.rpy", line 774, in script
    python:
  File "C:\Program Files\BK-0.2\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:\Program Files\BK-0.2\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 778, in <module>
    raise AssertionError("Couldn't display the following text: %s" % text_descript + "{/size}")
AssertionError: Couldn't display the following text: {size=29}You paid {image=img_gold_24} {color=#F78181}57{/color} in brothel costs.
Your girls brought in {image=img_gold_24} {color=#66FF99}182{/color}, netting you a profit of {image=img_gold_24} {b}{color=#66FF99}125{/color}{/b}.{/size}

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sun Jul 30 20:10:50 2023

Got this error attempting to sell a girl after successfully completing monthly contract
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 362, in script call
    call play_events(_type = "night") from _call_play_events
  File "game/BKevents.rpy", line 720, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 732, in script call
    $ ev.play()
  File "game/BKevents.rpy", line 4591, in script
    python:
  File "game/BKevents.rpy", line 4596, in <module>
    MC.girls.remove(girl)
ValueError: list.remove(x): x not in list

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

Full traceback:
  File "game/BKendday.rpy", line 362, in script call
    call play_events(_type = "night") from _call_play_events
  File "game/BKevents.rpy", line 720, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 732, in script call
    $ ev.play()
  File "game/BKevents.rpy", line 4591, in script
    python:
  File "C:\Program Files\BK-0.2\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:\Program Files\BK-0.2\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 4596, in <module>
    MC.girls.remove(girl)
  File "C:\Program Files\BK-0.2\Brothel_King-pc\renpy\revertable.py", line 97, in do_mutation
    return method(self, *args, **kwargs)
ValueError: list.remove(x): x not in list

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sun Jul 30 22:50:42 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: neronero on Jul 31, 2023, 07:38 AM
The verbage of the "Conduct" trait is "be a Conduct". That sounds off to me. Perhaps @DougTheC can weigh in.

I'm wondering if it should instead be "be a Conduit", "be Conductive", "have Exemplary Conduct"

edit: I'm going through the new BK.ini, adapting the Tagging Tool's BK.ini generator to it:

For the new custom tastes/hobbies, I'm worried that these'll become no-brainer answers if they are displayed among the small list of well known "vanilla" choices. Possible solution: Extended lists of colors/food/drinks/hobbies from which the 'wrong' answers are picked if there's custom input here.

edit2: Should there be a "keep_tastes" cloning option?
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Jul 31, 2023, 09:22 AM
Hotfix for some issues above.
https://www.mediafire.com/file/1va1v7cq1psp53x/game+patch+0.3.zip/file



Quote from: darksythe53 on Jul 31, 2023, 03:16 AMOn new build. First security event resulted in my girl getting injured, decided to reload save and encountered this error.

I was able to hit rollback then select my save again and load it.

Just to test, I continued to reload the save, after hitting end turn I would resolve anything that happened and attempt to reload again. Any time my girl was injured I would receive this error while attempting to load a save, any other time it would reload normally.

I'm sorry, but an uncaught exception occurred.

While loading <renpy.display.im.Image object ("mods/Goldo's cool mod/title.webp") at 0x000000001684c490>:
  File "game/BKendday.rpy", line 730, in script call
    call security(working_girls) from _call_security
  File "game/BKsecurity.rpy", line 1131, in script call
    call show_night_event(ev) from _call_show_night_event_6
  File "game/BKevents.rpy", line 774, in script
    python:
  File "game/BKevents.rpy", line 778, in <module>
    raise AssertionError("Couldn't display the following text: %s" % text_descript + "{/size}")
AssertionError: Couldn't display the following text: {size=29}You paid {image=img_gold_24} {color=#F78181}57{/color} in brothel costs.
Your girls brought in {image=img_gold_24} {color=#66FF99}182{/color}, netting you a profit of {image=img_gold_24} {b}{color=#66FF99}125{/color}{/b}.{/size}

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

Full traceback:
  File "game/BKendday.rpy", line 730, in script call
    call security(working_girls) from _call_security
  File "game/BKsecurity.rpy", line 1131, in script call
    call show_night_event(ev) from _call_show_night_event_6
  File "game/BKevents.rpy", line 774, in script
    python:
  File "C:\Program Files\BK-0.2\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:\Program Files\BK-0.2\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 778, in <module>
    raise AssertionError("Couldn't display the following text: %s" % text_descript + "{/size}")
AssertionError: Couldn't display the following text: {size=29}You paid {image=img_gold_24} {color=#F78181}57{/color} in brothel costs.
Your girls brought in {image=img_gold_24} {color=#66FF99}182{/color}, netting you a profit of {image=img_gold_24} {b}{color=#66FF99}125{/color}{/b}.{/size}

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sun Jul 30 20:10:50 2023
I can't reproduce this one, I doubt the text shown in the error log is responsible. It will require more investigation.

Quote from: neronero on Jul 31, 2023, 07:38 AMThe verbage of the "Conduct" trait is "be a Conduct". That sounds off to me. Perhaps @DougTheC can weigh in.

I'm wondering if it should instead be "be a Conduit", "be Conductive", "have Exemplary Conduct"

edit: I'm going through the new BK.ini, adapting the Tagging Tool's BK.ini generator to it:

For the new custom tastes/hobbies, I'm worried that these'll become no-brainer answers if they are displayed among the small list of well known "vanilla" choices. Possible solution: Extended lists of colors/food/drinks/hobbies from which the 'wrong' answers are picked if there's custom input here.

edit2: Should there be a "keep_tastes" cloning option?
I think you're right, I could have sworn I saw the word 'conduct' used like that in some SF or fantasy story, but 'conduit' sounds better. I'd like to hear from native speakers on the subject.
Title: Re: v0.3 Test version (gameplay only)
Post by: 22ndgentlemen on Jul 31, 2023, 11:04 AM
Quote from: Goldo on Jul 31, 2023, 09:22 AM
Quote from: neronero on Jul 31, 2023, 07:38 AMThe verbage of the "Conduct" trait is "be a Conduct". That sounds off to me. Perhaps @DougTheC can weigh in.

I'm wondering if it should instead be "be a Conduit", "be Conductive", "have Exemplary Conduct"

edit: I'm going through the new BK.ini, adapting the Tagging Tool's BK.ini generator to it:

For the new custom tastes/hobbies, I'm worried that these'll become no-brainer answers if they are displayed among the small list of well known "vanilla" choices. Possible solution: Extended lists of colors/food/drinks/hobbies from which the 'wrong' answers are picked if there's custom input here.

edit2: Should there be a "keep_tastes" cloning option?
I think you're right, I could have sworn I saw the word 'conduct' used like that in some SF or fantasy story, but 'conduit' sounds better. I'd like to hear from native speakers on the subject.

If I understand the issue correctly, you are worried that "be a conduct" is not the proper term to use for the trait "Conduct" as it is presented in the game?  If that is the case, as a native English speaker, I can tell you that is incorrect usage.

Without having a girl in front of me with that trait in context I can see two ways this trait can go based on the discussion above and what am I inferring is the meaning behind the trait description.

First, "Conduit":  In this context, the girl would have a trait similar to the Oracle of Delphi in that their body/consciousness is used as a conduit for another being to communicate through like a god/goddess or other deity.  If this is the case, having the archetype Fox tied to it makes a mystic kind of sense.

Second, "Civil" or "Courteous":  In this context, the girl is known for always having proper conduct due to always being polite, respectful or considerate in their manners, especially in conversation.

Hope this helps.
Title: Re: v0.3 Test version (gameplay only)
Post by: AnalogSquirrel on Jul 31, 2023, 02:02 PM
Quote from: Goldo on Jul 28, 2023, 03:41 PMJust saw your message, one thing you can do is look for line 630 in BKitems.rpy:
tooltip it.descriptionand comment it out or delete it.

But it's unlikely to be the only issue you encounter running the game from a USB stick.
And it's kind of surprising that a static tooltip would give you that much trouble, so it may be Ren'py predicting the next screen that's slowing you down - in which case it'll be harder to fix.

Is there another place where this is done?  I've commented it out, deleted the rpyc file, but I'm still seeing the tool tips.  Like I said before, this is NOT game breaking - I can still play - it's just a little annoying   :)
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Jul 31, 2023, 04:10 PM
Quote from: AnalogSquirrel on Jul 31, 2023, 02:02 PM
Quote from: Goldo on Jul 28, 2023, 03:41 PMJust saw your message, one thing you can do is look for line 630 in BKitems.rpy:
tooltip it.descriptionand comment it out or delete it.

But it's unlikely to be the only issue you encounter running the game from a USB stick.
And it's kind of surprising that a static tooltip would give you that much trouble, so it may be Ren'py predicting the next screen that's slowing you down - in which case it'll be harder to fix.

Is there another place where this is done?  I've commented it out, deleted the rpyc file, but I'm still seeing the tool tips.  Like I said before, this is NOT game breaking - I can still play - it's just a little annoying   :)

Not really no, if you're talking about the item description tooltip then that's the line that's responsible for it.

Send me a screen shot of the screen with the tooltip you're seeing and maybe I can give you further hints.
Title: Re: v0.3 Test version (gameplay only)
Post by: Iconic9875667 on Jul 31, 2023, 09:32 PM
Is this version still working with kingsway mod ?

i tried fiddling with stuff and even if the girls are at max love and max mood they wont work at all for me, they will only work if i boost fear up too ?

Edit with -100 fear they just wont work at all, so much for our happy family
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Jul 31, 2023, 09:54 PM
Quote from: Iconic9875667 on Jul 31, 2023, 09:32 PMIs this version still working with kingsway mod ?

i tried fiddling with stuff and even if the girls are at max love and max mood they wont work at all for me, they will only work if i boost fear up too ?

Edit with -100 fear they just wont work at all, so much for our happy family

I can't really help you here as I don't make the mods; it will be up to each mod maker to make sure their mods work with 0.3.

Regardless, I don't think it's a good idea to try out this early test version with an old 0.2 mod (unless of course you're trying to help the mod maker fix it, but please make a new thread).
Title: Re: v0.3 Test version (gameplay only)
Post by: darksythe53 on Jul 31, 2023, 10:18 PM
Quote from: darksythe53 on Jul 31, 2023, 03:16 AMOn new build. First security event resulted in my girl getting injured, decided to reload save and encountered this error.

I was able to hit rollback then select my save again and load it.

Just to test, I continued to reload the save, after hitting end turn I would resolve anything that happened and attempt to reload again. Any time my girl was injured I would receive this error while attempting to load a save, any other time it would reload normally.

I'm sorry, but an uncaught exception occurred.

While loading <renpy.display.im.Image object ("mods/Goldo's cool mod/title.webp") at 0x000000001684c490>:
  File "game/BKendday.rpy", line 730, in script call
    call security(working_girls) from _call_security
  File "game/BKsecurity.rpy", line 1131, in script call
    call show_night_event(ev) from _call_show_night_event_6
  File "game/BKevents.rpy", line 774, in script
    python:
  File "game/BKevents.rpy", line 778, in <module>
    raise AssertionError("Couldn't display the following text: %s" % text_descript + "{/size}")
AssertionError: Couldn't display the following text: {size=29}You paid {image=img_gold_24} {color=#F78181}57{/color} in brothel costs.
Your girls brought in {image=img_gold_24} {color=#66FF99}182{/color}, netting you a profit of {image=img_gold_24} {b}{color=#66FF99}125{/color}{/b}.{/size}

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

Full traceback:
  File "game/BKendday.rpy", line 730, in script call
    call security(working_girls) from _call_security
  File "game/BKsecurity.rpy", line 1131, in script call
    call show_night_event(ev) from _call_show_night_event_6
  File "game/BKevents.rpy", line 774, in script
    python:
  File "C:\Program Files\BK-0.2\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:\Program Files\BK-0.2\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 778, in <module>
    raise AssertionError("Couldn't display the following text: %s" % text_descript + "{/size}")
AssertionError: Couldn't display the following text: {size=29}You paid {image=img_gold_24} {color=#F78181}57{/color} in brothel costs.
Your girls brought in {image=img_gold_24} {color=#66FF99}182{/color}, netting you a profit of {image=img_gold_24} {b}{color=#66FF99}125{/color}{/b}.{/size}

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sun Jul 30 20:10:50 2023

So I think I must have messed up something while installing the patch yesterday. After copying over the files from the most recent patch posted today, I am no longer encountering this issue
Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Aug 01, 2023, 08:46 PM
Chapter 3, buying runes from Willow:


While running game code:
  File "game/BKmain.rpy", line 162, in script call
    $ selected_district = ui.interact()
  File "game/BKchapter3.rpy", line 304, in script call
    call receive_item(fire_rune) from _call_receive_item_19
  File "game/BKevents.rpy", line 363, in script
    label receive_item(it, msg="You have received %s.", use_article=True, equip=False, use_sound=True): # If 'msg' is provided, it must include '%s' once for the item name to be inserted
  File "game/BKchapter3.rpy", line 304, in <module>
    call receive_item(fire_rune) from _call_receive_item_19
NameError: name 'fire_rune' 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 304, in script call
    call receive_item(fire_rune) from _call_receive_item_19
  File "game/BKevents.rpy", line 363, in script
    label receive_item(it, msg="You have received %s.", use_article=True, equip=False, use_sound=True): # If 'msg' is provided, it must include '%s' once for the item name to be inserted
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1730, in execute
    args, kwargs = self.arguments.evaluate()
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 344, in evaluate
    value = renpy.python.py_eval(v, locals=scope)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1153, in py_eval
    return py_eval_bytecode(code, globals, locals)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1146, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "game/BKchapter3.rpy", line 304, in <module>
    call receive_item(fire_rune) from _call_receive_item_19
NameError: name 'fire_rune' is not defined

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Tue Aug  1 22:42:08 2023

Where the runes should appear after buying?

Asking Kenshin about the Eart ninja:

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
Exception: Not a displayable: <Character: 'kenshin_name'>

-- 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
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1428, in execute
    show_imspec(self.imspec, atl=getattr(self, "atl", None))
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1385, in show_imspec
    expression = renpy.easy.displayable(expression)
  File "E:\0 TEST play\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: <Character: 'kenshin_name'>
+ similar error pops up for at others, when asking about. 
Title: Re: v0.3 Test version (gameplay only)
Post by: MnrPjenis on Aug 02, 2023, 01:17 AM
Is there a way to see a girl's sanity level? If not, it would be nice to have a way of checking it.

Other than that, I'm getting a fair amount of screen scaling issues, i.e. the screen shrinks (doesn't crop) and there is now a black section on my screen.
The most notable one of these is in the city, both in the location selection screen (i.e. choose between spice market, sewers...) and the location screen itself (e.g. spice market). In all of these screens, the game is resized to not include the bottom quarter of my screen, which is just black.
Another one is in the brothel screen, where the background image is shifted down (everything else is still in place here though, not the case in the other example).

Small other bug that sometimes happens is when I skip through a night quickly, the next day all the text in the main screen is covered by black bars. After mousing over them the bars disappear and the game works fine.

Hope this helps figure some stuff out!
Title: Re: v0.3 Test version (gameplay only)
Post by: neronero on Aug 02, 2023, 04:42 AM
Quote from: MnrPjenis on Aug 02, 2023, 01:17 AMThe most notable one of these is in the city, both in the location selection screen (i.e. choose between spice market, sewers...) and the location screen itself (e.g. spice market). In all of these screens, the game is resized to not include the bottom quarter of my screen, which is just black.
Another one is in the brothel screen, where the background image is shifted down (everything else is still in place here though, not the case in the other example).
Are you running the game in a custom resolution, by any chance? That would be good to know, to try to reproduce the errors.

The black bars bug is a known issue that appeared after upgrading the game's engine to the latest version of Ren'Py. We're still hoping to find the root cause, but alternatively the game could revert back to a slightly older version of the engine like it used to.
Title: Re: v0.3 Test version (gameplay only)
Post by: neronero on Aug 02, 2023, 09:20 AM
The following glyphs are used by the carpenter for buildings under construction:

◕ U+25D5
◑ U+25D1
◔ U+25D4

___


At the end of the send_to_farm_menu,  you're presented with a menu: "Follow her (Farm tab)", or "Stay here (Girls tab)". But this menu could also be encountered while you're in the slavemarket, buying a slave even though your brothel is full (or in the city, recruiting a free girl)
Also, I'm not that fond of referring to the 'tabs' so explicitly in the first place in anything but tooltips or tutorial-dialogue.

Consider renaming the choices to "Follow her to the farm" and "Stay here".

___


Maybe I'm missing something obvious, but I can't figure out why the 16/50 for Anal is displayed in red (https://i.imgur.com/5Ib0ZS3.jpg). No perks/traits/items that affect it, plus there's not even any red text in the hover-tooltip.

___


Exception on night event:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 362, in script call
    call play_events(_type = "night") from _call_play_events
  File "game/BKevents.rpy", line 720, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 732, in script call
    $ ev.play()
  File "game/BKday_events.rpy", line 630, in script call
    call random_night_girl_event(girl, room) from _call_random_night_girl_event #!
  File "game/BKday_events.rpy", line 2889, in script
    if not punish and attitude == None:
  File "game/BKday_events.rpy", line 2892, in <module>
    elif attitude > 150:
TypeError: '>' not supported between instances of 'NoneType' and 'int'

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

Full traceback:
  File "game/BKendday.rpy", line 362, in script call
    call play_events(_type = "night") from _call_play_events
  File "game/BKevents.rpy", line 720, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 732, in script call
    $ ev.play()
  File "game/BKday_events.rpy", line 630, in script call
    call random_night_girl_event(girl, room) from _call_random_night_girl_event #!
  File "game/BKday_events.rpy", line 2889, in script
    if not punish and attitude == None:
  File "F:\ilx\BK03T\renpy\ast.py", line 2133, in execute
    if renpy.python.py_eval(condition):
  File "F:\ilx\BK03T\renpy\python.py", line 1153, in py_eval
    return py_eval_bytecode(code, globals, locals)
  File "F:\ilx\BK03T\renpy\python.py", line 1146, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "game/BKday_events.rpy", line 2892, in <module>
    elif attitude > 150:
TypeError: '>' not supported between instances of 'NoneType' and 'int'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Wed Aug  2 11:15:20 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: neronero on Aug 02, 2023, 02:32 PM
If you need to send a new girl straight to the farm because your brothel is full, and she resists going there, then she can end up going to your brothel instead (taking you over the room limit)

___


If you want to change a girl's equipment while she's away, the button is greyed out in the girls tab.
But you can still access her by looking at the equipment of another (present) girl first, and navigating to the away-girl from there.

___


This is a minor thing, but... Whenever you refresh the shop inventory and head back to the brothel menu afterwards, Sill's head shows up next to the shop to notify you that it's renewed. Obviously I just came from the shop so I've seen the new stock already, but OCD compells me to re-visit the shop just to get rid of Sill's icon.

___


When I put a girl on an "Everything (fascinated)"  training plan, I get notified as soon as she's fascinated with just Naked. I would expect her to automatically switch to a different sex skill instead of being asked about it.

___


Farm-related error encountered at end of day. With 8/8 girls in brothel, 3/4 girls in farm and 1 injured farm animal, if any of that somehow factors in.
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "game/BKendday.rpy", line 934, in <module>
    farm_training_girls, farm_holding_girls, farm_resting_girls = farm.assign_girls(logging=True)
  File "game/BKfarm.rpy", line 1216, in assign_girls
    for inst in renpy.random.sample(self.installations.values(), len(self.installations.values())):
TypeError: Population must be a sequence.  For dicts or sets, use sorted(d).

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

Full traceback:
  File "game/BKendday.rpy", line 932, in script
    python:
  File "F:\ilx\BK03T\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\ilx\BK03T\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 934, in <module>
    farm_training_girls, farm_holding_girls, farm_resting_girls = farm.assign_girls(logging=True)
  File "game/BKfarm.rpy", line 1216, in assign_girls
    for inst in renpy.random.sample(self.installations.values(), len(self.installations.values())):
  File "F:\ilx\BK03T\renpy\revertable.py", line 503, in newmethod
    l = method(*args, **kwargs)
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/random.py", line 433, in sample
TypeError: Population must be a sequence.  For dicts or sets, use sorted(d).

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Wed Aug  2 16:27:29 2023

edit: I got this one while hovering over my girls back and forth in the girls menu,

The setup to replicate it is a bit unusual. Perhaps so unusual that it doesn't merit fixing: I have two copies of the same pack in my /girls/ folder (but in different subfolders/mixes - the girl folders themselves have different names too, I figured that the game would be able to tell them apart like that, but I guess not)

I've had the original of the first girl (level 9) in my brothel for a while, and now I've just acquired the original of the second girl (level 5). Their icons/rank/level in the girls menu are also mashed up, so the first girl is displaying data of the second girl.  (https://i.imgur.com/xiac3va.png)

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1117, in script
    $ result = ui.interact()
  File "game/BKmain.rpy", line 1117, in <module>
    $ result = ui.interact()
Exception: renpy.restart_interaction() was called 100 times without processing any input.

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

Full traceback:
  File "game/BKmain.rpy", line 1117, in script
    $ result = ui.interact()
  File "F:\ilx\BK03T\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\ilx\BK03T\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 1117, in <module>
    $ result = ui.interact()
  File "F:\ilx\BK03T\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "F:\ilx\BK03T\renpy\display\core.py", line 3577, in interact
    raise Exception("renpy.restart_interaction() was called 100 times without processing any input.")
Exception: renpy.restart_interaction() was called 100 times without processing any input.

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Wed Aug  2 18:41:00 2023


Title: Re: v0.3 Test version (gameplay only)
Post by: xelayna on Aug 02, 2023, 06:06 PM
Using Ctrl+Click would let you click options and menus while skipping, but it seems to not let you click anymore during 0.3
It's a small inconvenience but wanted to know if it's just me v230721+Traitking
Title: Re: v0.3 Test version (gameplay only)
Post by: Iconic9875667 on Aug 02, 2023, 06:49 PM
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 362, in script call
    call play_events(_type = "night") from _call_play_events
  File "game/BKevents.rpy", line 720, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 732, in script call
    $ ev.play()
  File "game/BKday_events.rpy", line 630, in script call
    call random_night_girl_event(girl, room) from _call_random_night_girl_event #!
  File "game/BKday_events.rpy", line 1995, in script
    "You spot [girl.fullname] lazily bathing in one of the pools. As you approach, you can even hear her snore noisily."
  File "renpy/common/00action_other.rpy", line 583, in __call__
    rv = self.callable(*self.args, **self.kwargs)
  File "game/BKdeclarations.rpy", line 1374, in unlock_pic
    raise AssertionError("Unlock picture: %s not recognized as a string or picture object." % pic)
AssertionError: Unlock picture: None not recognized as a string or picture object.

Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Aug 02, 2023, 10:07 PM
New hotfix out:
https://www.mediafire.com/file/1va1v7cq1psp53x/game+patch+0.3.zip/file

New game recommended to get the fixes for items.



Quote from: MnrPjenis on Aug 02, 2023, 01:17 AMIs there a way to see a girl's sanity level? If not, it would be nice to have a way of checking it.
You can see it when selecting a conduit, although I can see how it would be inconvenient to have to move a girl to the farm for this information. Quick show of hands: who wants to be able to target girls directly from the brothel as conduits? I figured it would be less messy to narrow down the conduit choice to girls in the farm, but maybe I'm wrong.

QuoteOther than that, I'm getting a fair amount of screen scaling issues, i.e. the screen shrinks (doesn't crop) and there is now a black section on my screen.
[...]
Looks like the issue I reported here (https://lemmasoft.renai.us/forums/viewtopic.php?f=32&t=66900#p561771), sadly I got no reply (maybe it was the wrong place to ask?). Porting back to Ren'Py 8.0 should do the trick, I will release a new build once we get rid of the early bugs.

Quote from: neronero on Aug 02, 2023, 09:20 AMMaybe I'm missing something obvious, but I can't figure out why the 16/50 for Anal is displayed in red (https://i.imgur.com/5Ib0ZS3.jpg). No perks/traits/items that affect it, plus there's not even any red text in the hover-tooltip.
Rounding error, should be fixed with the new patch.

Quote from: neronero on Aug 02, 2023, 02:32 PMedit: I got this one while hovering over my girls back and forth in the girls menu,

The setup to replicate it is a bit unusual. Perhaps so unusual that it doesn't merit fixing: I have two copies of the same pack in my /girls/ folder (but in different subfolders/mixes - the girl folders themselves have different names too, I figured that the game would be able to tell them apart like that, but I guess not)

I've had the original of the first girl (level 9) in my brothel for a while, and now I've just acquired the original of the second girl (level 5). Their icons/rank/level in the girls menu are also mashed up, so the first girl is displaying data of the second girl.  (https://i.imgur.com/xiac3va.png)

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1117, in script
    $ result = ui.interact()
  File "game/BKmain.rpy", line 1117, in <module>
    $ result = ui.interact()
Exception: renpy.restart_interaction() was called 100 times without processing any input.

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

Full traceback:
  File "game/BKmain.rpy", line 1117, in script
    $ result = ui.interact()
  File "F:\ilx\BK03T\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\ilx\BK03T\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 1117, in <module>
    $ result = ui.interact()
  File "F:\ilx\BK03T\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "F:\ilx\BK03T\renpy\display\core.py", line 3577, in interact
    raise Exception("renpy.restart_interaction() was called 100 times without processing any input.")
Exception: renpy.restart_interaction() was called 100 times without processing any input.

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Wed Aug  2 18:41:00 2023
Couldn't reproduce the restart_interaction() bug. You had me wiggle my mouse like crazy over the girls' tab for two minutes, and looking like a madman. I have to admit, if it was a prank, it was pretty funny.  ;)

As for the doppelganger original girl (I assume it's a different bug and your edit was a bit garbled), I am flabbergasted this would happen. A saved game would help in that case.

Quote from: xelayna on Aug 02, 2023, 06:06 PMUsing Ctrl+Click would let you click options and menus while skipping, but it seems to not let you click anymore during 0.3
It's a small inconvenience but wanted to know if it's just me v230721+Traitking
I'm fairly sure this came with the new version of Ren'py, as it now features ctrl and shift modifiers to clicking in the keymap (partly at my request  :-[ ...). A 'benefit' of rolling back to 8.0 is that you would likely get the old behavior back.
Title: Re: v0.3 Test version (gameplay only)
Post by: MnrPjenis on Aug 02, 2023, 10:27 PM
Having trouble when selecting supercharged spells sometimes. I would either hold shift or click the supercharge button and then click a spell, and about 70/80% of the time, all spells and buttons disappear from the screen and I have to reload.

Quote from: neronero on Aug 02, 2023, 04:42 AMAre you running the game in a custom resolution, by any chance? That would be good to know, to try to reproduce the errors.
Nope, just the standard 1920x1080 (16:9) resolution.

Quote from: Goldo on Aug 02, 2023, 10:07 PMYou can see it when selecting a conduit, although I can see how it would be inconvenient to have to move a girl to the farm for this information. Quick show of hands: who wants to be able to target girls directly from the brothel as conduits? I figured it would be less messy to narrow down the conduit choice to girls in the farm, but maybe I'm wrong.
Would very much enjoy this change yeah :)
Title: Re: v0.3 Test version (gameplay only)
Post by: neronero on Aug 03, 2023, 05:43 AM
Quote from: Goldo on Aug 02, 2023, 10:07 PMYou can see it when selecting a conduit, although I can see how it would be inconvenient to have to move a girl to the farm for this information. Quick show of hands: who wants to be able to target girls directly from the brothel as conduits? I figured it would be less messy to narrow down the conduit choice to girls in the farm, but maybe I'm wrong.
I don't like the idea of directly targeting brothel girls. Sending girls to the farm has a clear purpose now and I don't want to diminish that (it had some purpose before, but training them yourself usually seemed like the better choice)

If brothel girls do become targetable, I would expect the sanity cost to be multiplied by 1.5x or 2x for them. In the brothel they should feel relatively safe; the farm is the environment where they can anticipate such radical experimentation on their psyche.

But seeing a girl's sanity somewhere (on the send-to-farm menu? on the girl profile next to love/fear?) would be useful to make sure they're suited for the farm.

QuoteCouldn't reproduce the restart_interaction() bug. You had me wiggle my mouse like crazy over the girls' tab for two minutes, and looking like a madman. I have to admit, if it was a prank, it was pretty funny.  ;)
You did it all wrong, you need to stick out your tongue and shriek while you're doing it!

It appeared at the same time as the doppelganger girl, so I'm assuming it's the same issue. I don't have the save anymore and it's a niche issue, but I'll let you know if I manage to recreate it. 






:P AIIIEEE!!! (wiggle wiggle)
Title: Re: v0.3 Test version (gameplay only)
Post by: Hermenegild on Aug 03, 2023, 07:25 AM
During chapter 1, in 0.2, you used to only get beggars as clients in your brothel (IIRC). In 0.3 you can get thugs and laborers as well. After you move to chapter 2, you gain control of who comes to your brothel, and to get laborers at your brothel you have to get something built by your carpenter.

I assume getting thugs in chapter 1 is intentional, but isn't getting laborers too a bug?
Title: Re: v0.3 Test version (gameplay only)
Post by: AnalogSquirrel on Aug 03, 2023, 02:00 PM
EDIT: I didn't start a new game after applying the patch.  Starting a new one now, and will update if the problem reappears.

This is with the newest patch (8/2/2023).  Trying to update farm training (Change Program button):

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 695, in script call
    call farm_change_program(obj) from _call_farm_change_program
  File "game/BKevents.rpy", line 3860, in script call
    call send_to_farm_menu() from _call_send_to_farm_menu
  File "game/BKevents.rpy", line 3482, in script
    call screen farm_menu(prog, can_cancel)
  File "renpy/common/000statements.rpy", line 670, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
TypeError: Too many arguments in call (expected 1, got 2).

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

Full traceback:
  File "game/BKmain.rpy", line 695, in script call
    call farm_change_program(obj) from _call_farm_change_program
  File "game/BKevents.rpy", line 3860, in script call
    call send_to_farm_menu() from _call_send_to_farm_menu
  File "game/BKevents.rpy", line 3482, in script
    call screen farm_menu(prog, can_cancel)
  File "/home/holemanj/Programs/Games/BK/Brothel_King-pc/renpy/ast.py", line 2259, in execute
    self.call("execute")
  File "/home/holemanj/Programs/Games/BK/Brothel_King-pc/renpy/ast.py", line 2241, in call
    return renpy.statements.call(method, parsed, *args, **kwargs)
  File "/home/holemanj/Programs/Games/BK/Brothel_King-pc/renpy/statements.py", line 342, in call
    return method(parsed, *args, **kwargs)
  File "renpy/common/000statements.rpy", line 670, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "/home/holemanj/Programs/Games/BK/Brothel_King-pc/renpy/exports.py", line 3345, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  File "/home/holemanj/Programs/Games/BK/Brothel_King-pc/renpy/ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "/home/holemanj/Programs/Games/BK/Brothel_King-pc/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 "/home/holemanj/Programs/Games/BK/Brothel_King-pc/renpy/display/core.py", line 4052, in interact_core
    root_widget.visit_all(lambda d : d.per_interact())
  File "/home/holemanj/Programs/Games/BK/Brothel_King-pc/renpy/display/core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "/home/holemanj/Programs/Games/BK/Brothel_King-pc/renpy/display/core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "/home/holemanj/Programs/Games/BK/Brothel_King-pc/renpy/display/core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "/home/holemanj/Programs/Games/BK/Brothel_King-pc/renpy/display/screen.py", line 476, in visit_all
    callback(self)
  File "/home/holemanj/Programs/Games/BK/Brothel_King-pc/renpy/display/core.py", line 4052, in <lambda>
    root_widget.visit_all(lambda d : d.per_interact())
  File "/home/holemanj/Programs/Games/BK/Brothel_King-pc/renpy/display/screen.py", line 487, in per_interact
    self.update()
  File "/home/holemanj/Programs/Games/BK/Brothel_King-pc/renpy/display/screen.py", line 680, in update
    self.screen.function(**self.scope)
  File "/home/holemanj/Programs/Games/BK/Brothel_King-pc/renpy/ast.py", line 296, in apply_arguments
    return parameters.apply(args, kwargs, ignore_errors)
  File "/home/holemanj/Programs/Games/BK/Brothel_King-pc/renpy/ast.py", line 250, in apply
    raise TypeError(
TypeError: Too many arguments in call (expected 1, got 2).

Linux-6.3.0-1-amd64-x86_64-with-glibc2.37 x86_64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Thu Aug  3 06:57:40 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: oratorio on Aug 03, 2023, 02:06 PM
In BKitems.rpy ... line 635

hovered tt.Action(it.base_description)

should be

hovered tt.Action(it.description)

Edit: Maybe item type minion should also have a base_description because later you call both base_description and description one after the other.
Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Aug 03, 2023, 04:12 PM
Gina, entering trade:

While running game code:
  File "game/BKmain.rpy", line 202, in script call
    $ renpy.call(selected_location.menu[1])
  File "game/BKevents.rpy", line 3028, in script call
    call visit_merchant(NPC_gina) from _call_visit_merchant_3
  File "game/BKmain.rpy", line 1764, in script
    $ result = ui.interact()
  File "game/BKmain.rpy", line 1764, in <module>
    $ result = ui.interact()
  File "game/BKitems.rpy", line 425, 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 425, 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 453, in execute
    fixed:
  File "game/BKitems.rpy", line 468, in execute
    if right_focus:
  File "game/BKitems.rpy", line 469, in execute
    vbox xsize xres(255) xalign 1.0 xanchor 1.0 ypos 0.1:
  File "game/BKitems.rpy", line 474, in execute
    hbox xalign 1.0:
  File "game/BKitems.rpy", line 478, 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 632, in execute
    button style "girlbutton_blue" xpadding 6:
  File "game/BKitems.rpy", line 632, in keywords
    button style "girlbutton_blue" xpadding 6:
  File "game/BKitems.rpy", line 635, in <module>
    hovered tt.Action(it.base_description)
AttributeError: 'Minion' object has no attribute 'base_description'


EDIT: same thing for Goldie and Willow
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Aug 03, 2023, 09:08 PM
Hotfix out:
https://www.mediafire.com/file/1va1v7cq1psp53x/game+patch+0.3.zip/file

Now let's go back to wiggling and howling.

:P  :P   :P

(https://media.tenor.com/--Jsn845fb8AAAAC/upisnotjump-mouse.gif)
Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Aug 04, 2023, 01:00 AM
Hovering over any card in the farm:

While running game code:
  File "game/BKmain.rpy", line 561, in script call
    call farm_powers() from _call_farm_powers
  File "game/BKpowers.rpy", line 414, in script
    $ r = ui.interact() # This captures every return value from the current context
  File "game/BKpowers.rpy", line 414, in <module>
    $ r = ui.interact() # This captures every return value from the current context
  File "game/BKscreens.rpy", line 8470, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 8470, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 8526, in execute
    if selected_card:
  File "game/BKscreens.rpy", line 8527, in execute
    use power_detail(selected_card.get(_super))
  File "game/BKscreens.rpy", line 8420, in execute
    screen power_detail(pow):
  File "game/BKscreens.rpy", line 8420, in execute
    screen power_detail(pow):
  File "game/BKscreens.rpy", line 8422, in execute
    frame xalign 1.0 xsize 0.2 ypos 0.1 xmargin xres(6) top_padding yres(6) bottom_padding yres(12) background c_ui_dark:
  File "game/BKscreens.rpy", line 8423, in execute
    vbox spacing yres(3):
  File "game/BKscreens.rpy", line 8431, in execute
    hbox spacing xres(6):
  File "game/BKscreens.rpy", line 8432, in execute
    if conduit:
  File "game/BKscreens.rpy", line 8432, in <module>
    if conduit:
NameError: name 'conduit' is not defined
Title: Re: v0.3 Test version (gameplay only)
Post by: Hermenegild on Aug 04, 2023, 08:19 AM
The "Girls" panel doesn't persist its sorting method. As a result, the girls are not sorted the way you want them to be when reentering the tab. The strange thing is, there seems to be some randomness regarding the way they're sorted, as they're not sorted the same way each time I enter the Girls panel after I change the sort method (but they're not sorted the way I want, either).

It seems to work correctly for the farm.

EDIT: You don't even have to leave the tab, just enter the girls page, change the sorting, interact with a girl, and when coming out of the interaction, the girls list gets resorted again.
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Aug 04, 2023, 11:12 AM
Quote from: EvilPenguin on Aug 04, 2023, 01:00 AMHovering over any card in the farm:

While running game code:
  File "game/BKmain.rpy", line 561, in script call
    call farm_powers() from _call_farm_powers
  File "game/BKpowers.rpy", line 414, in script
    $ r = ui.interact() # This captures every return value from the current context
  File "game/BKpowers.rpy", line 414, in <module>
    $ r = ui.interact() # This captures every return value from the current context
  File "game/BKscreens.rpy", line 8470, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 8470, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 8526, in execute
    if selected_card:
  File "game/BKscreens.rpy", line 8527, in execute
    use power_detail(selected_card.get(_super))
  File "game/BKscreens.rpy", line 8420, in execute
    screen power_detail(pow):
  File "game/BKscreens.rpy", line 8420, in execute
    screen power_detail(pow):
  File "game/BKscreens.rpy", line 8422, in execute
    frame xalign 1.0 xsize 0.2 ypos 0.1 xmargin xres(6) top_padding yres(6) bottom_padding yres(12) background c_ui_dark:
  File "game/BKscreens.rpy", line 8423, in execute
    vbox spacing yres(3):
  File "game/BKscreens.rpy", line 8431, in execute
    hbox spacing xres(6):
  File "game/BKscreens.rpy", line 8432, in execute
    if conduit:
  File "game/BKscreens.rpy", line 8432, in <module>
    if conduit:
NameError: name 'conduit' is not defined
I cannot reproduce this. Are you on the latest patch, within a new game?

Quote from: Hermenegild on Aug 04, 2023, 08:19 AMThe "Girls" panel doesn't persist its sorting method. As a result, the girls are not sorted the way you want them to be when reentering the tab. The strange thing is, there seems to be some randomness regarding the way they're sorted, as they're not sorted the same way each time I enter the Girls panel after I change the sort method (but they're not sorted the way I want, either).

It seems to work correctly for the farm.

EDIT: You don't even have to leave the tab, just enter the girls page, change the sorting, interact with a girl, and when coming out of the interaction, the girls list gets resorted again.
I cannot reproduce this. Could you please describe the steps needed to reproduce it? This happens on a new game as well?
Title: Re: v0.3 Test version (gameplay only)
Post by: zvb123 on Aug 04, 2023, 11:30 AM
got this error when saving:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00gamemenu.rpy", line 170, in script
    $ ui.interact()
  File "renpy/common/00gamemenu.rpy", line 170, in <module>
    $ ui.interact()
  File "renpy/common/00action_file.rpy", line 397, in __call__
    renpy.save(fn, extra_info=save_name)
TypeError: cannot pickle 'dict_keys' object (perhaps renpy.game.log.log[25].context.scene_lists.layers['screens'][0].displayable.scope['available_mixes'] = dict_keys(['default']))

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

Full traceback:
  File "renpy/common/00gamemenu.rpy", line 170, in script
    $ ui.interact()
  File "C:\Games\games\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:\Games\games\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "renpy/common/00gamemenu.rpy", line 170, in <module>
    $ ui.interact()
  File "C:\Games\games\Brothel_King-pc\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Games\games\Brothel_King-pc\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 "C:\Games\games\Brothel_King-pc\renpy\display\core.py", line 4540, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Games\games\Brothel_King-pc\renpy\display\screen.py", line 770, in event
    rv = self.child.event(ev, x, y, st)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 1401, in event
    rv = super(Window, self).event(ev, x, y, st)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 279, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 279, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "C:\Games\games\Brothel_King-pc\renpy\display\behavior.py", line 1138, in event
    return handle_click(self.clicked)
  File "C:\Games\games\Brothel_King-pc\renpy\display\behavior.py", line 1071, in handle_click
    rv = run(action)
  File "C:\Games\games\Brothel_King-pc\renpy\display\behavior.py", line 375, in run
    return action(*args, **kwargs)
  File "renpy/common/00action_file.rpy", line 397, in __call__
    renpy.save(fn, extra_info=save_name)
  File "C:\Games\games\Brothel_King-pc\renpy\loadsave.py", line 432, in save
    reraise(t, e, tb)
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/site-packages/future/utils/__init__.py", line 444, in raise_
  File "C:\Games\games\Brothel_King-pc\renpy\loadsave.py", line 413, in save
    dump((roots, renpy.game.log), logf)
  File "C:\Games\games\Brothel_King-pc\renpy\compat\pickle.py", line 103, in dump
    pickle.dump(o, f, pickle.HIGHEST_PROTOCOL if highest else PROTOCOL)
TypeError: cannot pickle 'dict_keys' object (perhaps renpy.game.log.log[25].context.scene_lists.layers['screens'][0].displayable.scope['available_mixes'] = dict_keys(['default']))

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Fri Aug  4 19:25:55 2023
on the latest patch.

ALso, when you publish a new hotfix, maybe you can update patch_version in options.rpy every time, so you can immediately see if someone is running on the latest hotfix?
Title: Re: v0.3 Test version (gameplay only)
Post by: Hermenegild on Aug 04, 2023, 11:38 AM
Quote from: Goldo on Aug 04, 2023, 11:12 AM
Quote from: Hermenegild on Aug 04, 2023, 08:19 AMThe "Girls" panel doesn't persist its sorting method. As a result, the girls are not sorted the way you want them to be when reentering the tab. The strange thing is, there seems to be some randomness regarding the way they're sorted, as they're not sorted the same way each time I enter the Girls panel after I change the sort method (but they're not sorted the way I want, either).

It seems to work correctly for the farm.

EDIT: You don't even have to leave the tab, just enter the girls page, change the sorting, interact with a girl, and when coming out of the interaction, the girls list gets resorted again.
I cannot reproduce this. Could you please describe the steps needed to reproduce it? This happens on a new game as well?
I'll try to reproduce it again tomorrow, as this issue has happened in chapter 2, and I need some time to get there. It may be hard to see it if you only have a few girls; I had seven at the time, with levels ranging from 5 to 10. When I clicked "Sort by level", they got sorted by level as they should. Once I interacted with one and returned to the list level, they re-sorted so that they were in the same order as initially (unsorted); I assume this is the order I got them, but I'm not sure. The same thing happened when I tried to sort them by name: sort, exit to the main screen, return to the girls tab, and they're not sorted anymore.

I was playing using the patch from August 1st, IIRC. I'll start a new game to test it again, but I haven't seen any changes in your patches regarding the girls tab.

I'll send you a save file once I have it.
Title: Re: v0.3 Test version (gameplay only)
Post by: Iconic9875667 on Aug 04, 2023, 12:15 PM
Got this picking a card at the farm

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 561, in script call
    call farm_powers() from _call_farm_powers
  File "game/BKpowers.rpy", line 414, in script
    $ r = ui.interact() # This captures every return value from the current context
  File "game/BKpowers.rpy", line 414, in <module>
    $ r = ui.interact() # This captures every return value from the current context
  File "game/BKscreens.rpy", line 8470, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 8470, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 8526, in execute
    if selected_card:
  File "game/BKscreens.rpy", line 8527, in execute
    use power_detail(selected_card.get(_super))
  File "game/BKscreens.rpy", line 8420, in execute
    screen power_detail(pow):
  File "game/BKscreens.rpy", line 8420, in execute
    screen power_detail(pow):
  File "game/BKscreens.rpy", line 8422, in execute
    frame xalign 1.0 xsize 0.2 ypos 0.1 xmargin xres(6) top_padding yres(6) bottom_padding yres(12) background c_ui_dark:
  File "game/BKscreens.rpy", line 8423, in execute
    vbox spacing yres(3):
  File "game/BKscreens.rpy", line 8431, in execute
    hbox spacing xres(6):
  File "game/BKscreens.rpy", line 8432, in execute
    if conduit:
  File "game/BKscreens.rpy", line 8432, in <module>
    if conduit:
NameError: name 'conduit' is not defined

Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Aug 04, 2023, 02:37 PM
Quote from: Goldo on Aug 04, 2023, 11:12 AMI cannot reproduce this. Are you on the latest patch, within a new game?

Newest patch 100%. And I'm 90% sure this was a new game.

Link to save (didn't saw a way to attach on forum): https://www.mediafire.com/file/0yjuyrm05uejp1a/3-1-LT1.save/file
Title: Re: v0.3 Test version (gameplay only)
Post by: Deimos96 on Aug 04, 2023, 09:46 PM
Free form training loops the moaning audio indefinitely and is persistent even after reloading the game
Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Aug 05, 2023, 05:51 AM
Did a new run. Same thing in chapter 3, when hovering over cards in the farm:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 561, in script call
    call farm_powers() from _call_farm_powers
  File "game/BKpowers.rpy", line 414, in script
    $ r = ui.interact() # This captures every return value from the current context
  File "game/BKpowers.rpy", line 414, in <module>
    $ r = ui.interact() # This captures every return value from the current context
  File "game/BKscreens.rpy", line 8470, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 8470, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 8526, in execute
    if selected_card:
  File "game/BKscreens.rpy", line 8527, in execute
    use power_detail(selected_card.get(_super))
  File "game/BKscreens.rpy", line 8420, in execute
    screen power_detail(pow):
  File "game/BKscreens.rpy", line 8420, in execute
    screen power_detail(pow):
  File "game/BKscreens.rpy", line 8422, in execute
    frame xalign 1.0 xsize 0.2 ypos 0.1 xmargin xres(6) top_padding yres(6) bottom_padding yres(12) background c_ui_dark:
  File "game/BKscreens.rpy", line 8423, in execute
    vbox spacing yres(3):
  File "game/BKscreens.rpy", line 8431, in execute
    hbox spacing xres(6):
  File "game/BKscreens.rpy", line 8432, in execute
    if conduit:
  File "game/BKscreens.rpy", line 8432, in <module>
    if conduit:
NameError: name 'conduit' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 561, in script call
    call farm_powers() from _call_farm_powers
  File "game/BKpowers.rpy", line 414, in script
    $ r = ui.interact() # This captures every return value from the current context
  File "E:\0 TEST play\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 "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKpowers.rpy", line 414, in <module>
    $ r = ui.interact() # This captures every return value from the current context
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\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 "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in interact_core
    root_widget.visit_all(lambda d : d.per_interact())
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 476, in visit_all
    callback(self)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in <lambda>
    root_widget.visit_all(lambda d : d.per_interact())
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 487, in per_interact
    self.update()
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 680, in update
    self.screen.function(**self.scope)
  File "game/BKscreens.rpy", line 8470, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 8470, in execute
    screen power_hand(hand, context="idle", start_at = 0, x=0.5, y=0.75):
  File "game/BKscreens.rpy", line 8526, in execute
    if selected_card:
  File "game/BKscreens.rpy", line 8527, in execute
    use power_detail(selected_card.get(_super))
  File "game/BKscreens.rpy", line 8420, in execute
    screen power_detail(pow):
  File "game/BKscreens.rpy", line 8420, in execute
    screen power_detail(pow):
  File "game/BKscreens.rpy", line 8422, in execute
    frame xalign 1.0 xsize 0.2 ypos 0.1 xmargin xres(6) top_padding yres(6) bottom_padding yres(12) background c_ui_dark:
  File "game/BKscreens.rpy", line 8423, in execute
    vbox spacing yres(3):
  File "game/BKscreens.rpy", line 8431, in execute
    hbox spacing xres(6):
  File "game/BKscreens.rpy", line 8432, in execute
    if conduit:
  File "game/BKscreens.rpy", line 8432, in <module>
    if conduit:
NameError: name 'conduit' is not defined

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sat Aug  5 07:49:41 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: Iconic9875667 on Aug 05, 2023, 07:58 AM
i know its not finished yet but when you are talking to people for ninja hints, you can talk to the same person 3 times and there hint counts each time
Title: Re: v0.3 Test version (gameplay only)
Post by: neronero on Aug 05, 2023, 11:16 AM
Quote from: vadi92 on Aug 05, 2023, 09:20 AMfor both this and your Friends and Foes mod the background will not show up in 0.3.

https://imgur.com/a/AmTueSo (https://imgur.com/a/AmTueSo)
^ Due to this I suspect that BKstory_events.rpy line 44-50 has the same issue

    if brothel.get_common_rooms():
        $ room = rand_choice(brothel.get_common_rooms()).name
    else:
        $ room = "black"

    $ renpy.show(room, at_list = [top])
    with dissolve
line 45 should probably be $ room = brothel.get_random_room_pic_path()
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Aug 05, 2023, 11:14 PM
New hotfix out:
https://www.mediafire.com/file/1va1v7cq1psp53x/game+patch+0.3.zip/file



Quote from: zvb123 on Aug 04, 2023, 11:30 AMgot this error when saving:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00gamemenu.rpy", line 170, in script
    $ ui.interact()
  File "renpy/common/00gamemenu.rpy", line 170, in <module>
    $ ui.interact()
  File "renpy/common/00action_file.rpy", line 397, in __call__
    renpy.save(fn, extra_info=save_name)
TypeError: cannot pickle 'dict_keys' object (perhaps renpy.game.log.log[25].context.scene_lists.layers['screens'][0].displayable.scope['available_mixes'] = dict_keys(['default']))

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

Full traceback:
  File "renpy/common/00gamemenu.rpy", line 170, in script
    $ ui.interact()
  File "C:\Games\games\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:\Games\games\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "renpy/common/00gamemenu.rpy", line 170, in <module>
    $ ui.interact()
  File "C:\Games\games\Brothel_King-pc\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Games\games\Brothel_King-pc\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 "C:\Games\games\Brothel_King-pc\renpy\display\core.py", line 4540, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Games\games\Brothel_King-pc\renpy\display\screen.py", line 770, in event
    rv = self.child.event(ev, x, y, st)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 1401, in event
    rv = super(Window, self).event(ev, x, y, st)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 279, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "C:\Games\games\Brothel_King-pc\renpy\display\layout.py", line 279, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "C:\Games\games\Brothel_King-pc\renpy\display\behavior.py", line 1138, in event
    return handle_click(self.clicked)
  File "C:\Games\games\Brothel_King-pc\renpy\display\behavior.py", line 1071, in handle_click
    rv = run(action)
  File "C:\Games\games\Brothel_King-pc\renpy\display\behavior.py", line 375, in run
    return action(*args, **kwargs)
  File "renpy/common/00action_file.rpy", line 397, in __call__
    renpy.save(fn, extra_info=save_name)
  File "C:\Games\games\Brothel_King-pc\renpy\loadsave.py", line 432, in save
    reraise(t, e, tb)
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/site-packages/future/utils/__init__.py", line 444, in raise_
  File "C:\Games\games\Brothel_King-pc\renpy\loadsave.py", line 413, in save
    dump((roots, renpy.game.log), logf)
  File "C:\Games\games\Brothel_King-pc\renpy\compat\pickle.py", line 103, in dump
    pickle.dump(o, f, pickle.HIGHEST_PROTOCOL if highest else PROTOCOL)
TypeError: cannot pickle 'dict_keys' object (perhaps renpy.game.log.log[25].context.scene_lists.layers['screens'][0].displayable.scope['available_mixes'] = dict_keys(['default']))

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Fri Aug  4 19:25:55 2023
on the latest patch.
I'm not sure what's going on here. It looks vaguely like an old 0.2 bug where the 'default' girl mix persistent value wasn't initiated properly, but if that was the case you would have had the same problem with 0.2, plus I don't recognize this error as it only refers to vanilla Ren'py code.

Did you perhaps try to save in an odd location? (such as the girl mix screen)

Quote from: Hermenegild on Aug 04, 2023, 11:38 AM
Quote from: Goldo on Aug 04, 2023, 11:12 AM
Quote from: Hermenegild on Aug 04, 2023, 08:19 AMThe "Girls" panel doesn't persist its sorting method. As a result, the girls are not sorted the way you want them to be when reentering the tab. The strange thing is, there seems to be some randomness regarding the way they're sorted, as they're not sorted the same way each time I enter the Girls panel after I change the sort method (but they're not sorted the way I want, either).

It seems to work correctly for the farm.

EDIT: You don't even have to leave the tab, just enter the girls page, change the sorting, interact with a girl, and when coming out of the interaction, the girls list gets resorted again.
I cannot reproduce this. Could you please describe the steps needed to reproduce it? This happens on a new game as well?
I'll try to reproduce it again tomorrow, as this issue has happened in chapter 2, and I need some time to get there. It may be hard to see it if you only have a few girls; I had seven at the time, with levels ranging from 5 to 10. When I clicked "Sort by level", they got sorted by level as they should. Once I interacted with one and returned to the list level, they re-sorted so that they were in the same order as initially (unsorted); I assume this is the order I got them, but I'm not sure. The same thing happened when I tried to sort them by name: sort, exit to the main screen, return to the girls tab, and they're not sorted anymore.

I was playing using the patch from August 1st, IIRC. I'll start a new game to test it again, but I haven't seen any changes in your patches regarding the girls tab.

I'll send you a save file once I have it.
I think I fixed it, here are the steps to fast-check if it is solved on your end:

Quote from: EvilPenguin on Aug 04, 2023, 02:37 PM
Quote from: Goldo on Aug 04, 2023, 11:12 AMI cannot reproduce this. Are you on the latest patch, within a new game?

Newest patch 100%. And I'm 90% sure this was a new game.

Link to save (didn't saw a way to attach on forum): https://www.mediafire.com/file/0yjuyrm05uejp1a/3-1-LT1.save/file
Thanks, turns out that problem only happened during the intro because of leftover debugging code. It should be fine now.
Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Aug 06, 2023, 10:43 AM
Perk in Model tree: Overachiever - I think it does nothing. Getting it, do not boost any skills.
Title: Re: v0.3 Test version (gameplay only)
Post by: neronero on Aug 06, 2023, 12:41 PM
Quote from: 22ndgentlemen on Jul 30, 2023, 12:03 PMJust picked up a bugged(?) girl from the market.  She is level 2 but has -1 perk points to spend.  I also cannot level her up despite having the button and proper indicating icons to do so.

UPDATE:  Now that the girl is leveled up to level 3, I was able to spend only the +10 points going from level 2 to 3, but here perk points are at 0 now having gone from -1 to 0.

EDIT:  Wanted to add additional information in case it mattered or for replication:
girl was bought in year 1 month 2
still in slums location
girl was 3rd total girl
brothel room was bought at same time as girl
Long-winded explanation here (https://henthighschool.net/brothel-king/resources-trait-king-mod/msg3905/#msg3905).

Possible solution:

(BKgirlclass line ~2669)
            if trait.archetype and self.perk_points > 0 and not no_perks:
                if self.archetypes[trait.archetype].unlocked:
                    self.acquire_perk(self.archetypes[trait.archetype].get_perks(0)[0], forced=True)
                    self.perk_points -= 1
                else:
                    self.unlock_archetype(trait.archetype)
                    self.perk_points -= 2
Change the else to elif self.perk_points > 1
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Aug 06, 2023, 10:05 PM
New patch out:
https://www.mediafire.com/file/1va1v7cq1psp53x/game+patch+0.3.zip/file

I'm going to take a 2-week break. Please keep posting the bugs you encounter in the meantime, and I will make sure to correct everything once I'm back.

Happy summer everyone!  8)
Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Aug 09, 2023, 08:55 AM
Abduction spell on success (on failure no errors):

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1515, in script call
    call play_events(_type = "morning") from _call_play_events_1 # Note: Morning events are set with the new day's date: beware of the confusion
  File "game/BKevents.rpy", line 723, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 735, in script call
    $ ev.play()
  File "game/BKpowers.rpy", line 1305, in script call
    call acquire_girl(girl2) from _call_acquire_girl_4
  File "game/BKevents.rpy", line 7462, in script
    python:
  File "game/BKevents.rpy", line 7466, in <module>
    girl.refresh_pictures()
  File "game/BKgirlclass.rpy", line 539, in refresh_pictures
    if self.location.lower() in town_locations: # Reminder: self.location contains location name (string)
AttributeError: 'NoneType' object has no attribute 'lower'

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

Full traceback:
  File "game/BKendday.rpy", line 1515, in script call
    call play_events(_type = "morning") from _call_play_events_1 # Note: Morning events are set with the new day's date: beware of the confusion
  File "game/BKevents.rpy", line 723, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 735, in script call
    $ ev.play()
  File "game/BKpowers.rpy", line 1305, in script call
    call acquire_girl(girl2) from _call_acquire_girl_4
  File "game/BKevents.rpy", line 7462, in script
    python:
  File "E:\0 TEST play\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 "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 7466, in <module>
    girl.refresh_pictures()
  File "game/BKgirlclass.rpy", line 539, in refresh_pictures
    if self.location.lower() in town_locations: # Reminder: self.location contains location name (string)
AttributeError: 'NoneType' object has no attribute 'lower'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Wed Aug  9 10:52:05 2023


EDIT:

Next day error whilke having the captured girl (cleared itself at start of a new week):
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1429, in script
    python:
  File "game/BKendday.rpy", line 1506, in <module>
    girl.refresh_pictures(silent=True)
  File "game/BKgirlclass.rpy", line 539, in refresh_pictures
    if self.location.lower() in town_locations: # Reminder: self.location contains location name (string)
AttributeError: 'NoneType' object has no attribute 'lower'

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

Full traceback:
  File "game/BKendday.rpy", line 1429, in script
    python:
  File "E:\0 TEST play\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 "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 1506, in <module>
    girl.refresh_pictures(silent=True)
  File "game/BKgirlclass.rpy", line 539, in refresh_pictures
    if self.location.lower() in town_locations: # Reminder: self.location contains location name (string)
AttributeError: 'NoneType' object has no attribute 'lower'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Wed Aug  9 12:47:05 2023

Title: Re: v0.3 Test version (gameplay only)
Post by: Hermenegild on Aug 09, 2023, 10:28 AM
Assigning the girl to any sex training in the farm should use one minion per girl (two or three for group training, but that's an exception). Yet, when assigning a girl to a facility, two minions get reserved. This makes it impossible to sex-train a girl in the farm during the first chapter, as you're limited to one minion per facility.
Title: Re: v0.3 Test version (gameplay only)
Post by: 22ndgentlemen on Aug 09, 2023, 10:56 AM
Just had 2 instances of the same original (yellow name) girl at the slave market causing an error.  I had to click on the girl to get the error.  I am now running vanilla 0.3 test build.

EDIT:  I was able to Rollback to the main brothel screen and continue my playthrough.

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 116, in script
    $ result = ui.interact()
  File "game/BKmain.rpy", line 116, in <module>
    $ result = ui.interact()
Exception: renpy.restart_interaction() was called 100 times without processing any input.

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

Full traceback:
  File "game/BKmain.rpy", line 116, in script
    $ result = ui.interact()
  File "E:\Anime\Good Stuff\Games\Brothel King\Brothel_King-pc v0.3 -- Test\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "E:\Anime\Good Stuff\Games\Brothel King\Brothel_King-pc v0.3 -- Test\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 116, in <module>
    $ result = ui.interact()
  File "E:\Anime\Good Stuff\Games\Brothel King\Brothel_King-pc v0.3 -- Test\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "E:\Anime\Good Stuff\Games\Brothel King\Brothel_King-pc v0.3 -- Test\renpy\display\core.py", line 3577, in interact
    raise Exception("renpy.restart_interaction() was called 100 times without processing any input.")
Exception: renpy.restart_interaction() was called 100 times without processing any input.

Windows-10-10.0.19044 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Wed Aug  9 05:54:02 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: neronero on Aug 09, 2023, 12:02 PM
Quote from: 22ndgentlemen on Aug 09, 2023, 10:56 AMJust had 2 instances of the same original (yellow name) girl at the slave market causing an error.  I had to click on the girl to get the error.  I am now running vanilla 0.3 test build.
Do you also have 2 versions of that girl in different folders in your /girl/ folder? I had the same issue and found out I had two folders for that girl.
Title: Re: v0.3 Test version (gameplay only)
Post by: Hermenegild on Aug 09, 2023, 04:18 PM
The game crashes when a virgin girl has sex for the first time. I had the crash when she was whoring out:
Spoiler
Full traceback:
  File "game/BKendday.rpy", line 818, in script
    python:
  File "/repo/private/Brothel_King-pc/renpy/ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/repo/private/Brothel_King-pc/renpy/python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 885, in <module>
    perform_events += perform(sex_act, _girls, _customers)
  File "game/BKfunctions.rpy", line 1749, in perform
    if girl.pop_virginity():
  File "game/BKgirlclass.rpy", line 5244, in pop_virginity
    self.add_trait(housebroken_trait, pos=1, no_perks=True)
TypeError: add_trait() got an unexpected keyword argument 'pos'

While running game code:
  File "game/BKendday.rpy", line 818, in script
    python:
  File "game/BKendday.rpy", line 885, in <module>
    perform_events += perform(sex_act, _girls, _customers)
  File "game/BKfunctions.rpy", line 1749, in perform
    if girl.pop_virginity():
  File "game/BKgirlclass.rpy", line 5244, in pop_virginity
    self.add_trait(housebroken_trait, pos=1, no_perks=True)
TypeError: add_trait() got an unexpected keyword argument 'pos'
[close]
and also when I tried to do the same while training her:
Spoiler
Full traceback:
  File "game/BKmain.rpy", line 1307, in script call
    call slave_interact(girl) from _call_slave_interact
  File "game/BKinteractions.rpy", line 396, in script
    $ inter.resolve()
  File "/repo/private/Brothel_King-pc/renpy/ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/repo/private/Brothel_King-pc/renpy/python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKinteractions.rpy", line 396, in <module>
    $ inter.resolve()
  File "game/BKclasses.rpy", line 6334, in resolve
    if girl.pop_virginity(origin="MC"):
  File "game/BKgirlclass.rpy", line 5250, in pop_virginity
    self.add_trait(trauma_trait, pos=1, no_perks=True)
TypeError: add_trait() got an unexpected keyword argument 'pos'

While running game code:
  File "game/BKmain.rpy", line 1307, in script call
    call slave_interact(girl) from _call_slave_interact
  File "game/BKinteractions.rpy", line 396, in script
    $ inter.resolve()
  File "game/BKinteractions.rpy", line 396, in <module>
    $ inter.resolve()
  File "game/BKclasses.rpy", line 6334, in resolve
    if girl.pop_virginity(origin="MC"):
  File "game/BKgirlclass.rpy", line 5250, in pop_virginity
    self.add_trait(trauma_trait, pos=1, no_perks=True)
TypeError: add_trait() got an unexpected keyword argument 'pos'
[close]

Those crashes can be fixed by editing lines 5244 to 5254 of BKgirlclass.rpy and replacing "pos=1" with "_pos=1", as in the following example:
self.add_trait(housebroken_trait, _pos=1, no_perks=True)
EDIT: this is only a code bug, your saved game is fine (unless you have "Ignore"d the error and now your girl has only two traits).
Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Aug 09, 2023, 10:46 PM
Demonette spell to increase advertisement (for all images):

(https://i.imgur.com/WZRoBTF.jpg)
Title: Re: v0.3 Test version (gameplay only)
Post by: 22ndgentlemen on Aug 09, 2023, 11:01 PM
Quote from: neronero on Aug 09, 2023, 12:02 PM
Quote from: 22ndgentlemen on Aug 09, 2023, 10:56 AMJust had 2 instances of the same original (yellow name) girl at the slave market causing an error.  I had to click on the girl to get the error.  I am now running vanilla 0.3 test build.
Do you also have 2 versions of that girl in different folders in your /girl/ folder? I had the same issue and found out I had two folders for that girl.

A good idea, however, in this case I have confirmed and re-confirmed that I only have a single folder for the girl in question.  If it helps, the girl in question does not have a INI file in the folder.
Title: Re: v0.3 Test version (gameplay only)
Post by: 22ndgentlemen on Aug 10, 2023, 12:13 AM
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKscreens.rpy", line 7980, in script call
    call girlpack_menu() from _call_girlpack_menu
  File "game/BKscreens.rpy", line 7970, in script call
    call packstates_menu from _call_packstates_menu
  File "game/BKscreens.rpy", line 8912, in script
    python:
  File "game/BKscreens.rpy", line 8913, in <module>
    GirlFilesDict.import_packstates(simulate = True)
  File "game/BKgirlclass.rpy", line 5696, in import_packstates
    with open(config.gamedir[:config.gamedir.rfind("/")] + "/packstate_log.txt", "wt") as log_file :
FileNotFoundError: [Errno 2] No such file or directory: 'E:\\Anime\\Good Stuff\\Games\\Brothel King\\Brothel_King-pc v0.3 -- Test\\gam/packstate_log.txt'

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

Full traceback:
  File "game/BKscreens.rpy", line 7980, in script call
    call girlpack_menu() from _call_girlpack_menu
  File "game/BKscreens.rpy", line 7970, in script call
    call packstates_menu from _call_packstates_menu
  File "game/BKscreens.rpy", line 8912, in script
    python:
  File "E:\Anime\Good Stuff\Games\Brothel King\Brothel_King-pc v0.3 -- Test\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "E:\Anime\Good Stuff\Games\Brothel King\Brothel_King-pc v0.3 -- Test\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKscreens.rpy", line 8913, in <module>
    GirlFilesDict.import_packstates(simulate = True)
  File "game/BKgirlclass.rpy", line 5696, in import_packstates
    with open(config.gamedir[:config.gamedir.rfind("/")] + "/packstate_log.txt", "wt") as log_file :
FileNotFoundError: [Errno 2] No such file or directory: 'E:\\Anime\\Good Stuff\\Games\\Brothel King\\Brothel_King-pc v0.3 -- Test\\gam/packstate_log.txt'

Windows-10-10.0.19044 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Wed Aug  9 19:12:00 2023

Unrelated to my other reported issue, but running a simulation on the packstate results in the above error.  Attempting to rollback results in a game crash and a traceback being created.
Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Aug 10, 2023, 12:29 PM
Talking to Papa about the Water Kunoichi:

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 "E:\0 TEST play\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 "E:\0 TEST play\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.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Thu Aug 10 14:27:58 2023


Satella about Water Ninja:

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 "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1428, in execute
    show_imspec(self.imspec, atl=getattr(self, "atl", None))
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1385, in show_imspec
    expression = renpy.easy.displayable(expression)
  File "E:\0 TEST play\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.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Thu Aug 10 14:32:35 2023

Gizel about Water ninja:

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 "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1428, in execute
    show_imspec(self.imspec, atl=getattr(self, "atl", None))
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1385, in show_imspec
    expression = renpy.easy.displayable(expression)
  File "E:\0 TEST play\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.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Thu Aug 10 14:37:47 2023

Gizel dialog for the Water kunoichi hint. "Some and mirros(...)" should be Smoke and mirros.
(https://i.imgur.com/qHHCvVO.jpg)

Asking the Carpenter about Earth ninja (gives no clue):
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 1029, in script
    if npc == NPC_kenshin: # High security prisoners, Demon-worship
SyntaxError: invalid syntax (game/BKchapter3.rpy, line 1102)

-- 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 1029, in script
    if npc == NPC_kenshin: # High security prisoners, Demon-worship
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 2133, in execute
    if renpy.python.py_eval(condition):
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1151, in py_eval
    code = py_compile(code, 'eval')
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1088, in py_compile
    raise e
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1034, in py_compile
    raise orig_e
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1027, in py_compile
    tree = compile(source, filename, py_mode, ast.PyCF_ONLY_AST | flags, 1)
SyntaxError: invalid syntax (game/BKchapter3.rpy, line 1102)

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Thu Aug 10 14:47:46 2023



Renza about Void kunoichi:

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 "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1428, in execute
    show_imspec(self.imspec, atl=getattr(self, "atl", None))
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1385, in show_imspec
    expression = renpy.easy.displayable(expression)
  File "E:\0 TEST play\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.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Thu Aug 10 14:54:09 2023


Ramias, Maya and Roz when asking about Earth:

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 "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1428, in execute
    show_imspec(self.imspec, atl=getattr(self, "atl", None))
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1385, in show_imspec
    expression = renpy.easy.displayable(expression)
  File "E:\0 TEST play\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.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Thu Aug 10 14:56:49 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Aug 10, 2023, 02:11 PM
After kidnapping, copy of the unique girl still appear in town (couple of weeks after the abduction).

EDIT:
To be clear, after using the SPELL to kidnap, I found the girl in the city. It's the same as the girl that is wortking for me. They share the same traits, stats etc. (don't know why you deleted your comment :P)
Title: Re: v0.3 Test version (gameplay only)
Post by: Hermenegild on Aug 10, 2023, 08:52 PM
Quote from: EvilPenguin on Aug 10, 2023, 02:11 PMTo be clear, after using the SPELL to kidnap, I found the girl in the city. It's the same as the girl that is wortking for me. They share the same traits, stats etc. (don't know why you deleted your comment :P)
I deleted my comment simply because I noticed you were talking about the kidnapping spell and I misunderstood your earlier message. In this context, my comment made no sense and even introduced confusion. You're right, this behavior is a bug.

EDIT: Please check if changing line #1127 of BKpowers.rpy from
$ farm.girls.remove(girl)to
$ location_dict[girl.location].girls.remove(girl)improves things in the future. For now, you have to remove the girl from the city location. It can be done using console, but you have to locate her first in the list of your girls (MC.girls) and then remove her from her city location (location_dict['Farm'].girls, substitute actual location name for "Farm"). The command would be similar to
location_dict["Farm"].girls.remove(MC.girls[11])Substitute the actual location name for "Farm" and her actual index in the MC.girls list for 11. If she's in the farm, use farm.girls instead of MC.girls.
Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Aug 10, 2023, 10:25 PM
I can't progress. The game i stuck at the objective to have 12 A ranks and 25k gold (i have 14xA and over 150k gold). Maybe abducting girls fucked something up. It would be good if someone could confirm that they can progress in their playthrough.

link: https://www.mediafire.com/file/p65nhhxta9g0kme/6-12-LT1.save/file
Title: Re: v0.3 Test version (gameplay only)
Post by: 22ndgentlemen on Aug 10, 2023, 11:32 PM
I ran into an issue I first noticed in 0.2 on the 0.3-test. 

When you are talking to a free girl and she pulls you aside to ask you something like "Do you remember my hobby?", there are a few instances where the menu will not load with the correct answer.

As an example, a girl I am talking to likes "playing music" and the options I was presented were: singing, dancing, weaving, hiking, reading, I don't know.  Picked singing because that is kind of the same thing, right?  Wrong!  Love decreased!

Next day, I boosted love and backed out of conversation and re-entered to trigger the hobby question again.  This time before the question was asked, I took a quick save.  Since I was presented with the same options again I reloaded the quick save.  This time, I was presented with playing music as an option and was able to progress with the girl.

TL;DR:  Sometimes the pop quiz presented by the free girl does not have a possible correct answer without loading from a save first.
Title: Re: v0.3 Test version (gameplay only)
Post by: Calob on Aug 11, 2023, 01:15 AM
Quote from: 22ndgentlemen on Aug 10, 2023, 11:32 PMWhen you are talking to a free girl and she pulls you aside to ask you something like "Do you remember my hobby?", there are a few instances where the menu will not load with the correct answer.

Not a bug - free girls have two hobbies, and at least one of them will always be in the list of possible answers.
Title: Re: v0.3 Test version (gameplay only)
Post by: Hermenegild on Aug 11, 2023, 06:07 AM
Quote from: Calob on Aug 11, 2023, 01:15 AM
Quote from: 22ndgentlemen on Aug 10, 2023, 11:32 PMWhen you are talking to a free girl and she pulls you aside to ask you something like "Do you remember my hobby?", there are a few instances where the menu will not load with the correct answer.

Not a bug - free girls have two hobbies, and at least one of them will always be in the list of possible answers.
To expand on this answer, a free girl has two hobbies, but she answers randomly when you ask her for her hobby. Keep asking until you have two different hobbies listed for her. I usually save before asking for the second hobby, and keep reloading until I get it.
Title: Re: v0.3 Test version (gameplay only)
Post by: 22ndgentlemen on Aug 11, 2023, 09:10 AM
Quote from: Hermenegild on Aug 11, 2023, 06:07 AM
Quote from: Calob on Aug 11, 2023, 01:15 AM
Quote from: 22ndgentlemen on Aug 10, 2023, 11:32 PMWhen you are talking to a free girl and she pulls you aside to ask you something like "Do you remember my hobby?", there are a few instances where the menu will not load with the correct answer.

Not a bug - free girls have two hobbies, and at least one of them will always be in the list of possible answers.
To expand on this answer, a free girl has two hobbies, but she answers randomly when you ask her for her hobby. Keep asking until you have two different hobbies listed for her. I usually save before asking for the second hobby, and keep reloading until I get it.

Wow!  I never knew that.  Thanks to both of you!
Title: Re: v0.3 Test version (gameplay only)
Post by: oratorio on Aug 11, 2023, 01:21 PM
Quote from: 22ndgentlemen on Aug 11, 2023, 09:10 AM
Quote from: Hermenegild on Aug 11, 2023, 06:07 AM
Quote from: Calob on Aug 11, 2023, 01:15 AM
Quote from: 22ndgentlemen on Aug 10, 2023, 11:32 PMWhen you are talking to a free girl and she pulls you aside to ask you something like "Do you remember my hobby?", there are a few instances where the menu will not load with the correct answer.

Not a bug - free girls have two hobbies, and at least one of them will always be in the list of possible answers.
To expand on this answer, a free girl has two hobbies, but she answers randomly when you ask her for her hobby. Keep asking until you have two different hobbies listed for her. I usually save before asking for the second hobby, and keep reloading until I get it.

Wow!  I never knew that.  Thanks to both of you!

As a little cheaty solution ... you can save on the screen where you have the list of answers. If you load that save, you will get a new set of answers (which may include the hobby you know about).
Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Aug 12, 2023, 07:37 PM
end day event:

I'm sorry, but an uncaught exception occurred.

While processing the color property of anonymous style:
  File "game/BKendday.rpy", line 1122, in script call
    call show_night_event(ev) from _call_show_night_event_1
  File "game/BKevents.rpy", line 777, in script
    $ renpy.say(ev.char, text_descript + "{/size}")
  File "game/BKevents.rpy", line 777, in <module>
    $ renpy.say(ev.char, text_descript + "{/size}")
ValueError: invalid literal for int() with base 16: '=#'

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

Full traceback:
  File "game/BKendday.rpy", line 1122, in script call
    call show_night_event(ev) from _call_show_night_event_1
  File "game/BKevents.rpy", line 777, in script
    $ renpy.say(ev.char, text_descript + "{/size}")
  File "E:\0 TEST play\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 "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 777, in <module>
    $ renpy.say(ev.char, text_descript + "{/size}")
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\exports.py", line 1473, in say
    who(what, *args, **kwargs)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\character.py", line 1352, in __call__
    self.do_display(who, what, cb_args=self.cb_args, dtt=dtt, **display_args)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\character.py", line 1003, in do_display
    display_say(who,
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\character.py", line 693, in display_say
    rv = renpy.ui.interact(mouse='say', type=type, roll_forward=roll_forward)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\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 "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in interact_core
    root_widget.visit_all(lambda d : d.per_interact())
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 481, in visit_all
    self.child.visit_all(callback, seen=None)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  [Previous line repeated 5 more times]
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 683, in visit_all
    callback(self)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in <lambda>
    root_widget.visit_all(lambda d : d.per_interact())
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\text\text.py", line 1792, in per_interact
    if self.style.slow_abortable:
  File "gen3-static/styleclass.pxi", line 533, in renpy.styledata.styleclass.Style.slow_abortable.__get__
  File "style.pyx", line 493, in renpy.style.StyleCore._get
  File "style.pyx", line 710, in renpy.style.build_style
  File "style.pyx", line 707, in renpy.style.build_style
  File "gen3-static/style_functions.pyx", line 323, in style_functions.color_property
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\color.py", line 147, in __new__
    r = int(c[0]+c[1], 16)
ValueError: invalid literal for int() with base 16: '=#'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Sat Aug 12 21:35:06 2023


Farm Spell - Change Fixation:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 561, in script call
    call farm_powers() from _call_farm_powers
  File "game/BKpowers.rpy", line 481, in script call
    call power_use(selected_power, conduit, other_girl) from _call_power_use
  File "game/BKpowers.rpy", line 712, in script
    $ girl.personality_unlock[new_fix.name] = False
  File "game/BKpowers.rpy", line 712, in <module>
    $ girl.personality_unlock[new_fix.name] = False
AttributeError: 'str' object has no attribute 'name'

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

Full traceback:
  File "game/BKmain.rpy", line 561, in script call
    call farm_powers() from _call_farm_powers
  File "game/BKpowers.rpy", line 481, in script call
    call power_use(selected_power, conduit, other_girl) from _call_power_use
  File "game/BKpowers.rpy", line 712, in script
    $ girl.personality_unlock[new_fix.name] = False
  File "E:\0 TEST play\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 "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKpowers.rpy", line 712, in <module>
    $ girl.personality_unlock[new_fix.name] = False
AttributeError: 'str' object has no attribute 'name'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Sat Aug 12 21:54:34 2023

The supercharged version of Change Fixation works, but in the description it tells that she should be exausted. Girl that the spell was used on did not lose any energy.
Title: Re: v0.3 Test version (gameplay only)
Post by: Hermenegild on Aug 13, 2023, 10:14 AM
When you start the game, the price for a Cimerian scrap in any shop is set to 250, and for a Cimerian artifact to 1000. As soon as you offer any of them to Gina, even if you give one to her for free, prices in shops change - permanently - to 350 for a scrap and to 1500 for an artifact.

IMHO, the expected behavior would be to sell it to Gina for the price she's willing to pay (350/1500), thus robbing the poor girl (or getting paid for the search and delivery, whatever), but for the prices anywhere else to stay as they were.

The culprit lines are the "it.price = ..." lines around line #2925 of BKevents.rpy. The intent here was probably to set the price on the items in inventory, but they set the global item price instead.

This bug is present in v0.2 as well.
Title: Re: v0.3 Test version (gameplay only)
Post by: Hermenegild on Aug 13, 2023, 08:20 PM
Crash when giving an apple to a girl:
Spoiler
Full traceback:
  File "game/BKmain.rpy", line 1504, in script
    $ r = counterpart.use_item(it)
  File "D:/gry\BrothelKing-0.3/renpy/ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "D:/gry\BrothelKing-0.3/renpy/python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 1504, in <module>
    $ r = counterpart.use_item(it)
  File "game/BKgirlclass.rpy", line 1563, in use_item
    changes.add(e.target.capitalize() + ": %s" % plus_text(c))
  File "game/BKfunctions.rpy", line 1332, in plus_text
    nb_txt = str_dec(nb, decimals)
  File "game/BKfunctions.rpy", line 475, in str_dec
    return ((("%." + str(decimals) + "f") % nb).rstrip("0")).rstrip(".")
TypeError: not all arguments converted during string formatting

While running game code:
  File "game/BKmain.rpy", line 1504, in script
    $ r = counterpart.use_item(it)
  File "game/BKmain.rpy", line 1504, in <module>
    $ r = counterpart.use_item(it)
  File "game/BKgirlclass.rpy", line 1563, in use_item
    changes.add(e.target.capitalize() + ": %s" % plus_text(c))
  File "game/BKfunctions.rpy", line 1332, in plus_text
    nb_txt = str_dec(nb, decimals)
  File "game/BKfunctions.rpy", line 475, in str_dec
    return ((("%." + str(decimals) + "f") % nb).rstrip("0")).rstrip(".")
TypeError: not all arguments converted during string formatting
[close]

The fix is to roll back, save, edit the str_dec() function in lines 474-475 of BKfunctions.rpy to look like this:
    def str_dec(nb, decimals=2): # Returns a string of either an integer or a float, depending on the nb of decimals available
        format = "%%.%df" % decimals
        return ((format % nb).rstrip("0")).rstrip(".")
reload your game and try again.
Title: Re: v0.3 Test version (gameplay only)
Post by: neronero on Aug 13, 2023, 09:47 PM
Error from this girlpack (https://mega.nz/folder/EYEmEagI#OQNOTmzIPfcxykzMnJkybQ/file/lN8xEbgK) because there's an é in the BK.ini and it's saved with ANSI encoding.

The error is immediate at startup. If it can't be avoided, then it would be nice if the error message could become more specific about it being a BK.ini problem for such-and-such girl.

Edit: pack is fixed now, so you may have to doctor a BK.ini file to reproduce the problem.

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 310, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 73, in script
    python:
  File "game/BKevents.rpy", line 76, in <module>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 76, in <lambda>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 76, in <listcomp>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKfunctions.rpy", line 3468, in read_init_file_generate_as
    v = read_init_file_field(file, "background story", "generate_as", _default="all", skip_checks=True)
  File "game/BKfunctions.rpy", line 3474, in read_init_file_field
    field = read_init_file(file, search_for = {_key : [_value]}, skip_checks=skip_checks)[_key + "/" + _value]
  File "game/BKfunctions.rpy", line 3495, in read_init_file
    parser.read(config.gamedir + "/" + file)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 20: invalid continuation byte

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

Full traceback:
  File "renpy/common/00start.rpy", line 310, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 73, in script
    python:
  File "F:\ilx\BK03T\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\ilx\BK03T\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 76, in <module>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 76, in <lambda>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 76, in <listcomp>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKfunctions.rpy", line 3468, in read_init_file_generate_as
    v = read_init_file_field(file, "background story", "generate_as", _default="all", skip_checks=True)
  File "game/BKfunctions.rpy", line 3474, in read_init_file_field
    field = read_init_file(file, search_for = {_key : [_value]}, skip_checks=skip_checks)[_key + "/" + _value]
  File "game/BKfunctions.rpy", line 3495, in read_init_file
    parser.read(config.gamedir + "/" + file)
  File "configparser.py", line 653, in read
  File "configparser.py", line 960, in _read
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/codecs.py", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 20: invalid continuation byte

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sun Aug 13 23:34:02 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: 22ndgentlemen on Aug 14, 2023, 10:42 AM
Quote from: neronero on Aug 13, 2023, 09:47 PMError from this girlpack (https://mega.nz/folder/EYEmEagI#OQNOTmzIPfcxykzMnJkybQ/file/lN8xEbgK) because there's an é in the BK.ini and it's saved with ANSI encoding.

The error is immediate at startup. If it can't be avoided, then it would be nice if the error message could become more specific about it being a BK.ini problem for such-and-such girl.

Edit: pack is fixed now, so you may have to doctor a BK.ini file to reproduce the problem.

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 310, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 73, in script
    python:
  File "game/BKevents.rpy", line 76, in <module>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 76, in <lambda>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 76, in <listcomp>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKfunctions.rpy", line 3468, in read_init_file_generate_as
    v = read_init_file_field(file, "background story", "generate_as", _default="all", skip_checks=True)
  File "game/BKfunctions.rpy", line 3474, in read_init_file_field
    field = read_init_file(file, search_for = {_key : [_value]}, skip_checks=skip_checks)[_key + "/" + _value]
  File "game/BKfunctions.rpy", line 3495, in read_init_file
    parser.read(config.gamedir + "/" + file)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 20: invalid continuation byte

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

Full traceback:
  File "renpy/common/00start.rpy", line 310, in script call
    call expression "before_main_menu"
  File "game/BKevents.rpy", line 73, in script
    python:
  File "F:\ilx\BK03T\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\ilx\BK03T\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 76, in <module>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 76, in <lambda>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKevents.rpy", line 76, in <listcomp>
    gpacks = [gp for gp in GirlFilesDict.get_paths() if read_init_file_generate_as(GirlFilesDict.get_ini(gp)) != "story"]
  File "game/BKfunctions.rpy", line 3468, in read_init_file_generate_as
    v = read_init_file_field(file, "background story", "generate_as", _default="all", skip_checks=True)
  File "game/BKfunctions.rpy", line 3474, in read_init_file_field
    field = read_init_file(file, search_for = {_key : [_value]}, skip_checks=skip_checks)[_key + "/" + _value]
  File "game/BKfunctions.rpy", line 3495, in read_init_file
    parser.read(config.gamedir + "/" + file)
  File "configparser.py", line 653, in read
  File "configparser.py", line 960, in _read
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/codecs.py", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 20: invalid continuation byte

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sun Aug 13 23:34:02 2023


I was tearing my hair out trying to figure out the problem with this girl!  Thanks for looking into that!
Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Aug 16, 2023, 08:01 PM
Main quest line, the princess summon MC after defeating ninjas, leads to double dialog:
dialog -> 4 option to mingle (Princes / Kenshin / Nobles / Servants) -> dialog -> mingle.
This also happens in 2.0
Title: Re: v0.3 Test version (gameplay only)
Post by: wings on Aug 17, 2023, 10:08 AM
Quote from: EvilPenguin on Aug 10, 2023, 12:29 PMTalking to Papa about the Water Kunoichi:

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 "E:\0 TEST play\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 "E:\0 TEST play\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.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Thu Aug 10 14:27:58 2023


Satella about Water Ninja:

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 "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1428, in execute
    show_imspec(self.imspec, atl=getattr(self, "atl", None))
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1385, in show_imspec
    expression = renpy.easy.displayable(expression)
  File "E:\0 TEST play\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.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Thu Aug 10 14:32:35 2023

Gizel about Water ninja:

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 "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1428, in execute
    show_imspec(self.imspec, atl=getattr(self, "atl", None))
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1385, in show_imspec
    expression = renpy.easy.displayable(expression)
  File "E:\0 TEST play\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.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Thu Aug 10 14:37:47 2023

Gizel dialog for the Water kunoichi hint. "Some and mirros(...)" should be Smoke and mirros.
(https://i.imgur.com/qHHCvVO.jpg)

Asking the Carpenter about Earth ninja (gives no clue):
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 1029, in script
    if npc == NPC_kenshin: # High security prisoners, Demon-worship
SyntaxError: invalid syntax (game/BKchapter3.rpy, line 1102)

-- 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 1029, in script
    if npc == NPC_kenshin: # High security prisoners, Demon-worship
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 2133, in execute
    if renpy.python.py_eval(condition):
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1151, in py_eval
    code = py_compile(code, 'eval')
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1088, in py_compile
    raise e
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1034, in py_compile
    raise orig_e
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1027, in py_compile
    tree = compile(source, filename, py_mode, ast.PyCF_ONLY_AST | flags, 1)
SyntaxError: invalid syntax (game/BKchapter3.rpy, line 1102)

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Thu Aug 10 14:47:46 2023



Renza about Void kunoichi:

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 "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1428, in execute
    show_imspec(self.imspec, atl=getattr(self, "atl", None))
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1385, in show_imspec
    expression = renpy.easy.displayable(expression)
  File "E:\0 TEST play\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.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Thu Aug 10 14:54:09 2023


Ramias, Maya and Roz when asking about Earth:

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 "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1428, in execute
    show_imspec(self.imspec, atl=getattr(self, "atl", None))
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1385, in show_imspec
    expression = renpy.easy.displayable(expression)
  File "E:\0 TEST play\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.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Thu Aug 10 14:56:49 2023

Okay. I think I found the issue with no clue for Earth ninja. Replace the elif npc = NPC with elif npc == NPC in BKchapter3(This file should be in game folder). This will solve the invalid syntax error. Not sure about Not a displayable error. Hope this helps.
Title: Re: v0.3 Test version (gameplay only)
Post by: fregreger on Aug 18, 2023, 07:59 AM
I get this error when sexing with a virgin girl

After clicking "ignore", the trait disappears instead of being replaced like in the previous version. I've applied the latest fix.

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1307, in script call
    call slave_interact(girl) from _call_slave_interact
  File "game/BKinteractions.rpy", line 396, in script
    $ inter.resolve()
  File "game/BKinteractions.rpy", line 396, in <module>
    $ inter.resolve()
  File "game/BKclasses.rpy", line 6334, in resolve
    if girl.pop_virginity(origin="MC"):
  File "game/BKgirlclass.rpy", line 5246, in pop_virginity
    self.add_trait(t_pet_trait, pos=1, no_perks=True)
TypeError: add_trait() got an unexpected keyword argument 'pos'

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

Full traceback:
  File "game/BKmain.rpy", line 1307, in script call
    call slave_interact(girl) from _call_slave_interact
  File "game/BKinteractions.rpy", line 396, in script
    $ inter.resolve()
  File "E:\Trash\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 "E:\Trash\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKinteractions.rpy", line 396, in <module>
    $ inter.resolve()
  File "game/BKclasses.rpy", line 6334, in resolve
    if girl.pop_virginity(origin="MC"):
  File "game/BKgirlclass.rpy", line 5246, in pop_virginity
    self.add_trait(t_pet_trait, pos=1, no_perks=True)
TypeError: add_trait() got an unexpected keyword argument 'pos'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Fri Aug 18 03:57:39 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: Hermenegild on Aug 18, 2023, 11:36 AM
Quote from: fregreger on Aug 18, 2023, 07:59 AMI get this error when sexing with a virgin girl
After clicking "ignore", the trait disappears instead of being replaced like in the previous version. I've applied the latest fix.

Check my fix in message #119.
Title: Re: v0.3 Test version (gameplay only)
Post by: DarkFire on Aug 21, 2023, 02:27 AM
Appeared after using "share senses" card:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 358, in script call
    call expression lbl pass (girl=girl) from _call_expression_3
  File "game/BKevents.rpy", line 1546, in script call
    call slave_interact(girl, free=True) from _call_slave_interact_2
  File "game/BKinteractions.rpy", line 345, in script
    $ topic = ui.interact()
  File "game/BKinteractions.rpy", line 345, in <module>
    $ topic = ui.interact()
  File "game/BKscreens.rpy", line 6759, in execute
    screen sex_details(girl):
  File "game/BKscreens.rpy", line 6759, in execute
    screen sex_details(girl):
  File "game/BKscreens.rpy", line 6761, in execute
    frame:
  File "game/BKscreens.rpy", line 6766, in execute
    has vbox
  File "game/BKscreens.rpy", line 6774, in execute
    grid 4 8 spacing 6:
  File "game/BKscreens.rpy", line 6781, in execute
    for act in extended_sex_acts:
  File "game/BKscreens.rpy", line 6794, in execute
    if girl.personality_unlock[act]:
  File "game/BKscreens.rpy", line 6796, in execute
    $ tch = girl.get_training_chance(act)
  File "game/BKscreens.rpy", line 6796, in <module>
    $ tch = girl.get_training_chance(act)
  File "game/BKgirlclass.rpy", line 4346, in get_training_chance
    chance = 100 - self.get_obedience_check_target(act, train=True)
  File "game/BKgirlclass.rpy", line 4235, in get_obedience_check_target
    if self.get_effect("special", "link obedience"):
  File "game/BKgirlclass.rpy", line 2717, in get_effect
    r += get_effect(brothel, type, target, change_cap=change_cap)
TypeError: can only concatenate tuple (not "int") to tuple

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

Full traceback:
  File "game/BKendday.rpy", line 358, in script call
    call expression lbl pass (girl=girl) from _call_expression_3
  File "game/BKevents.rpy", line 1546, in script call
    call slave_interact(girl, free=True) from _call_slave_interact_2
  File "game/BKinteractions.rpy", line 345, in script
    $ topic = ui.interact()
  File "C:\Users\Dani\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\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKinteractions.rpy", line 345, in <module>
    $ topic = ui.interact()
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\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 "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in interact_core
    root_widget.visit_all(lambda d : d.per_interact())
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 476, in visit_all
    callback(self)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in <lambda>
    root_widget.visit_all(lambda d : d.per_interact())
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 487, in per_interact
    self.update()
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 680, in update
    self.screen.function(**self.scope)
  File "game/BKscreens.rpy", line 6759, in execute
    screen sex_details(girl):
  File "game/BKscreens.rpy", line 6759, in execute
    screen sex_details(girl):
  File "game/BKscreens.rpy", line 6761, in execute
    frame:
  File "game/BKscreens.rpy", line 6766, in execute
    has vbox
  File "game/BKscreens.rpy", line 6774, in execute
    grid 4 8 spacing 6:
  File "game/BKscreens.rpy", line 6781, in execute
    for act in extended_sex_acts:
  File "game/BKscreens.rpy", line 6794, in execute
    if girl.personality_unlock[act]:
  File "game/BKscreens.rpy", line 6796, in execute
    $ tch = girl.get_training_chance(act)
  File "game/BKscreens.rpy", line 6796, in <module>
    $ tch = girl.get_training_chance(act)
  File "game/BKgirlclass.rpy", line 4346, in get_training_chance
    chance = 100 - self.get_obedience_check_target(act, train=True)
  File "game/BKgirlclass.rpy", line 4235, in get_obedience_check_target
    if self.get_effect("special", "link obedience"):
  File "game/BKgirlclass.rpy", line 2717, in get_effect
    r += get_effect(brothel, type, target, change_cap=change_cap)
TypeError: can only concatenate tuple (not "int") to tuple

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Mon Aug 21 04:24:39 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: darthdestroyeis on Aug 22, 2023, 09:40 PM
Got this error when trying to save a new game. Deleted all files and redownloaded fresh with no change

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00gamemenu.rpy", line 170, in script
    $ ui.interact()
  File "renpy/common/00gamemenu.rpy", line 170, in <module>
    $ ui.interact()
  File "renpy/common/00action_file.rpy", line 397, in __call__
    renpy.save(fn, extra_info=save_name)
TypeError: cannot pickle 'dict_keys' object (perhaps renpy.game.log.log[27].context.scene_lists.layers['screens'][0].displayable.scope['available_mixes'] = dict_keys(['default', 'My Mix', 'Good']))

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

Full traceback:
  File "renpy/common/00gamemenu.rpy", line 170, in script
    $ ui.interact()
  File "E:\Stuff\Brothel_King-0.3t 8-6\Brothel_King-pc\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "E:\Stuff\Brothel_King-0.3t 8-6\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "renpy/common/00gamemenu.rpy", line 170, in <module>
    $ ui.interact()
  File "E:\Stuff\Brothel_King-0.3t 8-6\Brothel_King-pc\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "E:\Stuff\Brothel_King-0.3t 8-6\Brothel_King-pc\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 "E:\Stuff\Brothel_King-0.3t 8-6\Brothel_King-pc\renpy\display\core.py", line 4540, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "E:\Stuff\Brothel_King-0.3t 8-6\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "E:\Stuff\Brothel_King-0.3t 8-6\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "E:\Stuff\Brothel_King-0.3t 8-6\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "E:\Stuff\Brothel_King-0.3t 8-6\Brothel_King-pc\renpy\display\screen.py", line 770, in event
    rv = self.child.event(ev, x, y, st)
  File "E:\Stuff\Brothel_King-0.3t 8-6\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "E:\Stuff\Brothel_King-0.3t 8-6\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "E:\Stuff\Brothel_King-0.3t 8-6\Brothel_King-pc\renpy\display\layout.py", line 1177, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "E:\Stuff\Brothel_King-0.3t 8-6\Brothel_King-pc\renpy\display\layout.py", line 1401, in event
    rv = super(Window, self).event(ev, x, y, st)
  File "E:\Stuff\Brothel_King-0.3t 8-6\Brothel_King-pc\renpy\display\layout.py", line 279, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "E:\Stuff\Brothel_King-0.3t 8-6\Brothel_King-pc\renpy\display\layout.py", line 279, in event
    rv = d.event(ev, x - xo, y - yo, st)
  File "E:\Stuff\Brothel_King-0.3t 8-6\Brothel_King-pc\renpy\display\behavior.py", line 1138, in event
    return handle_click(self.clicked)
  File "E:\Stuff\Brothel_King-0.3t 8-6\Brothel_King-pc\renpy\display\behavior.py", line 1071, in handle_click
    rv = run(action)
  File "E:\Stuff\Brothel_King-0.3t 8-6\Brothel_King-pc\renpy\display\behavior.py", line 375, in run
    return action(*args, **kwargs)
  File "renpy/common/00action_file.rpy", line 397, in __call__
    renpy.save(fn, extra_info=save_name)
  File "E:\Stuff\Brothel_King-0.3t 8-6\Brothel_King-pc\renpy\loadsave.py", line 432, in save
    reraise(t, e, tb)
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/site-packages/future/utils/__init__.py", line 444, in raise_
  File "E:\Stuff\Brothel_King-0.3t 8-6\Brothel_King-pc\renpy\loadsave.py", line 413, in save
    dump((roots, renpy.game.log), logf)
  File "E:\Stuff\Brothel_King-0.3t 8-6\Brothel_King-pc\renpy\compat\pickle.py", line 103, in dump
    pickle.dump(o, f, pickle.HIGHEST_PROTOCOL if highest else PROTOCOL)
TypeError: cannot pickle 'dict_keys' object (perhaps renpy.game.log.log[27].context.scene_lists.layers['screens'][0].displayable.scope['available_mixes'] = dict_keys(['default', 'My Mix', 'Good']))

Windows-10-10.0.22631 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Tue Aug 22 17:39:41 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Aug 31, 2023, 10:14 AM
Quote from: EvilPenguin on Aug 16, 2023, 08:01 PMMain quest line, the princess summon MC after defeating ninjas, leads to double dialog:
dialog -> 4 option to mingle (Princes / Kenshin / Nobles / Servants) -> dialog -> mingle.
This also happens in 2.0


What is the bug though? Each lunch has two parts, giving you two occasions to mingle. Do you mean you can select the same dialogue option twice? (that shouldn't happen)
Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Aug 31, 2023, 12:51 PM
1st summon is when goldo introduce you - and that all good. This isn't what been reported.

2nd summon is triggered when you move your brothel, you talk with the princess get the four options to mingle with the princess, commander uesugi, nobles and the servants. If you pick Uesugi, one of the option is to apologize and remind her you have the same goal.

(3rd?)But, immediately after that you get into a dialog about commander Uesugi where you see the locket with the picture of her mother and you get the four mingle options again where if you choose Uesugi you can ask her about her boyfriend and parents.

There is no downtime between 2nd and 3rd. If i remember correctly, there was game play before the summon with the locket.
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Sep 01, 2023, 03:26 PM
Quote from: EvilPenguin on Aug 10, 2023, 10:25 PMI can't progress. The game i stuck at the objective to have 12 A ranks and 25k gold (i have 14xA and over 150k gold). Maybe abducting girls fucked something up. It would be good if someone could confirm that they can progress in their playthrough.

link: https://www.mediafire.com/file/p65nhhxta9g0kme/6-12-LT1.save/file

What happens is that you are in story mode so you can't progress because the story objectives are incomplete. These goals (incorrectly) did not specify a chapter limit so they started capping your progress on the chapter you unlocked them on (likely chapter 5, from your saved game).

As the story cannot be completed in this version, I recommend manually removing the story objectives in the console as a temporary fix:
game.set_task(None, "story")
game.set_task(None, "story2")
game.set_task(None, "story3")

Quote from: EvilPenguin on Aug 31, 2023, 12:51 PM1st summon is when goldo introduce you - and that all good. This isn't what been reported.

2nd summon is triggered when you move your brothel, you talk with the princess get the four options to mingle with the princess, commander uesugi, nobles and the servants. If you pick Uesugi, one of the option is to apologize and remind her you have the same goal.

(3rd?)But, immediately after that you get into a dialog about commander Uesugi where you see the locket with the picture of her mother and you get the four mingle options again where if you choose Uesugi you can ask her about her boyfriend and parents.

There is no downtime between 2nd and 3rd. If i remember correctly, there was game play before the summon with the locket.


Here's what should normally happen:
- To initiate, you need to meet each kunoichi twice in the city.
- The next day, you are summoned to the palace
- You see a scene where the Princess is scolding Kenshin for her poor performance, then after Kenshin leaves, she tells you about the locket
- Princess invites you for lunch (optional)
- During lunch, you get two opportunities to mingle (out of 4 total choices)
- After lunch is done, you are returned to the home screen

Isn't that the sequence of events that you are seeing?

Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Sep 02, 2023, 11:25 AM
Quote from: Goldo on Sep 01, 2023, 03:26 PMHere's what should normally happen:
- To initiate, you need to meet each kunoichi twice in the city.
- The next day, you are summoned to the palace
- You see a scene where the Princess is scolding Kenshin for her poor performance, then after Kenshin leaves, she tells you about the locket
- Princess invites you for lunch (optional)
- During lunch, you get two opportunities to mingle (out of 4 total choices)
- After lunch is done, you are returned to the home screen

Isn't that the sequence of events that you are seeing?



Yes i see this, but this is triggered right after a previous summon plays out.

EDIT: save file (cheated thru chapter 1) https://www.mediafire.com/file/uheslblrtrpptbo/14-3-LT1.save/file
go into next day and you get the double summon in my opinion.
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Sep 02, 2023, 10:59 PM
Quote from: EvilPenguin on Sep 02, 2023, 11:25 AM
Quote from: Goldo on Sep 01, 2023, 03:26 PMHere's what should normally happen:
- To initiate, you need to meet each kunoichi twice in the city.
- The next day, you are summoned to the palace
- You see a scene where the Princess is scolding Kenshin for her poor performance, then after Kenshin leaves, she tells you about the locket
- Princess invites you for lunch (optional)
- During lunch, you get two opportunities to mingle (out of 4 total choices)
- After lunch is done, you are returned to the home screen

Isn't that the sequence of events that you are seeing?



Yes i see this, but this is triggered right after a previous summon plays out.

EDIT: save file (cheated thru chapter 1) https://www.mediafire.com/file/uheslblrtrpptbo/14-3-LT1.save/file
go into next day and you get the double summon in my opinion.

Did you perhaps have the first and second meeting with the final ninja on consecutive days? I think in that particular case both events might end up on the same day, playing back to back. I will change that.
Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Sep 02, 2023, 11:19 PM
Quote from: Goldo on Sep 02, 2023, 10:59 PMDid you perhaps have the first and second meeting with the final ninja on consecutive days? I think in that particular case both events might end up on the same day, playing back to back. I will change that.

Yes. I clear them in order.
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Sep 03, 2023, 12:11 AM
Hotfix out: https://www.mediafire.com/file/1va1v7cq1psp53x/game+patch+0.3.zip/file

Please note that this doesn't fix:
- The occasional bugs displaying text at night, they seem to happen occasionally when rolling back for me. I can't pinpoint the source so far.
- The multiple originals in market (can't reproduce). I will need a saved game to analyze.

Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Sep 03, 2023, 08:07 PM
Image scale:
(https://i.imgur.com/q8PqyaV.jpeg)
Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Sep 04, 2023, 07:41 AM
Trade scam!
(https://i.imgur.com/o3FLyiu.jpg)

it should be 2 for 4.
At 4 it only give 6 (should be 8.)


save file:: https://www.mediafire.com/file/fsq8lz51rs76vss/1-2-LT1.save/file
Title: Re: v0.3 Test version (gameplay only)
Post by: Desuwa on Sep 04, 2023, 11:02 PM
I've been getting a lot hard crashes from segmentation faults when moving between screens. Not sure of how to reproduce it, sometimes I'll play for 30 minutes with none and other times I'll click "Girls" and crash immediately after loading a file. Seems like it could be a renpy bug, but I don't get these crashes in 0.2. If you have a build with debug symbols enabled I could run that and try to reproduce.

#0  0x00007f1e7977fa09 in glGenTextures () from /lib64/libGLdispatch.so.0
[Current thread is 1 (Thread 0x7f1e37fff6c0 (LWP 3759679))]
Missing separate debuginfos, use: dnf debuginfo-install xorg-x11-drv-nvidia-libs-535.98-2.fc38.x86_64
(gdb) bt full
#0  0x00007f1e7977fa09 in glGenTextures () from /lib64/libGLdispatch.so.0
No symbol table info available.
<many useless stack frames>
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Sep 05, 2023, 09:17 AM
Quote from: Desuwa on Sep 04, 2023, 11:02 PMI've been getting a lot hard crashes from segmentation faults when moving between screens. Not sure of how to reproduce it, sometimes I'll play for 30 minutes with none and other times I'll click "Girls" and crash immediately after loading a file. Seems like it could be a renpy bug, but I don't get these crashes in 0.2. If you have a build with debug symbols enabled I could run that and try to reproduce.

#0  0x00007f1e7977fa09 in glGenTextures () from /lib64/libGLdispatch.so.0
[Current thread is 1 (Thread 0x7f1e37fff6c0 (LWP 3759679))]
Missing separate debuginfos, use: dnf debuginfo-install xorg-x11-drv-nvidia-libs-535.98-2.fc38.x86_64
(gdb) bt full
#0  0x00007f1e7977fa09 in glGenTextures () from /lib64/libGLdispatch.so.0
No symbol table info available.
<many useless stack frames>

Sorry I don't know how to make sense of this message, it seems to be a Nvidia issue. My guess is it could be related to the Ren'Py 8.1.1 leaking texture issue. I will try to release a 8.0 version which is more stable. We'll see if it fixes your problem.
Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Sep 05, 2023, 12:53 PM
@Goldo
Think about some mid game cleaners upgrades. Playing as a mage you don't give a shit about cleaners, but other  classes do. This screen is after one night, merchant MC:

(https://i.imgur.com/g2iEX3Z.jpg)
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Sep 05, 2023, 09:54 PM
Quote from: EvilPenguin on Sep 05, 2023, 12:53 PM@Goldo
Think about some mid game cleaners upgrades. Playing as a mage you don't give a shit about cleaners, but other  classes do. This screen is after one night, merchant MC:

(https://i.imgur.com/g2iEX3Z.jpg)

This is with the cleaning upgrades, right?

Since the change to dirt level should be -63 per night, I assume the extra dirt is from random events?
Title: Re: v0.3 Test version (gameplay only)
Post by: DarkFire on Sep 06, 2023, 03:39 AM
Apperared while training naked in the farm:

I'm sorry, but an uncaught exception occurred.

While processing the color property of anonymous style:
  File "game/BKendday.rpy", line 1122, in script call
    call show_night_event(ev) from _call_show_night_event_1
  File "game/BKevents.rpy", line 784, in script
    $ renpy.say(ev.char, text_descript + "{/size}")
  File "game/BKevents.rpy", line 784, in <module>
    $ renpy.say(ev.char, text_descript + "{/size}")
ValueError: invalid literal for int() with base 16: '=#'

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

Full traceback:
  File "game/BKendday.rpy", line 1122, in script call
    call show_night_event(ev) from _call_show_night_event_1
  File "game/BKevents.rpy", line 784, in script
    $ renpy.say(ev.char, text_descript + "{/size}")
  File "C:\Users\Dani\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\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 784, in <module>
    $ renpy.say(ev.char, text_descript + "{/size}")
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\exports.py", line 1473, in say
    who(what, *args, **kwargs)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\character.py", line 1352, in __call__
    self.do_display(who, what, cb_args=self.cb_args, dtt=dtt, **display_args)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\character.py", line 1003, in do_display
    display_say(who,
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\character.py", line 693, in display_say
    rv = renpy.ui.interact(mouse='say', type=type, roll_forward=roll_forward)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\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 "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in interact_core
    root_widget.visit_all(lambda d : d.per_interact())
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 481, in visit_all
    self.child.visit_all(callback, seen=None)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  [Previous line repeated 5 more times]
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 683, in visit_all
    callback(self)
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in <lambda>
    root_widget.visit_all(lambda d : d.per_interact())
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\text\text.py", line 1792, in per_interact
    if self.style.slow_abortable:
  File "gen3-static/styleclass.pxi", line 533, in renpy.styledata.styleclass.Style.slow_abortable.__get__
  File "style.pyx", line 493, in renpy.style.StyleCore._get
  File "style.pyx", line 710, in renpy.style.build_style
  File "style.pyx", line 707, in renpy.style.build_style
  File "gen3-static/style_functions.pyx", line 323, in style_functions.color_property
  File "C:\Users\Dani\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\color.py", line 147, in __new__
    r = int(c[0]+c[1], 16)
ValueError: invalid literal for int() with base 16: '=#'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Wed Sep  6 05:38:15 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Sep 06, 2023, 12:27 PM
Quote from: Goldo on Sep 05, 2023, 09:54 PMThis is with the cleaning upgrades, right?

Since the change to dirt level should be -63 per night, I assume the extra dirt is from random events?

All avaible cleaning and security. No events. Girls working in the rooms + whores and the dirt piles up.
There is, I think 1 cleaning upgrade left - but that's palace level.

Edit: here is the save file if you want to check it out: https://www.mediafire.com/file/xazzhdvktz6udz3/1-3-LT1.save/file
Title: Re: v0.3 Test version (gameplay only)
Post by: ryan555 on Sep 06, 2023, 04:22 PM
A minor "bug":

Looks like you can't hold down Control (to skip text) and press a button with left mouse click at the same time.
I used this all the time in v0.2 to skip text while clicking on a dialogue option.
Now you have to let go of Control every time so you can press a button to carry on.

edit: sorry, this was already reported.
Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Sep 07, 2023, 09:37 PM
Asylum return:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1515, in script call
    call play_events(_type = "morning") from _call_play_events_1 # Note: Morning events are set with the new day's date: beware of the confusion
  File "game/BKevents.rpy", line 723, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 735, in script call
    $ ev.play()
  File "game/BKevents.rpy", line 7242, in script call
    call acquire_girl(girl, context == "asylum") from _call_acquire_girl
  File "game/BKevents.rpy", line 7380, in script
    label acquire_girl(girl, price=0, context="generic"):
SyntaxError: invalid syntax (game/BKevents.rpy, line 7242)

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

Full traceback:
  File "game/BKendday.rpy", line 1515, in script call
    call play_events(_type = "morning") from _call_play_events_1 # Note: Morning events are set with the new day's date: beware of the confusion
  File "game/BKevents.rpy", line 723, in script call
    call display_events(ev_list) from _call_display_events
  File "game/BKevents.rpy", line 735, in script call
    $ ev.play()
  File "game/BKevents.rpy", line 7242, in script call
    call acquire_girl(girl, context == "asylum") from _call_acquire_girl
  File "game/BKevents.rpy", line 7380, in script
    label acquire_girl(girl, price=0, context="generic"):
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1730, in execute
    args, kwargs = self.arguments.evaluate()
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 344, in evaluate
    value = renpy.python.py_eval(v, locals=scope)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1151, in py_eval
    code = py_compile(code, 'eval')
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1088, in py_compile
    raise e
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1034, in py_compile
    raise orig_e
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1027, in py_compile
    tree = compile(source, filename, py_mode, ast.PyCF_ONLY_AST | flags, 1)
SyntaxError: invalid syntax (game/BKevents.rpy, line 7242)

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Thu Sep  7 23:35:21 2023


EDIT:

I'm sorry, but an uncaught exception occurred.

While processing the color property of anonymous style:
  File "game/BKendday.rpy", line 1122, in script call
    call show_night_event(ev) from _call_show_night_event_1
  File "game/BKevents.rpy", line 784, in script
    $ renpy.say(ev.char, text_descript + "{/size}")
  File "game/BKevents.rpy", line 784, in <module>
    $ renpy.say(ev.char, text_descript + "{/size}")
ValueError: invalid literal for int() with base 16: '=#'

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

Full traceback:
  File "game/BKendday.rpy", line 1122, in script call
    call show_night_event(ev) from _call_show_night_event_1
  File "game/BKevents.rpy", line 784, in script
    $ renpy.say(ev.char, text_descript + "{/size}")
  File "E:\0 TEST play\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 "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 784, in <module>
    $ renpy.say(ev.char, text_descript + "{/size}")
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\exports.py", line 1473, in say
    who(what, *args, **kwargs)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\character.py", line 1352, in __call__
    self.do_display(who, what, cb_args=self.cb_args, dtt=dtt, **display_args)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\character.py", line 1003, in do_display
    display_say(who,
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\character.py", line 693, in display_say
    rv = renpy.ui.interact(mouse='say', type=type, roll_forward=roll_forward)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\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 "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in interact_core
    root_widget.visit_all(lambda d : d.per_interact())
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 481, in visit_all
    self.child.visit_all(callback, seen=None)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  [Previous line repeated 5 more times]
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 683, in visit_all
    callback(self)
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in <lambda>
    root_widget.visit_all(lambda d : d.per_interact())
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\text\text.py", line 1792, in per_interact
    if self.style.slow_abortable:
  File "gen3-static/styleclass.pxi", line 533, in renpy.styledata.styleclass.Style.slow_abortable.__get__
  File "style.pyx", line 493, in renpy.style.StyleCore._get
  File "style.pyx", line 710, in renpy.style.build_style
  File "style.pyx", line 707, in renpy.style.build_style
  File "gen3-static/style_functions.pyx", line 323, in style_functions.color_property
  File "E:\0 TEST play\Brothel_King-0.3t\Brothel_King-pc\renpy\color.py", line 147, in __new__
    r = int(c[0]+c[1], 16)
ValueError: invalid literal for int() with base 16: '=#'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Sat Sep  9 20:02:18 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Sep 14, 2023, 03:19 PM
Quote from: ryan555 on Sep 06, 2023, 04:22 PMA minor "bug":

Looks like you can't hold down Control (to skip text) and press a button with left mouse click at the same time.
I used this all the time in v0.2 to skip text while clicking on a dialogue option.
Now you have to let go of Control every time so you can press a button to carry on.

edit: sorry, this was already reported.

Just to let you know that this seems to be default behavior for Ren'py now, I'm not sure there is a workaround. I have updated the test version to Ren'py 8.1.2 and it seems to fix the graphics glitches, so I might not roll back to 8.0 after all.

If anyone knows a workaround in Renpy 8.1 please let me know.
Title: Re: v0.3 Test version (gameplay only)
Post by: hughfj08 on Sep 14, 2023, 06:41 PM
I'm sorry, but an uncaught exception occurred.

While processing the color property of anonymous style:
  File "game/BKendday.rpy", line 1122, in script call
    call show_night_event(ev) from _call_show_night_event_1
  File "game/BKevents.rpy", line 784, in script
    $ renpy.say(ev.char, text_descript + "{/size}")
  File "game/BKevents.rpy", line 784, in <module>
    $ renpy.say(ev.char, text_descript + "{/size}")
ValueError: invalid literal for int() with base 16: '=#'

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

Full traceback:
  File "game/BKendday.rpy", line 1122, in script call
    call show_night_event(ev) from _call_show_night_event_1
  File "game/BKevents.rpy", line 784, in script
    $ renpy.say(ev.char, text_descript + "{/size}")
  File "C:\Users\fjhh\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\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 784, in <module>
    $ renpy.say(ev.char, text_descript + "{/size}")
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\exports.py", line 1473, in say
    who(what, *args, **kwargs)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\character.py", line 1352, in __call__
    self.do_display(who, what, cb_args=self.cb_args, dtt=dtt, **display_args)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\character.py", line 1003, in do_display
    display_say(who,
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\character.py", line 693, in display_say
    rv = renpy.ui.interact(mouse='say', type=type, roll_forward=roll_forward)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\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 "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in interact_core
    root_widget.visit_all(lambda d : d.per_interact())
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 481, in visit_all
    self.child.visit_all(callback, seen=None)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  [Previous line repeated 5 more times]
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 683, in visit_all
    callback(self)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in <lambda>
    root_widget.visit_all(lambda d : d.per_interact())
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\text\text.py", line 1792, in per_interact
    if self.style.slow_abortable:
  File "gen3-static/styleclass.pxi", line 533, in renpy.styledata.styleclass.Style.slow_abortable.__get__
  File "style.pyx", line 493, in renpy.style.StyleCore._get
  File "style.pyx", line 710, in renpy.style.build_style
  File "style.pyx", line 707, in renpy.style.build_style
  File "gen3-static/style_functions.pyx", line 323, in style_functions.color_property
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\color.py", line 147, in __new__
    r = int(c[0]+c[1], 16)
ValueError: invalid literal for int() with base 16: '=#'

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Fri Sep 15 02:25:00 2023


Not quite sure what is going on here.
It triggers upon a slave training in the farm.
Anal training, Stables, slave is weak in that farm area.

If I swap the location or the type of the training, this does not trigger.
Only if it is both the stable and anal training.

Also have tried using a different slave to do the same training combo to trigger the error, but it wont fire.
So perhaps its something to do with the girl pack that conflict with this build? Because I use that pack in the 2.0 build without issue
[Samus Aran (the one with vid files from the spreadsheet) for the author to potentially reference]
Or maybe achieving a new level of interest (she currently has 'unknown'

I do have mods installed into this BK folder
Neronero - Friend and Foes
Chris Job Mod
Trait King
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Sep 15, 2023, 02:33 PM
Quote from: hughfj08 on Sep 14, 2023, 06:41 PMI'm sorry, but an uncaught exception occurred.

While processing the color property of anonymous style:
  File "game/BKendday.rpy", line 1122, in script call
    call show_night_event(ev) from _call_show_night_event_1
  File "game/BKevents.rpy", line 784, in script
    $ renpy.say(ev.char, text_descript + "{/size}")
  File "game/BKevents.rpy", line 784, in <module>
    $ renpy.say(ev.char, text_descript + "{/size}")
ValueError: invalid literal for int() with base 16: '=#'

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

Full traceback:
  File "game/BKendday.rpy", line 1122, in script call
    call show_night_event(ev) from _call_show_night_event_1
  File "game/BKevents.rpy", line 784, in script
    $ renpy.say(ev.char, text_descript + "{/size}")
  File "C:\Users\fjhh\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\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 784, in <module>
    $ renpy.say(ev.char, text_descript + "{/size}")
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\exports.py", line 1473, in say
    who(what, *args, **kwargs)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\character.py", line 1352, in __call__
    self.do_display(who, what, cb_args=self.cb_args, dtt=dtt, **display_args)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\character.py", line 1003, in do_display
    display_say(who,
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\character.py", line 693, in display_say
    rv = renpy.ui.interact(mouse='say', type=type, roll_forward=roll_forward)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\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 "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in interact_core
    root_widget.visit_all(lambda d : d.per_interact())
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\screen.py", line 481, in visit_all
    self.child.visit_all(callback, seen=None)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  [Previous line repeated 5 more times]
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 683, in visit_all
    callback(self)
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\display\core.py", line 4052, in <lambda>
    root_widget.visit_all(lambda d : d.per_interact())
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\text\text.py", line 1792, in per_interact
    if self.style.slow_abortable:
  File "gen3-static/styleclass.pxi", line 533, in renpy.styledata.styleclass.Style.slow_abortable.__get__
  File "style.pyx", line 493, in renpy.style.StyleCore._get
  File "style.pyx", line 710, in renpy.style.build_style
  File "style.pyx", line 707, in renpy.style.build_style
  File "gen3-static/style_functions.pyx", line 323, in style_functions.color_property
  File "C:\Users\fjhh\Downloads\Brothel_King-0.3t\Brothel_King-pc\renpy\color.py", line 147, in __new__
    r = int(c[0]+c[1], 16)
ValueError: invalid literal for int() with base 16: '=#'

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Fri Sep 15 02:25:00 2023


Not quite sure what is going on here.
It triggers upon a slave training in the farm.
Anal training, Stables, slave is weak in that farm area.

If I swap the location or the type of the training, this does not trigger.
Only if it is both the stable and anal training.

Also have tried using a different slave to do the same training combo to trigger the error, but it wont fire.
So perhaps its something to do with the girl pack that conflict with this build? Because I use that pack in the 2.0 build without issue
[Samus Aran (the one with vid files from the spreadsheet) for the author to potentially reference]
Or maybe achieving a new level of interest (she currently has 'unknown'

I do have mods installed into this BK folder
Neronero - Friend and Foes
Chris Job Mod
Trait King

I've been hunting this pesky bug for a while. I can reproduce it but only when using rollback. Do you get it by using rollback as well?
Title: Re: v0.3 Test version (gameplay only)
Post by: hughfj08 on Sep 15, 2023, 03:35 PM
Yeah, I got it when rolling back and reloading as well.
Close game and restarting from save would still reproduce the same bug
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Sep 15, 2023, 03:51 PM
Quote from: hughfj08 on Sep 15, 2023, 03:35 PMYeah, I got it when rolling back and reloading as well.
Close game and restarting from save would still reproduce the same bug


But do you get it without rolling back?
Title: Re: v0.3 Test version (gameplay only)
Post by: hughfj08 on Sep 15, 2023, 04:46 PM
Sorry, I meant I would always get it, regardless of manner I used.
Rollback, reload, close game, ignore etc.
Unless I changed the training in the farm in some manner, it would always hit me with an error.


Also, I just hit another one.
I got this when doing the Suzume 'collecting hints' option to talk to Papa, where he offers to build you a cell (Act 3)
Right after I get told the requirements:
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\fjhh\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\fjhh\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
Sat Sep 16 00:42:08 2023

This one can be rolled back but will trigger again when using the 'Ask about elemental cells' option that appears


I'm sorry, but an uncaught exception occurred.

While processing the color property of anonymous style:
  File "game/BKendday.rpy", line 1122, in script call
    call show_night_event(ev) from _call_show_night_event_1
  File "game/BKevents.rpy", line 777, in script
    $ renpy.say(ev.char, text_descript + "{/size}")
  File "game/BKevents.rpy", line 777, in <module>
    $ renpy.say(ev.char, text_descript + "{/size}")
ValueError: invalid literal for int() with base 16: '=#'

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

Full traceback:
  File "game/BKendday.rpy", line 1122, in script call
    call show_night_event(ev) from _call_show_night_event_1
  File "game/BKevents.rpy", line 777, in script
    $ renpy.say(ev.char, text_descript + "{/size}")
  File "E:\Brothel_King-pc\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "E:\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKevents.rpy", line 777, in <module>
    $ renpy.say(ev.char, text_descript + "{/size}")
  File "E:\Brothel_King-pc\renpy\exports.py", line 1473, in say
    who(what, *args, **kwargs)
  File "E:\Brothel_King-pc\renpy\character.py", line 1352, in __call__
    self.do_display(who, what, cb_args=self.cb_args, dtt=dtt, **display_args)
  File "E:\Brothel_King-pc\renpy\character.py", line 1003, in do_display
    display_say(who,
  File "E:\Brothel_King-pc\renpy\character.py", line 693, in display_say
    rv = renpy.ui.interact(mouse='say', type=type, roll_forward=roll_forward)
  File "E:\Brothel_King-pc\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "E:\Brothel_King-pc\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 "E:\Brothel_King-pc\renpy\display\core.py", line 4052, in interact_core
    root_widget.visit_all(lambda d : d.per_interact())
  File "E:\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\Brothel_King-pc\renpy\display\screen.py", line 481, in visit_all
    self.child.visit_all(callback, seen=None)
  File "E:\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  File "E:\Brothel_King-pc\renpy\display\core.py", line 681, in visit_all
    d.visit_all(callback, seen)
  [Previous line repeated 5 more times]
  File "E:\\Brothel_King-pc\renpy\display\core.py", line 683, in visit_all
    callback(self)
  File "E:\\Brothel_King-pc\renpy\display\core.py", line 4052, in <lambda>
    root_widget.visit_all(lambda d : d.per_interact())
  File "E:\r\Brothel_King-pc\renpy\text\text.py", line 1792, in per_interact
    if self.style.slow_abortable:
  File "gen3-static/styleclass.pxi", line 533, in renpy.styledata.styleclass.Style.slow_abortable.__get__
  File "style.pyx", line 493, in renpy.style.StyleCore._get
  File "style.pyx", line 710, in renpy.style.build_style
  File "style.pyx", line 707, in renpy.style.build_style
  File "gen3-static/style_functions.pyx", line 323, in style_functions.color_property
  File "E:\\Brothel_King-pc\renpy\color.py", line 147, in __new__
    r = int(c[0]+c[1], 16)
ValueError: invalid literal for int() with base 16: '=#'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Fri Sep 15 04:49:32 2023

This is another users traceback from the f95 forum who also seems to have got the same error from the farm
Title: Re: v0.3 Test version (gameplay only)
Post by: Dirk on Sep 16, 2023, 01:30 PM
Bugfix for RuntimeError: dictionary changed size during iterationpersistent.mods = {key: persistent.mods[key] for key in persistent.mods.keys() if key in detected_mods.keys()}add this line in BKfunctions.rpy before the faulty Loop (Line Number 3805)
        for name, d in persistent.mods.items():
            if name not in detected_mods.keys():
The faulty loop that contains del persistent.mods[name] is now obsolete and can be removed.
Title: Re: v0.3 Test version (gameplay only)
Post by: Mirarara on Sep 17, 2023, 03:26 PM
Traceback happened whenever the notification try to display profile pic that's a webm video.

I think it has something to do with notify.rpy ignoring if it's a video or image, but I'm not sure how to fix it.

I'm sorry, but an uncaught exception occurred.

While loading <renpy.display.im.Image object ('girls/Oshino Shinobu/portrait (00002).webm') at 0x000000000f358940>:
  File "game/BKmain.rpy", line 939, in script call
    $ result = ui.interact()
  File "game/BKhelp.rpy", line 445, in script
    $ r = ui.interact()
  File "game/BKhelp.rpy", line 445, in <module>
    $ r = ui.interact()
Exception: Could not load image 'girls/Oshino Shinobu/portrait (00002).webm' (webm files are not supported by Ren'Py): error('Unsupported image format')

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

Full traceback:
  File "game/BKmain.rpy", line 939, in script call
    $ result = ui.interact()
  File "game/BKhelp.rpy", line 445, in script
    $ r = ui.interact()
  File "C:\Git\BKgit\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Git\BKgit\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKhelp.rpy", line 445, in <module>
    $ r = ui.interact()
  File "C:\Git\BKgit\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Git\BKgit\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 "C:\Git\BKgit\renpy\display\core.py", line 4172, in interact_core
    self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
  File "C:\Git\BKgit\renpy\display\core.py", line 2779, in draw_screen
    surftree = renpy.display.render.render_screen(
  File "render.pyx", line 492, in renpy.display.render.render_screen
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 886, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 886, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 886, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\screen.py", line 731, 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 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 886, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 1062, in render
    surf = render(d, rw, height - y, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 1336, in render
    surf = render(child,
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 1107, in render
    surf = render(d, width - x, rh, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\viewport.py", line 273, in render
    surf = renpy.display.render.render(self.child, child_width, child_height, st, at)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 1107, in render
    surf = render(d, width - x, rh, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 1336, in render
    surf = render(child,
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 1062, in render
    surf = render(d, rw, height - y, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 1336, in render
    surf = render(child,
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\transform.py", line 909, in render
    return RenderTransform(self).render(width, height, st, at)
  File "accelerator.pyx", line 979, in renpy.display.accelerator.RenderTransform.render
  File "accelerator.pyx", line 404, in renpy.display.accelerator.RenderTransform.render_child
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\im.py", line 676, in render
    return cache.get(self, render=True)
  File "C:\Git\BKgit\renpy\display\im.py", line 330, in get
    surf = image.load()
  File "C:\Git\BKgit\renpy\display\im.py", line 803, in load
    raise e
  File "C:\Git\BKgit\renpy\display\im.py", line 768, in load
    surf = renpy.display.pgrender.load_image(f, filename)
  File "C:\Git\BKgit\renpy\display\pgrender.py", line 201, in load_image
    raise Exception("Could not load image {!r}{}: {!r}".format(filename, extra, e))
Exception: Could not load image 'girls/Oshino Shinobu/portrait (00002).webm' (webm files are not supported by Ren'Py): error('Unsupported image format')

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Sun Sep 17 23:19:32 2023

Edit:
I kind of fixed it. In notify.rpy, change the notify_item to this.
screen notify_item(msg, _pos=0, use_atl=True):
    default pic_size = int(notify_font*1.25)

    frame background c_ui_dark:

        if use_atl: # ATL not used for history
            at notify_appear(_delay=_pos*0.15)

        hbox spacing 10:
            if msg.pic:
                $ _pic = Picture(path = msg.pic)
                frame style "inv_no_padding" ysize pic_size:
                    add _pic.get() fit "contain"
            text msg.txt color msg.color size notify_font yalign 0.5 outlines [(abs(1), "#000", abs(0), abs(0))] #drop_shadow (2, 2)
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Sep 18, 2023, 04:43 PM
Quote from: Mirarara on Sep 17, 2023, 03:26 PMTraceback happened whenever the notification try to display profile pic that's a webm video.

I think it has something to do with notify.rpy ignoring if it's a video or image, but I'm not sure how to fix it.

I'm sorry, but an uncaught exception occurred.

While loading <renpy.display.im.Image object ('girls/Oshino Shinobu/portrait (00002).webm') at 0x000000000f358940>:
  File "game/BKmain.rpy", line 939, in script call
    $ result = ui.interact()
  File "game/BKhelp.rpy", line 445, in script
    $ r = ui.interact()
  File "game/BKhelp.rpy", line 445, in <module>
    $ r = ui.interact()
Exception: Could not load image 'girls/Oshino Shinobu/portrait (00002).webm' (webm files are not supported by Ren'Py): error('Unsupported image format')

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

Full traceback:
  File "game/BKmain.rpy", line 939, in script call
    $ result = ui.interact()
  File "game/BKhelp.rpy", line 445, in script
    $ r = ui.interact()
  File "C:\Git\BKgit\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Git\BKgit\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKhelp.rpy", line 445, in <module>
    $ r = ui.interact()
  File "C:\Git\BKgit\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Git\BKgit\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 "C:\Git\BKgit\renpy\display\core.py", line 4172, in interact_core
    self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
  File "C:\Git\BKgit\renpy\display\core.py", line 2779, in draw_screen
    surftree = renpy.display.render.render_screen(
  File "render.pyx", line 492, in renpy.display.render.render_screen
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 886, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 886, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 886, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\screen.py", line 731, 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 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 886, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 1062, in render
    surf = render(d, rw, height - y, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 1336, in render
    surf = render(child,
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 1107, in render
    surf = render(d, width - x, rh, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\viewport.py", line 273, in render
    surf = renpy.display.render.render(self.child, child_width, child_height, st, at)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 1107, in render
    surf = render(d, width - x, rh, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 1336, in render
    surf = render(child,
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 1062, in render
    surf = render(d, rw, height - y, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\layout.py", line 1336, in render
    surf = render(child,
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\transform.py", line 909, in render
    return RenderTransform(self).render(width, height, st, at)
  File "accelerator.pyx", line 979, in renpy.display.accelerator.RenderTransform.render
  File "accelerator.pyx", line 404, in renpy.display.accelerator.RenderTransform.render_child
  File "render.pyx", line 266, in renpy.display.render.render
  File "C:\Git\BKgit\renpy\display\im.py", line 676, in render
    return cache.get(self, render=True)
  File "C:\Git\BKgit\renpy\display\im.py", line 330, in get
    surf = image.load()
  File "C:\Git\BKgit\renpy\display\im.py", line 803, in load
    raise e
  File "C:\Git\BKgit\renpy\display\im.py", line 768, in load
    surf = renpy.display.pgrender.load_image(f, filename)
  File "C:\Git\BKgit\renpy\display\pgrender.py", line 201, in load_image
    raise Exception("Could not load image {!r}{}: {!r}".format(filename, extra, e))
Exception: Could not load image 'girls/Oshino Shinobu/portrait (00002).webm' (webm files are not supported by Ren'Py): error('Unsupported image format')

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Sun Sep 17 23:19:32 2023

Edit:
I kind of fixed it. In notify.rpy, change the notify_item to this.
screen notify_item(msg, _pos=0, use_atl=True):
    default pic_size = int(notify_font*1.25)

    frame background c_ui_dark:

        if use_atl: # ATL not used for history
            at notify_appear(_delay=_pos*0.15)

        hbox spacing 10:
            if msg.pic:
                $ _pic = Picture(path = msg.pic)
                frame style "inv_no_padding" ysize pic_size:
                    add _pic.get() fit "contain"
            text msg.txt color msg.color size notify_font yalign 0.5 outlines [(abs(1), "#000", abs(0), abs(0))] #drop_shadow (2, 2)

Wow, I didn't know people would be enterprising enough to make video portraits! I have to watch out for these in the future.
Title: Re: v0.3 Test version (gameplay only)
Post by: fregreger on Sep 19, 2023, 03:00 AM
Does the headhunter mod work with 0.3? I've tried it and it shows up a bunch of errors when finalizing the contract.

 I liked to use this mod to get girls with traits that'd be otherwise far too tedious to randomly roll in the slave market
Title: Re: v0.3 Test version (gameplay only)
Post by: Mirarara on Sep 19, 2023, 03:48 PM
The girl requirement to build the cells by Papa Freak doesn't show up in goal list.
I suspect that's due to the set_task channel used is 'special', which is not in goal_channels.

Also, the event picture doesn't shows up after you gave the girl to papa freak for the cells.
Title: Re: v0.3 Test version (gameplay only)
Post by: GMWinters on Sep 20, 2023, 08:48 PM
Probably a minor thing, and I'm not sure if this is technically a 0.3 bug or just general game logic weirdness, but the blurbs the game puts together for whores that convince a customer to switch acts currently shows the "He wanted to do X" as if what she convinced him to do is what he wanted all along.

So if a whore only has Anal ticked off, you see "He wanted to fuck her in the ass. She convinced the customer to try something different." followed by him fucking her in the ass.

What (I think) should be showing up is "He wanted to (originally desired act text), but she convinced him to try fucking her in the ass." followed, obviously, by him fucking her in said ass.

Also, assuming increased variety is a goal, there may be something to be said for including a little bit about how she convinced him that changes based on the act?

Edit:
I just moved districts and toggled over a bunch of girls to accept bisexual for the income while customer count is low and it seems that the coding for the bisexual writeups already does it this way, which makes me more inclined to think the single girl behavior is a bug.
Ex. "He wanted to have sex with them. In the end he got anal, but he was happy to let the girls have their way."
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Sep 22, 2023, 03:52 PM
Hi guys,

Hotfix here: https://www.mediafire.com/file/1va1v7cq1psp53x/game+patch+0.3.zip/file

Took me literally days to fix that pesky bug with farm text, but I think I got it... Also, you can now include multiple locations in _BK.ini generation options.
Title: Re: v0.3 Test version (gameplay only)
Post by: DarkFire on Sep 23, 2023, 04:03 AM
Found this error after pressing end day:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 943, in script
    python:
  File "game/BKendday.rpy", line 984, in <module>
    resting_text, resting_changes = girl.rest()
  File "game/BKgirlclass.rpy", line 2511, in rest
    resting_changes.add("(full recovery)", "header", color="good", separator="\n")
  File "game/BKendday.rpy", line 29, in add
    self.entries.append(NightChangeEntry(*args, **kwargs))
TypeError: __init__() got an unexpected keyword argument 'color'

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

Full traceback:
  File "game/BKendday.rpy", line 943, in script
    python:
  File "C:\Users\Dani\Desktop\Juegos\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\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 984, in <module>
    resting_text, resting_changes = girl.rest()
  File "game/BKgirlclass.rpy", line 2511, in rest
    resting_changes.add("(full recovery)", "header", color="good", separator="\n")
  File "game/BKendday.rpy", line 29, in add
    self.entries.append(NightChangeEntry(*args, **kwargs))
TypeError: __init__() got an unexpected keyword argument 'color'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Sat Sep 23 06:00:35 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: Hellouda on Sep 23, 2023, 05:22 AM
Hi im new here! Im testing the version 0.3 and maybe someone wrote this before, but at the moment there is a bug when you let a girl in the Farm to rest. Some Girls can´t recover their Energy. Thanks for read me!
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Sep 23, 2023, 01:49 PM
Sorry I was in a rush and posted an incomplete file. Here is a new hotfix:
https://www.mediafire.com/file/1va1v7cq1psp53x/game+patch+0.3.zip/file
Title: Re: v0.3 Test version (gameplay only)
Post by: hughfj08 on Sep 27, 2023, 06:28 PM
I'm not sure if it has been mentioned yet, because most of us probably almost never use this function.

But the manual sell option doesn't provide any of the sale revenue
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Sep 29, 2023, 01:53 PM
Quote from: hughfj08 on Sep 27, 2023, 06:28 PMI'm not sure if it has been mentioned yet, because most of us probably almost never use this function.

But the manual sell option doesn't provide any of the sale revenue

As far as I can see, it works on my end. Can you be more specific about the sequence of events for this bug to happen?
Title: Re: v0.3 Test version (gameplay only)
Post by: Arcron on Oct 01, 2023, 04:45 AM
Unable to advance from chapter 3 to 4. Did all the ninja things including the elemental cells and all the 3 clues for each ninja, and then typed in the 3 no story commands for the first three chapters once the story didn't advance. Don't know what to do after typing the commands; I think I'm just softlocked. There was also an error when doing the elemental cells that I 'ignored'.

Also Captain Farah's shop softlocks the game. Game gets stuck at the buy screen when she shows you the item; the buy button does nothing and her dialogue doesn't proceed (no error message, can open esc menu, just cannot buy or continue dialogue). Had to reload from autosave to escape.

Save : https://www.mediafire.com/file/6m194lsro618wlu/2-1-LT1.save/file
(Know you said you wouldn't check saves so i dont expect you to and you shouldn't if you don't want to, but here it is if your curious)

Traceback.txt
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 160, in script call
    $ selected_district = ui.interact()
  File "game/BKchapter3.rpy", line 184, in script call
    call c3_papa_cells from _call_c3_papa_cells
  File "game/BKchapter3.rpy", line 1584, in script
    python:
  File "game/BKchapter3.rpy", line 1586, in <module>
    if girl.get_stat(stat) < val:
  File "game/BKgirlclass.rpy", line 2586, in get_stat
    raise AssertionError(stat_name + " is not a valid stat/skill name. Accepted: " + and_text(["defense", "strength", "energy"] + [s.name.lower() for s in (self.stats+self.sex_stats)]))
AssertionError: charisma is not a valid stat/skill name. Accepted: defense, strength, energy, charm, beauty, body, refinement, sensitivity, libido, constitution, obedience, service, sex, anal and fetish

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

Full traceback:
  File "game/BKmain.rpy", line 160, in script call
    $ selected_district = ui.interact()
  File "game/BKchapter3.rpy", line 184, in script call
    call c3_papa_cells from _call_c3_papa_cells
  File "game/BKchapter3.rpy", line 1584, in script
    python:
  File "D:\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:\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKchapter3.rpy", line 1586, in <module>
    if girl.get_stat(stat) < val:
  File "game/BKgirlclass.rpy", line 2586, in get_stat
    raise AssertionError(stat_name + " is not a valid stat/skill name. Accepted: " + and_text(["defense", "strength", "energy"] + [s.name.lower() for s in (self.stats+self.sex_stats)]))
AssertionError: charisma is not a valid stat/skill name. Accepted: defense, strength, energy, charm, beauty, body, refinement, sensitivity, libido, constitution, obedience, service, sex, anal and fetish

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Sat Sep 30 22:09:53 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: Hellouda on Oct 01, 2023, 08:53 PM
Got the same Bug. i want to add that in the shop there is not any item. Its all empty, but in 6 or 7 runs, its the first time its happend to me, so maybe is for a Mod or a girl pack.
Title: Re: v0.3 Test version (gameplay only)
Post by: DarkFire on Oct 02, 2023, 01:03 AM
Found this error after ending day:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 943, in script
    python:
  File "game/BKendday.rpy", line 960, in <module>
    farm_events += farm.programs[girl].resolve("training")
  File "game/BKfarm.rpy", line 758, in resolve
    change_log.add("MINION LEVEL UP (level " + str(mn.level) + ")", col="special")
  File "game/BKendday.rpy", line 29, in add
    self.entries.append(NightChangeEntry(*args, **kwargs))
  File "game/BKendday.rpy", line 57, in __init__
    raise AssertionError("Wrong color code. Error with entry %s, type %s, ttip_title: %s, ttip: %s, color: %s" % (msg, type, ttip_title, ttip, self.color))
AssertionError: Wrong color code. Error with entry MINION LEVEL UP (level 1), type normal, ttip_title: , ttip: , color: =#FF99

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

Full traceback:
  File "game/BKendday.rpy", line 943, in script
    python:
  File "C:\Users\Dani\Desktop\Juegos\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\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 960, in <module>
    farm_events += farm.programs[girl].resolve("training")
  File "game/BKfarm.rpy", line 758, in resolve
    change_log.add("MINION LEVEL UP (level " + str(mn.level) + ")", col="special")
  File "game/BKendday.rpy", line 29, in add
    self.entries.append(NightChangeEntry(*args, **kwargs))
  File "game/BKendday.rpy", line 57, in __init__
    raise AssertionError("Wrong color code. Error with entry %s, type %s, ttip_title: %s, ttip: %s, color: %s" % (msg, type, ttip_title, ttip, self.color))
AssertionError: Wrong color code. Error with entry MINION LEVEL UP (level 1), type normal, ttip_title: , ttip: , color: =#FF99

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Mon Oct  2 03:00:42 2023
Title: Re: v0.3 Test version (gameplay only)
Post by: hughfj08 on Oct 02, 2023, 08:22 AM
Quote from: Goldo on Sep 29, 2023, 01:53 PM
Quote from: hughfj08 on Sep 27, 2023, 06:28 PMI'm not sure if it has been mentioned yet, because most of us probably almost never use this function.

But the manual sell option doesn't provide any of the sale revenue

As far as I can see, it works on my end. Can you be more specific about the sequence of events for this bug to happen?

I am in the Act IV section with my brothel in the Magic Gardens
Have just completed a monthly quest
Went to sell a slave to have the funds to max the building after I click advance
No additional funds appear after sale.
I have also tried selling after advancing and placing my brothel in the Cathedral zone, but no change.

This was found on the patch prior to your Sept 22 patch post
Title: Re: v0.3 Test version (gameplay only)
Post by: BaiumSS on Oct 07, 2023, 01:44 PM
None of the stores refresh and the guild never changes requests or classes
Title: Re: v0.3 Test version (gameplay only)
Post by: ryan555 on Oct 11, 2023, 06:26 PM
Quote from: Goldo on Sep 29, 2023, 01:53 PM
Quote from: hughfj08 on Sep 27, 2023, 06:28 PMI'm not sure if it has been mentioned yet, because most of us probably almost never use this function.

But the manual sell option doesn't provide any of the sale revenue

As far as I can see, it works on my end. Can you be more specific about the sequence of events for this bug to happen?

I found that this sale bug happens if you press sell on a girl who has items like clothing then click right mouse button. The girl disappears (she doesn't even go to the slave market) and you don't get any gold. If she doesn't have items it seems to work as expected for me.
To properly sell her, you have to press sell, then wait through the popups on the left side of the screen about the items she holds and the last text box whatever she has to say. Or just smash left click.

I guess this has something to do with how the game handles transferring items from the girl to the players inventory before selling the girl?
Title: Re: v0.3 Test version (gameplay only)
Post by: YPJ on Oct 11, 2023, 08:44 PM
hi

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]

3. 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]

4. when talking with citizen for hints (new suzume option) my action points going to -1, -2, -3... so i can speak with them when i got 0 AP.

5. looks like my safe is broken, i have goal "Talk to Suzume again about Narika" like 4 weeks and nothing happens and when i talk to Suzume i got message "<PLACEHOLDER> UNLOKING Narika EVENT CHAIN (Not implemented yet)".
Title: Re: v0.3 Test version (gameplay only)
Post by: Hellouda on Oct 11, 2023, 10:16 PM
The problem of the Re-stock affect the girls in the town too. When you buy all items they offer you, they can´t re-stock new items. Is a loop of empty shops
Title: Re: v0.3 Test version (gameplay only)
Post by: Beo on Oct 12, 2023, 04:58 PM
Quote from: BaiumSS on Oct 07, 2023, 01:44 PMNone of the stores refresh and the guild never changes requests or classes

Quote from: antihuman on Oct 11, 2023, 10:16 PMThe problem of the Re-stock affect the girls in the town too. When you buy all items they offer you, they can´t re-stock new items. Is a loop of empty shops


I think I fixed this on my end. I would usually get this error:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1438, in script
    python:
  File "game/BKendday.rpy", line 1444, in <module>
    calendar.newday()
  File "game/BKclasses.rpy", line 2904, in newday
    self.updates()
  File "game/BKclasses.rpy", line 2909, in updates
    weekly_updates(new_district)
  File "game/BKfunctions.rpy", line 2779, in weekly_updates
    update_shops()
  File "game/BKfunctions.rpy", line 643, in update_shops
    shop.restock(once_a_day=False)
  File "game/BKclasses.rpy", line 1565, in restock
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKclasses.rpy", line 1565, in <lambda>
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKclasses.rpy", line 1565, in <listcomp>
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKfunctions.rpy", line 4661, in parse_dice_formula
    return sum(term(x) for x in formula.split('+'))
  File "game/BKfunctions.rpy", line 4661, in <genexpr>
    return sum(term(x) for x in formula.split('+'))
  File "game/BKfunctions.rpy", line 4659, in term
    return factor(p[0]) if len(p)==1 else factor(p[0])*factor(p[1])
  File "game/BKfunctions.rpy", line 4655, in factor
    return sum(random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))
  File "game/BKfunctions.rpy", line 4655, in <genexpr>
    return sum(random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))
AttributeError: 'int' object has no attribute 'randint'

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

Full traceback:
  File "game/BKendday.rpy", line 1438, in script
    python:
  File "J:\PG\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 "J:\PG\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 1444, in <module>
    calendar.newday()
  File "game/BKclasses.rpy", line 2904, in newday
    self.updates()
  File "game/BKclasses.rpy", line 2909, in updates
    weekly_updates(new_district)
  File "game/BKfunctions.rpy", line 2779, in weekly_updates
    update_shops()
  File "game/BKfunctions.rpy", line 643, in update_shops
    shop.restock(once_a_day=False)
  File "game/BKclasses.rpy", line 1565, in restock
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKclasses.rpy", line 1565, in <lambda>
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKclasses.rpy", line 1565, in <listcomp>
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKfunctions.rpy", line 4661, in parse_dice_formula
    return sum(term(x) for x in formula.split('+'))
  File "game/BKfunctions.rpy", line 4661, in <genexpr>
    return sum(term(x) for x in formula.split('+'))
  File "game/BKfunctions.rpy", line 4659, in term
    return factor(p[0]) if len(p)==1 else factor(p[0])*factor(p[1])
  File "game/BKfunctions.rpy", line 4655, in factor
    return sum(random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))
  File "game/BKfunctions.rpy", line 4655, in <genexpr>
    return sum(random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))
AttributeError: 'int' object has no attribute 'randint'

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Thu Oct 12 11:47:02 2023


In BKfunctions.rpy, I fixed the below line as the random function was missing the "renpy." at the beginning:

    def parse_dice_formula(formula):
        def factor(f):
            g = f.split('d')
            if len(g)==1:
                return int(f)
            return sum(renpy.random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))


return sum(random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))

should be

return sum(renpy.random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))
Title: Re: v0.3 Test version (gameplay only)
Post by: Hellouda on Oct 13, 2023, 03:43 AM
Beo, dude, you did it! i check it and the re-stock problem was solved!. Thanks!
Title: Re: v0.3 Test version (gameplay only)
Post by: Inuman9668 on Oct 15, 2023, 05:46 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: v0.3 Test version (gameplay only)
Post by: Beo on Oct 15, 2023, 08:03 PM
Quote from: DarkFire on Sep 23, 2023, 04:03 AMFound this error after pressing end day:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 943, in script
    python:
  File "game/BKendday.rpy", line 984, in <module>
    resting_text, resting_changes = girl.rest()
  File "game/BKgirlclass.rpy", line 2511, in rest
    resting_changes.add("(full recovery)", "header", color="good", separator="\n")
  File "game/BKendday.rpy", line 29, in add
    self.entries.append(NightChangeEntry(*args, **kwargs))
TypeError: __init__() got an unexpected keyword argument 'color'

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

Full traceback:
  File "game/BKendday.rpy", line 943, in script
    python:
  File "C:\Users\Dani\Desktop\Juegos\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\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 984, in <module>
    resting_text, resting_changes = girl.rest()
  File "game/BKgirlclass.rpy", line 2511, in rest
    resting_changes.add("(full recovery)", "header", color="good", separator="\n")
  File "game/BKendday.rpy", line 29, in add
    self.entries.append(NightChangeEntry(*args, **kwargs))
TypeError: __init__() got an unexpected keyword argument 'color'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Sat Sep 23 06:00:35 2023


Seems like whenever an error like this pops up, it's because the keyword argument should be "col" instead of "color"

I had this error, too, and changed the line in BKgirlclass.rpy to be this:

resting_changes.add("(full recovery)", "header", col="good", separator="\n")
seems to work after that
Title: Re: v0.3 Test version (gameplay only)
Post by: Hellouda on Oct 18, 2023, 04:46 PM
Good day everyone! The error that prevents the girls recovering energy on the farm ocurred again. From the beginning to act 4 there wasn´t any problem.
This happened when i bought several animal, monsters, etc (from NPC Stella). The bondage event started and then, this error ocurred again.
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Nov 10, 2023, 04:52 PM
Hi guys, some news:


Cheers... Keep on brotheling!
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Nov 10, 2023, 04:57 PM
Quote from: Beo on Oct 12, 2023, 04:58 PM
Quote from: BaiumSS on Oct 07, 2023, 01:44 PMNone of the stores refresh and the guild never changes requests or classes

Quote from: antihuman on Oct 11, 2023, 10:16 PMThe problem of the Re-stock affect the girls in the town too. When you buy all items they offer you, they can´t re-stock new items. Is a loop of empty shops


I think I fixed this on my end. I would usually get this error:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 1438, in script
    python:
  File "game/BKendday.rpy", line 1444, in <module>
    calendar.newday()
  File "game/BKclasses.rpy", line 2904, in newday
    self.updates()
  File "game/BKclasses.rpy", line 2909, in updates
    weekly_updates(new_district)
  File "game/BKfunctions.rpy", line 2779, in weekly_updates
    update_shops()
  File "game/BKfunctions.rpy", line 643, in update_shops
    shop.restock(once_a_day=False)
  File "game/BKclasses.rpy", line 1565, in restock
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKclasses.rpy", line 1565, in <lambda>
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKclasses.rpy", line 1565, in <listcomp>
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKfunctions.rpy", line 4661, in parse_dice_formula
    return sum(term(x) for x in formula.split('+'))
  File "game/BKfunctions.rpy", line 4661, in <genexpr>
    return sum(term(x) for x in formula.split('+'))
  File "game/BKfunctions.rpy", line 4659, in term
    return factor(p[0]) if len(p)==1 else factor(p[0])*factor(p[1])
  File "game/BKfunctions.rpy", line 4655, in factor
    return sum(random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))
  File "game/BKfunctions.rpy", line 4655, in <genexpr>
    return sum(random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))
AttributeError: 'int' object has no attribute 'randint'

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

Full traceback:
  File "game/BKendday.rpy", line 1438, in script
    python:
  File "J:\PG\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 "J:\PG\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 1444, in <module>
    calendar.newday()
  File "game/BKclasses.rpy", line 2904, in newday
    self.updates()
  File "game/BKclasses.rpy", line 2909, in updates
    weekly_updates(new_district)
  File "game/BKfunctions.rpy", line 2779, in weekly_updates
    update_shops()
  File "game/BKfunctions.rpy", line 643, in update_shops
    shop.restock(once_a_day=False)
  File "game/BKclasses.rpy", line 1565, in restock
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKclasses.rpy", line 1565, in <lambda>
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKclasses.rpy", line 1565, in <listcomp>
    shop_mix = [(qual, parse_dice_formula(shop_item_number["shop"][qual]) + self.stock_modifiers[qual]) for qual in all_qualities]
  File "game/BKfunctions.rpy", line 4661, in parse_dice_formula
    return sum(term(x) for x in formula.split('+'))
  File "game/BKfunctions.rpy", line 4661, in <genexpr>
    return sum(term(x) for x in formula.split('+'))
  File "game/BKfunctions.rpy", line 4659, in term
    return factor(p[0]) if len(p)==1 else factor(p[0])*factor(p[1])
  File "game/BKfunctions.rpy", line 4655, in factor
    return sum(random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))
  File "game/BKfunctions.rpy", line 4655, in <genexpr>
    return sum(random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))
AttributeError: 'int' object has no attribute 'randint'

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Thu Oct 12 11:47:02 2023


In BKfunctions.rpy, I fixed the below line as the random function was missing the "renpy." at the beginning:

    def parse_dice_formula(formula):
        def factor(f):
            g = f.split('d')
            if len(g)==1:
                return int(f)
            return sum(renpy.random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))


return sum(random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))

should be

return sum(renpy.random.randint(1, int(g[1]) if g[1] else 6) for i in range(int(g[0]) if g[0] else 1))

Please check that 'import random' is indeed present at the beginning of BKfunctions.rpy. If it is, I don't see why your fix would change anything (but hey, if it works...).
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Nov 14, 2023, 11:20 AM
Quote from: ryan555 on Oct 11, 2023, 06:26 PM
Quote from: Goldo on Sep 29, 2023, 01:53 PM
Quote from: hughfj08 on Sep 27, 2023, 06:28 PMI'm not sure if it has been mentioned yet, because most of us probably almost never use this function.

But the manual sell option doesn't provide any of the sale revenue

As far as I can see, it works on my end. Can you be more specific about the sequence of events for this bug to happen?

I found that this sale bug happens if you press sell on a girl who has items like clothing then click right mouse button. The girl disappears (she doesn't even go to the slave market) and you don't get any gold. If she doesn't have items it seems to work as expected for me.
To properly sell her, you have to press sell, then wait through the popups on the left side of the screen about the items she holds and the last text box whatever she has to say. Or just smash left click.

I guess this has something to do with how the game handles transferring items from the girl to the players inventory before selling the girl?

Got it! Manual fix (because I am not releasing a patch for now): In BKfunctions.rpy, find this line at the end of 'relinquish_girl()' around line 1458:
   renpy.pause(0.5)and delete that line.
Title: Re: v0.3 Test version (gameplay only)
Post by: hayyo0455 on Nov 23, 2023, 03:37 PM
During training or work, bisexual tag images appear even if you are not bisexual. This didn't happen in previous versions, so I wonder if it was intentional.
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldface on Nov 26, 2023, 03:09 AM
i love this game and i would love to play the full game.
any idea on the estimate timeline for the full release; or for the current version you are on?
and will BKv2 girl packs work with v3 and onward?
if you have already answered this question sorry to bother.
Title: Re: v0.3 Test version (gameplay only)
Post by: vadi92 on Nov 26, 2023, 06:10 AM
Quote from: Animaz on Nov 26, 2023, 03:09 AMand will BKv2 girl packs work with v3 and onward?

The girl packs will work.
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldface on Nov 27, 2023, 12:55 AM
Thank you
Quote from: vadi92 on Nov 26, 2023, 06:10 AM
Quote from: Animaz on Nov 26, 2023, 03:09 AMand will BKv2 girl packs work with v3 and onward?

The girl packs will work.

Title: Re: v0.3 Test version (gameplay only)
Post by: EvilPenguin on Nov 27, 2023, 01:04 AM
Spell: Summon Incubus.
Can it take, a girls virginity? (I can't trigger it).
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Nov 30, 2023, 02:40 PM
Quote from: hayyo0455 on Nov 23, 2023, 03:37 PMDuring training or work, bisexual tag images appear even if you are not bisexual. This didn't happen in previous versions, so I wonder if it was intentional.

Good call, there is a bug where the 'bisexual' tag was being recognized as 'sex' (because 'sex' is part of the 'bisexual' string).

To avoid that, add this line in BKsettings.rpy below the 'bis' entry:

Quote# around line 704
                "group" : "group",
                "bis" : "bisexual", # Bisexual pictures may feature up to one male
                "bisexual" : "bisexual", # This is needed to avoid 'bisexual' detecting the 'sex' tag

Take care not to change the indentation.
Title: Re: v0.3 Test version (gameplay only)
Post by: dualblades730 on Dec 03, 2023, 06:47 AM
Is there a Mac version for v0.3 test version?
Title: Re: v0.3 Test version (gameplay only)
Post by: TyranntX on Dec 05, 2023, 06:53 AM
UUUUgh, Cuck boy Kosmo keeps gloating more than once, Dude I don't care that you're insecure let me run my business and fuck my girls in peace!
Title: Re: v0.3 Test version (gameplay only)
Post by: dylanrivers10000 on Dec 06, 2023, 06:08 PM
Quote from: TyranntX on Dec 05, 2023, 06:53 AMUUUUgh, Cuck boy Kosmo keeps gloating more than once, Dude I don't care that you're insecure let me run my business and fuck my girls in peace!
Is fixed in the hotfix in the quote below
Quote from: Goldo on Jul 21, 2023, 09:54 PMCurrent hotfix (make sure to apply it before testing! Unzip in your 'game/' folder):
https://www.mediafire.com/file/1va1v7cq1psp53x/game_patch_0.3.zip/file
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Dec 07, 2023, 04:01 PM
Quote from: Animaz on Nov 26, 2023, 03:09 AMi love this game and i would love to play the full game.
any idea on the estimate timeline for the full release; or for the current version you are on?
and will BKv2 girl packs work with v3 and onward?
if you have already answered this question sorry to bother.

Sorry I had missed your question. I can't commit to a release date because then it'd be wrong, most likely by a large margin, and I'd rather not get everyone's hopes up. I am doing this alone so it's easy to get derailed by pesky things like life, but little by little I'm chipping down at what needs to be done.

I make sure old girlpacks are always supported: if I ever change things as I did with _BK.ini, I will keep the necessary hooks in place so that back compatibility with older packs is guaranteed. The one possible exception is custom events, because there's so much potential diversity in custom code that I can't foresee all the ramifications.
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldface on Dec 10, 2023, 09:46 PM
Quote from: Goldo on Dec 07, 2023, 04:01 PM
Quote from: Animaz on Nov 26, 2023, 03:09 AMi love this game and i would love to play the full game.
any idea on the estimate timeline for the full release; or for the current version you are on?
and will BKv2 girl packs work with v3 and onward?
if you have already answered this question sorry to bother.

Sorry I had missed your question. I can't commit to a release date because then it'd be wrong, most likely by a large margin, and I'd rather not get everyone's hopes up. I am doing this alone so it's easy to get derailed by pesky things like life, but little by little I'm chipping down at what needs to be done.

I make sure old girlpacks are always supported: if I ever change things as I did with _BK.ini, I will keep the necessary hooks in place so that back compatibility with older packs is guaranteed. The one possible exception is custom events, because there's so much potential diversity in custom code that I can't foresee all the ramifications.
ok. i guess i have no choice but to wait.
i enjoy playing this and i would hate to see it messed up due to haste, so take your time. and with everything we do, life comes first.. so don't burn your self out. 8)
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldface on Dec 11, 2023, 05:03 AM
i don't know if anyone has figured out this yet or is it just my machine. but the amount of girl packs you have installed can also cause errors.
at first when i start playing bk for the first time, i had a lot of mix in one folder, over 700 and i had to cut it down to around 450. but i would still get errors during play, most of which disappear after rollback. i started over so many times i lost count. i decided to cut down to 390 and now most of the problems i ran into before are now gone.
when i check task manager i realized that the more packs you have, it uses a lot more ram and instead of freezing like most games do when rams run low. it shows errors so it makes it sometimes difficult to pinpoint real bugs. 
Title: Re: v0.3 Test version (gameplay only)
Post by: Beo on Dec 12, 2023, 09:03 PM
Ran into this error today after trying to run the slave beach event (choosing the "Get ready to serve some customers" and paying double upkeep options)

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 258, in script call
    python:
  File "game/BKevents.rpy", line 735, in script call
    $ ev.play()
  File "game/BKcity_events.rpy", line 5620, in script
    $ MC.gold += tip - upk
  File "game/BKcity_events.rpy", line 5620, in <module>
    $ MC.gold += tip - upk
TypeError: unsupported operand type(s) for -: 'tuple' and 'int'

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

Full traceback:
  File "game/BKmain.rpy", line 258, in script call
    python:
  File "game/BKevents.rpy", line 735, in script call
    $ ev.play()
  File "game/BKcity_events.rpy", line 5620, in script
    $ MC.gold += tip - upk
  File "J:\PG\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 "J:\PG\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKcity_events.rpy", line 5620, in <module>
    $ MC.gold += tip - upk
TypeError: unsupported operand type(s) for -: 'tuple' and 'int'

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Tue Dec 12 14:41:25 2023


and because i get a weird enjoyment out of spending too long to try and fix code when i only have a basic understanding of it, i think i fixed it.

i traced this back to the get_tip function definition in BKgirlclass.rpy. at the end of the funtion it shows this:

            return tip, gold_ttip

getting rid of ", gold ttip" fixed my error:

            return tip


Edit: apparently my "fix" broke the End Day function, so ignore that. The slave beach event tip error is beyond me
Title: Re: v0.3 Test version (gameplay only)
Post by: Beo on Dec 12, 2023, 09:14 PM
I guess I found another error in the same event:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 258, in script call
    python:
  File "game/BKevents.rpy", line 735, in script call
    $ ev.play()
  File "game/BKcity_events.rpy", line 5497, in script
    if pop_virginity():
  File "game/BKcity_events.rpy", line 5497, in <module>
    if pop_virginity():
NameError: name 'pop_virginity' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 258, in script call
    python:
  File "game/BKevents.rpy", line 735, in script call
    $ ev.play()
  File "game/BKcity_events.rpy", line 5497, in script
    if pop_virginity():
  File "J:\PG\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 2133, in execute
    if renpy.python.py_eval(condition):
  File "J:\PG\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1153, in py_eval
    return py_eval_bytecode(code, globals, locals)
  File "J:\PG\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1146, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "game/BKcity_events.rpy", line 5497, in <module>
    if pop_virginity():
NameError: name 'pop_virginity' is not defined

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Tue Dec 12 15:09:59 2023

adding "girl." to the line and line 5512 should fix the error:

                    if girl.pop_virginity():

Title: Re: v0.3 Test version (gameplay only)
Post by: cgghj on Dec 13, 2023, 05:15 AM
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 685, in script
    $ upgraded, text1 = farm.upgrade(obj)
  File "game/BKmain.rpy", line 685, in <module>
    $ upgraded, text1 = farm.upgrade(obj)
  File "game/BKfarm.rpy", line 1086, in upgrade
    return inst.upgrade()
  File "game/BKfarm.rpy", line 149, in upgrade
    return False, "You don't have enough gold to expand the " + inst.name + "! Stop wasting my time."
NameError: name 'inst' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 685, in script
    $ upgraded, text1 = farm.upgrade(obj)
  File "F:\Brothel_King-pc\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 685, in <module>
    $ upgraded, text1 = farm.upgrade(obj)
  File "game/BKfarm.rpy", line 1086, in upgrade
    return inst.upgrade()
  File "game/BKfarm.rpy", line 149, in upgrade
    return False, "You don't have enough gold to expand the " + inst.name + "! Stop wasting my time."
NameError: name 'inst' is not defined

Windows-10-10.0.19041 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Wed Dec 13 12:56:18 2023

Got this happen when doing & testing my personal chinese Localization.
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Dec 14, 2023, 03:27 PM
Quote from: Beo on Dec 12, 2023, 09:03 PMRan into this error today after trying to run the slave beach event (choosing the "Get ready to serve some customers" and paying double upkeep options)

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 258, in script call
    python:
  File "game/BKevents.rpy", line 735, in script call
    $ ev.play()
  File "game/BKcity_events.rpy", line 5620, in script
    $ MC.gold += tip - upk
  File "game/BKcity_events.rpy", line 5620, in <module>
    $ MC.gold += tip - upk
TypeError: unsupported operand type(s) for -: 'tuple' and 'int'

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

Full traceback:
  File "game/BKmain.rpy", line 258, in script call
    python:
  File "game/BKevents.rpy", line 735, in script call
    $ ev.play()
  File "game/BKcity_events.rpy", line 5620, in script
    $ MC.gold += tip - upk
  File "J:\PG\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 "J:\PG\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKcity_events.rpy", line 5620, in <module>
    $ MC.gold += tip - upk
TypeError: unsupported operand type(s) for -: 'tuple' and 'int'

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Tue Dec 12 14:41:25 2023


and because i get a weird enjoyment out of spending too long to try and fix code when i only have a basic understanding of it, i think i fixed it.

i traced this back to the get_tip function definition in BKgirlclass.rpy. at the end of the funtion it shows this:


            return tip, gold_ttip

getting rid of ", gold ttip" fixed my error:


            return tip


Edit: apparently my "fix" broke the End Day function, so ignore that. The slave beach event tip error is beyond me


You need to add [0] at the end of lines 5606, 5610 and 5617:
tip = girl.get_tip(act, "good", [Customer(selected_district.get_rand_pop()), Customer(selected_district.get_rand_pop())], base_tip_change)[0]
[...]
tip = girl.get_tip(act, "good", [Customer(selected_district.get_rand_pop())], base_tip_change)[0]
[...]
tip += girl.get_tip(act, "average", [Customer(selected_district.get_rand_pop())])[0]

Quote from: Beo on Dec 12, 2023, 09:14 PM
I guess I found another error in the same event:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 258, in script call
    python:
  File "game/BKevents.rpy", line 735, in script call
    $ ev.play()
  File "game/BKcity_events.rpy", line 5497, in script
    if pop_virginity():
  File "game/BKcity_events.rpy", line 5497, in <module>
    if pop_virginity():
NameError: name 'pop_virginity' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 258, in script call
    python:
  File "game/BKevents.rpy", line 735, in script call
    $ ev.play()
  File "game/BKcity_events.rpy", line 5497, in script
    if pop_virginity():
  File "J:\PG\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 2133, in execute
    if renpy.python.py_eval(condition):
  File "J:\PG\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1153, in py_eval
    return py_eval_bytecode(code, globals, locals)
  File "J:\PG\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1146, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "game/BKcity_events.rpy", line 5497, in <module>
    if pop_virginity():
NameError: name 'pop_virginity' is not defined

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Tue Dec 12 15:09:59 2023

adding "girl." to the line and line 5512 should fix the error:


                    if girl.pop_virginity():


You are right, same goes for line 5512.

Quote from: cgghj on Dec 13, 2023, 05:15 AMI'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 685, in script
    $ upgraded, text1 = farm.upgrade(obj)
  File "game/BKmain.rpy", line 685, in <module>
    $ upgraded, text1 = farm.upgrade(obj)
  File "game/BKfarm.rpy", line 1086, in upgrade
    return inst.upgrade()
  File "game/BKfarm.rpy", line 149, in upgrade
    return False, "You don't have enough gold to expand the " + inst.name + "! Stop wasting my time."
NameError: name 'inst' is not defined

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

Full traceback:
  File "game/BKmain.rpy", line 685, in script
    $ upgraded, text1 = farm.upgrade(obj)
  File "F:\Brothel_King-pc\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 685, in <module>
    $ upgraded, text1 = farm.upgrade(obj)
  File "game/BKfarm.rpy", line 1086, in upgrade
    return inst.upgrade()
  File "game/BKfarm.rpy", line 149, in upgrade
    return False, "You don't have enough gold to expand the " + inst.name + "! Stop wasting my time."
NameError: name 'inst' is not defined

Windows-10-10.0.19041 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Wed Dec 13 12:56:18 2023

Got this happen when doing & testing my personal chinese Localization.

Replace 'inst' with 'self'.

Thank you guys for keeping up the bug reports!


Title: Re: v0.3 Test version (gameplay only)
Post by: RatedNaughty on Dec 18, 2023, 07:00 AM
Quote from: Animaz on Dec 11, 2023, 05:03 AMi don't know if anyone has figured out this yet or is it just my machine. but the amount of girl packs you have installed can also cause errors.
at first when i start playing bk for the first time, i had a lot of mix in one folder, over 700 and i had to cut it down to around 450. but i would still get errors during play, most of which disappear after rollback. i started over so many times i lost count. i decided to cut down to 390 and now most of the problems i ran into before are now gone.
when i check task manager i realized that the more packs you have, it uses a lot more ram and instead of freezing like most games do when rams run low. it shows errors so it makes it sometimes difficult to pinpoint real bugs. 


At the moment, I have over 1000 girls in the folder; the only issue I have at the moment is that it takes a fair amount of time to load up the game. I wanna say roughly 1 to 5 minutes. The only error's I encountered where dealing with the older girl packs with outdated perks or other minor things.

The only thing, I can think of that may have caused your error's is that certain girl packs may overlap with other girls name / events files. I noticed it when I accidentally downloaded Hinata twice and one of the them had a misspelling on them. I would try and check if there were duplicates with different writing styles (like names are switched / or they have () with their name in them)
Title: Re: v0.3 Test version (gameplay only)
Post by: cgghj on Dec 19, 2023, 07:01 PM
            if self.hurt:
                if self.type == "machine":
                    des += event_color["bad"] % ("\n" + self.name + " is broken and will be retired in " + str(self.hurt) + " days. ")
                else:
                    des += event_color["bad"] % ("\n" + self.name + " is injured and will be retired in " + str(self.hurt) + " days. ")

            return des

I have noticed that there are many tiny bugs inside the BKfarm.rpy...
Like this upward, it will display in game like: injured minions will be retaire in True days.
I wonder how many other mistakes over there that not been noticed...since these bugs were existed in version 0.15.
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldface on Dec 19, 2023, 08:02 PM
Quote from: RatedNaughty on Dec 18, 2023, 07:00 AM
Quote from: Animaz on Dec 11, 2023, 05:03 AMi don't know if anyone has figured out this yet or is it just my machine. but the amount of girl packs you have installed can also cause errors.
at first when i start playing bk for the first time, i had a lot of mix in one folder, over 700 and i had to cut it down to around 450. but i would still get errors during play, most of which disappear after rollback. i started over so many times i lost count. i decided to cut down to 390 and now most of the problems i ran into before are now gone.
when i check task manager i realized that the more packs you have, it uses a lot more ram and instead of freezing like most games do when rams run low. it shows errors so it makes it sometimes difficult to pinpoint real bugs. 


At the moment, I have over 1000 girls in the folder; the only issue I have at the moment is that it takes a fair amount of time to load up the game. I wanna say roughly 1 to 5 minutes. The only error's I encountered where dealing with the older girl packs with outdated perks or other minor things.

The only thing, I can think of that may have caused your error's is that certain girl packs may overlap with other girls name / events files. I noticed it when I accidentally downloaded Hinata twice and one of the them had a misspelling on them. I would try and check if there were duplicates with different writing styles (like names are switched / or they have () with their name in them)
maybe that's it. or i just need a better system..
i will check it and see. thank you
Title: Re: v0.3 Test version (gameplay only)
Post by: cgghj on Dec 20, 2023, 03:47 PM
                textbutton text1 xalign 0.5 xsize 0.8 ysize yres(65):
                    if source == "gold" and MC.gold >= source_nb:
                        action Return(("gold", target_name, source_nb, target_nb))
                        tooltip "Buy " + str(target_nb) + " " + target_name + " for " + str(source_nb) + " " + target_name
                    elif MC.resources[source_name] >= source_nb:
                        action Return((source_name, target_name, source_nb, target_nb))
                        tooltip "Trade " + str(source_nb) + " " + source_name + " for " + str(target_nb) + " " + target_name
Got another tiny bug inside BKscreens.rpy.
I think the second "target_name" in tie tooltip should be "gold"?
Title: Re: v0.3 Test version (gameplay only)
Post by: gdav on Dec 20, 2023, 09:09 PM
Hi all.
New game with patch. Mods - Traits King and Friends & Foe.
When reach Chapter 2 and move brothel in a new area there are no girls in warehouse and docks region.

Update: After month pass (when global modifier change) girls appears in districts. This is new mechanics or bug?
Title: Re: v0.3 Test version (gameplay only)
Post by: gdav on Dec 20, 2023, 09:20 PM
Also, I have Megumin girl pack and every night from the first one I have this error. Even when I don't have girl.

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

While running game code:
  File "game/BKendday.rpy", line 369, in script call
    call expression lbl pass (girl=girl) from _call_expression_3
  File "game/girls/Megumin/resources/Megumin Events.rpy", line 238, in script
    if girl_list = [g for g in MC.girls if g.pack_name == "Megumin"]:
SyntaxError: invalid syntax (game/girls/Megumin/resources/Megumin Events.rpy, line 238)

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

Full traceback:
  File "game/BKendday.rpy", line 369, in script call
    call expression lbl pass (girl=girl) from _call_expression_3
  File "game/girls/Megumin/resources/Megumin Events.rpy", line 238, in script
    if girl_list = [g for g in MC.girls if g.pack_name == "Megumin"]:
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 2133, in execute
    if renpy.python.py_eval(condition):
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1151, in py_eval
    code = py_compile(code, 'eval')
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1088, in py_compile
    raise e
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1034, in py_compile
    raise orig_e
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1027, in py_compile
    tree = compile(source, filename, py_mode, ast.PyCF_ONLY_AST | flags, 1)
SyntaxError: invalid syntax (game/girls/Megumin/resources/Megumin Events.rpy, line 238)

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Thu Dec 21 00:11:58 2023
```
[close]
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Dec 21, 2023, 03:40 PM
Quote from: gdav on Dec 20, 2023, 09:20 PMAlso, I have Megumin girl pack and every night from the first one I have this error. Even when I don't have girl.

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

While running game code:
  File "game/BKendday.rpy", line 369, in script call
    call expression lbl pass (girl=girl) from _call_expression_3
  File "game/girls/Megumin/resources/Megumin Events.rpy", line 238, in script
    if girl_list = [g for g in MC.girls if g.pack_name == "Megumin"]:
SyntaxError: invalid syntax (game/girls/Megumin/resources/Megumin Events.rpy, line 238)

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

Full traceback:
  File "game/BKendday.rpy", line 369, in script call
    call expression lbl pass (girl=girl) from _call_expression_3
  File "game/girls/Megumin/resources/Megumin Events.rpy", line 238, in script
    if girl_list = [g for g in MC.girls if g.pack_name == "Megumin"]:
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 2133, in execute
    if renpy.python.py_eval(condition):
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1151, in py_eval
    code = py_compile(code, 'eval')
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1088, in py_compile
    raise e
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1034, in py_compile
    raise orig_e
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1027, in py_compile
    tree = compile(source, filename, py_mode, ast.PyCF_ONLY_AST | flags, 1)
SyntaxError: invalid syntax (game/girls/Megumin/resources/Megumin Events.rpy, line 238)

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Thu Dec 21 00:11:58 2023
```
[close]


Please don't report mods or girlpacks error here as I don't maintain them; use a separate thread or contact the creator instead.


Quote from: cgghj on Dec 19, 2023, 07:01 PM            if self.hurt:
                if self.type == "machine":
                    des += event_color["bad"] % ("\n" + self.name + " is broken and will be retired in " + str(self.hurt) + " days. ")
                else:
                    des += event_color["bad"] % ("\n" + self.name + " is injured and will be retired in " + str(self.hurt) + " days. ")

            return des

I have noticed that there are many tiny bugs inside the BKfarm.rpy...
Like this upward, it will display in game like: injured minions will be retaire in True days.
I wonder how many other mistakes over there that not been noticed...since these bugs were existed in version 0.15.

Good catch, self.hurt should be self.hp. It's just a display problem though, the damage mechanic works behind the scene.

Quote from: cgghj on Dec 20, 2023, 03:47 PM                textbutton text1 xalign 0.5 xsize 0.8 ysize yres(65):
                    if source == "gold" and MC.gold >= source_nb:
                        action Return(("gold", target_name, source_nb, target_nb))
                        tooltip "Buy " + str(target_nb) + " " + target_name + " for " + str(source_nb) + " " + target_name
                    elif MC.resources[source_name] >= source_nb:
                        action Return((source_name, target_name, source_nb, target_nb))
                        tooltip "Trade " + str(source_nb) + " " + source_name + " for " + str(target_nb) + " " + target_name
Got another tiny bug inside BKscreens.rpy.
I think the second "target_name" in tie tooltip should be "gold"?

This is set elsewhere. Although it's definitely not the best-written code ever, it works as intended.
Title: Re: v0.3 Test version (gameplay only)
Post by: vadi92 on Dec 21, 2023, 03:45 PM
Quote from: gdav on Dec 20, 2023, 09:20 PMAlso, I have Megumin girl pack and every night from the first one I have this error. Even when I don't have girl.

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

While running game code:
  File "game/BKendday.rpy", line 369, in script call
    call expression lbl pass (girl=girl) from _call_expression_3
  File "game/girls/Megumin/resources/Megumin Events.rpy", line 238, in script
    if girl_list = [g for g in MC.girls if g.pack_name == "Megumin"]:
SyntaxError: invalid syntax (game/girls/Megumin/resources/Megumin Events.rpy, line 238)

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

Full traceback:
  File "game/BKendday.rpy", line 369, in script call
    call expression lbl pass (girl=girl) from _call_expression_3
  File "game/girls/Megumin/resources/Megumin Events.rpy", line 238, in script
    if girl_list = [g for g in MC.girls if g.pack_name == "Megumin"]:
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 2133, in execute
    if renpy.python.py_eval(condition):
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1151, in py_eval
    code = py_compile(code, 'eval')
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1088, in py_compile
    raise e
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1034, in py_compile
    raise orig_e
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1027, in py_compile
    tree = compile(source, filename, py_mode, ast.PyCF_ONLY_AST | flags, 1)
SyntaxError: invalid syntax (game/girls/Megumin/resources/Megumin Events.rpy, line 238)

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Thu Dec 21 00:11:58 2023
```
[close]


@Yasaki74 this will be your job for fix.
Title: Re: v0.3 Test version (gameplay only)
Post by: Aetheran on Dec 26, 2023, 08:19 PM
So I was looking through the code to try and learn things because I'm new and this all still confuses me, and saw something odd in BKevents.rpy. A block of code that looks like it should be code, but is all orange. Screenshot:

https://i.imgur.com/sinWnE0.jpg

I added a single " to line 150, at the end of the word Ignore, as it looked like that's where it was missing, and the code below all turned nice and colorful... Screenshot:

https://i.imgur.com/XpqvNJd.jpg

So.... ya, not too sure if that missing " was intentional or not. If it was, lemme know so I can take that " out again in my BKevents.rpy lol
Title: Re: v0.3 Test version (gameplay only)
Post by: vadi92 on Dec 27, 2023, 05:57 AM
Quote from: Aetheran on Dec 26, 2023, 08:19 PMSo I was looking through the code to try and learn things because I'm new and this all still confuses me, and saw something odd in BKevents.rpy. A block of code that looks like it should be code, but is all orange. Screenshot:

https://i.imgur.com/sinWnE0.jpg

I added a single " to line 150, at the end of the word Ignore, as it looked like that's where it was missing, and the code below all turned nice and colorful... Screenshot:

https://i.imgur.com/XpqvNJd.jpg

So.... ya, not too sure if that missing " was intentional or not. If it was, lemme know so I can take that " out again in my BKevents.rpy lol

You dont need that extra " there. It was a text for a button when there is an empty folder in your girlpack mix. (with that there you will get a script error)

https://imgur.com/a/WxqjBOT (https://imgur.com/a/WxqjBOT)

https://imgur.com/a/sj3ON2Z (https://imgur.com/a/sj3ON2Z)
Title: Re: v0.3 Test version (gameplay only)
Post by: Aetheran on Dec 27, 2023, 01:11 PM
Quote from: vadi92 on Dec 27, 2023, 05:57 AMYou dont need that extra " there. It was a text for a button when there is an empty folder in your girlpack mix. (with that there you will get a script error)

https://imgur.com/a/WxqjBOT (https://imgur.com/a/WxqjBOT)

https://imgur.com/a/sj3ON2Z (https://imgur.com/a/sj3ON2Z)

Ok, its just Visual Studio Code reading stuff wrong I guess. Looking at it again I can see what you mean, there's "Delete", "Ignore (update manually)". When I first looked at it I thought the Ignore was missing that ", but it's just at the end of the brackets.

I'm obviously an idiot, so I'll refrain from commenting on code in the future, and just limit myself to posting actual error screens.
Title: Re: v0.3 Test version (gameplay only)
Post by: Yasaki74 on Dec 30, 2023, 03:15 AM
Quote from: vadi92 on Dec 21, 2023, 03:45 PM
Quote from: gdav on Dec 20, 2023, 09:20 PMAlso, I have Megumin girl pack and every night from the first one I have this error. Even when I don't have girl.

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

While running game code:
  File "game/BKendday.rpy", line 369, in script call
    call expression lbl pass (girl=girl) from _call_expression_3
  File "game/girls/Megumin/resources/Megumin Events.rpy", line 238, in script
    if girl_list = [g for g in MC.girls if g.pack_name == "Megumin"]:
SyntaxError: invalid syntax (game/girls/Megumin/resources/Megumin Events.rpy, line 238)

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

Full traceback:
  File "game/BKendday.rpy", line 369, in script call
    call expression lbl pass (girl=girl) from _call_expression_3
  File "game/girls/Megumin/resources/Megumin Events.rpy", line 238, in script
    if girl_list = [g for g in MC.girls if g.pack_name == "Megumin"]:
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 2133, in execute
    if renpy.python.py_eval(condition):
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1151, in py_eval
    code = py_compile(code, 'eval')
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1088, in py_compile
    raise e
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1034, in py_compile
    raise orig_e
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1027, in py_compile
    tree = compile(source, filename, py_mode, ast.PyCF_ONLY_AST | flags, 1)
SyntaxError: invalid syntax (game/girls/Megumin/resources/Megumin Events.rpy, line 238)

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Thu Dec 21 00:11:58 2023
```
[close]


@Yasaki74 this will be your job for fix.
yea sorry, I was at the military school for school requirements luckly it only last 2 weeks so I'm back now, I'll check out the error
I just read the log and it said it's in brothel king v0.3, I know there's a v0.3 of brothel king that is out but I'm been using v0.2 to test out my packs so maybe try it on 0.2?
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Jan 11, 2024, 05:31 PM
I thought I had found a great way of saving on memory usage by items but I have hit a roadblock:
https://lemmasoft.renai.us/forums/viewtopic.php?p=564946#p564946

If you guys know what I could be doing wrong... I have tested a bunch of regular python fixes for __getattr__() recursive errors, but no dice.
Title: Re: v0.3 Test version (gameplay only)
Post by: Smaug on Jan 17, 2024, 08:04 PM
How important is saving memory nowadays? Steam Hardware Survey 2023 (https://store.steampowered.com/hwsurvey/Steam-Hardware-Software-Survey-Welcome-to-Steam) shows that over 79% of participants had 16GB of memory or more.
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Jan 18, 2024, 12:50 PM
Quote from: Smaug on Jan 17, 2024, 08:04 PMHow important is saving memory nowadays? Steam Hardware Survey 2023 (https://store.steampowered.com/hwsurvey/Steam-Hardware-Software-Survey-Welcome-to-Steam) shows that over 79% of participants had 16GB of memory or more.

Well, Jman pointed out to me a problem with BK saved games' inflation, that can snowball into seriously large files. One of the reason may be item duplication. This fix had the added benefit of saving memory, and I didn't want to start a long tangential explanation so I kept it at that.

Regardless, turns out the problem may be something entirely different (https://lemmasoft.renai.us/forums/viewtopic.php?p=549307#p549307), because even Ren'py's tutorial crashes now when reloading.
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldface on Jan 26, 2024, 01:13 AM
checking every week for the new version. i enjoyed playing this game so much.
maybe i should just wait a solid 3 months and then check back for the next version.
their is a question i want to ask, its about the girls you have from the start. by the time i reach the third brothel some girls i had from the beginning of the game, upkeep sometimes are so high they are using more money than they earn, and sometimes even thou they get a good amount of time off, they don't wanna work.
if you have a favorite, you cant keep her on payroll for long
the only mods i have are king traits and chris job.
did i not train them well or is just the way the game was made to be?
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Jan 26, 2024, 10:33 AM
Quote from: Goldface on Jan 26, 2024, 01:13 AMchecking every week for the new version. i enjoyed playing this game so much.
maybe i should just wait a solid 3 months and then check back for the next version.
their is a question i want to ask, its about the girls you have from the start. by the time i reach the third brothel some girls i had from the beginning of the game, upkeep sometimes are so high they are using more money than they earn, and sometimes even thou they get a good amount of time off, they don't wanna work.
if you have a favorite, you cant keep her on payroll for long
the only mods i have are king traits and chris job.
did i not train them well or is just the way the game was made to be?


Hi! Sorry about the delay for the next version, I am in the writing phase and unfortunately the pace is harder to predict than when coding, sometimes there's writer's block and so on... I've been looking for an extra writer for years but sadly, this is the hardest skillset to come by apparently. It doesn't help that my version of Ren'py is bugging and doesn't let me reload anymore.

Onto your question: It's possible there's a balance issue, but this is the first time it's been reported. I would like some inputs from other players to make sure it's not just an issue with your particular girl builds.

Title: Re: v0.3 Test version (gameplay only)
Post by: AnalogSquirrel on Jan 26, 2024, 02:34 PM
Quote from: Goldo on Jan 26, 2024, 10:33 AMOnto your question: It's possible there's a balance issue, but this is the first time it's been reported. I would like some inputs from other players to make sure it's not just an issue with your particular girl builds.

That's not a scenario I've run into.  In my typical play-through, I generally just leave the upkeep sliders at the default (maybe I should try playing with them more). Girl price issues seem (to me) to be controllable through a combination of the perk in the Maid constellation that lowers a girl's upkeep and the bedroom upgrade that lowers upkeep for the whole brothel.  Oh, and I also try to avoid girls with the Expensive trait.
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldface on Jan 27, 2024, 06:36 AM
Maybe its how i played the game.

I had to keep her upkeep to green so she wont eventually get depressed, it was 500+ and she wouldn't work more than three unpredictable days a week; maybe four. her income was 400+ when she does work.
I had similar problems dealing with other girls.
If no one else have a problem then maybe i just need to change the way i approach the game.
This game have so many elements, maybe i wasn't utilized them all.
thank you.
Title: Re: v0.3 Test version (gameplay only)
Post by: mephistophele on Feb 15, 2024, 12:28 PM
Hi, I'm having this error every time I try to select an image in the game CG gallery, the girls gallery seems to work fine instead.

I'm sorry, but an uncaught exception occurred.

While loading <renpy.display.im.Image object ('lieutenant') at 0x00000000265b1a30>:
  File "renpy/common/00gallery.rpy", line 155, in __call__
    renpy.invoke_in_new_context(self.gallery.show, self.index)
  File "renpy/common/00gallery.rpy", line 519, in show
    result = i.show((button, image) not in unlocked_images, image, len(b.images))
  File "renpy/common/00gallery.rpy", line 106, in show
    return ui.interact()
  File "game/BKdeclarations.rpy", line 1524, in execute
    screen _gallery:
  File "game/BKdeclarations.rpy", line 1524, in execute
    screen _gallery:
  File "game/BKdeclarations.rpy", line 1526, in execute
    if locked:
  File "game/BKdeclarations.rpy", line 1532, in execute
    for d in displayables:
  File "game/BKdeclarations.rpy", line 1534, in execute
    if d.child.children[0].imgname in persistent.pic_ignore_list:
  File "game/BKdeclarations.rpy", line 1534, in <module>
    if d.child.children[0].imgname in persistent.pic_ignore_list:
AttributeError: 'ImageReference' object has no attribute 'imgname'
Title: Re: v0.3 Test version (gameplay only)
Post by: NelSSy on Feb 24, 2024, 10:14 PM
hi everyone.
 I Started playing this game for a while now, and i have played both the story mode and the no story mode.
they are both awesome.
it would be nice if you could add custom brothels to the no story mode, similar to how you add mods. Each brothel would have its own unlock requirements.
for eg: to unlock the "Name of Brothel goes here" brothel,
you must have 10 "rank goes here" rank girls,
and two must have "traits needed go here" traits
and have skills over "Skills needed go here".
I know the main game is still under construction but i figured if the GM don't mind. then maybe someone could create a simple way to add them or show me how to.
you could add them either before or after the final main brothel.
since they would be mods, if anyone hate this idea. then they don't have to use them.
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Feb 29, 2024, 05:35 PM
Quote from: NelSSy on Feb 24, 2024, 10:14 PMhi everyone.
 I Started playing this game for a while now, and i have played both the story mode and the no story mode.
they are both awesome.
it would be nice if you could add custom brothels to the no story mode, similar to how you add mods. Each brothel would have its own unlock requirements.
for eg: to unlock the "Name of Brothel goes here" brothel,
you must have 10 "rank goes here" rank girls,
and two must have "traits needed go here" traits
and have skills over "Skills needed go here".
I know the main game is still under construction but i figured if the GM don't mind. then maybe someone could create a simple way to add them or show me how to.
you could add them either before or after the final main brothel.
since they would be mods, if anyone hate this idea. then they don't have to use them.

I could give you pointers, but I'd need a bit more information:
- What do these new brothels do, exactly? Just change the background picture or have similar stats as existing brothels, or do completely new things?
- What would the UI flow look like?
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Feb 29, 2024, 05:52 PM
A quick status update:
- I am still struggling with nasty Ren'py bugs. I have reinstalled Ren'py completely and scrubbed the computer clean which took me a while as I had a dozen versions piled up from years of work on BK.
- Even after a completely clean install, I cannot get the game not to crash on reload (without so much as an error message), except in the very last version (8.2.0).
- Unfortunately, this version doesn't play nice with BK as it has many rendering glitches on buttons and such. It may be because Ren'py doesn't support ProportionalScale objects anymore (https://lemmasoft.renai.us/forums/viewtopic.php?p=562669#p562669).

I am left with two bad choices:
- Keep Ren'py on the stable version (8.0), but have development slow down to a crawl because I cannot reload, and risk keeping this crashing bug in the release version without the possibility of diagnosing it. This would also mean no further updates of Ren'py would be possible in the future.
- Port the game to 8.2 and face an uphill battle refactoring all the code that uses ProportionalScale (that's kind of all the code that supports declaring and displaying images in the game - a lot), and it's not even clear if that would fix the graphical bugs as they are inconsistent.

Both options suck, to be honest. In the short run I might keep option 1 going but let me tell you, it's not easy to write events without the ability to reload. :(
Title: Re: v0.3 Test version (gameplay only)
Post by: Yasaki74 on Mar 01, 2024, 02:44 PM
me personally, you should go for option 2. Who knows that Ren'py may will eventually fix the issue in the long term and besides, you're still in v0.3, it's a long way to go.
Title: Re: v0.3 Test version (gameplay only)
Post by: neronero on Mar 01, 2024, 04:39 PM
Is there a simple way to find out if ProportionalScale is indeed the culprit?

Probably stay on 8.0 for BK 0.3's release at the very least.

Can you keep two versions of RenPy on the same machine? If so, maybe write/test events in a RenPy 8.2 build and transport them to the main 8.0 branch after they're done. It's a bit cumbersome, but so are the other options.
Title: Re: v0.3 Test version (gameplay only)
Post by: RatedNaughty on Mar 02, 2024, 06:21 AM
Hello, Don't know where to post bugs in relation to the 0.3 so I'll post it here?

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 943, in script
    python:
  File "game/BKendday.rpy", line 960, in <module>
    farm_events += farm.programs[girl].resolve("training")
  File "game/BKfarm.rpy", line 758, in resolve
    change_log.add("MINION LEVEL UP (level " + str(mn.level) + ")", col="special")
  File "game/BKendday.rpy", line 29, in add
    self.entries.append(NightChangeEntry(*args, **kwargs))
  File "game/BKendday.rpy", line 57, in __init__
    raise AssertionError("Wrong color code. Error with entry %s, type %s, ttip_title: %s, ttip: %s, color: %s" % (msg, type, ttip_title, ttip, self.color))
AssertionError: Wrong color code. Error with entry MINION LEVEL UP (level 3), type normal, ttip_title: , ttip: , color: =#FF99

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

Full traceback:
  File "game/BKendday.rpy", line 943, in script
    python:
  File "P:\H Games\Brothel_King-0.2\Brothel_King-pc\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "P:\H Games\Brothel_King-0.2\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 960, in <module>
    farm_events += farm.programs[girl].resolve("training")
  File "game/BKfarm.rpy", line 758, in resolve
    change_log.add("MINION LEVEL UP (level " + str(mn.level) + ")", col="special")
  File "game/BKendday.rpy", line 29, in add
    self.entries.append(NightChangeEntry(*args, **kwargs))
  File "game/BKendday.rpy", line 57, in __init__
    raise AssertionError("Wrong color code. Error with entry %s, type %s, ttip_title: %s, ttip: %s, color: %s" % (msg, type, ttip_title, ttip, self.color))
AssertionError: Wrong color code. Error with entry MINION LEVEL UP (level 3), type normal, ttip_title: , ttip: , color: =#FF99

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Fri Mar  1 20:15:06 2024

Would greatly appreciate any help. Additional Information would be:
Mods:
Augment
Friends/Foes
Goldo's Cool (Deactivated)
Headhunter
Chrisjobmod
traitking

Occurred at the end of day (the beginning before all the night jobs/services officially starts). I should be using the latest patch...unless there was an update I haven't noticed in the last 6 months? Don't think I can make a repeat in a new game as it would require the farm. Did edit the overall capacity of the rooms.

Additional Request:
Is there a code that would allow to increase the amount of rooms for the available:
Jobs
Master Bedroom
Farm

To proportional to the overall license?
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Mar 03, 2024, 11:10 PM
Quote from: RatedNaughty on Mar 02, 2024, 06:21 AMHello, Don't know where to post bugs in relation to the 0.3 so I'll post it here?

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 943, in script
    python:
  File "game/BKendday.rpy", line 960, in <module>
    farm_events += farm.programs[girl].resolve("training")
  File "game/BKfarm.rpy", line 758, in resolve
    change_log.add("MINION LEVEL UP (level " + str(mn.level) + ")", col="special")
  File "game/BKendday.rpy", line 29, in add
    self.entries.append(NightChangeEntry(*args, **kwargs))
  File "game/BKendday.rpy", line 57, in __init__
    raise AssertionError("Wrong color code. Error with entry %s, type %s, ttip_title: %s, ttip: %s, color: %s" % (msg, type, ttip_title, ttip, self.color))
AssertionError: Wrong color code. Error with entry MINION LEVEL UP (level 3), type normal, ttip_title: , ttip: , color: =#FF99

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

Full traceback:
  File "game/BKendday.rpy", line 943, in script
    python:
  File "P:\H Games\Brothel_King-0.2\Brothel_King-pc\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "P:\H Games\Brothel_King-0.2\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKendday.rpy", line 960, in <module>
    farm_events += farm.programs[girl].resolve("training")
  File "game/BKfarm.rpy", line 758, in resolve
    change_log.add("MINION LEVEL UP (level " + str(mn.level) + ")", col="special")
  File "game/BKendday.rpy", line 29, in add
    self.entries.append(NightChangeEntry(*args, **kwargs))
  File "game/BKendday.rpy", line 57, in __init__
    raise AssertionError("Wrong color code. Error with entry %s, type %s, ttip_title: %s, ttip: %s, color: %s" % (msg, type, ttip_title, ttip, self.color))
AssertionError: Wrong color code. Error with entry MINION LEVEL UP (level 3), type normal, ttip_title: , ttip: , color: =#FF99

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Fri Mar  1 20:15:06 2024

Would greatly appreciate any help. Additional Information would be:
Mods:
Augment
Friends/Foes
Goldo's Cool (Deactivated)
Headhunter
Chrisjobmod
traitking

Occurred at the end of day (the beginning before all the night jobs/services officially starts). I should be using the latest patch...unless there was an update I haven't noticed in the last 6 months? Don't think I can make a repeat in a new game as it would require the farm. Did edit the overall capacity of the rooms.

This is a bug. Please look around line 49 in BKendday.rpy for this code:
if col in result_colors:
                self.color = result_colors[col]
            elif col in event_color:
                self.color = event_color[col][6:12]
            else:
                self.color = col

And replace the middle part like this:
if col in result_colors:
                self.color = result_colors[col]
            elif col in color_dict.keys(): #changed
                self.color = color_dict[col] #changed
            else:
                self.color = col


QuoteAdditional Request:
Is there a code that would allow to increase the amount of rooms for the available:
Jobs
Master Bedroom
Farm

To proportional to the overall license?

Find the option in BKsettings.rpy to change the brothel's bedroom capacity (but not the master bedroom). Farm capacity is always half the bedroom capacity.
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Mar 03, 2024, 11:21 PM
Okay, I'm happy to report that in the currently unreleased update:


What did fix the problem, though, was to remove the 'predict_images()' function that Chris12 added a while ago.

I am not sure what this will mean for performance, I cannot tell the difference on my PC but I assume it may have an impact on lower-end rigs. On the other hand, maybe removing the antiquated and slow image functions will actually improve performance. Who knows? Time will tell.

In the meanwhile, if you know your way around Ren'py displayables, please tell me if I'm doing anything wrong in the new 'ProportionalScale' class before I break things any further.  :P
Title: Re: v0.3 Test version (gameplay only)
Post by: NelSSy on Mar 04, 2024, 11:42 PM
Quote from: Goldo on Feb 29, 2024, 05:35 PM
Quote from: NelSSy on Feb 24, 2024, 10:14 PMhi everyone.
 I Started playing this game for a while now, and i have played both the story mode and the no story mode.
they are both awesome.
it would be nice if you could add custom brothels to the no story mode, similar to how you add mods. Each brothel would have its own unlock requirements.
for eg: to unlock the "Name of Brothel goes here" brothel,
you must have 10 "rank goes here" rank girls,
and two must have "traits needed go here" traits
and have skills over "Skills needed go here".
I know the main game is still under construction but i figured if the GM don't mind. then maybe someone could create a simple way to add them or show me how to.
you could add them either before or after the final main brothel.
since they would be mods, if anyone hate this idea. then they don't have to use them.

I could give you pointers, but I'd need a bit more information:
- What do these new brothels do, exactly? Just change the background picture or have similar stats as existing brothels, or do completely new things?
- What would the UI flow look like?
i was thinking all of the above.
i like the idea of having side brothels that works alongside the main ones, each one not only will have its own unlock requirements, it will also have other functions that will give status effect on the girls or MC depending on the setting of the side brothel you have active.
It would be similar to how the furniture's affect maintenance, security and popularity, and how items affect girl stats. but these brothels also will have similar functions like the farm and wont work without a girl, it will have it own upkeep, and if possible, these brothels would also generate funds depending on the girls that are currently working their.
In simple its like the farm but instead of just affecting Skills, it will also generate money, as well as having much more status effect.
They could also have some mini quest.

I also like the idea of having main brothels, i guess i just like the idea of having more brothels to unlock, anything that is easier implement.
the UI would depends on who create them, as long as they are not too complicated to understand and is fully integrated in the game.
If you still need more info i can write a more detailed explanation.
Title: Re: v0.3 Test version (gameplay only)
Post by: GMWinters on Mar 05, 2024, 02:25 PM
Quote from: Goldo on Feb 29, 2024, 05:35 PM- What do these new brothels do, exactly? Just change the background picture or have similar stats as existing brothels, or do completely new things?
Quote from: NelSSy on Mar 04, 2024, 11:42 PMi was thinking all of the above.
...
i guess i just like the idea of having more brothels to unlock

Just yeeting my two cents into the discussion with no knowledge of what may have already been said since this is the first post I've read after being away from the site for a while...

If you were going to add additional unlockable brothels to the game they could be more specialized versions of the standard one where instead of being "better" they're "different" or at least only better for specific play styles. Like, instead of having 2/2/2/2 construction slots for the tavern/club/onsen/okiya, they have 4 slots for one of them, and only 1 for the others. Something like that could be tied into the achievements system with an unlock requirement such as earning a certain number of denars from that job or having some number of girls with that job maxed out or something.

Er... Are achievements persistent across playthroughs?
Title: Re: v0.3 Test version (gameplay only)
Post by: vadi92 on Mar 05, 2024, 03:57 PM
Quote from: GMWinters on Mar 05, 2024, 02:25 PMEr... Are achievements persistent across playthroughs?

Sure do until you delete the rpyc file.
Title: Re: v0.3 Test version (gameplay only)
Post by: GMWinters on Mar 06, 2024, 01:26 PM
Quote from: Goldo on Mar 03, 2024, 11:21 PMOkay, I'm happy to report that in the currently unreleased update:

Will that update be Soon(TM)?

AKA If I've just wandered back in looking to start a new game, should I bother waiting for that update so my playthrough can double as bug-hunting?
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Mar 07, 2024, 11:50 AM
Okay, ngl what you describe is very ambitious and could only be accommodated as a mod or more likely an overhaul of the game. It has multiple impacts on UI, game balance and game loop.

I suggest fiddling with the game on your own private build, and try to create the base brothel UI and workflow you're aiming for. I can provide details on how the current game works, but I'm afraid if you're new to this odds are it's a lot more than what you could chew at first.
Title: Re: v0.3 Test version (gameplay only)
Post by: GMWinters on Mar 15, 2024, 01:25 PM
Quote from: Goldo on Mar 07, 2024, 11:50 AMOkay, ngl what you describe is very ambitious

Yeah, in retrospect I was assuming that the various rooms were all their own variable and the 'custom brothels' would just each have a unique piece of furniture with the relevant plusses and minuses.

But on reevaluation, if I'm reading the brothel bits of init_variables correctly, then those numbers are actually all pulling from a single value which would mean any changes would rapidly spaghetti outwards as anything that read that value would need to be changed to accommodate having 4 of them instead of 1.
Title: Re: v0.3 Test version (gameplay only)
Post by: LonerAoshi on Mar 22, 2024, 12:08 PM
Apologies if these have already been raised, but I couldn't find it with a search.

There appears to be a bug with swapping girls between the brothel and farm when both are full. Swapping them results in the girl that was moved from the farm to the brothel (Girl 1) showing up in the end of night report doing whatever she was last assigned to do in the farm as well as whatever she was assigned to do in the brothel, and the girl that was moved from the brothel to the farm (Girl 2) is not mentioned at all. If you look at the Farm Training Menu for the Girl 2, her name is in the title but Girl 1 is in the menu itself. I think something is going wrong with farm.programs, but I can't work out what. I tested this without any mods, but with some personal tweaks. I didn't touch the farm system, so you should be able to reproduce it. If not, apologies in advance.

Another old bug relates to Willow's relative never returning after her initial visit. Lines 8253 and 8514 in BKstory_events.rpy should be something like:
$ calendar.set_alarm(calendar.time + 28, Event(label = "willow_relative_returns"))
Finally, I wasn't sure if it was something else I did while poking around, but that farm display error when rolling back/reloading during the night phase is still occurring, even if the farm isn't unlocked. It only happens when rolling back/reloading, though. Again, I didn't poke around the farm system, but apologies if this ends up being because of something I did. On a new save with the farm not unlocked, it shows up like this:
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)))
NameError: name 'text_descript' is not defined

-- 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 "D:\Games\Brothel_King-0.3t\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "D:\Games\Brothel_King-0.3t\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)))
NameError: name 'text_descript' is not defined

Windows-10-10.0.19041 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Fri Mar 22 22:53:16 2024

Thanks for all the work you've put into the game Goldo, it's really impressive.
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Mar 22, 2024, 04:59 PM
Quote from: LonerAoshi on Mar 22, 2024, 12:08 PMApologies if these have already been raised, but I couldn't find it with a search.

There appears to be a bug with swapping girls between the brothel and farm when both are full. Swapping them results in the girl that was moved from the farm to the brothel (Girl 1) showing up in the end of night report doing whatever she was last assigned to do in the farm as well as whatever she was assigned to do in the brothel, and the girl that was moved from the brothel to the farm (Girl 2) is not mentioned at all. If you look at the Farm Training Menu for the Girl 2, her name is in the title but Girl 1 is in the menu itself. I think something is going wrong with farm.programs, but I can't work out what. I tested this without any mods, but with some personal tweaks. I didn't touch the farm system, so you should be able to reproduce it. If not, apologies in advance.
Good find, I can confirm this is a bug. You can fix it by removing this line:
$ farm.change_program(girl, prog)In BKevents.rpy around line 3703.

QuoteAnother old bug relates to Willow's relative never returning after her initial visit. Lines 8253 and 8514 in BKstory_events.rpy should be something like:
$ calendar.set_alarm(calendar.time + 28, Event(label = "willow_relative_returns"))
Good call again! Thank you.

QuoteFinally, I wasn't sure if it was something else I did while poking around, but that farm display error when rolling back/reloading during the night phase is still occurring, even if the farm isn't unlocked. It only happens when rolling back/reloading, though. Again, I didn't poke around the farm system, but apologies if this ends up being because of something I did.
I think I fixed it in the current build, we will see when it is ready for testing.
Title: Re: v0.3 Test version (gameplay only)
Post by: LonerAoshi on Mar 27, 2024, 03:04 AM
Some errors regarding BKchapter3.rpy:

Line 1565:
"Choose a girl from your brothel to bring with you (reminder: she must have at least 75 in Service, Beauty and Libido, and be open to whoring)"This line is shown no matter what the actual requirements are, instead of referencing what the required stats are.

Lines 1516-1519 are asking for charisma as a stat instead of charm. Should be something like this instead:
            "Bring a whore to Papa with at least {b}75 in Sex, Charm and Sensitivity{/b}."

            $ game.set_task("Bring a whore to Papa with at least {b}75 in Sex, Charm and Sensitivity{/b}.", "special")
            $ NPC_freak.flags["requirements"] = [("sex", 75), ("charm", 75), ("sensitivity", 75)]
If you are stuck, you can use the last line in console to set the correct requirements.

Papa Freaks cell construction code has an if block that never runs, due to incorrect ordering, lines 1721-1741:
            elif NPC_freak.flags["cells built"] < 4:
                you "So this is it, then?"

                papa "Well... There is one more elemental cell I could restore, but you didn't ask me about it..."

                you "Which one?"

                papa "The Air and Fire ward room. It blocks not one but two elements. Nice, isn't it?"

                you "Yeah... But I have no need to imprison someone with one of those elements."

                papa "Not now you don't, but if the eventuality presented itself, wouldn't it be nice to have a cell ready?"

                you "*sigh* What do you want for it?"

            elif NPC_freak.flags["cells built"] < 3:
                you "Can you build me any more holding cells?"

                papa "Can I? Sure. But will I? There needs to be something in it for me..."

                you "All right. Name your poison."
The ["cells built"] < 3 block should be above the < 4 block, I think.

There's an issue with the Lieutenant's hint about Haruka, for some reason her image_tag is not being set, resulting in this:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 160, 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 160, 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 "D:\Games\Brothel_King-0.3t\renpy\ast.py", line 1428, in execute
    show_imspec(self.imspec, atl=getattr(self, "atl", None))
  File "D:\Games\Brothel_King-0.3t\renpy\ast.py", line 1385, in show_imspec
    expression = renpy.easy.displayable(expression)
  File "D:\Games\Brothel_King-0.3t\renpy\easy.py", line 145, in displayable
    raise Exception("Not a displayable: %r" % (d,))
Exception: Not a displayable: None

Windows-10-10.0.19041 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Wed Mar 27 13:51:53 2024
I have no idea where to fix this, but for anyone that is stuck right now, open the console just before you click on "Ask about Haruka, the Earth Kunoichi" and type in:
$ NPC_lieutenant.char.image_tag = "lieutenant"
Some image issues: when talking to Stella, her image is not being resized to fit the window, and ends up cutting her off from her tits up. When talking to Gurigura, she is shown twice (side by side) along with Katryn.

Cheers Goldo!

Edit: BKscreens lines 4589-4593:
                text "{b}Forecast{/b}" size res_font(18) yalign 0.0 drop_shadow (2, 2)
                frame xfill True xpadding 10 ypadding 10:
                    has vbox spacing 12
                    text brothel.count_customers_description() color c_prune size res_font(14)
                    text brothel.count_budget_description() color c_prune size res_font(14)
This block needs to be indented in line with line 4570, otherwise it ends up being offscreen.
Title: Re: v0.3 Test version (gameplay only)
Post by: Grapes106 on Mar 29, 2024, 04:09 PM
Quote from: YPJ on Oct 11, 2023, 08:44 PM5. looks like my safe is broken, i have goal "Talk to Suzume again about Narika" like 4 weeks and nothing happens and when i talk to Suzume i got message "<PLACEHOLDER> UNLOKING Narika EVENT CHAIN (Not implemented yet)".

Same problem.
I talked to Suzume, the Magic Garden blinked and got message "<PLACEHOLDER> UNLOCKING Narika EVENT CHAIN (Not implemented yet)"

So can't advance to chapter 4.
Title: Re: v0.3 Test version (gameplay only)
Post by: LonerAoshi on Mar 29, 2024, 10:09 PM
Quote from: Grapes106 on Mar 29, 2024, 04:09 PM
Quote from: YPJ on Oct 11, 2023, 08:44 PM5. looks like my safe is broken, i have goal "Talk to Suzume again about Narika" like 4 weeks and nothing happens and when i talk to Suzume i got message "<PLACEHOLDER> UNLOKING Narika EVENT CHAIN (Not implemented yet)".

Same problem.
I talked to Suzume, the Magic Garden blinked and got message "<PLACEHOLDER> UNLOCKING Narika EVENT CHAIN (Not implemented yet)"

So can't advance to chapter 4.
Have a look at the FAQ, you need to use the three lines given there. If you select each one, you can copy and paste all three into the console. If the advance button still doesn't appear, try using this in the console:
game.set_task(None, "special")You should only need that one if you tried to build Papa Freak's second cell. That one is currently bugged, and even if you use the line I posted above in the bug report, the bugged task will still be there.
Title: Re: v0.3 Test version (gameplay only)
Post by: Mudpony on Apr 14, 2024, 06:45 AM
Having played this version a bit now, some thoughts on the "tax" from the Slaver's Guild:

1) The amount owed needs to be in the UI somewhere, maybe on the main brothel screen. I had one game over because I was thinking the amount was X, but it was actually 10k higher than that. A simple good on my part, but it is 15 in game days between when you are told the amount and you have to pay it. Furthermore, there's no assurance of how much real time will pass between when you are told the number and when the player will hit the first of the month.

The Brothel Report would seem like a natural fit for this info, though if that route is used, Sill should let the player know the info is there. And maybe she should prod the player about the amount owed as it gets close.

2) The need to build up a lot of money means the threat level increases in the latter half of the month, meaning you either need to have extra security all the time or else do some micromanaging. And as the amounts of money required continue to increase, I can only see this getting worse.

What I'd like to see is a physical location for the guild, that you can visit and opt to pay off a chunk or all of the amount owed early. This could also be added as a new button on the "slave market" window. I'd say it should cost an action point or two to make a payment, due to it being a bit of a hassle for your character, providing a bit of an incentive to not do it daily, but still mitigate the massive up and downs.
Title: Re: v0.3 Test version (gameplay only)
Post by: Calob on Apr 14, 2024, 05:09 PM
Quote from: Mudpony on Apr 14, 2024, 06:45 AM1) The amount owed needs to be in the UI somewhere, maybe on the main brothel screen.

Mouse over your gold total, your tax due and due date should appear there.
Title: Re: v0.3 Test version (gameplay only)
Post by: Mudpony on Apr 15, 2024, 04:58 AM
Quote from: Calob on Apr 14, 2024, 05:09 PM
Quote from: Mudpony on Apr 14, 2024, 06:45 AM1) The amount owed needs to be in the UI somewhere, maybe on the main brothel screen.

Mouse over your gold total, your tax due and due date should appear there.
Thanks for the info. That will make it easier going forward.

The spot isn't ideal, though, considering this is a mechanic that can result in game over. So amended feedback:
That amount owed should be on the main Brothel UI, perhaps on the left side of the screen, rather than shown as a pop up when hovering over gold.
Title: Re: v0.3 Test version (gameplay only)
Post by: Alpha_and_omega on Apr 24, 2024, 01:09 PM
Quote from: Mudpony on Apr 15, 2024, 04:58 AM
Quote from: Calob on Apr 14, 2024, 05:09 PM
Quote from: Mudpony on Apr 14, 2024, 06:45 AM1) The amount owed needs to be in the UI somewhere, maybe on the main brothel screen.

Mouse over your gold total, your tax due and due date should appear there.
Thanks for the info. That will make it easier going forward.

The spot isn't ideal, though, considering this is a mechanic that can result in game over. So amended feedback:
That amount owed should be on the main Brothel UI, perhaps on the left side of the screen, rather than shown as a pop up when hovering over gold.

Instead of always showing the amount, a colour indicator on the current gold could be useful.
White = no taxation (start of game or beginning of month)
Red = current gold < tax to be paid
Green = current gold > tax to be paid


Other subject, the "apple-bug" still exists. Happens when using a healing-apple on a hurt girl. Other food does not seem to cause the bug. The bug was first reported in August 2023, but since it still exists despite some hotfixes in between, I report it again.
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1504, in script
    $ r = counterpart.use_item(it)
  File "game/BKmain.rpy", line 1504, in <module>
    $ r = counterpart.use_item(it)
  File "game/BKgirlclass.rpy", line 1608, in use_item
    changes.add(e.target.capitalize() + ": %s" % plus_text(c))
  File "game/BKfunctions.rpy", line 1323, in plus_text
    nb_txt = str_dec(nb, decimals)
  File "game/BKfunctions.rpy", line 472, in str_dec
    return ((("%." + str(decimals) + "f") % nb).rstrip("0")).rstrip(".")
TypeError: not all arguments converted during string formatting

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

Full traceback:
  File "game/BKmain.rpy", line 1504, in script
    $ r = counterpart.use_item(it)
  File "C:\Program Files (x86)\Games\WoH\BK\BK Game\Brothel_King-0.3t - real\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:\Program Files (x86)\Games\WoH\BK\BK Game\Brothel_King-0.3t - real\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 1504, in <module>
    $ r = counterpart.use_item(it)
  File "game/BKgirlclass.rpy", line 1608, in use_item
    changes.add(e.target.capitalize() + ": %s" % plus_text(c))
  File "game/BKfunctions.rpy", line 1323, in plus_text
    nb_txt = str_dec(nb, decimals)
  File "game/BKfunctions.rpy", line 472, in str_dec
    return ((("%." + str(decimals) + "f") % nb).rstrip("0")).rstrip(".")
TypeError: not all arguments converted during string formatting

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Wed Apr 24 15:02:05 2024



Quote from: Hermenegild on Aug 13, 2023, 08:20 PMCrash when giving an apple to a girl:
Spoiler
Full traceback:
  File "game/BKmain.rpy", line 1504, in script
    $ r = counterpart.use_item(it)
  File "D:/gry\BrothelKing-0.3/renpy/ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "D:/gry\BrothelKing-0.3/renpy/python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 1504, in <module>
    $ r = counterpart.use_item(it)
  File "game/BKgirlclass.rpy", line 1563, in use_item
    changes.add(e.target.capitalize() + ": %s" % plus_text(c))
  File "game/BKfunctions.rpy", line 1332, in plus_text
    nb_txt = str_dec(nb, decimals)
  File "game/BKfunctions.rpy", line 475, in str_dec
    return ((("%." + str(decimals) + "f") % nb).rstrip("0")).rstrip(".")
TypeError: not all arguments converted during string formatting

While running game code:
  File "game/BKmain.rpy", line 1504, in script
    $ r = counterpart.use_item(it)
  File "game/BKmain.rpy", line 1504, in <module>
    $ r = counterpart.use_item(it)
  File "game/BKgirlclass.rpy", line 1563, in use_item
    changes.add(e.target.capitalize() + ": %s" % plus_text(c))
  File "game/BKfunctions.rpy", line 1332, in plus_text
    nb_txt = str_dec(nb, decimals)
  File "game/BKfunctions.rpy", line 475, in str_dec
    return ((("%." + str(decimals) + "f") % nb).rstrip("0")).rstrip(".")
TypeError: not all arguments converted during string formatting
[close]

The fix is to roll back, save, edit the str_dec() function in lines 474-475 of BKfunctions.rpy to look like this:
    def str_dec(nb, decimals=2): # Returns a string of either an integer or a float, depending on the nb of decimals available
        format = "%%.%df" % decimals
        return ((format % nb).rstrip("0")).rstrip(".")
reload your game and try again.

[close]
EDIT : The proposed fix from August does not work. I found that the apple item has a different structure than other healing food.
It has "gain" to heal, instead of "instant" heal
                            Item(name = 'Apple', target = 'girl', type = IT_Food, pic = 'Apple.webp', template = True, rank = 1, max_rank = 6, rarity = 1, charges = 1, price = 50, effects = (Effect('change', 'beauty', 5, duration=10), Effect('gain', 'heal', 1, 0.5)), description =  "An apple a day keeps the doctor away."),
                            Item(name = 'Pear', target = 'girl', type = IT_Food, pic = 'Pear.webp', template = True, rank = 1, max_rank = 6, rarity = 1, charges = 1, price = 50, effects = (Effect('change', 'body', 5, duration=10), Effect('instant', 'heal', 1, 0.5)), ),
                            Item(name = 'Peach', target = 'girl', type = IT_Food, pic = 'Peach.webp', template = True, rank = 1, max_rank = 6, rarity = 1, charges = 1, price = 50, effects = (Effect('change', 'charm', 5, duration=10), Effect('instant', 'heal', 1, 0.5)), ),
                            Item(name = 'Grapes', target = 'girl', type = IT_Food, pic = 'Grapes.webp', template = True, rank = 1, max_rank = 6, rarity = 1, charges = 1, price = 50, effects = (Effect('change', 'refinement', 5, duration=10), Effect('instant', 'heal', 1, 0.5)), ),
                            Item(name = 'Sausage', target = 'girl', type = IT_Food, pic = 'Sausage.webp', template = True, rank = 1, max_rank = 6, rarity = 1, charges = 1, price = 75, effects = (Effect('change', 'libido', 5, duration=10), Effect('instant', 'heal', 1, 0.5)), ),
                            Item(name = 'Cheese', target = 'girl', type = IT_Food, pic = 'Cheese.webp', template = True, rank = 1, max_rank = 6, rarity = 1, charges = 1, price = 75, effects = (Effect('change', 'sensitivity', 5, duration=10), Effect('instant', 'heal', 1, 0.5)), ),
                            Item(name = 'Chicken', target = 'girl', type = IT_Food, pic = 'Chicken.webp', template = True, rank = 1, max_rank = 6, rarity = 1, charges = 1, price = 90, effects = (Effect('change', 'obedience', 5, duration=10), Effect('instant', 'heal', 1, 0.5)), ),
I will change the apple-heal to be instant and see if the game continues to crash
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on Apr 24, 2024, 09:31 PM
Quote from: Alpha_and_omega on Apr 24, 2024, 01:09 PM
Quote from: Mudpony on Apr 15, 2024, 04:58 AM
Quote from: Calob on Apr 14, 2024, 05:09 PM
Quote from: Mudpony on Apr 14, 2024, 06:45 AM1) The amount owed needs to be in the UI somewhere, maybe on the main brothel screen.

Mouse over your gold total, your tax due and due date should appear there.
Thanks for the info. That will make it easier going forward.

The spot isn't ideal, though, considering this is a mechanic that can result in game over. So amended feedback:
That amount owed should be on the main Brothel UI, perhaps on the left side of the screen, rather than shown as a pop up when hovering over gold.

Instead of always showing the amount, a colour indicator on the current gold could be useful.
White = no taxation (start of game or beginning of month)
Red = current gold < tax to be paid
Green = current gold > tax to be paid


Other subject, the "apple-bug" still exists. Happens when using a healing-apple on a hurt girl. Other food does not seem to cause the bug. The bug was first reported in August 2023, but since it still exists despite some hotfixes in between, I report it again.
Spoiler
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1504, in script
    $ r = counterpart.use_item(it)
  File "game/BKmain.rpy", line 1504, in <module>
    $ r = counterpart.use_item(it)
  File "game/BKgirlclass.rpy", line 1608, in use_item
    changes.add(e.target.capitalize() + ": %s" % plus_text(c))
  File "game/BKfunctions.rpy", line 1323, in plus_text
    nb_txt = str_dec(nb, decimals)
  File "game/BKfunctions.rpy", line 472, in str_dec
    return ((("%." + str(decimals) + "f") % nb).rstrip("0")).rstrip(".")
TypeError: not all arguments converted during string formatting

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

Full traceback:
  File "game/BKmain.rpy", line 1504, in script
    $ r = counterpart.use_item(it)
  File "C:\Program Files (x86)\Games\WoH\BK\BK Game\Brothel_King-0.3t - real\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:\Program Files (x86)\Games\WoH\BK\BK Game\Brothel_King-0.3t - real\Brothel_King-pc\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 1504, in <module>
    $ r = counterpart.use_item(it)
  File "game/BKgirlclass.rpy", line 1608, in use_item
    changes.add(e.target.capitalize() + ": %s" % plus_text(c))
  File "game/BKfunctions.rpy", line 1323, in plus_text
    nb_txt = str_dec(nb, decimals)
  File "game/BKfunctions.rpy", line 472, in str_dec
    return ((("%." + str(decimals) + "f") % nb).rstrip("0")).rstrip(".")
TypeError: not all arguments converted during string formatting

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Wed Apr 24 15:02:05 2024



Quote from: Hermenegild on Aug 13, 2023, 08:20 PMCrash when giving an apple to a girl:
Spoiler
Full traceback:
  File "game/BKmain.rpy", line 1504, in script
    $ r = counterpart.use_item(it)
  File "D:/gry\BrothelKing-0.3/renpy/ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "D:/gry\BrothelKing-0.3/renpy/python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/BKmain.rpy", line 1504, in <module>
    $ r = counterpart.use_item(it)
  File "game/BKgirlclass.rpy", line 1563, in use_item
    changes.add(e.target.capitalize() + ": %s" % plus_text(c))
  File "game/BKfunctions.rpy", line 1332, in plus_text
    nb_txt = str_dec(nb, decimals)
  File "game/BKfunctions.rpy", line 475, in str_dec
    return ((("%." + str(decimals) + "f") % nb).rstrip("0")).rstrip(".")
TypeError: not all arguments converted during string formatting

While running game code:
  File "game/BKmain.rpy", line 1504, in script
    $ r = counterpart.use_item(it)
  File "game/BKmain.rpy", line 1504, in <module>
    $ r = counterpart.use_item(it)
  File "game/BKgirlclass.rpy", line 1563, in use_item
    changes.add(e.target.capitalize() + ": %s" % plus_text(c))
  File "game/BKfunctions.rpy", line 1332, in plus_text
    nb_txt = str_dec(nb, decimals)
  File "game/BKfunctions.rpy", line 475, in str_dec
    return ((("%." + str(decimals) + "f") % nb).rstrip("0")).rstrip(".")
TypeError: not all arguments converted during string formatting
[close]

The fix is to roll back, save, edit the str_dec() function in lines 474-475 of BKfunctions.rpy to look like this:
    def str_dec(nb, decimals=2): # Returns a string of either an integer or a float, depending on the nb of decimals available
        format = "%%.%df" % decimals
        return ((format % nb).rstrip("0")).rstrip(".")
reload your game and try again.

[close]
EDIT : The proposed fix from August does not work. I found that the apple item has a different structure than other healing food.
It has "gain" to heal, instead of "instant" heal
                            Item(name = 'Apple', target = 'girl', type = IT_Food, pic = 'Apple.webp', template = True, rank = 1, max_rank = 6, rarity = 1, charges = 1, price = 50, effects = (Effect('change', 'beauty', 5, duration=10), Effect('gain', 'heal', 1, 0.5)), description =  "An apple a day keeps the doctor away."),
                            Item(name = 'Pear', target = 'girl', type = IT_Food, pic = 'Pear.webp', template = True, rank = 1, max_rank = 6, rarity = 1, charges = 1, price = 50, effects = (Effect('change', 'body', 5, duration=10), Effect('instant', 'heal', 1, 0.5)), ),
                            Item(name = 'Peach', target = 'girl', type = IT_Food, pic = 'Peach.webp', template = True, rank = 1, max_rank = 6, rarity = 1, charges = 1, price = 50, effects = (Effect('change', 'charm', 5, duration=10), Effect('instant', 'heal', 1, 0.5)), ),
                            Item(name = 'Grapes', target = 'girl', type = IT_Food, pic = 'Grapes.webp', template = True, rank = 1, max_rank = 6, rarity = 1, charges = 1, price = 50, effects = (Effect('change', 'refinement', 5, duration=10), Effect('instant', 'heal', 1, 0.5)), ),
                            Item(name = 'Sausage', target = 'girl', type = IT_Food, pic = 'Sausage.webp', template = True, rank = 1, max_rank = 6, rarity = 1, charges = 1, price = 75, effects = (Effect('change', 'libido', 5, duration=10), Effect('instant', 'heal', 1, 0.5)), ),
                            Item(name = 'Cheese', target = 'girl', type = IT_Food, pic = 'Cheese.webp', template = True, rank = 1, max_rank = 6, rarity = 1, charges = 1, price = 75, effects = (Effect('change', 'sensitivity', 5, duration=10), Effect('instant', 'heal', 1, 0.5)), ),
                            Item(name = 'Chicken', target = 'girl', type = IT_Food, pic = 'Chicken.webp', template = True, rank = 1, max_rank = 6, rarity = 1, charges = 1, price = 90, effects = (Effect('change', 'obedience', 5, duration=10), Effect('instant', 'heal', 1, 0.5)), ),
I will change the apple-heal to be instant and see if the game continues to crash

Good catch, that's probably it.
Title: Re: v0.3 Test version (gameplay only)
Post by: AnalogSquirrel on Apr 26, 2024, 08:11 PM
Not sure if this one's been reported before: had a full brothel and full farm, and swapped a girl from the brothel for a girl at the farm.

The girl in the brothel (who came from the farm) is still getting trained at the farm as per the instructions given to the girl that was added to the farm.  The girl at the farm (that was originally in the brothel) does not appear to be getting trained at all.

The first picture slide at the farm (girl X is in the Y being trained by N {whatever}) seems to have the correct name, but on the following slides, they revert to the girl that went to the brothel.

Changing training instructions at the farm doesn't fix it.

The dual training between the farm and at the brothel still costs all the energy, which tires her out pretty quick.
Title: Re: v0.3 Test version (gameplay only)
Post by: vadi92 on Apr 27, 2024, 05:04 AM
Quote from: AnalogSquirrel on Apr 26, 2024, 08:11 PMNot sure if this one's been reported before: had a full brothel and full farm, and swapped a girl from the brothel for a girl at the farm.

The girl in the brothel (who came from the farm) is still getting trained at the farm as per the instructions given to the girl that was added to the farm.  The girl at the farm (that was originally in the brothel) does not appear to be getting trained at all.

The first picture slide at the farm (girl X is in the Y being trained by N {whatever}) seems to have the correct name, but on the following slides, they revert to the girl that went to the brothel.

Changing training instructions at the farm doesn't fix it.

The dual training between the farm and at the brothel still costs all the energy, which tires her out pretty quick.

It was reported back in mar.
Quote from: Goldo on Mar 22, 2024, 04:59 PM
QuoteApologies if these have already been raised, but I couldn't find it with a search.

There appears to be a bug with swapping girls between the brothel and farm when both are full. Swapping them results in the girl that was moved from the farm to the brothel (Girl 1) showing up in the end of night report doing whatever she was last assigned to do in the farm as well as whatever she was assigned to do in the brothel, and the girl that was moved from the brothel to the farm (Girl 2) is not mentioned at all. If you look at the Farm Training Menu for the Girl 2, her name is in the title but Girl 1 is in the menu itself. I think something is going wrong with farm.programs, but I can't work out what. I tested this without any mods, but with some personal tweaks. I didn't touch the farm system, so you should be able to reproduce it. If not, apologies in advance.
Good find, I can confirm this is a bug. You can fix it by removing this line:
Code Select Expand
$ farm.change_program(girl, prog)In BKevents.rpy around line 3703.
Title: Re: v0.3 Test version (gameplay only)
Post by: neronero on Apr 30, 2024, 02:17 PM
Issue with the prefer_original_girls (https://henthighschool.net/brothel-king/resources-trait-king-mod/msg5531/#msg5531) setting
Title: Re: v0.3 Test version (gameplay only)
Post by: Hentai--sama on Apr 30, 2024, 06:07 PM
Not sure where i should post this since head hunter has no extra thread but head hunter doesn´t work for specific girls in v0.3.
Title: Re: v0.3 Test version (gameplay only)
Post by: neronero on Apr 30, 2024, 08:56 PM
Quote from: Hentai--sama on Apr 30, 2024, 06:07 PMNot sure where i should post this since head hunter has no extra thread but head hunter doesn´t work for specific girls in v0.3.
What girls specifically? This thread (https://henthighschool.net/brothel-king/resources-index-of-mods-utilities-and-useful-links/) is probably the best place for issues/questions about mods that don't have dedicated threads.
Title: Re: v0.3 Test version (gameplay only)
Post by: Hentai--sama on Apr 30, 2024, 09:37 PM
All of them the specific girl function doesn´t work at all for me
Title: Re: v0.3 Test version (gameplay only)
Post by: Goldo on May 02, 2024, 09:11 AM
Hi, please don't report mod-related issue in this thread, use the mod's thread instead. It's hard enough keeping track of issues with the actual game. Thanks.
Title: Re: v0.3 Test version (gameplay only)
Post by: turbotator on May 05, 2024, 08:33 PM
Hi I might be blind, but I don't see the option to remap key bindings. (P isn't opening Postings for me)
Title: Re: v0.3 Test version (gameplay only)
Post by: vadi92 on May 06, 2024, 02:49 PM
Quote from: turbotator on May 05, 2024, 08:33 PMHi I might be blind, but I don't see the option to remap key bindings. (P isn't opening Postings for me)

Because it's the letter "t" for posting. Btw you can change the key bindings in the BKscreens.rpy (around line ~5229). Just search for the shortcuts.