Hey for some reason My MC_Name portion isn't flipping / using the right frames and icons? Right now its showing as received instead of sent. Does anyone else have this issue / know how to fix it ??
right now I have it as: define MC_Name = "[povname]"
because I am allowing my players to choose their own name. Does it not work here? Whenever a message sends as [povname] its using the received frames and icons and won't change no matter what I change 'MC_Name' to. Not having this problem with any other character I've added.
go in to PhoneTexting.rpy and remove "define MC_name =" line, then replace all the "MC_name" variable used in that file to "povname" . Hope everything will work as you desired.
I downloaded this for a game im making and i came across an issue i havent figured out (im very new to coding so sorry if this is an easy fix lol). I had the phone working at first, but after adding more dialogue, the phone disappeared and left just the normal text box. They are formatted like the phone, but the phone's images arent there. Ill try attaching a picture. Any help is appreciated!
There is a way. In one of my games, I ended up having to create a phone text code and repeating it several times for each character, including te background and the icon for their texts. Even for the separate images. I created a screen for each character such as this example. It allows the background to change and the icons to work correctly the way I needed them to.
Anyone know why the text in some of the messages is being cut at the start of the message? And is there a way to create a line break between convos? Also when I close the convo out, the last message sort of pops up right before the phone close.
idk if you're still having this issue but I had this issue and hopefully my fix can help you or somebody else. I think it's caused by changing the nvl-mode settings in gui.rpy. to fix this, i copied all of the nvl-mode settings from gui.rpy from yet-another-phone, and pasted it over the same settings in my gui.rpy file. i think this just changes them back to default but, thats what fixed it for me.
← Return to asset pack
Comments
Log in with itch.io to leave a comment.
I'm having an issue where the text isn't wrapping in the chat and I haven't changed anything from the default file?
Please does this phone work on Android? Because the MC's dialogue isn't showing on Android but showing on PC. Please do you know how to fix?
Hey for some reason My MC_Name portion isn't flipping / using the right frames and icons? Right now its showing as received instead of sent. Does anyone else have this issue / know how to fix it ??
right now I have it as:
define MC_Name = "[povname]"
because I am allowing my players to choose their own name. Does it not work here? Whenever a message sends as [povname] its using the received frames and icons and won't change no matter what I change 'MC_Name' to. Not having this problem with any other character I've added.
go in to PhoneTexting.rpy and remove "define MC_name =" line, then replace all the "MC_name" variable used in that file to "povname" . Hope everything will work as you desired.
I downloaded this for a game im making and i came across an issue i havent figured out (im very new to coding so sorry if this is an easy fix lol). I had the phone working at first, but after adding more dialogue, the phone disappeared and left just the normal text box. They are formatted like the phone, but the phone's images arent there. Ill try attaching a picture. Any help is appreciated!
does anyone know if it's possible to code in multiple icons for different characters? i've tried doing additional ifs and elif but nothing worked.
There is a way. In one of my games, I ended up having to create a phone text code and repeating it several times for each character, including te background and the icon for their texts. Even for the separate images. I created a screen for each character such as this example. It allows the background to change and the icons to work correctly the way I needed them to.
screen nvl_phonetext_mari(dialogue):
add "/images/phonesystem/windows/mari_phone_back.png"
style_prefix None
$ previous_d_who = None
for id_d, d in enumerate(dialogue):
if d.who == None:
text d.what:
xpos -335
ypos 0.0
xsize 350
text_align 0.5
italic True
size 28
slow_cps False
id d.what_id
if d.current:
at message_narrator
else:
if d.who == MC_Name:
$ message_frame = "/images/phonesystem/phone_send_frame.png"
else:
#print d.who
$ message_frame = "/images/phonesystem/phone_received_frame.png"
hbox:
spacing 10
if d.who == MC_Name:
box_reverse True
#If this is the first message of the character, show an icon
if previous_d_who != d.who:
if d.who == MC_Name:
$ message_icon = "/images/phonesystem/phone_send_icon.png"
elif d.who == MC_Mari:
$ message_icon = "/images/phonesystem/phone_mari.png"
else:
$ message_icon = "/images/phonesystem/phone_mari.png"
add message_icon:
if d.current:
at message_appear_icon()
else:
null width 107
vbox:
yalign 1.0
if d.who != MC_Name and previous_d_who != d.who:
text d.who
frame:
padding (20,20)
background Frame(message_frame, 23,23,23,23)
xsize 350
if d.current:
if d.who == MC_Name:
at message_appear(1)
else:
at message_appear(-1)
text d.what:
pos (0,0)
xsize 350
slow_cps False
if d.who == MC_Name:
color "#FFF"
text_align 1.0
xpos -580
else:
color "#ffffff"
id d.what_id
$ previous_d_who = d.who
style phoneFrame_mari is default
style phoneFrame_mari_frame:
## Change background according to who is texting. Add other backs later
background Transform("/images/phonesystem/windows/mari_phone_back.png", xcenter=0.5,yalign=0.5)
foreground Transform("/images/phonesystem/phone_foreground.png", xcenter=0.5,yalign=0.5)
ysize 815
xsize 495
style phoneFrame_mari_viewport:
yfill True
xfill True
yoffset -20
style phoneFrame_mari_vbox:
spacing 10
xfill True
As you can see, I changed the screen name to the nvl_phonetext(character name)(dialogue). This allowed me to keep the changes between each character.
i'll try this out. thanks!
Anyone know why the text in some of the messages is being cut at the start of the message? And is there a way to create a line break between convos? Also when I close the convo out, the last message sort of pops up right before the phone close.
idk if you're still having this issue but I had this issue and hopefully my fix can help you or somebody else. I think it's caused by changing the nvl-mode settings in gui.rpy. to fix this, i copied all of the nvl-mode settings from gui.rpy from yet-another-phone, and pasted it over the same settings in my gui.rpy file. i think this just changes them back to default but, thats what fixed it for me.