1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix some misinformation in world_format.md (#16256)

This commit is contained in:
DS 2025-06-13 23:32:55 +02:00 committed by GitHub
parent aba2b6638e
commit f75d16c1e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -401,7 +401,7 @@ See below for description.
Luanti will correct lighting in the day light bank when the block at Luanti will correct lighting in the day light bank when the block at
`(1, 0, 0)` is also loaded. `(1, 0, 0)` is also loaded.
Timestamp and node ID mappings were introduced in map format version 29. Timestamp and node ID mappings come here if map format version >= 29.
* `u32` timestamp * `u32` timestamp
* Timestamp when last saved, as seconds from starting the game. * Timestamp when last saved, as seconds from starting the game.
* `0xffffffff` = invalid/unknown timestamp, nothing should be done with the time * `0xffffffff` = invalid/unknown timestamp, nothing should be done with the time
@ -482,13 +482,7 @@ Timestamp and node ID mappings were introduced in map format version 29.
* `s32` timeout * 1000 * `s32` timeout * 1000
* `s32` elapsed * 1000 * `s32` elapsed * 1000
* Since map format version 25: * Map format version >= 25: see below
* `u8` length of the data of a single timer (always 2+4+4=10)
* `u16` `num_of_timers`
* foreach `num_of_timers`:
* `u16` timer position (`(z*16*16 + y*16 + x)`)
* `s32` timeout * 1000
* `s32` elapsed * 1000
`u8` static object version: `u8` static object version:
* Always 0 * Always 0
@ -516,6 +510,14 @@ Before map format version 29:
* `u16` `name_len` * `u16` `name_len`
* `u8[name_len]` `name` * `u8[name_len]` `name`
Since map format version 25, node timers come here:
* `u8` length of the data of a single timer (always 2+4+4=10)
* `u16` `num_of_timers`
* foreach `num_of_timers`:
* `u16` timer position (`(z*16*16 + y*16 + x)`)
* `s32` timeout * 1000
* `s32` elapsed * 1000
End of File (EOF). End of File (EOF).
# Format of Nodes # Format of Nodes