add cJSON as submodule
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -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-*
|
||||
|
||||
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[submodule "cJSON"]
|
||||
path = cJSON
|
||||
url = https://github.com/DaveGamble/cJSON.git
|
||||
33
Readme.org
33
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
|
||||
|
||||
1
cJSON
Submodule
1
cJSON
Submodule
Submodule cJSON added at 6d9f2443ab
Reference in New Issue
Block a user