I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 259, in script call
call talk_person(picked_option) from _call_talk_person
File "game/script.rpy", line 376, in script call
$ _return.call_action(the_person)
File "game/game_roles/role_stripper.rpy", line 11, in script
if the_person.has_role(cousing_role):
File "game/game_roles/role_stripper.rpy", line 11, in <module>
if the_person.has_role(cousing_role):
NameError: name 'cousing_role' is not defined
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 259, in script call
call talk_person(picked_option) from _call_talk_person
File "game/script.rpy", line 376, in script call
$ _return.call_action(the_person)
File "game/game_roles/role_stripper.rpy", line 11, in script
if the_person.has_role(cousing_role):
File "renpy/ast.py", line 1893, in execute
if renpy.python.py_eval(condition):
File "renpy/python.py", line 2266, in py_eval
return py_eval_bytecode(code, globals, locals)
File "renpy/python.py", line 2259, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/game_roles/role_stripper.rpy", line 11, in <module>
if the_person.has_role(cousing_role):
NameError: name 'cousing_role' is not defined
Was it on a new game? I recruited 2 new employees and no problems, could you give more context to the error please?Whenever I try to hire someone new:
Code:I'm sorry, but an uncaught exception occurred. While running game code: File "game/script.rpy", line 262, in script call $ picked_option.call_action() File "game/general_actions/location_actions/business_actions.rpy", line 167, in script python: #Build our list of candidates with our proper recruitment requirements File "game/general_actions/location_actions/business_actions.rpy", line 171, in <module> candidates.append(make_person(mc.business.generate_candidate_requirements())) File "game/helper_functions/random_generation_functions.rpy", line 11, in make_person return_character = create_random_person(**requirement_dict) File "game/helper_functions/random_generation_functions.rpy", line 199, in create_random_person generate_insta = generate_insta, generate_dikdok = generate_dikdok, generate_onlyfans = generate_onlyfans) File "game/major_game_classes/character_related/Person.rpy", line 214, in __init__ self.sex_skills["Anal"] = sex_list[3] #The girls skill at different positions that involve anal sex. IndexError: list index out of range -- Full Traceback ------------------------------------------------------------ Full traceback: File "game/script.rpy", line 262, in script call $ picked_option.call_action() File "game/general_actions/location_actions/business_actions.rpy", line 167, in script python: #Build our list of candidates with our proper recruitment requirements File "renpy/ast.py", line 923, in execute renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store) File "renpy/python.py", line 2235, in py_exec_bytecode exec(bytecode, globals, locals) File "game/general_actions/location_actions/business_actions.rpy", line 171, in <module> candidates.append(make_person(mc.business.generate_candidate_requirements())) File "game/helper_functions/random_generation_functions.rpy", line 11, in make_person return_character = create_random_person(**requirement_dict) File "game/helper_functions/random_generation_functions.rpy", line 199, in create_random_person generate_insta = generate_insta, generate_dikdok = generate_dikdok, generate_onlyfans = generate_onlyfans) File "game/major_game_classes/character_related/Person.rpy", line 214, in __init__ self.sex_skills["Anal"] = sex_list[3] #The girls skill at different positions that involve anal sex. File "renpy/python.py", line 992, in __getitem__ rv = list.__getitem__(self, index) IndexError: list index out of range Windows-10-10.0.19041 Ren'Py 7.4.8.1895 Lab Rats 2 - Down to Business v0.49.1 Tue Feb 8 16:41:21 2022
Yes, on a new game. It seems more people have the same problem. Not sure what triggers it if some people like you don't.Was it on a new game? I recruited 2 new employees and no problems, could you give more context to the error please?
Go to line 11 in "game/game_roles/role_stripper.rpy", replace cousing_role by cousin_role . For safety do a search and replace to find any other same occurence.private dance error:
Code:I'm sorry, but an uncaught exception occurred. While running game code: File "game/script.rpy", line 259, in script call call talk_person(picked_option) from _call_talk_person File "game/script.rpy", line 376, in script call $ _return.call_action(the_person) File "game/game_roles/role_stripper.rpy", line 11, in script if the_person.has_role(cousing_role): File "game/game_roles/role_stripper.rpy", line 11, in <module> if the_person.has_role(cousing_role): NameError: name 'cousing_role' is not defined -- Full Traceback ------------------------------------------------------------ Full traceback: File "game/script.rpy", line 259, in script call call talk_person(picked_option) from _call_talk_person File "game/script.rpy", line 376, in script call $ _return.call_action(the_person) File "game/game_roles/role_stripper.rpy", line 11, in script if the_person.has_role(cousing_role): File "renpy/ast.py", line 1893, in execute if renpy.python.py_eval(condition): File "renpy/python.py", line 2266, in py_eval return py_eval_bytecode(code, globals, locals) File "renpy/python.py", line 2259, in py_eval_bytecode return eval(bytecode, globals, locals) File "game/game_roles/role_stripper.rpy", line 11, in <module> if the_person.has_role(cousing_role): NameError: name 'cousing_role' is not defined
You should be able to workaround by deactivating the business policy for the sex stats increase.Whenever I try to hire someone new:
candidate_dict["sex_array"] = [renpy.random.randint(1,stat_cap),renpy.random.randint(1,stat_cap),renpy.random.randint(1,stat_cap),renpy.random.randint(1,stat_cap)]
Adding that fourth ,renpy.random.randint(1,stat_cap) to the end of the line seems to have fixed my issues. thanksYou should be able to workaround by deactivating the business policy for the sex stats increase.
Or backup your existing Business.rpy and copy the one from attached zip to dir
game\major_game_classes\business_related
Fix was missing element in array in Business.rpy:855
HTHPython:candidate_dict["sex_array"] = [renpy.random.randint(1,stat_cap),renpy.random.randint(1,stat_cap),renpy.random.randint(1,stat_cap),renpy.random.randint(1,stat_cap)]
This is more of a game logic issue... different ways to solve...has error when try to hire someone yonger than 20
You don't have permission to view the spoiler content. Log in or register now.
# candidate_dict["age_floor"] = candidate_dict.get("age_floor", 18) + 10
candidate_dict["age_floor"] = candidate_dict.get("age_floor", 18)
Please take this nightmare down. we all want to sleep tonight lol.
Thanks, this helpedYou should be able to workaround by deactivating the business policy for the sex stats increase.
Or backup your existing Business.rpy and copy the one from attached zip to dir
game\major_game_classes\business_related
Fix was missing element in array in Business.rpy:855
HTHPython:candidate_dict["sex_array"] = [renpy.random.randint(1,stat_cap),renpy.random.randint(1,stat_cap),renpy.random.randint(1,stat_cap),renpy.random.randint(1,stat_cap)]
Everytime this insane dev puts in more broken and unnecessary code each update. View attachment 1642282