Gaël C
146f009684
Re-organize grid management code for less dependance between files
...
Remove gridio.lua and move its function to appropriate files
2024-02-01 19:30:07 +01:00
Gaël C
2cf3b19167
Generate grid directly in pregenerate.lua, not in a function
2024-01-31 11:32:24 +01:00
Gaël C
4697f9c948
Remove "full" grid loading method
...
I see no reason to let the choice between a greedy and a lighter loading method, so better remove it to simplify the code.
2024-01-31 10:47:37 +01:00
Gaël C
ed832a0806
Use only the 10 last digits of world seed at pregenerate
2024-01-28 22:12:05 +01:00
Gael-de-Sailly
d00295600d
Add a very brief description at the head of every file
2022-01-26 11:25:17 +01:00
Gael-de-Sailly
6564d40b85
Refactor grid loading and reorganize code
...
Move grid management functions out of polygons.lua, in a new file called gridmanager.lua
Explicitly call other files and grid management functions from init.lua
to make workflow more apparent
Move mapgen loop out of init.lua, into mapgen.lua
2022-01-26 10:54:11 +01:00
Gael-de-Sailly
6d8ee5af1f
Added settings for margin, and documented in settingtypes.txt
2022-01-20 15:28:14 +01:00
Gael-de-Sailly
fabe107336
Added margin with a settable width near grid border
...
Elevation gets closer to -50 when approaching the border
2022-01-20 15:28:14 +01:00
Gael-de-Sailly
7e155b7076
Express map size in Minetest nodes, not in river grid nodes
...
This introduces new parameters 'map_x_size' and 'map_z_size' that default to 15K
Deprecates 'grid_x_size' and 'grid_z_size'; if they are present, corresponding
values of 'map_x_size' and 'map_z_size' are automatically written in config files.
Also rework compatibility system to better compare versions,
and bump version to 1.0.2-dev1.
2022-01-20 15:28:14 +01:00
Gael-de-Sailly
b374e8ee95
Create settings_default.json to store default values for settings
...
Move noise parameters to settings.lua
2022-01-18 15:21:14 +01:00
Gael-de-Sailly
417ce1bcbc
Use builtin logging system and appropriate loglevels
2022-01-03 16:33:56 +01:00
Gaël C
e3cadcdbc6
Collect garbage during pre-generation to free some space and reduce OOM problems
2021-07-26 22:28:45 +02:00
Gaël C
f7bc5ee0b4
Added logs during pre-generation
2021-07-25 10:14:15 +02:00
Gaël C
2c5e0ee5af
Code style consistency: use tabs for indentation in all Lua code
2021-07-24 18:55:13 +02:00
Gaël C
32bc9561b6
Made interactive loading optional but enabled by default
2021-06-26 16:02:00 +02:00
Gaël C
a313244d07
Rename generate.lua -> pregenerate.lua
2021-06-23 19:53:56 +02:00