From 5b376696a06da5aa21a6b6aead0181eb01570649 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Thu, 4 Sep 2014 19:24:35 +0200 Subject: [PATCH] Add doc on file format --- fileformat.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 fileformat.txt diff --git a/fileformat.txt b/fileformat.txt new file mode 100644 index 0000000..7544204 --- /dev/null +++ b/fileformat.txt @@ -0,0 +1,15 @@ +NM database file format: +------------------------ +char[4] magic = "NMDB" +u8 version = 1 +repeat { + s16 x + s16 z + s16 y + u16 player id +} + +* everything little endian +* s16's are serialized like this: +* write_u16(value + 32768) +* the player id corresponds to the player listed on that line in nm_players.db (counting from 0)