+ Reply to Thread
Results 1 to 2 of 2
Like Tree1Likes
  • 1 Post By Redcruxs

Thread: [Table > String > Table] via the API messaging service: Addon sync ability

  1. #1
    Rift Chaser Ferather's Avatar
    Join Date
    Jun 2011
    Posts
    341

    Default [Table > String > Table] via the API messaging service: Addon sync ability

    Here is my code for turning an event table into a string, sending it via the API messaging service and reforming an event table.

    For anyone interested:

    http://pastebin.com/SdEfR3Qs

    Updated 20/10/2013
    Last edited by Ferather; 10-20-2013 at 08:34 AM.

  2. #2
    RIFT Guide Writer Redcruxs's Avatar
    Join Date
    Jan 2011
    Posts
    3,935

    Default

    have you checked the message size and send rate to see if you're over the limits?

    for my addon i'm using something like:

    Code:
    send function
    	local serialized = Utility.Serialize.Inline(table)
    	local compressed = zlib.deflate()(serialized, "finish")
                Command.Message.Broadcast("channel", channel, "raidfinder", compressed)
    Code:
    recieve function   
    
                 local decompressed = zlib.inflate()(data, "finish")
                 local deserialize = loadstring("return " .. decompressed)()
                 local table = deserialize
    Last edited by Redcruxs; 10-06-2013 at 10:20 AM.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts