Commit Graph

17 Commits

Author SHA1 Message Date
cora 3366cfa8f9 re-register mcl2 overworld ores for each mm layer 2022-05-22 01:37:59 +02:00
cora 4bd2f3aa93 add biomegen for lua mapgens 2022-03-25 23:59:40 +01:00
cora bc34d97699 generators: move terrain and spike noise to init 2022-03-25 16:22:48 +01:00
cora 63002f643f initial fixes to make multi map work with mcl 2022-03-24 22:01:05 +01:00
Treer f7430666f9 fix typo 2019-02-09 13:21:37 +11:00
Treer cf66603d61 Fix "attempt to index a nil value"
multi_map settings like number_of_layers must be finalized before invoking mmgen_*.lua files, as they invoke multi_map.register_global_2dmap() which create an array of global_2d_params - one for each layer.
2019-02-09 12:30:27 +11:00
evrooije adb42fa270 Source code reorganization. Global noises are now in a separate
file in order to make the core a bit more readable
2018-08-07 01:01:05 +02:00
evrooije 160ce77c20 Fixed offset Y bug causing repetition of terrain below the Y
centerpoint. Fixed lighting bug, seems that the nolight flag is
absolutely essential in order for everything to work correctly.
2018-08-05 23:26:00 +02:00
evrooije 423c153e47 Fixed missing test on the simple generators params (nil check),
parameterized the levels generator settings so they can now be
passed on generator registration, changed levels local noises to
global noises. Fixed HUD offset issue, where it would show the
wrong zone and relative coordinates off by 1. Added support for
per layer specific settings such as enabling/ disabling bedrock
or skyrock per layer, overriding certain other settings or
behavior, etc.
2018-08-03 12:30:42 +02:00
evrooije f24d4a3a80 Full implementation of layer wrapping, noise mixing and noise
mirroring on all edges. Teleportation implemented, also on all
edges.
2018-07-31 21:49:32 +02:00
evrooije e29ad477ea First (non-functional) cut at the layer wrapping code. Added some
additional hooks to control the core, overriding bedrock and
skyrock generation. Shadow caster can now be enabled/ disabled.
2018-07-28 20:45:53 +02:00
evrooije ae6c46f696 Added levels layer for demo purposes 2018-07-24 23:24:30 +02:00
evrooije 1f2bcc5f81 Fixed some bugs, added HUD status to dump of mod state to log,
changed the default set of generators, using levels only for now
2018-07-24 21:20:38 +02:00
evrooije 66508f1615 Split code into different source files for better maintainability.
Added layer names and HUD system to display offset coordinates and
the layer number and/ or layer name
2018-07-24 19:26:28 +02:00
evrooije 1be55e012a Moved licensing around a bit. Committing levels code. 2018-07-19 11:48:34 +02:00
evrooije 2c2cba19ee Introduced the ability to register a fallback or layer generator with
arguments, updated simple generator to allow switching between different
content ids for the terrain generation, i.e. it can now switch between
stone and sandstone (the one registered is sandstone, the fallback does
not specify arguments during registration so it uses a default, stone).
2018-07-19 00:11:59 +02:00
evrooije 35d768d79f Created framework for supporting multiple map generators per layer, with
a fallback (or default if need be) generator in case no layer specified
generator is found. Added sample/ basis mod to demonstrate registration
of map generators. Rewrote Proxima Testauri map generator to conform to
multi_map, simple map generator is fallback in demo. Testauri now uses
a single noise which increases generation time but reduces memory usage.
To try and reduce generation time, it keeps track of the last layer used
and based on that will not reinitialize unless the layer changes.
2018-07-18 23:22:18 +02:00