Ren'Py How To Change A Character/LI’s Name In A Renpy Game

ThaRealThiccShady

Active Member
Mar 16, 2020
588
1,383
Hey y’all wanted to post here in case someone had helpful advice-wondering if anyone knew how to change the name of a character in a Renpy game? Not the name of the MC but a LI in the game.

Reason being occasionally the name in a game will be the same as a person I know IRL that I definitely don’t want to be reminded of in that context especially. Not the biggest issue but it does often take me out of the moment and dilute the enjoyment of a scene so if at all possible I want to change those names. Haven’t found much info on how/if it’s possible online thus far.

Also I’ve tried a few things with Notepad++ but most of the time this just results in errors as I don’t have much experience with it and what little I’ve read isn’t informative enough. Would appreciate anyone’s assistance with all this, good vibes either way
 

Demonius

Well-Known Member
Oct 28, 2018
1,526
1,841
most devs have set li names, if you where to change one, youd have to do it with every new release of the game and would most likely be a lot of work, depending on how the dev coded the game
 
  • Like
Reactions: ThaRealThiccShady

Meaning Less

Engaged Member
Sep 13, 2016
3,539
7,178
The easiest solution is using a "Replace All" in all files at once (with your prefered text editor), but this can be a bit dirty depending on how the dev named things because you could accidentally replace lines of code instead of just strings.

In those cases you would need to check the replacements manually or write a regex to avoid replacing the wrong lines.
 

ThaRealThiccShady

Active Member
Mar 16, 2020
588
1,383
The easiest solution is using a "Replace All" in all files at once (with your prefered text editor), but this can be a bit dirty depending on how the dev named things because you could accidentally replace lines of code instead of just strings.

In those cases you would need to check the replacements manually or write a regex to avoid replacing the wrong lines.
Yeah I’ve tried both those options before but with the former I always get errors and with the later I don’t think I had enough experience to do it right. But much appreciated on the attempt to help.

ThaRealThiccShady Use 0x52's Mod

View attachment 1827306 View attachment 1827307 View attachment 1827309 View attachment 1827310

You can change any name from the MC to NPC's easily.
Click on the thumbs to see full sized images.
Ahhh ty so much, had no idea this mod even existed, seems like the perfect solution. Hopefully this’ll solve it but either way much appreciated
 

baloneysammich

Active Member
Jun 3, 2017
994
1,532
Yeah I’ve tried both those options before but with the former I always get errors and with the later I don’t think I had enough experience to do it right. But much appreciated on the attempt to help.


Ahhh ty so much, had no idea this mod even existed, seems like the perfect solution. Hopefully this’ll solve it but either way much appreciated
URM is great and I wholly recommend it. But in many cases all you really need is a patch file.

For example, in Rick and Morty Another Way Home, Morty's name is stored as variable 'm', so the following patch file:
Code:
init 999 python:
    m = Character("baloneysammich", who_color="#f4ef7a")
results in:
1.png

This fails if names are hardcoded in dialogue, as is the case for this game:
Code:
fp "Long time no see, Morty."
But this is an established 'universe' so it's a unique case. OTOH many (if not most) games use the variabes in the dialogue too eg:
Code:
fp "Long time no see, [m]."
 
  • Like
Reactions: ThaRealThiccShady

ThaRealThiccShady

Active Member
Mar 16, 2020
588
1,383
URM is great and I wholly recommend it. But in many cases all you really need is a patch file.

For example, in Rick and Morty Another Way Home, Morty's name is stored as variable 'm', so the following patch file:
Code:
init 999 python:
    m = Character("baloneysammich", who_color="#f4ef7a")
results in:
View attachment 1827414

This fails if names are hardcoded in dialogue, as is the case for this game:
Code:
fp "Long time no see, Morty."
But this is an established 'universe' so it's a unique case. OTOH many (if not most) games use the variabes in the dialogue too eg:
Code:
fp "Long time no see, [m]."
Interesting-that makes a lot of sense and I’ll likely refer to this in the event URM causes errors. Thank you as well
 

Weasel_Face

Active Member
Sep 16, 2020
697
1,613
Ahhh ty so much, had no idea this mod even existed, seems like the perfect solution. Hopefully this’ll solve it but either way much appreciated
You can also use it to make an impromptu I-patch when one isn't available with the + sign instead of the dropdown box and changing Landlady, roommate, childhood friend to whatever... Just make sure to choose "case insensitive" to pick up both Landlady & landlady, etc.
 
  • Like
Reactions: ThaRealThiccShady