Hello everybody! Found this bug during Friday meeting just before chapter 3, when you pass the rule of giving spankings yourself. Would be very grateful if somebody could help me with this thing. Sorry for my bad English and if I broke any rules
```
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/monday.rpy", line 2003, in script call
call mens_room_afternoon from _call_mens_room_afternoon_4
File "game/monday.rpy", line 1155, in script call
call mens_room_afternoon from _call_mens_room_afternoon_2
File "game/monday.rpy", line 1155, in script call
call mens_room_afternoon from _call_mens_room_afternoon_2
File "game/monday.rpy", line 1155, in script call
call mens_room_afternoon from _call_mens_room_afternoon_2
File "game/monday.rpy", line 1836, in script call
call the_lake from _call_the_lake_6
File "game/monday.rpy", line 1836, in script call
call the_lake from _call_the_lake_6
File "game/monday.rpy", line 1836, in script call
call the_lake from _call_the_lake_6
[Previous line repeated 2 more times]
File "game/monday.rpy", line 2901, in script call
call mens_room_afternoon from _call_mens_room_afternoon_6
File "game/monday.rpy", line 3694, in script call
call mens_room_afternoon from _call_mens_room_afternoon_8
File "game/monday.rpy", line 4595, in script call
call the_lake from _call_the_lake_16
File "game/monday.rpy", line 5078, in script call
call the_lake from _call_the_lake_18
File "game/monday.rpy", line 5269, in script call
call the_lake from _call_the_lake_19
File "game/monday.rpy", line 366, in script call
call mens_room_afternoon from _call_mens_room_afternoon
File "game/monday.rpy", line 4595, in script call
call the_lake from _call_the_lake_16
File "game/monday.rpy", line 1155, in script call
call mens_room_afternoon from _call_mens_room_afternoon_2
File "game/monday.rpy", line 2589, in script call
call reminders from _call_reminders_3
File "game/events.rpy", line 4085, in script
$ renpy.pause(hard=True)
File "game/events.rpy", line 4085, in <module>
$ renpy.pause(hard=True)
File "game/screens custom.rpy", line 1572, in execute
screen board_screen(can_interact = True):
File "game/screens custom.rpy", line 1572, in execute
screen board_screen(can_interact = True):
File "game/screens custom.rpy", line 1598, in execute
use expression ["board_roster","corporal_punishments","public_punishments","uniform_policy","headmaster_privileges","other_rules","sbi"][agenda]
File "game/screens custom.rpy", line 1640, in execute
screen corporal_punishments:
File "game/screens custom.rpy", line 1640, in execute
screen corporal_punishments:
File "game/screens custom.rpy", line 1649, in execute
vbox:
File "game/screens custom.rpy", line 1672, in execute
use to_rule_them_all(rules_to_show, rules_to_show_per_page)
File "game/rules.rpy", line 579, in execute
screen to_rule_them_all(rules_to_show = [], rules_to_show_per_page = [0]):
File "game/rules.rpy", line 579, in execute
screen to_rule_them_all(rules_to_show = [], rules_to_show_per_page = [0]):
File "game/rules.rpy", line 581, in execute
for i in range(rules_to_show_per_page[rule_page-1]):
File "game/rules.rpy", line 581, in <module>
for i in range(rules_to_show_per_page[rule_page-1]):
IndexError: list index out of range
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/monday.rpy", line 2003, in script call
call mens_room_afternoon from _call_mens_room_afternoon_4
File "game/monday.rpy", line 1155, in script call
call mens_room_afternoon from _call_mens_room_afternoon_2
File "game/monday.rpy", line 1155, in script call
call mens_room_afternoon from _call_mens_room_afternoon_2
File "game/monday.rpy", line 1155, in script call
call mens_room_afternoon from _call_mens_room_afternoon_2
File "game/monday.rpy", line 1836, in script call
call the_lake from _call_the_lake_6
File "game/monday.rpy", line 1836, in script call
call the_lake from _call_the_lake_6
File "game/monday.rpy", line 1836, in script call
call the_lake from _call_the_lake_6
[Previous line repeated 2 more times]
File "game/monday.rpy", line 2901, in script call
call mens_room_afternoon from _call_mens_room_afternoon_6
File "game/monday.rpy", line 3694, in script call
call mens_room_afternoon from _call_mens_room_afternoon_8
File "game/monday.rpy", line 4595, in script call
call the_lake from _call_the_lake_16
File "game/monday.rpy", line 5078, in script call
call the_lake from _call_the_lake_18
File "game/monday.rpy", line 5269, in script call
call the_lake from _call_the_lake_19
File "game/monday.rpy", line 366, in script call
call mens_room_afternoon from _call_mens_room_afternoon
File "game/monday.rpy", line 4595, in script call
call the_lake from _call_the_lake_16
File "game/monday.rpy", line 1155, in script call
call mens_room_afternoon from _call_mens_room_afternoon_2
File "game/monday.rpy", line 2589, in script call
call reminders from _call_reminders_3
File "game/events.rpy", line 4085, in script
$ renpy.pause(hard=True)
File "C:\Users\Downloads\TheHeadmaster-0.14.1beta-pc\renpy\ast.py", line 1131, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Users\Downloads\TheHeadmaster-0.14.1beta-pc\renpy\python.py", line 1061, in py_exec_bytecode
exec(bytecode, globals, locals)
File "game/events.rpy", line 4085, in <module>
$ renpy.pause(hard=True)
File "C:\Users\Downloads\TheHeadmaster-0.14.1beta-pc\renpy\exports.py", line 1537, in pause
rv = renpy.ui.interact(mouse='pause', type='pause', roll_forward=roll_forward, pause=delay, pause_modal=modal)
File "C:\Users\Downloads\TheHeadmaster-0.14.1beta-pc\renpy\ui.py", line 299, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "C:\Users\Downloads\TheHeadmaster-0.14.1beta-pc\renpy\display\core.py", line 3377, in interact
repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, pause_modal=pause_modal, **kwargs) # type: ignore
File "C:\Users\Downloads\TheHeadmaster-0.14.1beta-pc\renpy\display\core.py", line 3810, in interact_core
root_widget.visit_all(lambda i : i.per_interact())
File "C:\Users\Downloads\TheHeadmaster-0.14.1beta-pc\renpy\display\core.py", line 582, in visit_all
d.visit_all(callback, seen)
File "C:\Users\Downloads\TheHeadmaster-0.14.1beta-pc\renpy\display\core.py", line 582, in visit_all
d.visit_all(callback, seen)
File "C:\Users\Downloads\TheHeadmaster-0.14.1beta-pc\renpy\display\core.py", line 582, in visit_all
d.visit_all(callback, seen)
File "C:\Users\Downloads\TheHeadmaster-0.14.1beta-pc\renpy\display\screen.py", line 451, in visit_all
callback(self)
File "C:\Users\Downloads\TheHeadmaster-0.14.1beta-pc\renpy\display\core.py", line 3810, in <lambda>
root_widget.visit_all(lambda i : i.per_interact())
File "C:\Users\Downloads\TheHeadmaster-0.14.1beta-pc\renpy\display\screen.py", line 462, in per_interact
self.update()
File "C:\Users\Downloads\TheHeadmaster-0.14.1beta-pc\renpy\display\screen.py", line 653, in update
self.screen.function(**self.scope)
File "game/screens custom.rpy", line 1572, in execute
screen board_screen(can_interact = True):
File "game/screens custom.rpy", line 1572, in execute
screen board_screen(can_interact = True):
File "game/screens custom.rpy", line 1598, in execute
use expression ["board_roster","corporal_punishments","public_punishments","uniform_policy","headmaster_privileges","other_rules","sbi"][agenda]
File "game/screens custom.rpy", line 1640, in execute
screen corporal_punishments:
File "game/screens custom.rpy", line 1640, in execute
screen corporal_punishments:
File "game/screens custom.rpy", line 1649, in execute
vbox:
File "game/screens custom.rpy", line 1672, in execute
use to_rule_them_all(rules_to_show, rules_to_show_per_page)
File "game/rules.rpy", line 579, in execute
screen to_rule_them_all(rules_to_show = [], rules_to_show_per_page = [0]):
File "game/rules.rpy", line 579, in execute
screen to_rule_them_all(rules_to_show = [], rules_to_show_per_page = [0]):
File "game/rules.rpy", line 581, in execute
for i in range(rules_to_show_per_page[rule_page-1]):
File "game/rules.rpy", line 581, in <module>
for i in range(rules_to_show_per_page[rule_page-1]):
File "C:\Users\Downloads\TheHeadmaster-0.14.1beta-pc\renpy\revertable.py", line 217, in __getitem__
rv = list.__getitem__(self, index)
IndexError: list index out of range
Windows-10-10.0.19045 AMD64
Ren'Py 8.0.3.22090809
The Headmaster 0.14.1beta
Wed May 10 20:56:10 2023
```
thanks in advance!