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

5.00 star(s) 46 Votes

luchettodj94

Well-Known Member
Modder
Dec 25, 2019
1,856
3,330
You're the one correlating the names based on devs that try to make an affection system looks the same as one from (more popular game), but work completely differently under the hood. Nothing forces devs to use the same system, and some of the garbage posted in this thread shows they definitely don't. "The dev isn't supposed to be doing that, it breaks renpy" happens often in this thread.
What that even mean? I'm asking in a general way, cause this potentially could ruin at all this mod if ppl start simply obfuscating their stats: for exemple:

Code:
INTERNAL_TO_LABEL = {
    "fitness": "Sportiness",
    "power": "Strength"
}

class Attributes:
    def __init__(self, initial_values=None):
        self._values = {key: 0 for key in INTERNAL_TO_LABEL}
        if initial_values:
            for key, value in initial_values.items():
                if key in self._values:
                    self._values[key] = value

    def increase(self, key, amount=1):
        if key in self._values:
            self._values[key] += amount

    def decrease(self, key, amount=1):
        if key in self._values:
            self._values[key] -= amount

    def get_value(self, key):
        return self._values.get(key)

    def __str__(self):
        return "\n".join(
            f"{INTERNAL_TO_LABEL[key]}: {self._values[key]}"
            for key in self._values
        )
What I've described will show specific labels with alias in game but you are not able to get to the correct infomation by searching, by inspecting the code is easy enough to understand it but this could be also easily expanded by making it more obfuscated, I'm not sure what this dev used exactly but stil..
 
Last edited:
  • Thinking Face
Reactions: Boehser Onkel

Boehser Onkel

Forum Fanatic
Modder
Feb 20, 2021
4,870
8,591
Unaware of the release of the second game, as why I didn't linked is cause the game was already banned once due rule 7, and altough the first game got back again the second didn't (for whatever reason), anyway is quite easy to get to the download page, just go to his blog (from the main post I've linked) and the download is free (just a notice, the blog is not longer updated so the last build can be found on supporter pages, still free anyway).
Btw I'm not really asking for help as I figure out already myself the correct variable, just poiting out a problem that could arise with some games and probably should be fixed.
do you really think ppl going to external sites , donwloading there god knows what
cmon ...
i would have if you had it linked btw , but i am not searching external sites for it

and as far as i can see from you code snippet - the fitness and power still vars should be searchable
just displayed with a other name :unsure:

class Attributes:
def __init__(self, fitness=0, power=0):
self._fitness = fitness
self._power = power


send me the dl link as pm if you still want someone to have a look

have a nice one
 

luchettodj94

Well-Known Member
Modder
Dec 25, 2019
1,856
3,330
and as far as i can see from you code snippet - the fitness and power still vars should be searchable
just displayed with a other name :unsure:
The problem is exactly that urm is not able to assiciate directly the alias to the stored value, by searching "Sportiness" I will not get "Fitness", I have to search this last term that without inspecting the code I would have no clue about.
as for the link you can download from the last version (note, this particular game have nothing to do with the discussion if not the code structure)

(changed the test code to make it bit more complex)
 
Last edited:

N0lla

Newbie
Aug 25, 2023
84
63
In the latest release of University of Problems (1.7.0 Extended) - I keep getting this error after a number of saves

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

I'm not sure if its Universal Renpy Mod or the game code. I'm running the latest version of URM
 
5.00 star(s) 46 Votes