Advertisement
Infus

"Error desirializing: Invalid AceSerializer table format (no

Sep 28th, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. From 0efbde07bbf584766f1d73bf125146b0a296df34 Mon Sep 17 00:00:00 2001
  2. From: Infus <infus@squorn.de>
  3. Date: Sun, 28 Sep 2014 12:08:57 +0200
  4. Subject: [PATCH 1/2] Hardcode compression to Huffman
  5.  
  6. This fixes a "Error desirializing: Invalid AceSerializer table format
  7. (no table end marker)" on importing long strings.
  8.  
  9. Apparently the LZW compression is not bug free.
  10. ---
  11. WeakAuras/Transmission.lua | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13.  
  14. diff --git a/WeakAuras/Transmission.lua b/WeakAuras/Transmission.lua
  15. index 1e49487..a721589 100644
  16. --- a/WeakAuras/Transmission.lua
  17. +++ b/WeakAuras/Transmission.lua
  18. @@ -358,7 +358,7 @@ LibStub("AceComm-3.0"):Embed(WeakAuras);
  19.  
  20. function WeakAuras.TableToString(inTable, forChat)
  21. local serialized = WeakAuras:Serialize(inTable);
  22. - local compressed = Compresser:Compress(serialized);
  23. + local compressed = Compresser:CompressHuffman(serialized);
  24. if(forChat) then
  25. return WeakAuras.encodeB64(compressed);
  26. else
  27. --
  28. 1.9.4.msysgit.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement