4.60 star(s) 65 Votes

Kinzokuno

New Member
Sep 20, 2018
10
3
Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/Mods/Core/Mechanics/Wardrobe_Extensions/extra_character_images.rpy", line 13, in <module>
TypeError: argument of type 'NoneType' is not iterable

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

Full traceback:
  File "Mods/Core/Mechanics/Wardrobe_Extensions/extra_character_images.rpyc", line 9, in script
  File "F:\Games\Untested\Lab_Rats_2_Mod-v0.36.1.11-market\renpy\ast.py", line 914, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "F:\Games\Untested\Lab_Rats_2_Mod-v0.36.1.11-market\renpy\python.py", line 2028, in py_exec_bytecode
    exec bytecode in globals, locals
  File "game/Mods/Core/Mechanics/Wardrobe_Extensions/extra_character_images.rpy", line 13, in <module>
  File "F:\Games\Untested\Lab_Rats_2_Mod-v0.36.1.11-market\renpy\exports.py", line 2255, in file
    return renpy.loader.load(fn)
  File "F:\Games\Untested\Lab_Rats_2_Mod-v0.36.1.11-market\renpy\loader.py", line 566, in load
    if renpy.config.reject_backslash and "\\" in name:
TypeError: argument of type 'NoneType' is not iterable

Windows-8-6.2.9200
Ren'Py 7.3.5.606
Lab Rats 2 - Down to Business v0.36.1.11
Wed Feb 10 08:58:05 2021
 
  • Like
Reactions: Sky1211

Strec

Active Member
Feb 20, 2018
607
390
Would it be possible you add in your code an update of the main screen so we can directly know the weekday without doing maths? :rolleyes:

I propose to replace :
Friday - Early morning (day 32) for example
by
Friday - Early morning - day 32 (4)
 

hiwarren1

Newbie
Mar 9, 2020
91
39
Has anyone ever had an overlay pop up showing FPS and a powersave/performance toggle? It occurs for only this game--no other Renpy apps...
 

hawkwolf22

Newbie
Jul 23, 2017
40
13
is it possible to add additional policies to the Workplace ones like Mandatory Sex, No Birth Control Rule, Mandatory Impregnation and where you can ask Women When They are Most Fertile I saw it in an Original Pregnancy Mod
 

Kulman

Engaged Member
Sep 28, 2017
2,359
6,284
I know the mod has not yet been updated, but when it comes out, will it be compatible with the save I already have in the currect vanilla version, or would I have to start a new save?
 
Mar 29, 2018
368
397
Can anyone give me a clue how to change (using the console) the relationship status of an npc? I know how to use the console to change the number of kids but relationship alludes me:unsure:.
 

shooter682

Member
Feb 28, 2019
114
89
Can anyone give me a clue how to change (using the console) the relationship status of an npc? I know how to use the console to change the number of kids but relationship alludes me:unsure:.
# How to console - If its activated its SHIFT+O (ESC to close).
# To activate console - edit the following file
# \Lab_Rats_2-v0.xx.0-pc\renpy\common\00console.rpy
# Find this line (around line 108) config.console = False and edit it to True.

# mc. <- You
# the_person. <- The person you are currently interacting with in the game. Its not a name but literally the_person)
# Letters goes in "", numbers without "". Example: mc.int = 6 and the_person.name = "Yolandi"
# Words are case sensitive. Example the_person.relationship = "Single" NOT "single"

mc.name='YourNameHere'
mc.last_name='YourLastNameHere'
mc.business.name='CompanyNameHere'

# mc.money = xx <- This may not be used in the future. It seems to have been removed from the game.
mc.business.funds = xx <- These are your company funds ingame.
mc.business.supply_count = xxxx

mc.charisma = xx
mc.int = xx
mc.focus = xx

mc.hr_skill = xx
mc.market_skill = xx
mc.research_skill = xx
mc.production_skill = xx
mc.supply_skill = xx

mc.sex_skills["Foreplay"] = xx
mc.sex_skills["Oral"] = xx
mc.sex_skills["Vaginal"] = xx
mc.sex_skills["Anal"] = xx

mc.energy
mc.max_energy
mc.arousal
mc.max_arousal

the_person.love = xx
the_person.happiness = xx
the_person.energy
the_person.max_energy
the_person.arousal
the_person.max_arousal
the_person.core_sluttiness = xx (From 0 to 100)
the_person.sluttiness = xx (From 0 to 100)
the_person.obedience = xx (If you're having trouble with tier 3 research, set this to 140 or something.)
the_person.tits = "xx" ("AA", "A", "B", "C", "D", "DD", "DDD", "E", "F", "FF")
the_person.body_type = "xx" ("thin_body", "standard_body", "curvy_body")
the_person.height = x.x (From 0.8 to 1.0 - will take effect once the character is redrawn by the game engine)

the_person.name = "xx"
the_person.last_name = "xx"

the_person.kids = xx
the_person.relationship = "Single"
the_person.age = xx

# Changing titles of a person while keeping color and font formatting:

the_person.set_title("custom title") # e.g "friend", "employee"
the_person.set_possessive_title("their custom title") # e.g "your friend", "your employee"
the_person.set_mc_title("what they call you") # e.g "Boss", "Master", "Friend"

# Someone asked about changing the positions of locations on the map.
# All Room objects have an attribute called map_pos which references their [x, y] position on the map grid.
# e.g the newely added strip_club has a map_pos of [6, 5] meaning 6 on the x- axis from the left and 5 on the y- axis starting from the top.

room.map_pos = [x, y] # This will re- position the location on the map.
room.visible = True # Determines if the location is visible on the map.
room.public = True # If set to False then people will not roam into the location unless specified.
room.formalName = "new name" # Changes the name displayed on the map.

# If a room does not have the sexual positions you would like available it is most likely due to not having the correct objects available.
# You can add any objects to the room by using the add_object function together with a "make object" function.

room.add_object(make_wall()) # Adds a wall that can be leaned up against etc.
room.add_object(make_floor()) # Adds a floor to the room that can be used for sex.
room.add_object(make_bed()) # Adds a bed to the room.
room.add_object(make_window()) # Adds a window to the room.

# NOTE: room needs to be replaced with the variable of the room you want to edit.
# There are a couple of ways to do this. Easiest would be to go into the room and use mc.location which references your current location (room)

mc.location.map_pos = [x, y] # This edits map position of the current room you are in.
mc.location.add_object(make_bed())

list_of_places[0].map_pos = [x, y] # Replacing 0 with another number e.g 10 will reference a different room. You can do list_of_places[0].name or formalName to see which one it is you are editing.
list_of_places[0].add_object(make_bed())

strip_club.map_pos = [x, y] # This uses the variable name that the room is saved to. Names of all the rooms can be found in script.rpy ca. half-way down the label create_test_variables at lines 9150~ to 9500~.

# You can also add actions to a room by appending it.
room.actions.append(sleep_action) # This will allow you to sleep in the room. Adding actions to a room you can basically move the office into your bedroom.

#If your play through is having problems with the start of renovations use the following console command
mc.business.event_triggers_dict["home_improvement_unlocked"]=True
this will start the process so all you will need to do after the command is to check your phone and start.

first command to enter is
long
it will stop renpy from cropping the output (very annoying for long lists)

list_of_traits[#].name
returns the name of the #th trait (production schemes are mechanicaly a trait too), begins at 0 -> list_of_traits[0].name

dir(list_of_traits[0])
returns all the fields of the first trait. selected excerpts with more guess than knowing what they do:

attention - increases serum attention penalty containing this trait when sold to public
duration - all traits are summed up to final serum duration
side_affect_chance - all traits are summed up to determine the randomly assigned trait effect chance when unlocking (mastery reduces that chance)
slots - adds trait slots (duh)

to use these, enter like name:

list_of_traits[0].slots = #
where # is the new number

tip: always use commands without parameters first to see what its set as to get an idea for the usage

list_of_traits[0].slots
displays as

list_of_traits[0].slots
1

generate_daughter(self, force_live_at_home = False, age: int = None, job: JobDefinition = None)

the_person.generate_daughter(True, 19)

and if the girl you want to have a sister with doesn't have a mom npc on the board... just do this

the_person.generate_mother(True, 42)

Thanks Elkrose
 
Last edited:

PopeFranz

New Member
Oct 1, 2020
13
13
The OpenGL error can be fixed by replacing "OpenGL" by "/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL" at line 37 of Lab_Rats_2.app/Contents/Resources/autorun/game/OpenGL/platform/darwin.py.
the only thing I find in the Resources folder is the icon file. Shame, kinda miss this game
 

Darkdude94

New Member
Mar 12, 2020
9
1
# How to console - If its activated its SHIFT+O (ESC to close).
# To activate console - edit the following file
# \Lab_Rats_2-v0.xx.0-pc\renpy\common\00console.rpy
# Find this line (around line 108) config.console = False and edit it to True.

# mc. <- You
# the_person. <- The person you are currently interacting with in the game. Its not a name but literally the_person)
# Letters goes in "", numbers without "". Example: mc.int = 6 and the_person.name = "Yolandi"
# Words are case sensitive. Example the_person.relationship = "Single" NOT "single"

mc.name='YourNameHere'
mc.last_name='YourLastNameHere'
mc.business.name='CompanyNameHere'

# mc.money = xx <- This may not be used in the future. It seems to have been removed from the game.
mc.business.funds = xx <- These are your company funds ingame.
mc.business.supply_count = xxxx

mc.charisma = xx
mc.int = xx
mc.focus = xx

mc.hr_skill = xx
mc.market_skill = xx
mc.research_skill = xx
mc.production_skill = xx
mc.supply_skill = xx

mc.sex_skills["Foreplay"] = xx
mc.sex_skills["Oral"] = xx
mc.sex_skills["Vaginal"] = xx
mc.sex_skills["Anal"] = xx

mc.energy
mc.max_energy
mc.arousal
mc.max_arousal

the_person.love = xx
the_person.happiness = xx
the_person.energy
the_person.max_energy
the_person.arousal
the_person.max_arousal
the_person.core_sluttiness = xx (From 0 to 100)
the_person.sluttiness = xx (From 0 to 100)
the_person.obedience = xx (If you're having trouble with tier 3 research, set this to 140 or something.)
the_person.tits = "xx" ("AA", "A", "B", "C", "D", "DD", "DDD", "E", "F", "FF")
the_person.body_type = "xx" ("thin_body", "standard_body", "curvy_body")
the_person.height = x.x (From 0.8 to 1.0 - will take effect once the character is redrawn by the game engine)

the_person.name = "xx"
the_person.last_name = "xx"

the_person.kids = xx
the_person.relationship = "Single"
the_person.age = xx

# Changing titles of a person while keeping color and font formatting:

the_person.set_title("custom title") # e.g "friend", "employee"
the_person.set_possessive_title("their custom title") # e.g "your friend", "your employee"
the_person.set_mc_title("what they call you") # e.g "Boss", "Master", "Friend"

# Someone asked about changing the positions of locations on the map.
# All Room objects have an attribute called map_pos which references their [x, y] position on the map grid.
# e.g the newely added strip_club has a map_pos of [6, 5] meaning 6 on the x- axis from the left and 5 on the y- axis starting from the top.

room.map_pos = [x, y] # This will re- position the location on the map.
room.visible = True # Determines if the location is visible on the map.
room.public = True # If set to False then people will not roam into the location unless specified.
room.formalName = "new name" # Changes the name displayed on the map.

# If a room does not have the sexual positions you would like available it is most likely due to not having the correct objects available.
# You can add any objects to the room by using the add_object function together with a "make object" function.

room.add_object(make_wall()) # Adds a wall that can be leaned up against etc.
room.add_object(make_floor()) # Adds a floor to the room that can be used for sex.
room.add_object(make_bed()) # Adds a bed to the room.
room.add_object(make_window()) # Adds a window to the room.

# NOTE: room needs to be replaced with the variable of the room you want to edit.
# There are a couple of ways to do this. Easiest would be to go into the room and use mc.location which references your current location (room)

mc.location.map_pos = [x, y] # This edits map position of the current room you are in.
mc.location.add_object(make_bed())

list_of_places[0].map_pos = [x, y] # Replacing 0 with another number e.g 10 will reference a different room. You can do list_of_places[0].name or formalName to see which one it is you are editing.
list_of_places[0].add_object(make_bed())

strip_club.map_pos = [x, y] # This uses the variable name that the room is saved to. Names of all the rooms can be found in script.rpy ca. half-way down the label create_test_variables at lines 9150~ to 9500~.

# You can also add actions to a room by appending it.
room.actions.append(sleep_action) # This will allow you to sleep in the room. Adding actions to a room you can basically move the office into your bedroom.
or you can use notepad++ and then to modify it
 
4.60 star(s) 65 Votes