Author Topic: Sending a string to a client.  (Read 1323 times)

When I receive the string, it only turns up about 250 characters.
The file:
Code: [Select]
<bullet>Test Suggestion<just:right>Zapk(12270)
<hr>
I love
this system
it's awesome

<bullet>Hey, it's me again.<just:right>Zapk(12270)
<hr>
I haven't been gettin' my papers, wonderin' where you are.

<bullet>another suggestion<just:right>Zapk(12270)
<hr>
love you,
love zapk

<bullet>last submission test.<just:right>Zapk(12270)
<hr>
love you again and again baby
zapk
loves you
love, zapk

I only get this much:
Code: [Select]
<bullet>Test Suggestion<just:right>Zapk(12270)
<hr>
I love
this system
it's awesome

<bullet>Hey, it's me again.<just:right>Zapk(12270)
<hr>
I haven't been gettin' my papers, wonderin' where you are.

<bullet>another suggestion<just:right>Zapk(12270)
<hr>
When I echo the string i'm sending to the client, all of it turns up. But when I recieve it with the client, it's trimmed.
If there is actually some string limit, is there away to bypass it?

Yes there is a limit, 255 characters iirc

Send it in parts of about 128 characters.

Search doEvalLong for a function that breaks up large string into 64 character pieces

Transform that string piecing logic into the thing you've got there and win

Yes there is a limit, 255 characters iirc

Send it in parts of about 128 characters.

Search doEvalLong for a function that breaks up large string into 64 character pieces

Transform that string piecing logic into the thing you've got there and win
doEvalLong isn't a function. What do you mean?

doEvalLong isn't a function. What do you mean?
Search doEvalLong


http://forum.blockland.us/index.php?topic=179722.msg4689687#msg4689687

Though, it isn't a great reference.

Code: [Select]
for(%i = 0; %i < strLen(%sendStr); %i+=128) {
    commandToClient(%client, 'TransData', %i/128, getSubStr(%sendStr, %i, 128));
}

//client

function clientCmdTransData(%chunk, %str) {
    $totalStr = $totalStr @ %str;
}
« Last Edit: July 30, 2013, 12:17:21 AM by $trinick »

Code: [Select]
for(%i = 0; %i < strLen(%sendStr); %i+=128) {
    commandToClient('TransData', %i/128, getSubStr(%sendStr, %i, 128));
}

//client

function clientCmdTransData(%chunk, %str) {
    $totalStr = $totalStr @ %str;
}
Thank you!
And for future reference, commandToClient needs a client as the first arguement...



http://forum.blockland.us/index.php?topic=179722.msg4689687#msg4689687

Though, it isn't a great reference.

Code: [Select]
for(%i = 0; %i < strLen(%sendStr); %i+=128) {
    commandToClient('TransData', %i/128, getSubStr(%sendStr, %i, 128));
}

//client

function clientCmdTransData(%chunk, %str) {
    $totalStr = $totalStr @ %str;
}
fancy that, this uristmcqwerty fellow was the reason I was able to learn to code.

Thank you!
And for future reference, commandToClient needs a client as the first arguement...
Oh whoops, totally my bad.