bef0a0d87e
oops, forgot to allow for no-air-check blocks
2021-04-06 04:19:57 -04:00
89ca62e492
added a bunch of debugging info
2021-04-06 03:20:14 -04:00
a325c2ccd8
rewrote block queue handlers to reduce code duplication
...
and improve lag management
minetest.conf settings added:
biome_lib_dtime_limit:
Maximum lag allowed, in seconds. Default 0.5s. Larger values allow for
more lag, but make map updates run a bit faster.
biome_lib_queue_run_ratio:
If positive, this is the approximate number of globalstep ticks to skip
between map updates. If negative, it becomes the positive number of map
updates to run per globalstep tick before lag is checked. No minimum
value, maximum +100. Default: -100 (that is, 100 updates per globalstep
tick, with none intentionally skipped). Use positive numbers for slow
machines or biome_lib-using mods that tend to cause lag, and negative
values for fast machines and mods.
2021-04-06 03:20:12 -04:00
8ecb401309
fix a couple of missing = signs
2021-04-05 12:44:21 -04:00
9ed4858518
take the integer of that last division I added
...
always round up. otherwise it'll break the `for` loop
if a mod supplies a value not divisible by 25 :-)
2021-04-01 09:02:41 -04:00
26dbbb5a67
since we split to mapblocks now,
...
biome.max_count as received from mods has to be scaled appropriately
as mods expect this value to be relative to the usual
chunk size of 80x80 = 6400 nodes' horizontal area.
2021-04-01 08:32:45 -04:00
ec0a0f0c3b
add some debugging messages
2021-04-01 07:18:28 -04:00
e92361675f
remove the old-plantslib-api compat thing
2021-04-01 06:24:09 -04:00
7f1fec6ae0
add compatibility for games other than minetest_game
2021-04-01 05:47:22 -04:00
f569bb1fbd
fix outdated "plantlife" message
...
and some redundancy
2021-04-01 05:03:29 -04:00
f2a807b814
make debug mode a proper minetest.conf setting
2021-04-01 05:02:07 -04:00
9b7705c380
move the "registered N actions on M surfaces" message to debug
2021-04-01 04:59:57 -04:00
c9f6235815
Add a function to print active/pending block counts to debug
2021-04-01 04:50:03 -04:00
ddd88613e0
trim some blank lines
2021-04-01 04:34:07 -04:00
27cd07cb36
Fix overlap in the split-to-blocks feature
2021-04-01 04:33:53 -04:00
ac8738d837
use mod.conf instead of depends.txt
2021-03-29 19:56:09 -04:00
0005af6022
fix my name
2021-03-29 19:53:26 -04:00
228296411e
split generated map chunks into mapblock-sized pieces as they're logged
...
to reduce lag/latency at a tiny cost of overall throughput.
2021-03-29 05:19:52 -04:00
353ca0cbd4
optimize some blocklist/actionlist checks
2021-03-28 23:10:31 -04:00
d65c72d48b
don't need the old non-air-above find nodes call anymore
...
only very old minetest engine lacks the air-above api call
2021-03-25 19:27:38 -04:00
10a1089767
add minimum minetest version key for contentdb
2020-06-03 13:00:01 -04:00
5a910875af
fix deprecated function call
2020-04-15 16:59:40 -04:00
a96f015ce9
properly-limit abm-based growth to just the proper surfaces
...
(if no surface list is given, just grow on anything)
2019-05-22 20:02:30 -04:00
d72e15f1d0
get rid of old junglegrass -> dry shrub "corner case"
2019-05-22 19:28:13 -04:00
29899f2d36
Fix call to nil (function) vector.copy
...
Either vector.new or table.copy
NOT LIKE THIS
2019-01-07 19:37:16 +01:00
0837ff7fd2
Sync with world temperature if available
2019-01-02 23:08:07 +01:00
ff9ce531d6
Cleanup ABM callback
2019-01-02 22:29:59 +01:00
fa304f9d18
Fixes
2019-01-02 22:06:07 +01:00
b7d69a8487
Split code and tidy up
...
Split to growth.lua and search_functions.lua
New function populate_single_surface for a single position check
Use 'return' to reduce indent levels
2019-01-02 20:35:39 +01:00
f056d6d76e
add descriptive names to ABM calls
...
can be specified by label= in the biome table
else biome_lib will try to make up something useful
fix #1
2018-12-01 10:51:18 -05:00
6935e73994
Merge branch 'intllib_update' into 'master'
...
Replace deprecated call to 'intllib.Getter'
See merge request VanessaE/biome_lib!1
2018-11-25 23:54:02 +00:00
ad12e97281
Replace deprecated call to 'intllib.Getter'
2018-11-25 23:54:02 +00:00
3a6c8abb70
license fixups: use LGPL 3.0 for code,
...
CC-by-SA 4.0 for media and everything else
2018-11-08 18:48:38 -05:00
83a3383de0
cache {name="air"} table into a global
...
use it everywhere as needed
2018-10-25 10:07:13 -04:00
244dcb4822
Speed improvements
...
replace all set_node() and remove_node() calls with swap_node()
also move a get_node() check to later in its list of tests
to do the "cheap" stuff first
2018-10-25 09:45:51 -04:00
8fd0789ad2
add "random return" CPU limiter to active queue playback
...
set `biome_lib_queue_run_ratio = <1 to 100>` to use
default 100 (basically, a percentage of max runtime).
2017-11-06 19:53:38 -05:00
e6bfd4c31b
Merge pull request #8 from inpos/master
...
Russian locale
2017-08-12 16:23:36 -04:00
423ffe8180
Russian locale
2017-08-11 12:09:09 +03:00
7f54d95f31
Merge pull request #6 from AntumDeluge/settings
...
Replace deprecated methods
2017-05-18 05:42:55 -04:00
03970402cf
Replace deprecated methods:
...
- 'setting_get' with 'settings:get'
- 'setting_getbool' with 'settings:get_bool'
2017-05-13 02:09:20 -07:00
9cdcdcfe6b
don't execute the "playing out" shutdown code if log is already empty
2017-01-26 12:16:51 -05:00
e64a41fcc6
fix typo in shutdown log/block count report
2016-11-02 01:57:12 -04:00
1dbf5c4b3f
Merge pull request #2 from Rogier-5/fix-tree-spawn-level
...
Fix trees not spawning on top of surface
2016-07-02 20:59:39 -04:00
5b3a2e0439
Fix trees not spawning on top of surface
...
The bottom-most tree trunk would be missing, because the tree was
generated at ground level, instead of above ground level.
2016-07-02 12:46:46 +02:00
3a3ed250c6
Update some URL's
2016-03-27 20:04:05 -07:00
b9f8e43e6b
Add description.txt
2016-03-27 20:03:14 -07:00
ffaa340030
Add mod.conf
2016-03-27 20:02:38 -07:00
5ca9e6e77d
fix typo for deprecated calls
2015-08-15 16:04:38 -04:00
7666867b68
add heading
2015-08-12 17:09:20 +09:30
6c168e6225
add README
2015-08-09 12:12:20 -04:00