Cheat Mod Ren'Py Summer story - Cheat Mod [The Witcher]

malcolmalbie

Member
Oct 8, 2018
262
570
That's weird i downloaded the mod from mediafire just now and checked the codes. the problem was line 38 "ypos 0.05" i think and i changed it.
Just double checked and it was fixed in the .rpy version of the script but not the .rpyc version (which being in a .rpa is the version renpy uses)
 

The Witcher

Member
Modder
Jul 19, 2017
380
2,089
Just double checked and it was fixed in the .rpy version of the script but not the .rpyc version (which being in a .rpa is the version renpy uses)
Look the mod file in .rpyc then i created .rpa version. so when i checked i did the following: 1- used unren tool to extract rpa files. that means the mod now is .rpyc. 2- i used decompile to get the rpy file 3- i opened the rpy file and the changes i did is there.

So How can it be fixed in rpy file and not in rpyc file?!!
 

malcolmalbie

Member
Oct 8, 2018
262
570
Look the mod file in .rpyc then i created .rpa version. so when i checked i did the following: 1- used unren tool to extract rpa files. that means the mod now is .rpyc. 2- i used decompile to get the rpy file 3- i opened the rpy file and the changes i did is there.

So How can it be fixed in rpy file and not in rpyc file?!!
did you run the game with the extracted + decompiled rpy file to get a new compiled rpyc file?
 

B2kBD

New Member
Mar 11, 2023
3
0
I'm sorry, but an uncaught exception occurred.

After initialization, but before game start.
File "game/WitcherMod/cheats.rpy", line 32, in prepare_screen
File "game/WitcherMod/cheats.rpy", line 32, in prepare
File "game/WitcherMod/cheats.rpy", line 36, in prepare
File "game/WitcherMod/cheats.rpy", line 36, in prepare
SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers (game/WitcherMod/cheats.rpy, line 38)

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

Full traceback:
File "D:\Summer_Story-0.2.6-pc\renpy\bootstrap.py", line 277, in bootstrap
renpy.main.main()
File "D:\Summer_Story-0.2.6-pc\renpy\main.py", line 660, in main
run(restart)
File "D:\Summer_Story-0.2.6-pc\renpy\main.py", line 95, in run
renpy.display.screen.prepare_screens()
File "D:\Summer_Story-0.2.6-pc\renpy\display\screen.py", line 976, in prepare_screens
s.ast.prepare_screen()
File "game/WitcherMod/cheats.rpy", line 32, in prepare_screen
File "game/WitcherMod/cheats.rpy", line 32, in prepare
File "game/WitcherMod/cheats.rpy", line 36, in prepare
File "game/WitcherMod/cheats.rpy", line 36, in prepare
File "D:\Summer_Story-0.2.6-pc\renpy\py3analysis.py", line 790, in ast_eval
return self.ast_eval_literal(expr)[0]
File "D:\Summer_Story-0.2.6-pc\renpy\py3analysis.py", line 772, in ast_eval_literal
expr = py_compile(expr, 'eval', ast_node=True)
File "D:\Summer_Story-0.2.6-pc\renpy\python.py", line 1027, in py_compile
raise e
File "D:\Summer_Story-0.2.6-pc\renpy\python.py", line 979, in py_compile
raise orig_e
File "D:\Summer_Story-0.2.6-pc\renpy\python.py", line 972, in py_compile
tree = compile(source, filename, py_mode, ast.PyCF_ONLY_AST | flags, 1)
SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers (game/WitcherMod/cheats.rpy, line 38)

Windows-10-10.0.19045 AMD64
Ren'Py 8.0.3.22090809
0.2.6
Thu Sep 21 02:16:27 2023
 

The Witcher

Member
Modder
Jul 19, 2017
380
2,089
I'm sorry, but an uncaught exception occurred.

After initialization, but before game start.
File "game/WitcherMod/cheats.rpy", line 32, in prepare_screen
File "game/WitcherMod/cheats.rpy", line 32, in prepare
File "game/WitcherMod/cheats.rpy", line 36, in prepare
File "game/WitcherMod/cheats.rpy", line 36, in prepare
SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers (game/WitcherMod/cheats.rpy, line 38)

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

Full traceback:
File "D:\Summer_Story-0.2.6-pc\renpy\bootstrap.py", line 277, in bootstrap
renpy.main.main()
File "D:\Summer_Story-0.2.6-pc\renpy\main.py", line 660, in main
run(restart)
File "D:\Summer_Story-0.2.6-pc\renpy\main.py", line 95, in run
renpy.display.screen.prepare_screens()
File "D:\Summer_Story-0.2.6-pc\renpy\display\screen.py", line 976, in prepare_screens
s.ast.prepare_screen()
File "game/WitcherMod/cheats.rpy", line 32, in prepare_screen
File "game/WitcherMod/cheats.rpy", line 32, in prepare
File "game/WitcherMod/cheats.rpy", line 36, in prepare
File "game/WitcherMod/cheats.rpy", line 36, in prepare
File "D:\Summer_Story-0.2.6-pc\renpy\py3analysis.py", line 790, in ast_eval
return self.ast_eval_literal(expr)[0]
File "D:\Summer_Story-0.2.6-pc\renpy\py3analysis.py", line 772, in ast_eval_literal
expr = py_compile(expr, 'eval', ast_node=True)
File "D:\Summer_Story-0.2.6-pc\renpy\python.py", line 1027, in py_compile
raise e
File "D:\Summer_Story-0.2.6-pc\renpy\python.py", line 979, in py_compile
raise orig_e
File "D:\Summer_Story-0.2.6-pc\renpy\python.py", line 972, in py_compile
tree = compile(source, filename, py_mode, ast.PyCF_ONLY_AST | flags, 1)
SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers (game/WitcherMod/cheats.rpy, line 38)

Windows-10-10.0.19045 AMD64
Ren'Py 8.0.3.22090809
0.2.6
Thu Sep 21 02:16:27 2023
Can you upload the cheat mod you use?
post it here or DM me.
 
  • Red Heart
Reactions: B2kBD

ericcha

Newbie
Jun 21, 2021
49
44
Look the mod file in .rpyc then i created .rpa version. so when i checked i did the following: 1- used unren tool to extract rpa files. that means the mod now is .rpyc. 2- i used decompile to get the rpy file 3- i opened the rpy file and the changes i did is there.

So How can it be fixed in rpy file and not in rpyc file?!!
I got the error from using the mod. I then used unren. I extracted and decompiled and had it delete the rpa after. Cheat worked great no errors.
 
  • Like
Reactions: The Witcher

herlam

Member
Apr 3, 2021
246
683
I'm sorry, but an uncaught exception occurred.

While loading the script.
ScriptError: Name ('game/WitcherMod/cheats.rpy', 1698606109, 0) is defined twice, at game/WitcherMod - Copy/cheats.rpyc:1 and game/WitcherMod/cheats.rpy:1.

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

Full traceback:
File "C:\Users\herla\Downloads\Summer_Story-0.2.7-pc\renpy\bootstrap.py", line 275, in bootstrap
renpy.main.main()
File "C:\Users\herla\Downloads\Summer_Story-0.2.7-pc\renpy\main.py", line 492, in main
renpy.game.script.load_script() # sets renpy.game.script.
File "C:\Users\herla\Downloads\Summer_Story-0.2.7-pc\renpy\script.py", line 310, in load_script
self.load_appropriate_file(".rpyc", [ "_ren.py", ".rpy" ], dir, fn, initcode)
File "C:\Users\herla\Downloads\Summer_Story-0.2.7-pc\renpy\script.py", line 888, in load_appropriate_file
self.finish_load(stmts, initcode, filename=lastfn) # type: ignore
File "C:\Users\herla\Downloads\Summer_Story-0.2.7-pc\renpy\script.py", line 525, in finish_load
check_name(node)
File "C:\Users\herla\Downloads\Summer_Story-0.2.7-pc\renpy\script.py", line 501, in check_name
raise ScriptError("Name %s is defined twice, at %s:%d and %s:%d." %
ScriptError: Name ('game/WitcherMod/cheats.rpy', 1698606109, 0) is defined twice, at game/WitcherMod - Copy/cheats.rpyc:1 and game/WitcherMod/cheats.rpy:1.

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707

Sun Oct 29 22:13:04 2023

Thank you for the efford but it's doesn't work.... i will use unren as i used to
 
Aug 22, 2017
267
694
is defined twice, at game/WitcherMod - Copy/cheats.rpyc:1 and game/WitcherMod/cheats.rpy:1
There's your problem, you have "Witchermod" and "Witchermod - Copy" folders.

For me (installed only once) the mod does nothing at all. Which is a shame because the base game does not seem truly playable without cheats.