• Warhammer Online Addons
  • Warhammer Online
  • Average Rating:

  • Your Rating

  • Share
  • Report Abuse

LibPickle

 

Project Updated:
Files Updated: Sat, Jan 31 2009
Supports Game Version: Beta 3.0
Category: Data Export, and Development Tools
Tags:

[Edit Tags]

Project Manager: Bloodwalker
Additional Authors: No additional authors
Current Version: beta-0.2.2
License: MIT License
Development Site: CurseForge
Avg Daily DL (last 30 days): 9
Downloads Total: 7,075
Favorites: 2
Comments: 2
  • Curse Giveaways
  • Alganon

    Alganon

    Alganon Open Beta Key Giveaway Alganon is an upcoming fantasy-based MMORPG that allows thousands of people to play together in a virtual world that features a rich history dominated by commanding deities...

    Get Key

  • Contests
  • About LibPickle
  •  

Easy to use serialization library for Warhammer.

Features

  • Supports the use of most data types as table keys, including tables, booleans, and wstrings.
  • Tables containing circular references are properly serialized and references restored when deserialized.
  • Functions cannot be pickled, instead they are replaced by a wstring to allow pickling of large objects and table structures without having to remove them first, try pickling GameData or SystemData sometime!
  • All serialized data is output as wstrings.
  • Low serialization overhead, strings are as compact and short as possible

Loading LibPickle

Copy LibPickle.lua and LibStub.lua to your project and add the following to the files section of your .mod file
<File name="LibStub.lua" />
<File name="LibPickle.lua" />

Using LibPickle

Once loaded you can either use LibStub to reference LibPickle

LibPickle = LibStub("LibPickle-0.1")
then
LibPickle.pickle(table)
LibPickle.unpickle(wstring)

or you can just use the global function directly without the nead to use a local reference to LibPickle

outputWString = Pickle(table) -- will output wstring
restoredTable = Unpickle(outputWString) -- will output table
Note: If you need a to access a specific version of LibPickle, use the LibStub method instead of the global, which will be overwritten by the last version loaded

Happy pickling!

Addons Using LibPickle

Aura

If you use LibPickle in your addon leave me a message and I'd love to add your addon to the list
  • Downloads (3)
  •  
File Name Release Type Game Version Downloads Date
Addon Curse.com Beta 2.3.3 0 9/29/2008
  File Name Release Type Game Version Downloads Date  
  LibPickle beta-0.2.2 Beta Beta 3.0 6,967 1/31/2009
  LibPickle beta-0.2.1 Beta Beta 3.0 55 1/31/2009
  LibPickle beta-0.1.1 Beta Beta 3.0 53 1/30/2009
  • 1 page(s)
  • Comments

Add Comment  

Add

You need to login or register to post.

Benefits of Registration

  • Interact with hundreds of thousands of other gamers on an open social network.
  • Post your stories, news, images, videos, and other content to share.
  • Create a network with your fellow gamers or join an existing one.
  • Gain reputation for everything you do.
  • Thanks Nemes, yes I did have a look at LibCereal before I started LibPickle some things just couldn't be done with it unfortunately. Most notably among the features of LibPickle, it can serialize tables with circular references which causes an error with LibCereal and a table serialized by LibPickle is approximately 17-20% shorter then the same table serialized by LibCereal. LibPickle is a different approach to serialization that hopefully supports most table structures authors are likely to use without limiting their design choices because they want to serialize their data later on, and hopefully a more compact output will help chat channel communication by sending more in less time.

    Reply Report Permalink
  • Nemes said

    Nice work... were you aware of LibCereal, another serialisation library?
    http://war.curse.com/downloads/war-addons/details/libcereal.aspx

    Reply Report Permalink
  • 1 page(s)
  • Similar Addons
  •  

Average downloads per day

  1. 327 LibSlash Development Tools
  2. 203 Curse Profiler Data Export
  3. 126 Phantom Buffs & Debuffs, Development...
  4. 61 LibSurveyor Development Tools
  5. 55 NerfedButtons Action Bars, and Development...