Originally Posted by Myke916
can u send tables over the addonchannel
|
Yes, but you have to turn it into a string somehow first, and then the receiver has to turn it back into a table. Probably the easiest method would be to use the AceSerializer-3.0 library, which will handle both serialization (turning the table into a string) and deserialization (turning the string back into a table).
If you're sending huge amounts of data, you may also want to look at LibCompress-1.0, which provides data compression, and/or AceComm-3.0, which will handle breaking up large messages into multiple messages, sending them to other people, and recombining the chunks on the other end.
Something like this:
1. Use AceSerializer-3.0 to turn your table into a string.
2. Use LibCompress-1.0 to compress the string.
3. Use AceComm-3.0 to break up and send the compressed string as multiple addon comm messages.
Then, the person receiving your comms would do this:
1. Use AceComm-3.0 to reassemble the comm messages into the complete, compressed string.
2. Use LibCompress-1.0 to decompress the string.
3. Use AceSerializer-3.0 to turn the string back into the original table.