Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.
uriid1-experimentsPublic archive

About

Very simple implementation for serializing and deserializing lua tables.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

lua-serialize

This is a very very very simple implementation for serializing and deserializing lua tables.

Installation

The serialize.lua file should be dropped into an existing project and required by it:

local serialize = require "serialize"

exemple

-- load lib
local serialize = require "serialize"

local my_table = {
    -- Weapoon
    gun = {
        player = {
            [1] = "Ak47",
            [2] = "Deagle",
            [3] = "Uzi"
        }
    },
}

-- Save my_table
serialize.save(my_table, "my_table.tbl")

-- Load the table you just saved
local data = serialize.load("my_table.tbl")

-- It's easy!
print( data.gun.player[1] )

About

Very simple implementation for serializing and deserializing lua tables.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages