4.40 star(s) 28 Votes

Boehser Onkel

Forum Fanatic
Modder
Feb 20, 2021
4,546
7,841
Python:
init 1090 python:

    def replace_text(t1):
        t1 = t1.replace("original_name", "madeup_name")
        t1 = t1.replace("original_name2", "madeup_name2")

        return t1
    config.replace_text = replace_text
Just make a .rpy file of this and put whatever names you like and put it in the game folder
Maybe this will solve the problem. I'm not home so I can't test it. Let me know if it works. Thanks
you should have told me that you made one already and linked it for the other guy ;)
i am not playing or following that game so i was not aware
 
  • Heart
Reactions: Enlight432

Taptus

Member
Game Developer
Jun 7, 2018
309
721
Well, friends, I have already tested this code, made a few changes on my own and corrected some related files...
And you know what?

Everything works. Adam and Lisa can be renamed and this will not affect the difficulty of writing dialogs for me. This code really turned the situation 180 degrees. I will definitely introduce this feature in the 0.6 public version and 0.7 for gold members
 
  • Yay, update!
Reactions: MIRONENKO

Boehser Onkel

Forum Fanatic
Modder
Feb 20, 2021
4,546
7,841
Well, friends, I have already tested this code, made a few changes on my own and corrected some related files...
And you know what?

Everything works. Adam and Lisa can be renamed and this will not affect the difficulty of writing dialogs for me. This code really turned the situation 180 degrees. I will definitely introduce this feature in the 0.6 public version and 0.7 for gold members
yeah , i saw a function to rename adam at the script but commented out
no idea why
 
  • Heart
Reactions: Taptus

Taptus

Member
Game Developer
Jun 7, 2018
309
721
Python:
init 1090 python:

    def replace_text(t1):
        t1 = t1.replace("original_name", "madeup_name")
        t1 = t1.replace("original_name2", "madeup_name2")

        return t1
    config.replace_text = replace_text
Just make a .rpy file of this and put whatever names you like and put it in the game folder
Maybe this will solve the problem. I'm not home so I can't test it. Let me know if it works. Thanks
Thank you very much! You've been a great help to me and to the people for whom the possibility of renaming is very important
 

Enlight432

Active Member
Jan 4, 2024
834
1,431
Oh, that's exactly what they sent me in the BOS, if you did it, then thank you for the code and the person who brought it here
Both codes work. The difference between my code and theirs is in the first line
I used init 1090 python in yesterday's code(https://f95zone.to/threads/phone-story-v0-5-taptus.236390/post-16376522), but they used init 9090 python in today's code
When I searched the documentation, I found out that init 1090 python is executed earlier than the other one so that any text processed later will use this replacement function
But I'm not a Ren'Py coder, so you and them definitely know better. Use whichever one you think is best :coffee:
 

Boehser Onkel

Forum Fanatic
Modder
Feb 20, 2021
4,546
7,841
Oh, that's exactly what he sent me in private messages , if you did it, then thank you for the code and the person who brought it here
add this after line 70

python:
mc = renpy.input("What is your name? Default is Adam")
mc = mc.strip()
if mc == "":
mc = "Adam"
persistent.mc = Adam
else:
persistent.mc = mc

Screenshot_21.png

change this (adam)

define mc = Character("[mc]", kind=nvl, callback=Phone_SendSound)

you need to figure out the "adam's thoughts" thing
dont have the time for now

oh and all "Adam" at the script should be mc
for name like this :

mc "Hmm, pasta is tempting, but that chicken of yours is unbeatable."
mc "Let’s go with that."
Lisa "Knew you’d say that."
Lisa "Alright, chicken it is."
Lisa "But I expect proper gratitude for this masterpiece! "
show screen Dreem("[mc]'s thoughts", "Of course she does. She always knows how to make me work for it.")

this one is your job
:ROFLMAO:


 
Oct 25, 2024
230
235
Well, friends, I have already tested this code, made a few changes on my own and corrected some related files...
And you know what?

Everything works. Adam and Lisa can be renamed and this will not affect the difficulty of writing dialogs for me. This code really turned the situation 180 degrees. I will definitely introduce this feature in the 0.6 public version and 0.7 for gold members
Is the public version different than the paid version?
 
Aug 28, 2024
124
611
Both codes work. The difference between my code and theirs is in the first line
I used init 1090 python in yesterday's code(https://f95zone.to/threads/phone-story-v0-5-taptus.236390/post-16376522), but they used init 9090 python in today's code
When I searched the documentation, I found out that init 1090 python is executed earlier than the other one so that any text processed later will use this replacement function
But I'm not a Ren'Py coder, so you and them definitely know better. Use whichever one you think is best :coffee:
Man, I'm totally lost here! Which of your dang codes am i supposed to use? We ain't got time to sit around waiting for the next update, i wanna jump back into this game right now! :BootyTime:
 
  • Haha
Reactions: Boehser Onkel

Taptus

Member
Game Developer
Jun 7, 2018
309
721
Is the public version different than the paid version?
the public version is released on the same day as the new version for paid subscribers. The public version that I am releasing contains all the same technical innovations, bug fixes and bugs as the new version for members on patreon
 
  • Like
Reactions: MightbeSomeone

Taptus

Member
Game Developer
Jun 7, 2018
309
721
Both codes work correctly, but the developer said he have made some changes to them
I didn't change the code as much as I changed some aspects of the game related to changing the name, for example displaying the name at the top next to the avatar. Well, I added someone to enter the name of the MC and FMC
 

MIRONENKO

Member
Jul 26, 2017
432
316
I didn't change the code as much as I changed some aspects of the game related to changing the name, for example displaying the name at the top next to the avatar. Well, I added someone to enter the name of the MC and FMC
When should we expect the public release of 0.6? :BootyTime:
 
  • Thinking Face
Reactions: Taptus
4.40 star(s) 28 Votes