Commit Graph
100 Commits
Author SHA1 Message Date
MihailRis 04e490c896 add config/defaults.toml 2024-10-14 02:56:33 +03:00
MihailRis de00414456 add generator 'caption' property 2024-10-13 22:53:12 +03:00
MihailRis 7c56d8fd7f replace biomes.json with biomes.toml & make it combined object 2024-10-13 21:50:39 +03:00
MihailRis e7d7753d47 Merge branch 'main' into heightmaps 2024-10-13 12:20:21 +03:00
MihailRisandGitHub 3078e0055b Merge pull request #307 from MihailRis/update-toml
Update TOML parser
2024-10-13 12:19:31 +03:00
MihailRis 6a2b2062b3 feat: array of tables support 2024-10-13 12:09:56 +03:00
MihailRis 68c3a646c8 feat: local date-time, offset date-time, local time, local date support (reading to string) 2024-10-13 10:51:24 +03:00
MihailRis 9667b81438 fix: string literal line separator escape 2024-10-13 10:16:17 +03:00
MihailRis 2f7fbd57ee feat: toml multiline string test 2024-10-12 23:07:10 +03:00
MihailRis abe004c3d5 revert operator<< overload of dv::value 2024-10-12 17:37:06 +03:00
MihailRis d14548cff8 feat: toml lvalues support 2024-10-12 00:23:52 +03:00
MihailRis 66825d62aa feat: toml arrays and inline tables support 2024-10-11 20:43:37 +03:00
MihailRis 40612dd7da update doc-comments 2024-10-11 19:06:38 +03:00
MihailRis b5c1050f43 add placements priority 2024-10-11 18:37:03 +03:00
MihailRis fb53b3941c update caves distribution 2024-10-10 04:44:44 +03:00
MihailRis 50eb83ad9b add generator param 'wide-structs-chunks-radius' & make caves more interesting 2024-10-10 03:57:43 +03:00
MihailRis a578cca325 add 'place_structures_wide' callback 2024-10-10 02:00:13 +03:00
MihailRis 6e0304248b add stdmin.lua 2024-10-09 05:30:02 +03:00
MihailRis b4578cfb87 fix caves issues & add block 'surface-replacement' property 2024-10-08 22:37:41 +03:00
MihailRis c022e11c3b move test caves to base:demo 2024-10-08 20:14:38 +03:00
MihailRis 5966ca5617 refactor WorldGenerator 2024-10-08 16:57:24 +03:00
MihailRis ba3ac11b41 optimize lines generation 2024-10-08 16:26:26 +03:00
MihailRis 5a89d97b75 fix line placement 2024-10-08 05:44:36 +03:00
MihailRis 116cbd61db feat: 'lines' (cave-like structures/tunnels) (WIP) 2024-10-08 02:32:45 +03:00
MihailRis 8813d280dc update workflows 2024-10-06 21:57:13 +03:00
MihailRisandGitHub cd952e7216 Merge pull request #306 from MihailRis/isolated-lua-states
Add isolated lua states
2024-10-06 21:54:14 +03:00
MihailRis d9a44f3b87 minor refactor 2024-10-06 21:07:27 +03:00
MihailRis 73d96fd4f7 move generator script execution to an isolated Lua state 2024-10-06 18:23:33 +03:00
MihailRis 091805a16e refactor scripting_world_generation.cpp 2024-10-06 17:28:44 +03:00
MihailRis 7c73515d2d update workflows 2024-10-05 17:35:31 +03:00
MihailRis 756de7b0b1 refactor lua_engine 2024-10-05 17:32:03 +03:00
MihailRis 736fdbf964 move lua libs to /logic/scripting/lua/libs 2024-10-05 00:53:41 +03:00
MihailRis d31a935009 Merge branch 'main' into heightmaps 2024-10-05 00:06:14 +03:00
MihailRis b984e363ea add block size check to ContentLoader 2024-10-05 00:04:07 +03:00
MihailRis 1eb95705f5 Merge branch 'main' into heightmaps 2024-10-04 22:51:24 +03:00
MihailRis 45a793d647 fix: entity shading is incorrect when it is upper than max height 2024-10-04 22:50:37 +03:00
MihailRis 15342c2df2 add 'config' entry point, pack.shared_file(...) & refactor engine_paths.cpp 2024-10-04 22:40:05 +03:00
MihailRis f93c831d3f Merge branch 'main' into heightmaps 2024-10-04 20:55:03 +03:00
MihailRis 85bea6f17d fix: toggle fullscreen GLFW invalid enum error 2024-10-04 20:51:14 +03:00
MihailRis 073ef11cfa Merge branch 'main' into heightmaps 2024-10-04 16:58:50 +03:00
MihailRis f63ab345ea fix: flight can stop on noclip enabled 2024-10-04 16:57:29 +03:00
MihailRis a47b650591 add core:struct_air 2024-10-04 01:53:17 +03:00
MihailRis 0cbc048523 move debug generator visualizer origin to center 2024-10-03 23:02:22 +03:00
MihailRis 06a0468967 update debug generator visualizer 2024-10-03 22:27:46 +03:00
MihailRis ea9ad08bfd Merge branch 'main' into heightmaps 2024-10-03 19:12:37 +03:00
MihailRisandGitHub 414f18f7c7 Merge pull request #294 from MihailRis/blocks-metadata
Add blocks metadata
2024-10-03 19:04:10 +03:00
MihailRis 73903f82ae fix 2024-10-03 18:24:57 +03:00
MihailRis f7492ce449 add lua dv::bytes support 2024-10-03 18:23:50 +03:00
MihailRis 9e8a33c411 delete blocksdata region file if there is no associated voxels region 2024-10-03 18:07:19 +03:00
MihailRis c7ca7e58b3 rename chunk_inventories_map to ChunkInventoriesMap 2024-10-03 17:42:38 +03:00
MihailRis ab53922474 extend user block fields check 2024-10-03 16:08:40 +03:00
MihailRis a73a1cfbb8 add dv::object(std::initializer_list<dv::pair>) 2024-10-03 02:41:37 +03:00
MihailRis 0ad588fd33 fix world converter 2024-10-03 02:38:57 +03:00
MihailRis 8f1eae4330 add dv::object(std::initializer_list<dv::pair>) 2024-10-03 01:32:57 +03:00
MihailRis 597a16e79e update block-properties docs 2024-10-02 22:29:14 +03:00
MihailRis 5ff00df527 micro refactor 2024-10-02 20:24:50 +03:00
MihailRis 4e692d93b2 fix block fields data type names in docs 2024-10-02 18:25:47 +03:00
MihailRis 87cf6c41bc update block.get_field, block.set_field and fields-related docs 2024-10-02 17:56:19 +03:00
MihailRis e0a4876f3f add explicit block fields total size limit - 240 bytes 2024-10-02 17:08:46 +03:00
MihailRis 221a34fa2e add block data-fields to docs 2024-10-02 17:00:51 +03:00
MihailRis 6016433f47 format ContentReport.cpp 2024-10-02 00:35:50 +03:00
MihailRis c79b65a432 fix: error if indices.json has no 'blocks-data' element 2024-10-02 00:29:00 +03:00
MihailRis e73da1687a Merge branch 'main' into heightmaps 2024-10-01 23:29:40 +03:00
MihailRis bc7be5ecc8 Merge branch 'main' into blocks-metadata 2024-10-01 23:29:07 +03:00
MihailRis e750d90ff4 add 'graphics.chunk-max-vertices', 'graphics.chunk-max-renderers' settings 2024-10-01 23:25:25 +03:00
MihailRis a65cf6ed66 add ThreadPool maxWorkers constructor argument 2024-10-01 23:24:01 +03:00
MihailRis 99e8764907 fix setAscii, setUnicode 2024-10-01 22:06:57 +03:00
MihailRis 024dccb135 fix: no blocks data conversion if no data loss detected 2024-10-01 21:05:08 +03:00
MihailRis bc05716772 implement blocks data conversion 2024-10-01 19:08:45 +03:00
MihailRis 28d746f371 implement blocks data saving/loading 2024-09-30 23:42:16 +03:00
MihailRis e84c79839c update blocks data lifetime 2024-09-30 21:33:19 +03:00
MihailRis 4f559c1086 refactor libblock 2024-09-30 20:15:22 +03:00
MihailRis fc99343fb5 add block.get_field(...), block.set_field(...) 2024-09-30 18:55:01 +03:00
MihailRis 8d89e06ac5 Merge branch 'main' into blocks-metadata 2024-09-30 17:23:05 +03:00
MihailRis 75d66b644b add debug world generator visualization 2024-09-30 15:14:34 +03:00
MihailRis 88752806e6 fix: extra chunk generation when all area chunks are generated 2024-09-30 14:39:16 +03:00
MihailRis e30e0083a0 add ores 2024-09-30 13:14:53 +03:00
MihailRis e590d06bb0 add file.read_combined_list(...) 2024-09-30 01:55:42 +03:00
MihailRis f20a0dfae0 Merge branch 'main' into heightmaps 2024-09-30 00:36:58 +03:00
MihailRis 572ae9fa39 add array as root element support to json parser 2024-09-30 00:36:14 +03:00
MihailRis 3a4b77dafc add array as root element support to json parser 2024-09-30 00:34:32 +03:00
MihailRis 16fac768c8 add chunk_height parameter to place_structures 2024-09-29 23:39:42 +03:00
MihailRis abc8eccab8 add biome-bpd and heights-bpd generator def parameters 2024-09-29 23:12:45 +03:00
MihailRis 6c2d10e14b cleanup 2024-09-29 22:08:28 +03:00
MihailRis 3784b57eed move biomes definition to a json file 2024-09-29 22:03:37 +03:00
MihailRis d62d66cf85 make core:obstacle unbreakable 2024-09-29 21:37:49 +03:00
MihailRis 50c7308211 move core.get_generators to generation.get_generators 2024-09-28 14:23:20 +03:00
MihailRis c46090f881 update generators scanning 2024-09-27 23:55:14 +03:00
MihailRis 39030efd74 refactor ContentLoader 2024-09-27 04:21:35 +03:00
MihailRis 3d478aef08 add generator definition file (.toml) 2024-09-26 22:26:01 +03:00
MihailRis d839da7dab collect generator voxel fragments to directory 2024-09-26 01:30:55 +03:00
MihailRis 788ad1f6a6 add core:obstacle block & move cameras from base to core & add new generator 2024-09-25 15:45:45 +03:00
MihailRis d534207deb add test ore (coal) 2024-09-25 00:13:59 +03:00
MihailRis 36eed38b4c add new methods to PseudoRandom & move this class to util:: 2024-09-24 22:37:31 +03:00
MihailRis c987bbd34f add biomes.json 2024-09-24 22:06:37 +03:00
MihailRis bca222afe5 update test generator script 2024-09-24 20:46:50 +03:00
MihailRis dbaea71398 fix structures choosing 2024-09-24 18:31:15 +03:00
MihailRis 09e9c570c0 add plants to test forest biome & update biome params noise 2024-09-24 17:25:20 +03:00
MihailRis 983a24bd05 remove generator script load_structures function 2024-09-24 17:16:52 +03:00
MihailRis 806ed4b155 add automatic biome-based structures placement 2024-09-24 17:08:25 +03:00