4.60 star(s) 56 Votes

czertik

Active Member
Apr 25, 2018
822
263
got this error when blacmailing my cousing after i cathed her striping and demanded kiss and after telling i want more

Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 8978, in script call
    call talk_person(picked_option) from _call_talk_person
  File "game/script.rpy", line 9095, in script call
    $ _return.call_action(the_person)
  File "game/game_roles/role_cousin.rpy", line 245, in script call
    call cousin_blackmail_list(the_person) from _call_cousin_blackmail_list_1
  File "game/game_roles/role_cousin.rpy", line 442, in script call
    call fuck_person(the_person, start_position = kissing, start_object = mc.location.objects_with_trait("Stand"), position_locked = True) from _call_fuck_person_24
  File "game/Mods/Core/bugfix_sexmechanic_mod.rpy", line 223, in script call
    call pick_object_enhanced(the_person, position_choice, forced_object = start_object) from _call_pick_object_bugfix
  File "game/Mods/Core/bugfix_sexmechanic_mod.rpy", line 409, in script
    $ the_person.add_situational_slut("sex_object", picked_object.sluttiness_modifier, the_position.verbing + " on a " + picked_object.name)
  File "game/Mods/Core/bugfix_sexmechanic_mod.rpy", line 409, in <module>
    $ the_person.add_situational_slut("sex_object", picked_object.sluttiness_modifier, the_position.verbing + " on a " + picked_object.name)
AttributeError: 'RevertableList' object has no attribute 'sluttiness_modifier'

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

Full traceback:
  File "game/script.rpy", line 8978, in script call
    call talk_person(picked_option) from _call_talk_person
  File "game/script.rpy", line 9095, in script call
    $ _return.call_action(the_person)
  File "game/game_roles/role_cousin.rpy", line 245, in script call
    call cousin_blackmail_list(the_person) from _call_cousin_blackmail_list_1
  File "game/game_roles/role_cousin.rpy", line 442, in script call
    call fuck_person(the_person, start_position = kissing, start_object = mc.location.objects_with_trait("Stand"), position_locked = True) from _call_fuck_person_24
  File "game/Mods/Core/bugfix_sexmechanic_mod.rpy", line 223, in script call
    call pick_object_enhanced(the_person, position_choice, forced_object = start_object) from _call_pick_object_bugfix
  File "game/Mods/Core/bugfix_sexmechanic_mod.rpy", line 409, in script
    $ the_person.add_situational_slut("sex_object", picked_object.sluttiness_modifier, the_position.verbing + " on a " + picked_object.name)
  File "D:\burn-hry\192 Game Keygens\35 Hentai Games\Lab_Rats_2-v0.25.1-pc\renpy\ast.py", line 914, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "D:\burn-hry\192 Game Keygens\35 Hentai Games\Lab_Rats_2-v0.25.1-pc\renpy\python.py", line 2028, in py_exec_bytecode
    exec bytecode in globals, locals
  File "game/Mods/Core/bugfix_sexmechanic_mod.rpy", line 409, in <module>
    $ the_person.add_situational_slut("sex_object", picked_object.sluttiness_modifier, the_position.verbing + " on a " + picked_object.name)
AttributeError: 'RevertableList' object has no attribute 'sluttiness_modifier'

Windows-8-6.2.9200
Ren'Py 7.3.5.606
Lab Rats 2 - Down to Business v0.25.1
Fri Mar 06 22:28:06 2020
 

czertik

Active Member
Apr 25, 2018
822
263
I've added a hotfix to the mod that should resolve issue 0 - SB_code.
The traceback1 is a result of a bug in the original VREN code, i've hotfixed the bugfix branch for v0.25.1 to resolve that.
you look like very talented coder, did you considered joining vren and fusing you mod oficialy into basic code ? game wuzh your mod us much more fun to play, i especialy love that sex shop owner story and your chilhood friend which will become hr manager, it makes game way less dull.
 
  • Like
Reactions: Tristim

DaMatt

Member
Feb 6, 2018
152
83
I don't know if somebody found this already. If you get a stat perk before you maxed it out (e.g. Starbuck Vaginal Bonus), you can't raise this stat to 9 ( 8 normal + 1 perk).

I added:
Python:
        def get_stat_perk_score(self, stat):
            score = 0
            for perk in self.stat_perks:
                score += getattr(self.stat_perks[perk], stat)
            return score
to class Perks in Perks.rpy and since I'm still on 0.25.1 and 0.26.1 will be out soon I only did a quick hack in script.rpy, lines 6458 ff:
Python:
                    hbox:
                        xalign 0.5
                        text "Stamina: " + str(mc.max_energy) + "/" +str(mc.max_energy_cap) style "menu_text_style" xalign 0.5 yalign 0.5
                        textbutton "+10" style "textbutton_style" text_style "textbutton_text_style" xalign 0.5 action Function(mc.improve_sex_skill, "stam") sensitive mc.free_sex_points > 0 and mc.max_energy < mc.max_energy_cap yanchor 0.5 yalign 0.5
                    hbox:
                        xalign 0.5
                        text "Foreplay: " + str(mc.sex_skills["Foreplay"]) + "/" + str(mc.max_sex_skills) style "menu_text_style" xalign 0.5 yalign 0.5
                        textbutton "+1" style "textbutton_style" text_style "textbutton_text_style" xalign 0.5 action Function(mc.improve_sex_skill, "Foreplay") sensitive mc.free_sex_points > 0 and mc.sex_skills["Foreplay"] - perk_system.get_stat_perk_score("foreplay_bonus") < mc.max_sex_skills yanchor 0.5 yalign 0.5
                    hbox:
                        xalign 0.5
                        text "Oral: " + str(mc.sex_skills["Oral"]) + "/" + str(mc.max_sex_skills) style "menu_text_style" xalign 0.5 yalign 0.5
                        textbutton "+1" style "textbutton_style" text_style "textbutton_text_style" xalign 0.5 action Function(mc.improve_sex_skill, "Oral") sensitive mc.free_sex_points > 0 and mc.sex_skills["Oral"] - perk_system.get_stat_perk_score("oral_bonus") < mc.max_sex_skills yanchor 0.5 yalign 0.5
                    hbox:
                        xalign 0.5
                        text "Vaginal: " + str(mc.sex_skills["Vaginal"]) + "/" + str(mc.max_sex_skills) style "menu_text_style" xalign 0.5 yalign 0.5
                        textbutton "+1" style "textbutton_style" text_style "textbutton_text_style" xalign 0.5 action Function(mc.improve_sex_skill, "Vaginal") sensitive mc.free_sex_points > 0 and mc.sex_skills["Vaginal"] - perk_system.get_stat_perk_score("vaginal_bonus")<mc.max_sex_skills yanchor 0.5 yalign 0.5
                    hbox:
                        xalign 0.5
                        text "Anal: " + str(mc.sex_skills["Anal"]) + "/" + str(mc.max_sex_skills) style "menu_text_style" xalign 0.5 yalign 0.5
                        textbutton "+1" style "textbutton_style" text_style "textbutton_text_style" xalign 0.5 action Function(mc.improve_sex_skill, "Anal") sensitive mc.free_sex_points > 0 and mc.sex_skills["Anal"] - perk_system.get_stat_perk_score("anal_bonus") < mc.max_sex_skills yanchor 0.5 yalign 0.5
Cheers
Matt
 
  • Like
Reactions: czertik

DaMatt

Member
Feb 6, 2018
152
83
One for the bugfix:
plan_fuck_date_action is used twice, once in roles.rpy and once in role_affair.rpy

This prevents me from saving (pickle fails).

I changed it in role_affair.rpy, line 31 and 83:
Python:
31:    def plan_fuck_date(the_person):
 
83:            $ plan_fuck_date(the_person)

<edit>
A suggestion for the bugfix:
If you like to see the person info screen when you hover over the girls, change lines 378, 379 in screens.rpy to:
Python:
                                        hovered [Function(renpy.show_screen, "person_info_ui", item.return_value), Function(show_menu_person, item)]
                                        unhovered [Function(renpy.hide, "person_info_ui"), Function(renpy.scene, "Active")]
</edit>

Cheers
Matt
 
Last edited:
  • Like
Reactions: Tristim

DaMatt

Member
Feb 6, 2018
152
83
Another one for the bugfix:
Person.has_taboo in script.rpy is broken. Lines 2242 ff should be:
Python:
        def has_taboo(self, the_taboos):
            if the_taboos is None:
                return False

            if isinstance(the_taboos, basestring):
                the_taboos = [the_taboos]

            for a_taboo in the_taboos: #We also handle lists, if we want to check if someone has _any_ of several taboos at once
                if a_taboo not in self.broken_taboos:
                    return True
            return False
I don't know if I have the actual mod version. In my bugfix_sexmechanic_mod.rpy the taboo handling was missing. I copied a few lines from the vanilla function to lines 240ff:
Python:
                    if skip_intro:
                        pass
                    elif first_round:
                        $ the_person.draw_person() #Draw her standing until we pick a new position
                        if the_person.has_taboo(position_choice.associated_taboo) and not ignore_taboo:
                            $ position_choice.call_taboo_break(the_person, mc.location, object_choice)
                            $ the_person.break_taboo(position_choice.associated_taboo)
                        else:
                            $ position_choice.call_intro(the_person, mc.location, object_choice)
                    else:
                        $ the_person.change_arousal(-5) #Changing position lowers your arousal slightly
                        $ mc.change_arousal(-5)
                        if the_person.has_taboo(position_choice.associated_taboo) and not ignore_taboo:
                            $ position_choice.call_taboo_break(the_person, mc.location, object_choice)
                            $ the_person.break_taboo(position_choice.associated_taboo)
                        else:
                            $ position_choice.call_transition(None, the_person, mc.location, object_choice)
Cheers
Matt

<edit>
I forgot the 3rd break_taboo in bugfix_sexmechanic_mod.rpy (line 282 ff after applying the first change):
Python:
        elif isinstance(round_choice, Position): #The only non-strings on the list are positions we are changing to
            call check_position_willingness_bugfix(the_person, round_choice) from _call_check_position_willingness_bugfix_1
            if _return:
                if the_person.has_taboo(position_choice.associated_taboo) and not ignore_taboo:
                    $ position_choice.call_taboo_break(the_person, mc.location, object_choice)
                    $ the_person.break_taboo(position_choice.associated_taboo)
                else:
                    $ position_choice.call_transition(round_choice, the_person, mc.location, object_choice)
                $ position_choice = round_choice

            else: #If she wasn't willing we keep going with what we were doing, so just loop around.
                pass

Bugfix in script.rpy, line 5303 (the last 'a' in has_family_taboo is missing):
Python:
            elif self.skill_tag == "Vaginal" and the_person.has_family_taboo():
</edit>
 
Last edited:
  • Like
Reactions: Tristim

LZ_Starbuck

Member
Mar 25, 2019
189
337
I don't know if somebody found this already. If you get a stat perk before you maxed it out (e.g. Starbuck Vaginal Bonus), you can't raise this stat to 9 ( 8 normal + 1 perk).

I added:
Python:
        def get_stat_perk_score(self, stat):
            score = 0
            for perk in self.stat_perks:
                score += getattr(self.stat_perks[perk], stat)
            return score
to class Perks in Perks.rpy and since I'm still on 0.25.1 and 0.26.1 will be out soon I only did a quick hack in script.rpy, lines 6458 ff:
Python:
                    hbox:
                        xalign 0.5
                        text "Stamina: " + str(mc.max_energy) + "/" +str(mc.max_energy_cap) style "menu_text_style" xalign 0.5 yalign 0.5
                        textbutton "+10" style "textbutton_style" text_style "textbutton_text_style" xalign 0.5 action Function(mc.improve_sex_skill, "stam") sensitive mc.free_sex_points > 0 and mc.max_energy < mc.max_energy_cap yanchor 0.5 yalign 0.5
                    hbox:
                        xalign 0.5
                        text "Foreplay: " + str(mc.sex_skills["Foreplay"]) + "/" + str(mc.max_sex_skills) style "menu_text_style" xalign 0.5 yalign 0.5
                        textbutton "+1" style "textbutton_style" text_style "textbutton_text_style" xalign 0.5 action Function(mc.improve_sex_skill, "Foreplay") sensitive mc.free_sex_points > 0 and mc.sex_skills["Foreplay"] - perk_system.get_stat_perk_score("foreplay_bonus") < mc.max_sex_skills yanchor 0.5 yalign 0.5
                    hbox:
                        xalign 0.5
                        text "Oral: " + str(mc.sex_skills["Oral"]) + "/" + str(mc.max_sex_skills) style "menu_text_style" xalign 0.5 yalign 0.5
                        textbutton "+1" style "textbutton_style" text_style "textbutton_text_style" xalign 0.5 action Function(mc.improve_sex_skill, "Oral") sensitive mc.free_sex_points > 0 and mc.sex_skills["Oral"] - perk_system.get_stat_perk_score("oral_bonus") < mc.max_sex_skills yanchor 0.5 yalign 0.5
                    hbox:
                        xalign 0.5
                        text "Vaginal: " + str(mc.sex_skills["Vaginal"]) + "/" + str(mc.max_sex_skills) style "menu_text_style" xalign 0.5 yalign 0.5
                        textbutton "+1" style "textbutton_style" text_style "textbutton_text_style" xalign 0.5 action Function(mc.improve_sex_skill, "Vaginal") sensitive mc.free_sex_points > 0 and mc.sex_skills["Vaginal"] - perk_system.get_stat_perk_score("vaginal_bonus")<mc.max_sex_skills yanchor 0.5 yalign 0.5
                    hbox:
                        xalign 0.5
                        text "Anal: " + str(mc.sex_skills["Anal"]) + "/" + str(mc.max_sex_skills) style "menu_text_style" xalign 0.5 yalign 0.5
                        textbutton "+1" style "textbutton_style" text_style "textbutton_text_style" xalign 0.5 action Function(mc.improve_sex_skill, "Anal") sensitive mc.free_sex_points > 0 and mc.sex_skills["Anal"] - perk_system.get_stat_perk_score("anal_bonus") < mc.max_sex_skills yanchor 0.5 yalign 0.5
Cheers
Matt
This was intentional. IF you finish Starbuck's storyline, you get +1 max sex skills, so eventually you can get 9 to all sex skills regardless of when you do the story sections.
 
  • Like
Reactions: DaMatt

DaMatt

Member
Feb 6, 2018
152
83
This was intentional. IF you finish Starbuck's storyline, you get +1 max sex skills, so eventually you can get 9 to all sex skills regardless of when you do the story sections.
Now I understand :)
I didn't know about Starbucks last perk when I was looking at this.

A moment ago I found another little misspelling in cowgirl.rpy, lines 82 & 89: Can you change get_visible_upper() to get_upper_visible()?

Cheers
Matt
 
  • Like
Reactions: Tristim

unashamedcoomer

New Member
Jun 17, 2017
11
2
Getting this error with a fresh 26.1 install upon trying to launch the game, and had a similar issue related to memory before as well, in 25.1 that would occur during gameplay while trying to save. Anyone know what's causing the problem?


You don't have permission to view the spoiler content. Log in or register now.
 
Last edited:

DaMatt

Member
Feb 6, 2018
152
83
Getting this error with a fresh 26.1 install upon trying to launch the game, and had a similar issue related to memory before as well, in 25.1 that would occur during gameplay while trying to save. Anyone know what's causing the problem?

I'm sorry, but an uncaught exception occurred.

After initialization, but before game start.
error: Out of memory

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

Full traceback:
File "E:\Private\Games\Lab_Rats_2-v0.26.1-pc\renpy\bootstrap.py", line 316, in bootstrap
renpy.main.main()

.
.
.

File "E:\Private\Games\Lab_Rats_2-v0.26.1-pc\renpy\display\pgrender.py", line 118, in surface
surf = Surface((width + 4, height + 4), 0, sample)
File "src/pygame_sdl2/surface.pyx", line 164, in pygame_sdl2.surface.Surface.__init__
error: Out of memory

Windows-8-6.2.9200
Ren'Py 7.3.5.606
Lab Rats 2 - Down to Business v0.26.1
Sun Mar 08 22:00:36 2020
Uhhh, just renpy system files in traceback :(.
So no real idea, but I have a guess. Look into the saves subfolder for a file starting with _reload. This file may cause an error before the game starts. Delete it and try again. Oh, it also needs to be deleted in your user folder
c:\users\<YourUserName>\AppData\Roaming\RenPy\LR_2_Proto-1493018508.

Hope this helps.

Cheers
Matt
 

unashamedcoomer

New Member
Jun 17, 2017
11
2
Uhhh, just renpy system files in traceback :(.
So no real idea, but I have a guess. Look into the saves subfolder for a file starting with _reload. This file may cause an error before the game starts. Delete it and try again. Oh, it also needs to be deleted in your user folder
c:\users\<YourUserName>\AppData\Roaming\RenPy\LR_2_Proto-1493018508.

Hope this helps.

Cheers
Matt
Sorry, did I submit the wrong error message? I am new to this, but I want to help the development of the game / mod however I can. I really appreciate the help, and your suggestions appear to have resolved the issue. Thank you!
 

partanen

Selectively Active Member
Uploader
Donor
Sep 13, 2017
2,012
13,723
Sorry, did I submit the wrong error message? I am new to this, but I want to help the development of the game / mod however I can. I really appreciate the help, and your suggestions appear to have resolved the issue. Thank you!
Use Spoiler when you 'Post' Error Report to avoid a Text Wall (as you see it's a lo-oo-ng Post. So imagine how long one page will be after a few Error Reports):
Firefox_Screenshot_2020-03-09T02-48-27.708Z.png
Firefox_Screenshot_2020-03-09T02-48-22.327Z.png
And then Copy Paste error report between [SPOLER] and [/SPIOLER] (misspelled on purpose to avoid actual Spoiler...).

Or: 1583722603761.png and then choose that Traceback.txt -file from your Lab Rats 2 - Folder.

Also an excellent way to reduce the Threads clogging up is to avoid "Thank You" -Posts. There's Reactions to show appreciation (or lack of it). Just click
F95 Like instead of Thank You Post.png and choose what Reaction is closest to what you think of that Post. 'Face Palming' all Posts not recommended );D..
 
Last edited:
  • Like
Reactions: unashamedcoomer

DaMatt

Member
Feb 6, 2018
152
83
Sorry, did I submit the wrong error message? I am new to this, but I want to help the development of the game / mod however I can. I really appreciate the help, and your suggestions appear to have resolved the issue. Thank you!
No, I believe it was the right error message. The absence of game files in the trace log lead me to "Maybe it is a corrupt or old auto reload file". So no mistake, but being astonished about seeing only renpy system files.

And yes Spoiler-tags are great for posting logs ;)

Cheers
Matt
 
  • Like
Reactions: unashamedcoomer

Sihn8

Member
Dec 26, 2017
179
369
You don't have permission to view the spoiler content. Log in or register now.



fresh install of 26.1 with the 26 master. unable to properly launch game as this code appears before even main menu.
 

Tristim

Member
Modder
Donor
Nov 12, 2018
314
1,205
You don't have permission to view the spoiler content. Log in or register now.



fresh install of 26.1 with the 26 master. unable to properly launch game as this code appears before even main menu.
Use beta branches for 26.1 (new parameters were added to the positions in v26), masters are on v0.25.
 

Sihn8

Member
Dec 26, 2017
179
369
You don't have permission to view the spoiler content. Log in or register now.

fixed first issue by downloading new branch. cannot load any saves. due to current bug. also if i attempt to load a save i have in a strip club event it says "downtown bar actions" instead of "machinery room actions"
 
4.60 star(s) 56 Votes