- Sep 3, 2022
- 30,106
- 276,438
- 957
It depends on what you mean by "work", I suppose. I had v0.74 and played v0.75 earlier today with the patch from before (dated Aug. 31, 2021) without using UnRen at all. It worked as well as it can (Lucy was called "Sis", etc.). There have always been problems with something like this, because you don't actually have any variables in the game for character names or relationships. So the only option is to use find-and-replace, which is always problematic. And the patch broke absolutely nothing for me (again, on an copy that was not unarchived with UnRen).
Same patch as this?
init 1040 python:
import re
def nameChange(text):
replace_dict = {
"Julia" : "Mom",
"sJulia" : "Mom",
"Lucy" : "Sis",
"sLucy" : "Sis",
"Emma" : "Aunt Emma",
"sEmma" : "Aunt Emma",
"Sara" : "Grandma Sara",
"sSara" : "Grandma Sara",
"Olivia" : "Cousin Olivia",
"sOlivia" : "Cousin Olivia",
"Walter" : "Uncle Walter",
"sWalter" : "Uncle Walter",
}
def translate(match):
word = match.group(0)
return replace_dict.get(word, word)
return re.sub(r"\b[A-Za-z_]\w*\b", translate, text)
config.say_menu_text_filter = nameChange