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

5.00 star(s) 46 Votes

Boehser Onkel

Forum Fanatic
Modder
Feb 20, 2021
4,576
7,935
I have an issue with the game The Renaissance (https://f95zone.to/threads/the-renaissance-v0-35-miron-hfg.170707).
URM doesn't detect the IF conditions.

Code:
    if persistent.lang == "english":
        menu:
            "Letting the slave cum in Oscar's mouth." if True:
                $ fmc_bi_cuckold = True
            "Stop the slave from cumming and kick him out" if True:
                pass
    elif persistent.lang == "russian":
        menu:
            "Позволить рабу кончить в рот Оскара" if True:
                $ fmc_bi_cuckold = True
            "Запретить рабу кончать и выгнать его" if True:
                pass

    scene scene_120_09
    with Dissolve (1.0)

    e_narrator "After falling exhausted on the bed, [fmcName] looked at the slave and said"
    narrator "Обессилено упав на кровать, [fmcName] посмотрела на раба и приказала"

    if fmc_bi_cuckold:
        e_fmc "Take off the condom and cum in that worm's mouth."
        fmc "Снимай презе



it shows

Screenshot_19.png

Screenshot_18.png
 
Last edited:

Boehser Onkel

Forum Fanatic
Modder
Feb 20, 2021
4,576
7,935
It's not about the the set, but the predictive condition. In other games, before a IF condition, there is like a path detection with a notification.
there is no "predictive condition"
the variable is set at this point

if persistent.lang == "english":
menu:
"Letting the slave cum in Oscar's mouth.":
$ fmc_bi_cuckold = True

"Stop the slave from cumming and kick him out":
pass

if you choose "letting ... "
the variable is set to true the first time , no condition needed

and yeah "other games" ... every game has different a code
 

shmurfer

Engaged Member
Dec 29, 2019
2,261
2,995
It's not about the the set, but the predictive condition. In other games, before a IF condition, there is like a path detection with a notification.
Isn't the path detection for actual paths, like actual dialogue that renpy can pause on. It would be racing against a menu instead here and URM can only do so much without getting in the way of the actual game.
 
  • Like
Reactions: Boehser Onkel

KitLegris

New Member
Nov 13, 2021
3
9
Hello fellas!
Been encountering an issue on Pale Carnations, if people have a hint

  • What version of URM are you using (make sure it's the latest)?
    Not sure where to check, but sure it's the last one, dl'd yesterday through this page
  • Which game has the issue (preferable a link to the game's thread)
    https://f95zone.to/threads/pale-carnations-ch-4-up-5-public-mutt-jeff.50281/ chap 4 up 5
  • If it's a crash (grey screen) attach the "traceback.txt" file
    Attached
  • What did you do that caused the issue?
    I'm a noob to this mod, what I wanted to do was get the consequences of each choice easily, without having to go to the "choices detected > code show" all the time. Thought it would be possible to just have it next to the choice.
    So I tried and honestly kinda touched things a bit randomly, especially there :
    1745799039623.png
    Now, whenever I try to launch URM in PaleCarnation, instant crash (check attached file). Game runs OK without URM.

    I did save a preset for PaleCarnation, then went in my Windows files to delete it, didn't change much :(

  • Attach a screenshot of the issue (if possible)
    Open PaleCarnation > either new game or load game > instant
    1745799222783.png
  • When URM gave an error (not a grey crash screen), check the log.txt file for lines starting with "0x52:"

  • File "0x52-URM/screens/main.rpy.x52", line 20, in execute
    File "0x52-URM/screens/main.rpy.x52", line 20, in execute
    File "0x52-URM/screens/main.rpy.x52", line 69, in execute
    File "0x52-URM/screens/main.rpy.x52", line 70, in execute
    File "0x52-URM/screens/progress.rpy.x52", line 16, in execute
    File "0x52-URM/screens/progress.rpy.x52", line 16, in execute
    File "0x52-URM/screens/progress.rpy.x52", line 19, in execute
    File "0x52-URM/screens/progress.rpy.x52", line 19, in keywords
  • What OS are you on?

  • Windows 11 family 24H2
  • Do you have any other mods installed? Does the issue still exist without the other mod(s)?
    Only mod used is Universal_Gallery_Unlocker_2024-01-24_ZLZK
    However, it was already in use before installing URM, and trying it, so I doubt it had any kind of impact

Thanks a bunch, hope you have any idea what seems to be the issue. Or what else I could use to just get the results of choices ingame xD
 

Tiur

Well-Known Member
Nov 13, 2021
1,305
3,591
Hello fellas!
Been encountering an issue on Pale Carnations, if people have a hint

  • What version of URM are you using (make sure it's the latest)?
    Not sure where to check, but sure it's the last one, dl'd yesterday through this page
  • Which game has the issue (preferable a link to the game's thread)
    https://f95zone.to/threads/pale-carnations-ch-4-up-5-public-mutt-jeff.50281/ chap 4 up 5
  • If it's a crash (grey screen) attach the "traceback.txt" file
    Attached
  • What did you do that caused the issue?
    I'm a noob to this mod, what I wanted to do was get the consequences of each choice easily, without having to go to the "choices detected > code show" all the time. Thought it would be possible to just have it next to the choice.
    So I tried and honestly kinda touched things a bit randomly, especially there :
    View attachment 4785425
    Now, whenever I try to launch URM in PaleCarnation, instant crash (check attached file). Game runs OK without URM.

    I did save a preset for PaleCarnation, then went in my Windows files to delete it, didn't change much :(

  • Attach a screenshot of the issue (if possible)
    Open PaleCarnation > either new game or load game > instant
    View attachment 4785435
  • When URM gave an error (not a grey crash screen), check the log.txt file for lines starting with "0x52:"

  • File "0x52-URM/screens/main.rpy.x52", line 20, in execute
    File "0x52-URM/screens/main.rpy.x52", line 20, in execute
    File "0x52-URM/screens/main.rpy.x52", line 69, in execute
    File "0x52-URM/screens/main.rpy.x52", line 70, in execute
    File "0x52-URM/screens/progress.rpy.x52", line 16, in execute
    File "0x52-URM/screens/progress.rpy.x52", line 16, in execute
    File "0x52-URM/screens/progress.rpy.x52", line 19, in execute
    File "0x52-URM/screens/progress.rpy.x52", line 19, in keywords
  • What OS are you on?

  • Windows 11 family 24H2
  • Do you have any other mods installed? Does the issue still exist without the other mod(s)?
    Only mod used is Universal_Gallery_Unlocker_2024-01-24_ZLZK
    However, it was already in use before installing URM, and trying it, so I doubt it had any kind of impact

Thanks a bunch, hope you have any idea what seems to be the issue. Or what else I could use to just get the results of choices ingame xD
From the FAQ post (first post after the OP):
1745807437955.png
Also, searching this thread for "Pale Carnations" brings up many posts specifically about this workaround, because Pale Carnations is probably the most prominent game where the dev made this mistake and hasn't fixed it.
 

0x52

Ren'Py Magician
Modder
Donor
Game Developer
May 23, 2019
1,745
7,011
URM seems to not handle tuple types well/properly. I think display (without the ability to edit) would be sufficient for most people. Editing tuples could get complicated given their flexibility and immutability.

Here are the ways that tuples don't interact well in URM
  1. A simple tuple is not searchable.
    To reproduce
    1. Create a tuple $ testtuple = (1,2,3)
    2. Search for that name in URM
    3. Notice that the variable is not found
  2. A simple tuple will display in snapshots, but will have "unknown" as their values.
    To reproduce
    1. Create a tuple (see above)
    2. Create a snapshot
    3. Replace the tuple with a new value
    4. View the snapshot
    5. Notice that the tuple variable has "unknown" for previous and new values
    6. NOTE: this impacts newly created tuples, as well
  3. A dict with tuple values can be searched, but they do not display properly.
    To reproduce
    1. Create a dict with one key with a tuple value $ dictttuple = { "a":: (1,2,3) }
    2. Search and find the variable
    3. Attempt to edit the variable
    4. Notice that the dict appears empty, including displaying "No Items" text
  4. A dict with tuple values does not show changes in snapshots.
    To reproduce
    1. Create a dict with one key with a tuple value $ dicttuple = { "a":: (1,2,3) }
    2. Create a snapshot
    3. Add an item with a tuple value, to the dict $ dicttuple["b"] = (4,5,6)
    4. View the snapshot again
    5. Notice that the dict variable does not display in the list of changes
Edit: Fixed formatting
URM doesn't have tuple support, since it's quite uncommon. But I will add it in the future.

With all of the conditionals in the current-URM example, the older version of URM is not giving you accurate or complete information for this game particularly.

This also came up because a lot of people complained about missing choice consequences that were being hidden behind a jump, or below other code blocks, which is how the new implementation came about.

For instance, your example of the older version says nothing about whether that choice affects any other variables (and I'm positive that it does).

If the older format was used for the second choice, all it would say is: lea_hug == True. Nothing else. It wouldn't even mention lea_relationship at all, since that's behind a conditional statement (and the current implementation in URM even tells you whether that condition is met), but the more detailed version lets us know what the conditions for it are.

What you're asking for is providing less information, and providing less-accurate information.
This! I've tried to show all relevant information. I agree this can be a lot, but in my opinion this way is better than missing relevant information.

So, is there a way to scroll left to right or anything? Because some games now do a "phone resolution" and this happens if I try to use URM there... :x

View attachment 4781191
This has been mentioned before. URM (currently) doesn't support this screensize
 

KitLegris

New Member
Nov 13, 2021
3
9
From the FAQ post (first post after the OP):
View attachment 4785670
Also, searching this thread for "Pale Carnations" brings up many posts specifically about this workaround, because Pale Carnations is probably the most prominent game where the dev made this mistake and hasn't fixed it.
Thanks friend! My bad for not seeing the FAQ, will be careful about that in the future!
 

STATE_

Member
Nov 14, 2021
279
272
Got a question if anyone knows the answer to every time I use U.R.M when I use text box, the MC character name is and just shows MCT and I have to use any is the fix that.
 

Havik79

Conversation Conqueror
Sep 5, 2019
6,846
8,129
So can anyone answer the question I asked, if a dev makes his game use alt+S for screenshot is there a way to change it back to just S.
 
5.00 star(s) 46 Votes