- May 12, 2020
- 34
- 18
The Dev changed the formatting of several variables in one of the more recent updates, after haven was completed and it looks like they missed updating that instance in the code. if you add an underscore on that line it should fix it.Getting this error before the mission in Haven, when Sam was done with the procedure and went to sleep after drinking beer.
Have used 2 cheats before.
1.) Hair Lenght
2.) Nipple color - had to since there is a bug where after the first skin change mission her nipples did not return to original colour
Code:I'm sorry, but an uncaught exception occurred. While running game code: File "game/scripts/a_quests/a_main_quest_missions/main_quest_05/main_quest_05_b_preperation.rpy", line 561, in script $ player.tired = 80 File "game/scripts/a_quests/a_main_quest_missions/main_quest_05/main_quest_05_b_preperation.rpy", line 561, in <module> $ player.tired = 80 AttributeError: can't set attribute -- Full Traceback ------------------------------------------------------------ Full traceback: File "game/scripts/a_quests/a_main_quest_missions/main_quest_05/main_quest_05_b_preperation.rpy", line 561, in script $ player.tired = 80 File "renpy/ast.py", line 922, in execute renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store) File "renpy/python.py", line 2218, in py_exec_bytecode exec(bytecode, globals, locals) File "game/scripts/a_quests/a_main_quest_missions/main_quest_05/main_quest_05_b_preperation.rpy", line 561, in <module> $ player.tired = 80 File "renpy/python.py", line 875, in do_mutation return method(self, *args, **kwargs) File "renpy/python.py", line 1210, in __setattr__ object.__setattr__(self, attr, value) AttributeError: can't set attribute Windows-8 Ren'Py 7.4.6.1693 The Fixer 0.2.36.00 Wed Apr 6 12:49:26 2022
$ player._tired = 80
instead of
$ player.tired = 80
Edit:
It needs more than that actually, in my testing it still isn't functioning correctly. The change I stated prevents the error but it is setting the tired variable to 77 instead of 80 for some reason, also mood is still being set to 30 even if it's higher.
Edit 2:
The add_drunk function was the problem since it affects tired and mood as well, passing the -100 into it caused some significant swings. This can be fixed by also changing line 562 in the game/scripts/a_quests/a_main_quest_missions/main_quest_05/main_quest_05_b_preperation.rpy file to:
$ player._drunk += -100
Last edited: