Hello, I downloaded the game file and transferred it to renpi to create my project and when I run the file, select the difficulty of the game, at that moment an error appears.
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 53, in script
call screen chess(fen, player_color, movetime, depth)
File "renpy/common/000statements.rpy", line 670, in execute_call_screen
store._return = renpy.call_screen(name, *args, **kwargs)
File "game/00-chess-engine/chess_displayable.rpy", line 108, in execute
screen chess(fen, player_color, movetime, depth):
File "game/00-chess-engine/chess_displayable.rpy", line 108, in execute
screen chess(fen, player_color, movetime, depth):
File "game/00-chess-engine/chess_displayable.rpy", line 113, in execute
default chess_displayable = ChessDisplayable(fen=fen,
File "game/00-chess-engine/chess_displayable.rpy", line 113, in <module>
default chess_displayable = ChessDisplayable(fen=fen,
File "game/00-chess-engine/chess_displayable.rpy", line 270, in __init__
self.chess_subprocess.stdin.write('#'.join(['fen', fen, '\n']))
TypeError: a bytes-like object is required, not 'str'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 53, in script
call screen chess(fen, player_color, movetime, depth)
File "D:\renpy-8.1.3-sdk\renpy\ast.py", line 2259, in execute
self.call("execute")
File "D:\renpy-8.1.3-sdk\renpy\ast.py", line 2241, in call
return renpy.statements.call(method, parsed, *args, **kwargs)
File "D:\renpy-8.1.3-sdk\renpy\statements.py", line 342, in call
return method(parsed, *args, **kwargs)
File "renpy/common/000statements.rpy", line 670, in execute_call_screen
store._return = renpy.call_screen(name, *args, **kwargs)
File "D:\renpy-8.1.3-sdk\renpy\exports.py", line 3347, in call_screen
rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
File "D:\renpy-8.1.3-sdk\renpy\ui.py", line 299, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "D:\renpy-8.1.3-sdk\renpy\display\core.py", line 3582, 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 "D:\renpy-8.1.3-sdk\renpy\display\core.py", line 4055, in interact_core
root_widget.visit_all(lambda d : d.per_interact())
File "D:\renpy-8.1.3-sdk\renpy\display\core.py", line 684, in visit_all
d.visit_all(callback, seen)
File "D:\renpy-8.1.3-sdk\renpy\display\core.py", line 684, in visit_all
d.visit_all(callback, seen)
File "D:\renpy-8.1.3-sdk\renpy\display\core.py", line 684, in visit_all
d.visit_all(callback, seen)
File "D:\renpy-8.1.3-sdk\renpy\display\screen.py", line 476, in visit_all
callback(self)
File "D:\renpy-8.1.3-sdk\renpy\display\core.py", line 4055, in <lambda>
root_widget.visit_all(lambda d : d.per_interact())
File "D:\renpy-8.1.3-sdk\renpy\display\screen.py", line 487, in per_interact
self.update()
File "D:\renpy-8.1.3-sdk\renpy\display\screen.py", line 680, in update
self.screen.function(**self.scope)
File "game/00-chess-engine/chess_displayable.rpy", line 108, in execute
screen chess(fen, player_color, movetime, depth):
File "game/00-chess-engine/chess_displayable.rpy", line 108, in execute
screen chess(fen, player_color, movetime, depth):
File "game/00-chess-engine/chess_displayable.rpy", line 113, in execute
default chess_displayable = ChessDisplayable(fen=fen,
File "game/00-chess-engine/chess_displayable.rpy", line 113, in <module>
default chess_displayable = ChessDisplayable(fen=fen,
File "game/00-chess-engine/chess_displayable.rpy", line 270, in __init__
self.chess_subprocess.stdin.write('#'.join(['fen', fen, '\n']))
TypeError: a bytes-like object is required, not 'str'
Ren'Py 8.1.3.23091805
chess 1.0
please help me solve this problem.