Replace the above line with :-
self.pageNum = int(math.floor(len(list(filter(lambda s: s.character == character, replayItems)))/ReplayItem.numberScenes)) + 1
Oh, take care of indentation (spaces not tabs).
Work Thx for your help ! <3
Okay sry Game start after this bus when i start new game come this!
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 571, in script
"{b}Superheroes Suck{/b} is an adult game meant to be played by adults."
File "game/script.rpy", line 571, in script
"{b}Superheroes Suck{/b} is an adult game meant to be played by adults."
File "game/shaddyMod/ShaddyScreens.rpy", line 439, in execute
screen say(who, what):
File "game/shaddyMod/ShaddyScreens.rpy", line 439, in execute
screen say(who, what):
File "game/shaddyMod/ShaddyScreens.rpy", line 442, in execute
window:
File "game/shaddyMod/ShaddyScreens.rpy", line 451, in execute
if persistent.say_window_alpha < 0.6:
File "game/shaddyMod/ShaddyScreens.rpy", line 451, in <module>
if persistent.say_window_alpha < 0.6:
TypeError: '<' not supported between instances of 'NoneType' and 'float'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "F:\SuperheroesSuck-1.351public-pc\SuperheroesSuck-1.351public-pc\renpy\bootstrap.py", line 277, in bootstrap
renpy.main.main()
File "F:\SuperheroesSuck-1.351public-pc\SuperheroesSuck-1.351public-pc\renpy\main.py", line 660, in main
run(restart)
File "F:\SuperheroesSuck-1.351public-pc\SuperheroesSuck-1.351public-pc\renpy\main.py", line 146, in run
renpy.execution.run_context(True)
File "F:\SuperheroesSuck-1.351public-pc\SuperheroesSuck-1.351public-pc\renpy\execution.py", line 938, in run_context
context.run()
File "game/script.rpy", line 571, in script
"{b}Superheroes Suck{/b} is an adult game meant to be played by adults."
File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/site-packages/future/utils/__init__.py", line 441, in raise_
File "game/script.rpy", line 571, in script
"{b}Superheroes Suck{/b} is an adult game meant to be played by adults."
File "F:\SuperheroesSuck-1.351public-pc\SuperheroesSuck-1.351public-pc\renpy\ast.py", line 921, in execute
renpy.exports.say(who, what, *args, **kwargs)
File "F:\SuperheroesSuck-1.351public-pc\SuperheroesSuck-1.351public-pc\renpy\exports.py", line 1373, in say
who(what, *args, **kwargs)
File "F:\SuperheroesSuck-1.351public-pc\SuperheroesSuck-1.351public-pc\renpy\character.py", line 1266, in __call__
self.do_display(who, what, cb_args=self.cb_args, dtt=dtt, **display_args)
File "F:\SuperheroesSuck-1.351public-pc\SuperheroesSuck-1.351public-pc\renpy\character.py", line 927, in do_display
display_say(who,
File "F:\SuperheroesSuck-1.351public-pc\SuperheroesSuck-1.351public-pc\renpy\character.py", line 614, in display_say
what_text = renpy.display.screen.get_widget(what_text[0], what_text[1], what_text[2])
File "F:\SuperheroesSuck-1.351public-pc\SuperheroesSuck-1.351public-pc\renpy\display\screen.py", line 1386, in get_displayable
screen.update()
File "F:\SuperheroesSuck-1.351public-pc\SuperheroesSuck-1.351public-pc\renpy\display\screen.py", line 653, in update
self.screen.function(**self.scope)
File "game/shaddyMod/ShaddyScreens.rpy", line 439, in execute
screen say(who, what):
File "game/shaddyMod/ShaddyScreens.rpy", line 439, in execute
screen say(who, what):
File "game/shaddyMod/ShaddyScreens.rpy", line 442, in execute
window:
File "game/shaddyMod/ShaddyScreens.rpy", line 451, in execute
if persistent.say_window_alpha < 0.6:
File "game/shaddyMod/ShaddyScreens.rpy", line 451, in <module>
if persistent.say_window_alpha < 0.6:
TypeError: '<' not supported between instances of 'NoneType' and 'float'
Windows-10-10.0.19044 AMD64
Ren'Py 8.0.3.22090809
Superheroes Suck 1.351public
Wed Nov 23 14:27:48 2022