So, the most recent 0.2.2b clean version or linux seemed to have Christine referring to me as her Uncle. I'm not sure how/why, since I never downloaded the uncle restoration patch, but if anyone has the same problem I modified the patch that Penfold Mole uploaded.(added introduction)
To avoid confusion:
This patch restores original roles of the main characters: godfather and goddaughter will become uncle and niece again, as they originally were before Patreon policy changed.
The patch was not originally made by me, I just modified it by replacing the Pythonstartswith
method with the more flexible regex-awarere.match
and added a replacement filter for "goddaddy" and a misspelled "goddaughter" to it.
________________________________
(original post)
Added 'goddaddy' to the 'Uncle Restoration' patch to be replaced with 'uncle' (also works for the capitalized version):
_______________________Python:# code inspired by bossapplesauce @ f95zone init python: hardcoded = {} def rel_rest(text): def text_repl(t): if renpy.re.match("god+(?:daughter|daugther)", t.group(0)): return "niece" elif renpy.re.match("god+(?:father|daddy)", t.group(0)): return "uncle" elif renpy.re.match("God+(?:daughter|daugther)", t.group(0)): return "Niece" elif renpy.re.match("God+(?:father|daddy)", t.group(0)): return "Uncle" return hardcoded[text] if text in hardcoded else renpy.re.sub( r'(?:(?i)god+(?:father|daughter|daugther|daddy))', text_repl, text ) config.say_menu_text_filter = rel_rest
update
Added misspelled version of goddaughter ('goddaugther') to the replacement filter
_______________________
update2
Added a fix for another misspelled version of goddaughter ('godddaughter') to the filter. Now it will catch them all, no matter how many d's have been shoved in there in a row
(Thanks to Transcan for the report)
_______________________
rel_rest.rpy file from inside the zip archive goes into the 'game' subfolder in the game root folder:
View attachment 537498
Most of the patches I've made can be extracted directly into the game root folder, but this one follows the suit of the original rel_rest patch.
I don't really know python, but I tested it on my system and it seems to work.
Python:
# code inspired by bossapplesauce & Penfold Mole @ f95zone
init python:
hardcoded = {}
def rel_rest(text):
def text_repl(t):
if renpy.re.match("niece", t.group(0)): return "goddaughter"
elif renpy.re.match("uncle", t.group(0)): return "godfather"
elif renpy.re.match("Niece", t.group(0)): return "Goddaughter"
elif renpy.re.match("Uncle", t.group(0)): return "Godfather"
return hardcoded[text] if text in hardcoded else renpy.re.sub( r'(?:(?i)(?:uncle|niece))', text_repl, text )
config.say_menu_text_filter = rel_rest
Since I tend to lurk and haven't posted before, if for some reason the attached file doesn't come through, you can either download Penfold Mole's patch and update the text to match the code above, or copy the code above into a blank notepad and save the file as rel_rest.rpy.