Page 5 of 7

Re: Basic Message System

Posted: Mon Feb 02, 2015 11:04 pm
by sharikah
Dragonstar89 wrote:
sharikah wrote: Does this go in the messages part or in the script?
It goes in the messages.rpy file. Look where I commented out the old code in the snippets I shared - that's where you should paste it at.
Another question with the post you put using the phone as the alert for the new messages does it also go in the messages or in the script? So I'm learning but I don't know a lot.

Re: Basic Message System

Posted: Tue Feb 10, 2015 6:09 pm
by Dragonstar89
sharikah wrote:
Dragonstar89 wrote:
sharikah wrote: Does this go in the messages part or in the script?
It goes in the messages.rpy file. Look where I commented out the old code in the snippets I shared - that's where you should paste it at.
Another question with the post you put using the phone as the alert for the new messages does it also go in the messages or in the script? So I'm learning but I don't know a lot.
You will use the phone images in your code for the messages.rpy script.

Re: Basic Message System

Posted: Fri Feb 20, 2015 11:57 am
by Luxliev
Thanks for sharing.

Re: Basic Message System

Posted: Sun Feb 22, 2015 9:33 pm
by CupCakeComedy
This is an example of using a muckup and part of the code to create a complex phone overlay.
I'm working on it (lack some asset), but I also added an animated notifying system, animation of opening/close, an attachment system, the sent date, and a different way to reply (without the need to jump to other labels). Seen messages change icon and color. I drop the delete and draft system, I don't needed them (probably I will restore them later).
Maybe I can post some code example soon. Anyway the style code is strictly tied with the images and mockups you use.
In my code I strictly used textbuttons with Solid(()) backgrounds and paddings to avoid caching problems.
screenshot0108.png
screenshot0109.png
screenshot0110.png

Re: Basic Message System

Posted: Wed Feb 25, 2015 9:13 am
by sharikah
That's great!! Were you able to finish it? I would love to use it..
CupCakeComedy wrote:This is an example of using a muckup and part of the code to create a complex phone overlay.
I'm working on it (lack some asset), but I also added an animated notifying system, animation of opening/close, an attachment system, the sent date, and a different way to reply (without the need to jump to other labels). Seen messages change icon and color. I drop the delete and draft system, I don't needed them (probably I will restore them later).
Maybe I can post some code example soon. Anyway the style code is strictly tied with the images and mockups you use.
In my code I strictly used textbuttons with Solid(()) backgrounds and paddings to avoid caching problems.
screenshot0108.png
screenshot0109.png
screenshot0110.png

Re: Basic Message System

Posted: Fri Feb 27, 2015 8:00 pm
by CupCakeComedy
sharikah wrote:That's great!! Were you able to finish it? I would love to use it..
I'll do another post (soon). This one belong to a commercial project, so I will do a tutorial more than a code to recycle (nothing too difficult, anyway).

Re: Basic Message System

Posted: Thu Mar 19, 2015 7:32 pm
by sharikah
Please let me know when you!!
CupCakeComedy wrote:
sharikah wrote:That's great!! Were you able to finish it? I would love to use it..
I'll do another post (soon). This one belong to a commercial project, so I will do a tutorial more than a code to recycle (nothing too difficult, anyway).

Re: Basic Message System

Posted: Mon Jul 13, 2015 12:25 pm
by Xerofit51
Is it just me or when you load a game, all the messages you read became new messages again?

Re: Basic Message System

Posted: Sun Aug 02, 2015 7:29 pm
by wayward
This is a really cool idea.

Re: Basic Message System

Posted: Wed Jan 27, 2016 8:47 pm
by namastaii
Someone posted in the questions forums using your code and asking if there's a way to make it so some text messages can open a photo link or attachment type of feature. Would this be possible?

Re: Basic Message System

Posted: Fri Mar 04, 2016 6:29 pm
by MindlessLogic
namastaii wrote:Someone posted in the questions forums using your code and asking if there's a way to make it so some text messages can open a photo link or attachment type of feature. Would this be possible?
I would try using the hyperlink text tag functionality: http://www.renpy.org/doc/html/text.html ... -text-tags

Re: Basic Message System

Posted: Fri May 27, 2016 10:42 pm
by meyaoi
Thank you for making this, it is a really great example to start learning coding.

However, I experience a bit of problem with it (which I don't know if it happens only to me or what), but whenever I save, exit the game, and reload the save file, the text messages aren't retained (it went missing from the phone screen).

I would appreciate any kind of help, thank you!


Nevermind, I was being stupid and missed a line of code.
In case someone experience the same thing:
It's this line here:

Code: Select all

    $ mail = []
    $ mail_queue = []

Re: Basic Message System

Posted: Wed Jun 21, 2017 2:03 pm
by LyannaCore
I realize this systems is a bit old now, so it's probably just something that has changed with Renpy updates, but trying to use it messes up my existing menus.

With the messages.rpy included and integrated as required, they are aligned to the left and have no change when moused over:
Image.

Without the message framework, it looks like this:
Image

The beginning of my script code is like this while using the messages.rpy framework:

Code: Select all

label start: 

## Message Stuff ##
    $ mail = []
    $ mail_queue = [] # for message delay
    $ contacts = []  # for draft feature

    scene black
    with fade
    
    show screen mailbox_overlay
    
    "Where would you like to start?"
    menu:
        "Intro":
            jump start1
        "Waking up":
            jump wake1
        "Laundry":
            $ pcfirstname = "Lyanna"
            $ pclastname = "Core"
            jump laundryservice
        "Ship Paperwork":
            $ pcfirstname = "Lyanna"
            $ pclastname = "Core"
            $ laundrychoice = 1
            jump creation1
        "Ship Start":
            $ pcfirstname = "Lyanna"
            $ pclastname = "Core"
            jump shipstart1
        "System Map":
            $ pcfirstname = "Lyanna"
            $ pclastname = "Core"
            jump system_map
Any ideas what the issue could be?

Re: Basic Message System

Posted: Tue Jul 25, 2017 1:37 am
by SgurrDearg
LyannaCore wrote:
Wed Jun 21, 2017 2:03 pm
I realize this systems is a bit old now, so it's probably just something that has changed with Renpy updates, but trying to use it messes up my existing menus.
...
With the messages.rpy included and integrated as required, they are aligned to the left and have no change when moused over:
...
Any ideas what the issue could be?
Hi, I encountered this issue too, and managed to fix it. It's a bit of a temporary fix and might cause issues if you plan to use the email drafts & replies though, I haven't tested for that as it's not applicable to me.

However! If you go into the messages.rpy script and hash out (or delete) all the lines from "Updated Choice Screen" down (line 200), it should return to normal.

I realise this is a month late but if you were still struggling I thought I'd share my quick solution, as I've been fretting about it for a week or so now too :lol:

Re: Basic Message System

Posted: Wed Aug 09, 2017 7:28 pm
by LyannaCore
Thank you, I set the whole thing aside when I couldn't figure it out, so this helps a lot.