67 posts
Posted 31 May 2013 - 10:13 AM
I was looking around for quite a while trying to find a serialization port for lua. Well, I found one. I just wanted to share it with you guys (Sorry this post isn't very long :P/>)
The link:
http://pastebin.com/De0R0CaCJust incase you didn't know about the Serialization functions in PHP: To use it just use "Serialize(array)" and it will return the serialize table as a string. Then use "Unserialize(string)" and it will return that array.
8543 posts
Posted 31 May 2013 - 10:50 AM
What does this do that textutils.serialize and .unserialize don't do?
2217 posts
Location
3232235883
Posted 31 May 2013 - 10:55 AM
this isnt as good as the default one
808 posts
Posted 01 June 2013 - 04:41 PM
textutils has this. The format of the serialized data is just the lua syntax for creating the same table.
169 posts
Posted 02 June 2013 - 08:00 PM
This serializes tables in the same format as PHP's serialize() function (I assume). This means that it is easier to communicate data with HTTP requests.
1054 posts
Posted 02 June 2013 - 08:16 PM
This serializes tables in the same format as PHP's serialize() function (I assume). This means that it is easier to communicate data with HTTP requests.
That's what JSON is for. :)/> (yes, I know it was made for JS, but it'll do fine in PHP :P/>)
169 posts
Posted 02 June 2013 - 10:25 PM
This serializes tables in the same format as PHP's serialize() function (I assume). This means that it is easier to communicate data with HTTP requests.
That's what JSON is for. :)/> (yes, I know it was made for JS, but it'll do fine in PHP :P/>)
Yeah I know, I use JSON all the time (not with Lua but with PHP and Javascript).