Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions File Formats/Code/Lua.md

This file was deleted.

34 changes: 34 additions & 0 deletions File Formats/Lua/Serialised Table.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# *COS ?:* Lua Serialised Table

## Quick information

| Information | |
| ----------- | ------------------------- |
| Type | Serialised Table |
| MIME | `lua/table` |
| Extensions | `.tbl` |

## Technical details

*This format is based upon [plain text](/File%20Formats/Documents/Plain%20Text.md) and as such technical details that apply to plain text also apply to this format.*

Lua serialised table files must contain a valid Lua table. A serialised table is valid if `textutils.unserialise` parses the *entire* contents of the file in to a table.

It is not strictly necessary to use `textutils.serialise` when creating the file. For example, you can make another function which does the same but omits unnecessary whitespace. The only requirement is that it is *parseable*.

### Example

```Lua
{
{
1,
2,
3,
4
}
"hello",
false,
nil,
["key"] = "value"
}
```