This site requires JavaScript, please enable it in your browser!
Greenfoot back

Comments for Messager

Return to Messager

Roshan123Roshan123

2021/2/13

Even if i m not able to copy it
RcCookieRcCookie

2021/2/13

That's gonna be a bit of typing;-)
A new version of this scenario was uploaded on 2021-02-13 09:08:19 UTC
A new version of this scenario was uploaded on 2021-02-13 09:09:52 UTC
Roshan123Roshan123

2021/2/13

Their are some text which is shown half Example "back"; here 'k' is hidden
Roshan123Roshan123

2021/2/13

I have only seen 1 scenario which was out of my mind i.e. 'Private messenger' made by danpost (actually i can't think that this type of scenario can also be made in this site) and now u made it To be honest, i never saw such quality work. Everybody should try it at once. U made me speechless by making such type of scenario. I wonder u may be my friend who is always ready to guide. Great work!!!!
RcCookieRcCookie

2021/2/13

Thanks a lot! You mean "Private Messaging" by Danpost? I've seen that too, I think it works a little different based on the description, but onfortunatly there is no source. Also it's actually not so complicated. I've got a more detailed explaination in the source code, you may check it out
RcCookieRcCookie

2021/2/13

For the cut text: I know it's quite annoying. I usually just add an additional space at the end to ensure it's fine. That's because I have measured all the characters from the font one by one and some sizes are a bit off apparently
A new version of this scenario was uploaded on 2021-02-13 10:49:46 UTC
A new version of this scenario was uploaded on 2021-02-13 11:05:15 UTC
A new version of this scenario was uploaded on 2021-02-13 11:06:18 UTC
Roshan123Roshan123

2021/2/13

I would like to request u to add a mechanism which will highlight the new mails, which are not yet seen
RcCookieRcCookie

2021/2/13

I have that somewhat implemented. If you write a message to yourself you will see that it is bold until you reload the next time. I will try to add that it gets 'unbold' of you click on it. I would like it to have it so that the message stays bold until you click on it, but that is (as far as I can see) not possible with the storage space limitation of UserInfo. Currently every message consists of three parts: The text of the message, the target user (his id, so an int) and the timestamp of the message, again as an int. I could replace the time with an id if the message, a random number, that would be possible. But the reader had to save a list of ids of the messages he already read, and there is no more space for that.
Roshan123Roshan123

2021/2/13

Plz explain the latest mail briefly. And sorry if u r angry
RcCookieRcCookie

2021/2/13

Hey I'm not angry at all! I'm happy if I can explain this kinda stuff to other people! So first of all this is how the messaging generally works: - Someone creates a message with a text and the username of the adressed user - The text, the target user and the time at which it was created get stored in the userinfo of the person that sends the message (not the recieving one, you can only write the userinfo of the currently logged in person) - If someone refreshes his inbox the program goes through every message of every userinfo ever stored and checks if the target user is him, the current user. If it is, it knows that the user that stores the message did send the message to him Now for the way that stiff is stored in each userinfo: Username ----> Source of any messages from this UserInfo Score -------> Last refresh time int[0] \ int[1] | int[2] |----> Target user of message 1-5, as the hash code of the username int[3] | int[4] / int[5] \ int[6] | int[7] |----> Timestamp of message 1-5 int[8] | int[9] / String[0] \ String[1] | String[2] |-> Message 1-5 String[3] | String[4] / You see, there is no more space left to store which messages have been opened
Roshan123Roshan123

2021/2/13

Thank u so much and also don't forget to read the message which i sent in 'messager'
A new version of this scenario was uploaded on 2021-02-13 14:26:25 UTC
A new version of this scenario was uploaded on 2021-02-13 14:33:08 UTC
A new version of this scenario was uploaded on 2021-02-13 14:42:20 UTC
A new version of this scenario was uploaded on 2021-02-13 14:51:20 UTC
A new version of this scenario was uploaded on 2021-02-13 14:56:14 UTC
Roshan123Roshan123

2021/2/14

Will the user be able to see what i wrote I mean by downloading and clicking on csv file I realised it after some time and then i changed my greenfoot password immediately Plz don't laugh. Be honest
RcCookieRcCookie

2021/2/14

I don’t think so, but I can see any message (also between others)
RcCookieRcCookie

2021/2/14

I guess not but try it out
RcCookieRcCookie

2021/2/15

Thank you!
Roshan123Roshan123

2021/2/19

U got a new inbox Hope u will take some time out to compose And I m shocked to see that no one is voting your scenario Its totally wierd for me
RcCookieRcCookie

2021/2/21

Whatever about the likes. I’m getting like 3-5 on average, I don’t think I can complain
Roshan123Roshan123

2021/3/2

Why the symbol above 'new message' is looking wierd in mobile but not in pc Is it due to my browser version? If not then can u plz explain me
RcCookieRcCookie

2021/3/2

Same on my phone. It’s because the refresh symbol is actually a character from the font, and the font does not seem to be supported on the phone. And the alternative font does not have a character symbol for the refresh char so it shows the classic „no char for that“ char.
Goku555Goku555

2021/5/8

Why some of the letters look half? It not showing full letter. Something like - Cance. I think it is Cancel. By the way it is a very god scenareo. God job
RcCookieRcCookie

2021/5/8

That’s because I am using a custom font. Normally you just say what text you want and Greenfoot figures out the required image size for you, but because you can only draw onto existing images if you want to set the font I have to calculate the size on my own. To do so, I had to measure the size of each character manually, which leads to two problems: - Some special characters may not have been measured and will just get a default size - My measurements are crappy
RcCookieRcCookie

2021/5/8

I may just make each image a bit bigger, but that is not yet fixed. Also, I’m happy you like it!
Gabe1098Gabe1098

2021/6/15

I really like this
RcCookieRcCookie

2021/6/17

Thanks a lot!
Nice work!
RcCookieRcCookie

2021/6/19

Thanks! (Didn’t recieve a message from you ;-) )
Hope now u got my message
Goku555Goku555

2021/7/18

Hi
Goku555Goku555

2022/4/19

L
Goku555Goku555

2022/4/19

O
Goku555Goku555

2022/4/19

O
Goku555Goku555

2022/4/19

K
Goku555Goku555

2022/4/19

At
Goku555Goku555

2022/4/19

My
Goku555Goku555

2022/4/19

New
Goku555Goku555

2022/4/19

Me
Goku555Goku555

2022/4/19

Ss
Goku555Goku555

2022/4/19

Ag
Goku555Goku555

2022/4/19

E
<p>Some</p><p>Some</p>

2022/5/3

Check inbox