News:

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

Former www.henthighschool.com

[Resources] Trait King mod

Started by neronero, May 16, 2022, 08:26 PM

Previous topic - Next topic

neroneroTopic starter

Quote from: ihurgi1 on Nov 06, 2022, 05:15 AMI'm sorry, but an uncaught exception occurred.

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

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  File "renpy/ast.py", line 928, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "renpy/python.py", line 2245, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
    ui.interact()
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "renpy/display/core.py", line 3325, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, **kwargs)
  File "renpy/display/core.py", line 4025, in interact_core
    renpy.audio.audio.periodic()
  File "renpy/audio/audio.py", line 1162, in periodic
    raise_(exc[0], exc[1], exc[2])
  File "renpy/audio/audio.py", line 1140, in periodic_thread_main
    periodic_pass()
  File "renpy/audio/audio.py", line 1082, in periodic_pass
    c.periodic()
  File "renpy/audio/audio.py", line 518, in periodic
    topf = load(filename)
  File "renpy/audio/audio.py", line 69, in load
    rv = renpy.loader.load(fn)
  File "renpy/loader.py", line 798, in load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'mods/Trait King/title.webm'.

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Brothel King 0.2 v220711
Sat Nov  5 23:13:51 2022

I played the mod for the first time, and when I hovered over the mod in the mod menu, this error showed up
All the files in the .zip need to be extracted into the following places:

game/Mods/Trait King/Trait King.rpy
game/Mods/Trait King/title.webm
game/TKevents.rpy

My Girl Packs: [ link ] - Trait King mod: [ link ]

ihurgi1


neroneroTopic starter

No, not like that  ;D

Your files are currently in these folders:

Brothel_King-pc/ game/Mods/ game/Mods/ Trait King/Trait King.rpy
Brothel_King-pc/ game/Mods/ game/Mods/ Trait King/title.webm
Brothel_King-pc/ game/Mods/ game/ TKevents.rpy

They should be over here:

Brothel_King-pc/ game/Mods/ Trait King/Trait King.rpy
Brothel_King-pc/ game/Mods/ Trait King/title.webm
Brothel_King-pc/ game/ TKevents.rpy
My Girl Packs: [ link ] - Trait King mod: [ link ]

ihurgi1

O SHIT THANK YOU SO MUCH

vadi92

#34
For the 0.3 version of the game you need to update this mod Nero. As it's just throwing errors for the event's.

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKintro.rpy", line 36, in script call
    call init_game() from _call_init_game_1
  File "game/BKstart.rpy", line 714, in script
    $ game.start_mods()
  File "game/BKstart.rpy", line 714, in <module>
    $ game.start_mods()
  File "game/BKclasses.rpy", line 195, in start_mods
    self.activate_mod(mod)
  File "game/BKclasses.rpy", line 250, in activate_mod
    renpy.call_in_new_context(mod.init_label) # Suggested fix by SometimesIsNotEnough
  File "game/Mods/Trait King/Trait King.rpy", line 371, in script call
    python:
  File "game/Mods/Trait King/Trait King.rpy", line 371, in script call
    python:
ScriptError: could not find label 'traitking_holidays'.

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

Full traceback:
  File "game/BKintro.rpy", line 36, in script call
    call init_game() from _call_init_game_1
  File "game/BKstart.rpy", line 714, in script
    $ game.start_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/BKstart.rpy", line 714, in <module>
    $ game.start_mods()
  File "game/BKclasses.rpy", line 195, in start_mods
    self.activate_mod(mod)
  File "game/BKclasses.rpy", line 250, in activate_mod
    renpy.call_in_new_context(mod.init_label) # Suggested fix by SometimesIsNotEnough
  File "D:\Games\Brothel_King-pc\renpy\game.py", line 353, in call_in_new_context
    return renpy.execution.run_context(False)
  File "D:\Games\Brothel_King-pc\renpy\execution.py", line 953, in run_context
    context.run()
  File "game/Mods/Trait King/Trait King.rpy", line 371, in script call
    python:
  File "game/Mods/Trait King/Trait King.rpy", line 371, in script call
    python:
  File "D:\Games\Brothel_King-pc\renpy\script.py", line 1013, in lookup
    raise ScriptError("could not find label '%s'." % str(original))
ScriptError: could not find label 'traitking_holidays'.

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230721
Sat Jul 22 08:06:45 2023

Edit: Or not i was the stupid one. (Forgot to copy the events rpy.

vadi92

#35
I know it's not your fault but for both this and your Friends and Foes mod the background will not show up in 0.3.

https://imgur.com/a/AmTueSo

neroneroTopic starter

Here's a fixed version for BK0.3 + Friends & foes

This also adds the new vanilla traits to Trait King (likely not compatible with BK 0.2)

I haven't done much BK0.3 testing with mods myself, but I'm relieved to see that it seems to be working fine for the most part.

I'm working towards a real update to Trait King with some new content, but it'll take a while.
My Girl Packs: [ link ] - Trait King mod: [ link ]

22ndgentlemen

Quote from: neronero on Aug 05, 2023, 11:56 AMHere's a fixed version for BK0.3 + Friends & foes

This also adds the new vanilla traits to Trait King (likely not compatible with BK 0.2)

I haven't done much BK0.3 testing with mods myself, but I'm relieved to see that it seems to be working fine for the most part.

I'm working towards a real update to Trait King with some new content, but it'll take a while.

If it helps for testing Trait King, in the 0.3 Gameplay thread, I reported that the perk points were negative for a certain girl.  My post is on page 5.  Once Trait King was removed from the game, it started working correctly even if I started a new game.  IIRC, the girl had 4 traits when I purchased her, but higher powers help me if I can remember the exact traits in play unfortunately...

neroneroTopic starter

#38
Quote from: 22ndgentlemen on Aug 06, 2023, 11:18 AMIf it helps for testing Trait King, in the 0.3 Gameplay thread, I reported that the perk points were negative for a certain girl.  My post is on page 5.  Once Trait King was removed from the game, it started working correctly even if I started a new game.  IIRC, the girl had 4 traits when I purchased her, but higher powers help me if I can remember the exact traits in play unfortunately...
This isn't something I can fix on TK's side, but I think this is how it happens:

Positive traits are connected to perk trees*. Spawning with a certain trait will automatically unlock a certain perk tree, and thereby take away 2 perk-points from the girl.**

If the girl has multiple traits that are tied to the same perk-tree, then for the traits following the first one it'll instead auto-unlock a branch in the already opened perk-tree and take away 1 perk-point from the girl.

Your girl started at level 2 (5 perk points to spend) and must've had a combination of traits tied to 3 different perk-trees, so she started with 3 perk-trees unlocked (-6 perk-points) and 5-6 = -1 perk-points "left" to spend because of that.

___


* I believe all positive traits are tied to a perk tree in vanilla BK. In TK there are some exceptions to that, plus some negative perks that can unlock a perk tree

** There is a "Does she have perk-points to spend?" sanity-check in the code, but it only checks if she has more than 0 points left, so if you only have 1 and spend 2 to unlock a tree, then you end up with -1.
My Girl Packs: [ link ] - Trait King mod: [ link ]

22ndgentlemen

Thanks for looking into that, it makes sense.  While it does not seem to be something that can easily be addressed right now, certainly not until the release of the full stable beta probably, I am confident it will be resolved in the future by one or both parties working together.  Until then, patience is the key.

Don't think I have said it before so, thanks for all your hard work on this mod.

DarkFire

There is an error when there is no girl:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 896, in script call
    $ calendar.play_alarms() # Also triggers "day" conditional events
  File "game/BKevents.rpy", line 735, in script call
    $ ev.play()
  File "game/Mods/Friends and Foes/friends_and_foes.rpy", line 2261, in script
    python:
  File "game/Mods/Friends and Foes/friends_and_foes.rpy", line 2317, in <module>
    if not girl.away:
AttributeError: 'bool' object has no attribute 'away'

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

Full traceback:
  File "game/BKmain.rpy", line 896, in script call
    $ calendar.play_alarms() # Also triggers "day" conditional events
  File "game/BKevents.rpy", line 735, in script call
    $ ev.play()
  File "game/Mods/Friends and Foes/friends_and_foes.rpy", line 2261, 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/Mods/Friends and Foes/friends_and_foes.rpy", line 2317, in <module>
    if not girl.away:
AttributeError: 'bool' object has no attribute 'away'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Tue Aug  8 06:02:47 2023

Smaug

Error with the friends module:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 896, in script call
    $ calendar.play_alarms() # Also triggers "day" conditional events
  File "game/BKevents.rpy", line 735, in script call
    $ ev.play()
  File "game/Mods/Friends and Foes/friends_and_foes.rpy", line 2261, in script
    python:
  File "game/Mods/Friends and Foes/friends_and_foes.rpy", line 2317, in <module>
    if not girl.away:
AttributeError: 'bool' object has no attribute 'away'

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

Full traceback:
  File "game/BKmain.rpy", line 896, in script call
    $ calendar.play_alarms() # Also triggers "day" conditional events
  File "game/BKevents.rpy", line 735, in script call
    $ ev.play()
  File "game/Mods/Friends and Foes/friends_and_foes.rpy", line 2261, in script
    python:
  File "C:\Users\Smaug\Desktop\KORINTHOS\games\Brothel_King-3t\renpy\ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\Smaug\Desktop\KORINTHOS\games\Brothel_King-3t\renpy\python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/Mods/Friends and Foes/friends_and_foes.rpy", line 2317, in <module>
    if not girl.away:
AttributeError: 'bool' object has no attribute 'away'

Windows-10-10.0.19044 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230805
Sun Aug 13 01:55:50 2023

neroneroTopic starter

My Girl Packs: [ link ] - Trait King mod: [ link ]

Smaug


DarkFire

I don't know how this triggered:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 896, in script call
    $ calendar.play_alarms() # Also triggers "day" conditional events
  File "game/BKevents.rpy", line 735, in script call
    $ ev.play()
  File "game/Mods/Friends and Foes/friends_and_foes.rpy", line 2260, in script
    python:
  File "game/Mods/Friends and Foes/friends_and_foes.rpy", line 2281, in <module>
    if not g.obedience_check() and dice(8) == 1 and grumble_escape_counter > cooldown_counter:
  File "game/BKgirlclass.rpy", line 4248, in obedience_check
    target = self.get_obedience_check_target(act, train=False)
  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/BKmain.rpy", line 896, in script call
    $ calendar.play_alarms() # Also triggers "day" conditional events
  File "game/BKevents.rpy", line 735, in script call
    $ ev.play()
  File "game/Mods/Friends and Foes/friends_and_foes.rpy", line 2260, 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/Mods/Friends and Foes/friends_and_foes.rpy", line 2281, in <module>
    if not g.obedience_check() and dice(8) == 1 and grumble_escape_counter > cooldown_counter:
  File "game/BKgirlclass.rpy", line 4248, in obedience_check
    target = self.get_obedience_check_target(act, train=False)
  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:16:55 2023