Commit Graph

53 Commits

Author SHA1 Message Date
HybridDog
e8a15bf467 Add a luacheckrc and fix errors reported by luacheck
* stairs is now added to depends.txt
* The mapgen perlin noise functions use a buffer now
2021-01-30 17:34:10 +01:00
HybridDog
76981af958 Remove unused variables and do some whitespace fixes 2021-01-30 17:08:00 +01:00
HybridDog
b4add0091c mapgen: Fix crashes when smooth transition is disabled 2018-11-25 18:07:23 +01:00
HybridDog
de45f53153 Make mapgen work again 2018-08-07 15:40:07 +02:00
Quentin Quaadgras
7f394447f1 Disable mapgen by default, minetest has snow biomes now. 2018-04-23 22:28:55 +12:00
HybridDog
da6a4b3361 buffer the perlin values
M  src/mapgen_v6.lua
2016-09-17 22:17:04 +02:00
HybridDog
bf113a15ff chulens does not need a z field
M  src/mapgen_v6.lua
2016-09-17 12:03:23 +02:00
HybridDog
9d657246c9 do not recreate perlin noise objects in every mapchunk
M  src/mapgen_v6.lua
2016-09-17 11:38:38 +02:00
HybridDog
48db038755 this should make ice generation faster
M  src/mapgen_v6.lua
2016-09-14 19:46:44 +02:00
HybridDog
7774eb3f7f streamline mapgen code: reduce index calculations
M  src/mapgen_v6.lua
2016-09-14 16:53:01 +02:00
HybridDog
850e5d9d33 fix ground_y searching bug
fixes #18

M  readme.txt
M  src/mapgen_v6.lua
2016-07-16 21:54:31 +02:00
HybridDog
b3cdf93212 make more tables weak 2016-04-29 18:05:04 +02:00
HybridDog
049349360e log when changing the falling snow setting and make the cache tables weak tables 2016-04-29 17:58:13 +02:00
HybridDog
9d2211b0b5 do not assume a fixed chunksize when generating map 2016-04-25 18:47:52 +02:00
HybridDog
745fca1c84 add missing brackets, might fix issue #15 2016-04-24 18:47:09 +02:00
HybridDog
dee9b5ada1 use the chunksize setting 2016-02-13 19:23:41 +01:00
HybridDog
b994bbc5fd abort mapgen if no nodes are set and execute collectgarbage to clean memory 2016-02-13 19:11:01 +01:00
HybridDog
afc578cb16 allow configuring the mapgen size, rarity and smooth without rejoining, which is actually a bad idea because of chunk corners 2015-11-22 01:21:21 +01:00
HybridDog
b647842ad4 add back caching ws values, that was a memory bug of minetest and these numbers hardly use memory space I guess 2015-11-21 21:54:25 +01:00
HybridDog
a217f17566 use the heightmap to reduce ground searching 2015-07-11 19:47:21 +02:00
HybridDog
939c63e507 🐈 2015-07-05 21:01:19 +02:00
HybridDog
7370b142ed fix snowfall and pines 2015-06-21 12:49:27 +02:00
HybridDog
e990039ea3 make mgv6 snow biome size configurable (currently just in the mapgen file) @Splizard, partially generated snow biomes could appear on maps because the perlin noise is different 2015-06-21 11:42:32 +02:00
HybridDog
06e74418e9 add snow apple and make snowy more snowy 2015-06-19 22:03:59 +02:00
HybridDog
4a2c869407 do not generate in deserts, doesn't seem to work… but better than nothing 2015-06-19 21:21:36 +02:00
HybridDog
51aa9a372b spawn pines after generating the ground to fix a few grass places (untested) 2015-06-19 19:49:31 +02:00
HybridDog
4286299c0e make shrubs and moss furnace burnable and remove ws values saving, l got a memory error 2015-06-19 19:07:38 +02:00
HybridDog
6dbbf90f34 add snow covered snow shrub 2015-06-17 19:29:43 +02:00
HybridDog
f82c525222 add snow shrub 2015-06-17 18:57:11 +02:00
HybridDog
60f3ac4dea Revert "generate snow only into air"
reason: testing it is not necessary
This reverts commit 4a9fbc8202.
2015-06-17 18:20:03 +02:00
HybridDog
4a9fbc8202 generate snow only into air 2015-06-17 17:51:48 +02:00
HybridDog
ccc1b5154d add snow biome flowers 2015-06-13 16:51:14 +02:00
HybridDog
47a8691b82 mapgen_v6: use a table for the contents 2015-06-13 15:58:57 +02:00
HybridDog
9cd39dc111 update mapgen_v6, e.g. replace plantlike plants to dry shrub and reduce snow height to make it smooth 2015-06-13 15:53:10 +02:00
HybridDog
acb5141cbe update mapgen_v6, e.g. put snow onto icesheets 2015-06-12 23:21:43 +02:00
HybridDog
3527d3158d fix approximate snowdrift walkable making, see https://d.maxfile.ro/ovzgtfbjhw.png 2015-06-11 18:40:51 +02:00
HybridDog
2d91071751 use the test to find out the maximum snow height 2015-06-05 15:26:56 +02:00
HybridDog
0443994f06 dont generate every snow node with the same height, use the weierstraß function 2015-06-05 14:57:54 +02:00
HybridDog
f2b23a0a27 short mapgen code 2015-05-30 22:06:23 +02:00
HybridDog
819f2d6cfb remove whitespaces: for i in */*.lua; do sed -i 's/[ \t]*$//' workers/init.lua ; done 2015-05-29 12:11:17 +02:00
HybridDog
0708ea6af3 change debug comment 2015-05-26 20:55:13 +02:00
HybridDog
c0b40b5cbf some code updates 2015-05-23 19:53:30 +02:00
HybridDog
e889cbc6a4 use the default pine tree node, try to improve performance in mapgen_v6 and comment a weird "and y ~= "air")" 2015-03-05 17:36:02 +01:00
HybridDog
943efa6110 only search for jungleleaves etc. and set air there if air isnt already there (mapgen_v6) 2015-03-05 17:25:22 +01:00
HybridDog
2ae53c95ec another one 2015-02-14 23:34:37 +01:00
paramat
8dc199dd5b Paramat's edit of mapgen_v6.lua: Bugfixes. Perlinmaps for speed 2014-09-21 07:47:45 +01:00
Splizard
7a2b405698 Snowy biomes only in center of noise. 2014-06-05 20:54:19 +12:00
Splizard
22b47f20a7 Fix Alpine floating apple bug. 2014-06-05 20:35:18 +12:00
Splizard
52cdffd1af Add snowy biomes back. 2014-06-05 20:34:46 +12:00
Splizard
954726e8c5 Straight change between alpine biome and dirt. 2014-06-05 19:02:47 +12:00