Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2016-10-01 08:30:41, last edited by capasha (2016-10-03 18:59:34)

capasha
Member
Joined: 2015-02-21
Posts: 4,066

[Release] Better way to send huge chat messages

So I have used this code before, in EEChat. But now I needed it so I recoded it to work for me.
Here is the pastebin, as you can see there is only debug messages and lorem ipsum to test it.
I have not added playerio connections. That can someone that use this code do instead.

Offline

#2 2016-10-01 14:37:57

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: [Release] Better way to send huge chat messages

Why aren't you using substrings when the message is too long? and I can't see accommodating the length of "/pm username" in the length.


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#3 2016-10-01 15:16:20

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

Re: [Release] Better way to send huge chat messages

Koya wrote:

Why aren't you using substrings when the message is too long? and I can't see accommodating the length of "/pm username" in the length.

I've always assumed that in EE, you can only send a string with 80 chars.
I'd thought the same applies for sending a PM, the PM length can only be 80 chars. The rest (/pm username) doesn't matter.
Has anybody verified this?

Offline

#4 2016-10-01 15:24:31

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: [Release] Better way to send huge chat messages

ninjasupeatsninja wrote:
Koya wrote:

Why aren't you using substrings when the message is too long? and I can't see accommodating the length of "/pm username" in the length.

I've always assumed that in EE, you can only send a string with 80 chars.
I'd thought the same applies for sending a PM, the PM length can only be 80 chars. The rest (/pm username) doesn't matter.
Has anybody verified this?

1. Message lengths were changed to 140 a little while ago.
2. It is 140 chars including the /pm username

"/pm GOSHA testing_azsbdfhjasbdfouibasdibvfzjhsvdfhgckavsdhygfvckajuhsldyhvfkhzsgdcvfkhagsdcfkhagsdcvfkahgsdcfkahgsdcfakhzasgdcvfkaugsdcvvcfa".length
140

Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#5 2016-10-01 17:34:44

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: [Release] Better way to send huge chat messages

interesting. Back in the day I set up some code to handle all the chat output because it was getting too intense, y'know. I used two functions and a queue; one function had a constant thread to always check the queue, and then divide up messages. The other function just added messages to the queue.

I suppose I could have used a timer in hindsight, but here we are.

This is certainly an improvement over simply sending large batches of text

Offline

#6 2016-10-01 23:45:36

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [Release] Better way to send huge chat messages

hummerz5 wrote:

interesting. Back in the day I set up some code to handle all the chat output because it was getting too intense, y'know. I used two functions and a queue; one function had a constant thread to always check the queue, and then divide up messages. The other function just added messages to the queue.

I suppose I could have used a timer in hindsight, but here we are.

This is certainly an improvement over simply sending large batches of text

Why is your method the exact same as mine? HAX

Offline

Wooted by:
den31071475361936626816

Board footer

Powered by FluxBB

[ Started around 1732402589.6476 - Generated in 0.065 seconds, 12 queries executed - Memory usage: 1.47 MiB (Peak: 1.61 MiB) ]