Mod Ren'Py Universal Ren'Py Mod / URM [2.6.2] (mod any Ren'Py game yourself)

5.00 star(s) 47 Votes

snorfle

Newbie
Nov 2, 2024
35
125
I'm experiencing the same problem as the user above me in the game Thot on Trial. The error happens during the middle of the splashscreen loading bar.
 

snorfle

Newbie
Nov 2, 2024
35
125
I'm experiencing the same problem as the user above me in the game Thot on Trial. The error happens during the middle of the splashscreen loading bar.
Windows-10-10.0.19045
Ren'Py 8.3.3.24111502

Thot On Trial
v0.3.0
Built at 2024-12-06 18:15:20 UTC

Early init took 0.25s
Loading error handling took 0.10s

Full traceback:
File "\Thot_On_Trial-v0.3.0-pc\renpy\bootstrap.py", line 359, in bootstrap
renpy.main.main()
File "\Thot_On_Trial-v0.3.0-pc\renpy\main.py", line 470, in main
renpy.game.script.load_script() # sets renpy.game.script.
File "\Thot_On_Trial-v0.3.0-pc\renpy\script.py", line 361, in load_script
self.load_appropriate_file(".rpyc", [ "_ren.py", ".rpy" ], dir, fn, initcode)
File "\Thot_On_Trial-v0.3.0-pc\renpy\script.py", line 868, in load_appropriate_file
raise Exception("Could not load file %s." % lastfn) # type: ignore
Exception: Could not load file \Thot_On_Trial-v0.3.0-pc\game/0x52-URM/classes/API.rpyc.

While loading the script.
Exception: Could not load file \Thot_On_Trial-v0.3.0-pc\game/0x52-URM/classes/API.rpyc.
 

theMickey_

Engaged Member
Mar 19, 2020
2,313
3,087
My reply was to the post above yours -- although the error looks similar, the reason is different for "Thot on Trial": the game seems to (somehow successfully) prevent loading any additional scripts. I haven't had time yet to check the scripts though, otherwise I might also have replied to your previous post ;)
 

JenMistress

Engaged Member
Oct 1, 2019
3,288
3,926
My reply was to the post above yours -- although the error looks similar, the reason is different for "Thot on Trial": the game seems to (somehow successfully) prevent loading any additional scripts. I haven't had time yet to check the scripts though, otherwise I might also have replied to your previous post ;)
OK, I was going to report the same thing for ToT, but guess you are already looking in on it.
 

theMickey_

Engaged Member
Mar 19, 2020
2,313
3,087
I'm experiencing the same problem as the user above me in the game Thot on Trial.
OK, I was going to report the same thing for ToT, but guess you are already looking in on it.
I got a quick fix for you (without having looked at the game scripts at all, because it's quite late for me already...)

  1. Install the game
  2. Also install the "Crack" for the game that's linked in the game's OP
    • This will allow you to "unren" the game!
  3. Install URM
  4. "unren" the game (which will also unren URM, because we've already added it to the game -- this is important!)
    • Optional: you can delete all *.rpa files after a successful "unren" to save some disk space
  5. You also need need to decompile the *.rpyc files, otherwise it won't work -- another important step!
    1733613371715.png
  6. Run the game, and URM should load as expected...
    1733613510630.png
In case you don't know what "unren" is or how it works, see this (it's quite an old version I think, there might be newer/better versions out there, but it's the one I still use. Only thing to note: for decompile to work, I have to rename the lib\python3.9\multiprocessing within the game's directory to something like multiprocessing.old...).

And if you don't want to hassle with this stuff yourself, wait until someone smarter than me figures out what scripts to change so it loads URM just fine without having to unren and decompile the game ;-)
 
  • Like
Reactions: JenMistress

JenMistress

Engaged Member
Oct 1, 2019
3,288
3,926
I got a quick fix for you (without having looked at the game scripts at all, because it's quite late for me already...)

  1. Install the game
  2. Also install the "Crack" for the game that's linked in the game's OP
    • This will allow you to "unren" the game!
  3. Install URM
  4. "unren" the game (which will also unren URM, because we've already added it to the game -- this is important!)
    • Optional: you can delete all *.rpa files after a successful "unren" to save some disk space
  5. You also need need to decompile the *.rpyc files, otherwise it won't work -- another important step!
    View attachment 4308406
  6. Run the game, and URM should load as expected...
    View attachment 4308465
In case you don't know what "unren" is or how it works, see this (it's quite an old version I think, there might be newer/better versions out there, but it's the one I still use. Only thing to note: for decompile to work, I have to rename the lib\python3.9\multiprocessing within the game's directory to something like multiprocessing.old...).

And if you don't want to hassle with this stuff yourself, wait until someone smarter than me figures out what scripts to change so it loads URM just fine without having to unren and decompile the game ;-)
I might wait myself, as ZLZK mod still works with it as is. I normally like to do the 1, 2 punch of both, but fine with just the 1. Thank you though for figuring out a temporary fix.
 

theMickey_

Engaged Member
Mar 19, 2020
2,313
3,087
I don't mind decompiling the game, but the 15 script files in the game failed to decompile even with the patch...
I know, but you don't have to worry about those files. The main thing that needs to be extracted and decompiled is URM, which should be successful. It might even work without extracting/decompiling the game's files at all...
 

vayora5984

Newbie
May 26, 2023
30
48
You mean find places in the code where a variable is modified? Not something I'm looking to implement. It would be pretty complicated to get this even close to reliable.
This would be seriously interesting metaprogramming, but also may not be possible, depending on how renpy compiles down $. It might be as simple as hooking into the store and wrapping some of its built in functions, but I am not a python expert, so this is probably me oversimplifying.
 

masiex

Member
Mar 28, 2020
116
30
sigh ....at this point I willing to pay someone to do the replay scenes for me. The info on the first page is not working for me.
 

theMickey_

Engaged Member
Mar 19, 2020
2,313
3,087
sigh ....at this point I willing to pay someone to do the replay scenes for me. The info on the first page is not working for me.
Without any more information, nobody will be able to help you. Please explain your issue in more detail (what game are you playing, what are you trying to achieve, what are the steps you're doing etc.).
 
  • Like
Reactions: 0x52

0x52

Ren'Py Magician
Modder
Donor
Game Developer
May 23, 2019
1,772
7,215
This would be seriously interesting metaprogramming, but also may not be possible, depending on how renpy compiles down $. It might be as simple as hooking into the store and wrapping some of its built in functions, but I am not a python expert, so this is probably me oversimplifying.
URM's codeview already kind of detects variable changes. Things like $ somevar += 1 are doable, but there are many edge cases. Like variables that are modified through a function or screen.
URM's variable monitoring was already very hard to get reliable.
 
  • Like
Reactions: Feyd

NNNNKlaus

Newbie
Apr 4, 2020
32
7
how do i turn off this and similar text that keeps appearing in the upper left. when i want to cheat i already do ALT + M. why does it have to keep appearing in the upper left

NowandThen_Bic9FUuqby.png
 

toobad0912

Newbie
May 1, 2021
93
36
I am encountering an error with the newest version of a game. I did a quick search through the thread and didn't find anything on point. Any help would be great!

You don't have permission to view the spoiler content. Log in or register now.

Thanks in advance!
 
Last edited:

0x52

Ren'Py Magician
Modder
Donor
Game Developer
May 23, 2019
1,772
7,215
I am encountering an error with the newest version of a game. I did a quick search through the thread and didn't find anything on point. Any help would be great!

You don't have permission to view the spoiler content. Log in or register now.

Thanks in advance!
Works fine on my side. Do you maybe have a save right before the issue occurs for you?
 

0x52

Ren'Py Magician
Modder
Donor
Game Developer
May 23, 2019
1,772
7,215
URM 2.5: Variable ignore option

Here's a new major release of URM. The main new feature it the possibility to ignore variables in path detection and in the codeview. This could be useful when you for example have a game that constantly checks a is_patched variable.
You can enable/disable this after remembering a variable.

Changelog:
  • Added option to ignore variables in path detection and/or codeview
  • Implemented custom tooltips system (prevents issues with games that use Ren'Py's system in an unconventional way)
  • List all possible items when searching nothing (an empty string)
  • Fix: Progressbar total could be 1 off
 

jasad

Well-Known Member
Dec 14, 2021
1,362
1,074
URM 2.5: Variable ignore option

Here's a new major release of URM. The main new feature it the possibility to ignore variables in path detection and in the codeview. This could be useful when you for example have a game that constantly checks a is_patched variable.
You can enable/disable this after remembering a variable.

Changelog:
  • Added option to ignore variables in path detection and/or codeview
  • Implemented custom tooltips system (prevents issues with games that use Ren'Py's system in an unconventional way)
  • List all possible items when searching nothing (an empty string)
  • Fix: Progressbar total could be 1 off
thank you
 
5.00 star(s) 47 Votes