216 Commits

Author SHA1 Message Date
Cubitect
a81171f5ef Made it possible to generate climates parameters individually 2022-08-03 20:10:50 +02:00
Cubitect
b2c433004d Fixed biome exclusion filter and struct bounding boxes (affects ancient_cities) 2022-08-01 19:19:16 +02:00
Cubitect
0477b60c10
Merge pull request #69 from alex-chew/patch-1
fix: correct write count in savePPM
2022-07-29 19:04:54 +02:00
Cubitect
3ba5347451 Expanded support of the match-any biome filter to the layered biome gen 2022-07-29 18:26:16 +02:00
Alex Chew
f8437428e7
add doc comment to savePPM 2022-07-17 11:14:15 -07:00
Alex Chew
629e68cabf
fix: correct write count in savePPM
Previously, the `fwrite` call always returned 3 if it succeeded, and so `savePPM` would return 1 even if the entire pixel buffer was successfully written to file (except in the trivial case `sx * sy == 1`). This changes `savePPM` to return 0 if it was successful.
2022-07-17 11:09:29 -07:00
Cubitect
91ba293616 Fix broken end gateway gen for pre 1.18 2022-06-02 23:51:38 +02:00
Cubitect
761b876b2f Fixed for strange historical village generation
1) false positives for zero-sized villages in pre 1.10
2) unique village biome check for 1.15 exclusively
2022-06-01 20:30:02 +02:00
Cubitect
9e301ba95b Fix of bastion/fortess generation 1.18+ and ancient_cities 2022-05-29 22:34:22 +02:00
Cubitect
8a02e7ae8f Ruined portals in the Nether moved in 1.18 2022-05-25 21:03:53 +02:00
Cubitect
857ac1edd9 Update ancient cities to 1.19-pre2 2022-05-25 01:20:20 +02:00
Cubitect
f1ec592a0e fixed insufficient cache size for initial multilayer 2022-05-22 13:39:33 +02:00
Cubitect
270ed5162b Use ';' for comments in biome colormaps 2022-04-23 22:42:11 +02:00
Cubitect
0933804f15 Added 1.19 deep_dark and mangrove_swamp biomes + ancient_city structures 2022-04-20 13:23:15 +02:00
Cubitect
136e645ce9 Added available biome checker 2022-04-11 11:49:37 +02:00
Cubitect
95723f90bb Added flags for 1.18 biome finder: match any of a set 2022-03-02 19:33:09 +01:00
Cubitect
81040b1f9e Added climate noise parameter finding utils 2022-02-27 18:15:36 +01:00
Cubitect
027cd6845a Redirect bamboo to biome layer 2022-02-19 23:02:15 +01:00
Cubitect
a1b582201f Fixed locale dependent biome color parser 2022-01-30 19:25:42 +01:00
Cubitect
d81832c670 Fix decimal parser skipping first digit 2021-12-08 20:02:42 +01:00
Cubitect
9bdc83b6ed Windows does not have CC default 2021-12-07 22:54:25 +01:00
Cubitect
546d3511d4 Approximation for biome filter + use default compiler in makefile 2021-12-07 22:11:56 +01:00
Cubitect
d22f71f2e2 Fixed village variants for meadows + updated end gateways to 1.18 2021-12-07 00:09:49 +01:00
Cubitect
fa3ed2af59 Added biome color parser + color tweaks + fix for ocean filter
* added version dependent biome names
* added parser for custom biome color override
* tweaked biome colors for a slightly better contrast in 1.18
* fixed oceans getting ignored by biome filter for 1.18
2021-12-04 22:22:00 +01:00
Cubitect
0cd6e8134a Perform 1.18 biome tests in a stochastic order + added termination flag 2021-12-02 21:42:23 +01:00
Cubitect
1d13c09d25 Tweaks that should improve accuracy of structure viability checks 2021-12-02 00:39:18 +01:00
Cubitect
8318bb615a Fixes for 1.18 Outposts and Nether structures. 2021-12-02 00:15:15 +01:00
Cubitect
38be869d8d Added a function for 'accurate' biomes of a chunk section. 2021-11-29 22:10:34 +01:00
Cubitect
e2f7f80503 Simplified biome tree encoding and fixed stronghold positions. 2021-11-29 21:20:35 +01:00
Cubitect
9d0b692d1f Shut up compiler warning 2021-11-28 13:18:17 +01:00
Cubitect
18a16f8000 Added rudimentary check for terrain, which should get slightly more accurate structure positions. 2021-11-28 12:39:43 +01:00
Cubitect
189b7db622 Specify problematic structures for 1.18 2021-11-27 16:57:16 +01:00
Cubitect
f59c655c42 Fixed biome requirements for igloos and outposts. 2021-11-27 16:51:45 +01:00
Cubitect
e21f6c0f92 Added variant option to isViableStructurePos. 2021-11-27 14:04:05 +01:00
Cubitect
a6f54b8d4f Updated structure finder for Villages and Monuments 2021-11-27 13:43:11 +01:00
Cubitect
8fea920b49 Fix 1.18 spawn and stronghold finders (please fix MC-241546, Mojang) 2021-11-24 23:14:19 +01:00
Cubitect
65414ac3be An approximation is sufficient for scaled 1.18 noise sampling. 2021-11-23 19:58:08 +01:00
Cubitect
849839af55 Structure generation in 1.18 unfortunately depends on surface height. 2021-11-22 23:13:37 +01:00
Cubitect
71ca41e171 Readme and fixes
1) Updated readme for 1.18 API.
2) Nether biomes should be 2D and keep the legacy noise in 1.18.
3) Added wrapper for checkForBiomes() with the new generator.
2021-11-20 15:46:52 +01:00
Cubitect
9166974ccf Major redesign and 1.18 biome generation.
Different versions, dimensions and variations are now bundled into a single Generator structure.
Areas (x,z,w,h) are largely replaced with a Range structure that supports 3D cuboids with scaling.
The scale now acts as a generalization that replaces layer access. Direct layer access will
have to be version specific, using the LayerStack.
(I.e. this update will unfortunately break much of the API.)
2021-11-18 23:13:44 +01:00
Cubitect
cf14767ca3 Removed dynamic allocations from layer functions
smaller memory footprint and better cache usage
v21.11.18
2021-09-04 10:35:09 +02:00
Cubitect
b94c12e982 Fixed generation for MC 1.0 2021-07-23 19:56:59 +02:00
Cubitect
e61f4f1ebf Fixed end gateways for 1.17 2021-07-21 21:05:20 +02:00
Cubitect
389910035a Version dependence of large biomes 2021-07-19 18:11:36 +02:00
Cubitect
61a341e1f6 fixes for large biomes + more efficient mineshaft finder 2021-07-18 11:48:54 +02:00
Cubitect
3b65b4bbf7 Mineshafts for pre-1.13 2021-07-08 22:49:07 +02:00
Cubitect
cb66b41328 Made mineshafts usable with structure functions 2021-07-08 20:33:06 +02:00
Cubitect
bfbd421ef5 Added end gateways and nether ruined portals 2021-07-03 09:50:05 +02:00
Cubitect
e12acff608 Switch to uint64_t for seeds to improving C99 compliance
This is a fairly major change. Some functions involving structures still need testing.
2021-06-30 23:52:21 +02:00
Cubitect
6fda1caff8 Fixed wrong biomes list for fortresses + ranamed getConfig
1) suitable biomes for fortresses and bastions were swapped
2) renamed very generic getConfig to getStructureConfig
3) added potential way of overriding structure configs
2021-06-09 20:08:07 +02:00