mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-03 11:15:23 +01:00
774a736acc
Step 3b of docs/world-format-eu07.md (#516, section 13), on the map of sections of step 3a. With world.unbounded 1 in eu07.ini (off by default; then nothing changes) the region keeps sections wherever the nodes are: point_inside() takes any finite point, section() no longer puts a point beyond the classic square into the section at its edge, and the walks of the renderer, the local lights and sections() go over the rows and columns around the camera with no cut at 0 and 499 (region_index_low/high, section_in_region). The binary files index only the classic square, so a scenery reaching beyond it gets no .sbt (the log says so) and a terrain file beyond it no .btf. An unbounded region reads and writes its own binary files, .unbounded.sbt and .unbounded.btf: a file made with the region ending at +-250 km has the nodes beyond left out or put at the edge, and must not stand in for them, nor the other way round. For a scenery within the square the two files come out byte for byte the same. Checked in the game (--test 120 s, seed 1): td.scn with the switch on gives the same physics log bit for bit as without it; a copy of td.scn moved 400 km out (origin 400000 0 0) gives with the switch on the same physics log as td.scn at its own place, with 16 lines in the error log against 301 with the switch off, where it runs as before.