diff --git a/.gitignore b/.gitignore index fc88efd..aabbf6f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,9 @@ /build/ -# Inputs that stay local: the game's assets, the Rivers release, the -# test world and its server config, and the cJSON checkout the build -# compiles from. +# Inputs that stay local: the game's assets, the Rivers release, and +# the test world and its server config. /assets/ /serverconfig.json -/cJSON/ *.zip *.vcdbs *.vcdbs-* diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..aef758e --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "cJSON"] + path = cJSON + url = https://github.com/DaveGamble/cJSON.git diff --git a/Readme.org b/Readme.org index dbc8bad..540588e 100644 --- a/Readme.org +++ b/Readme.org @@ -12,41 +12,18 @@ and where the caves run. [[file:doc/screenshot.png]] It covers Vintage Story 1.22.7 with the Rivers 5.0.3 mod. The -generator is a port of the game's own, written in [[https://git.kotobank.ch/alex-eg/sex][Sex]]. It is checked -against a real save, and matches it: - -| What | Matches | -|-------------------------------------------+-----------------------------------------| -| Region maps: landform, climate, province, ocean, upheaval, strata | every pixel of 118 regions | -| Story structure locations | all 6 | -| Rivers' distance to the nearest river | 100% of 6.5 million columns | -| Terrain height | 98.2% of 11.7 million columns | -| Rock at the surface | all but 14 of 11.7 million columns | -| Rock below the surface | 99.91% of 1.38 billion blocks; see below | -| Caves | 96.1% of 18.5 million carved blocks; see below | -| Ore maps, 31 minerals | every pixel of 118 regions | -| Prospecting pick readings | 38 of 42 in the game's category; see Limits | - -All but 0.02% of the other heights come from two passes that run after -the strata are laid: caves that open the surface, and the raise of dry -seabeds. Neither changes which rock is where. Below the surface, all -but 0.0011% of the other rock comes from later passes too: lava in deep -caves turns the rock around it to basalt, and cave walls and -underground structures are built of granite. Where the caves differ, -it is nearly all what later passes put in them, or air the structures -and the block layers make; 0.28% is not explained. -=Plan.org= has the details. +generator is a port of the game's own, written in [[https://git.kotobank.ch/alex-eg/sex][Sex]]. ** Building You need: -- the Sex compiler, expected at =~/dev/sex/sexc= (or set =SEXC=); +- the Sex compiler; - a C compiler; -- SDL3 (=brew install sdl3=); +- SDL3; - SQLite3; -- zstd (=brew install zstd=); -- a checkout of [[https://github.com/DaveGamble/cJSON][cJSON]] in =./cJSON=. +- zstd; Nuklear and stb_image_write are vendored in =third_party/=. +сJSON is a submodule, so use =git submodule update --init= before building. #+begin_src sh make diff --git a/cJSON b/cJSON new file mode 160000 index 0000000..6d9f244 --- /dev/null +++ b/cJSON @@ -0,0 +1 @@ +Subproject commit 6d9f2443ab071f86e5d9b43025a40929ec41c46c