LoginLogin

Sending large amounts of data over local muliplayer

Root / Programming Questions / [.]

AveryCreated:
If I remember correctly, the in-game help says <icode>MPSEND</icode> allows sending a string up to 256 bytes in length, but when I tested it, it was actually 128 bytes. I've been thinking about making DEF blocks that send multiple MPSEND strings that combine into one large string. Maybe up to 4 Megabytes. Also I think the MPSEND commands need to be separated by delays to prevent overflow.

I think I can explain the byte difference - each char is actually 2 bytes. As for the delay, Square did a bit of reverse engineering and figured much of it out, let me see if I can find the link. Edit: http://smilebasicsource.com/forum?fpid=1495#post_1495

I think I can explain the byte difference - each char is actually 2 bytes. As for the delay, Square did a bit of reverse engineering and figured much of it out, let me see if I can find the link. Edit: http://smilebasicsource.com/forum?fpid=1495#post_1495
Oh you're right, that does make sense! Now I got an idea for compressing simple ascii strings to half size. Doubt I'll do that though. xD