register_on_generate: tries and rarity_fertility (#8)
Jordan Leppert
2021-12-24 08:30:36 +0000
c8e51c8ee2Added rarity_fertility which means rarity can be affected by fertility level.
#8
Jordan Leppert
2021-12-15 10:52:38 +0000
b2e078d127Can specify the number of tries when generating
Jordan Leppert
2021-12-15 09:15:24 +0000
add5abd096biome_lib.register_on_generate: Adding `density` field which provies a different method of specifying the density of the spawning.
#7
Jordan Leppert
2021-12-14 17:44:57 +0000
1ea664fb56Fixing humidity/temperature data returned from get_biome_data() to fix the range (and sign) of the original data
Jordan Leppert
2021-12-08 13:59:35 +0000
f876cfd597add .luacheckrc and github workflow
BuckarooBanzay
2021-12-06 19:28:17 +0100
Enable generating objects on sides or bottom of nodes at mapgen time (#2)
Jordan Leppert
2021-12-06 18:22:29 +0000
dfea0959e3Fixing API to ensure it behaves same way it used to, when not passing spawn_on_sides or spawn_on_bottom flags.
#2
Jordan Leppert
2021-12-05 13:16:49 +0000
281c5b151bReplacing spaces with tabs
Jordan Leppert
2021-12-04 16:57:36 +0000
24b56c8763biome_lib.register_on_generate now passes node position and face direction to node placement function
Jordan Leppert
2021-12-04 13:24:47 +0000
0178532583biome_lib.register_on_generate now supports spawn_on_sides and spawn_on_bottom flags
Jordan Leppert
2021-12-03 21:33:38 +0000
76b5046009Split the actual API code into a separate file from init.lua
Vanessa Dannenberg
2021-04-20 17:56:43 -0400
5148cca1b7Using ":" notation to treat functions as methods is now deprecated in favor of more normal "." notation.
Vanessa Dannenberg
2021-04-20 16:27:17 -0400
bf2ac2ea57don't nil-out the recheck list, just empty it.
2021-04-16-2
Vanessa Dannenberg
2021-04-16 12:59:56 -0400
6342a16b0aReign-in the default on-generated limit from +/- 31k to -16/+48m since nothing much is normally found outside that range anyway
Vanessa Dannenberg
2021-04-16 12:58:02 -0400
c6cd524f62fix reporting of log sizes during shutdown
Vanessa Dannenberg
2021-04-16 11:59:52 -0400
2dbacae561remove mapblocks from the queue early if they have no surfaces to work on (sadly can't be done for blocks in the deferred queue until they come out of "idle")
Vanessa Dannenberg
2021-04-16 11:50:41 -0400
f165434a84change the queue ratio config setting to avoid breaking old configs also increase the default amount of work done per tick.
2021-04-16-1
Vanessa Dannenberg
2021-04-16 10:41:38 -0400
d6cba18844add a mention in the readme about the mod's config settings
Vanessa Dannenberg
2021-04-16 10:39:17 -0400
f003f19998add a proper settingtypes.txt
2021-04-14-1
Vanessa Dannenberg
2021-04-10 06:01:01 -0400
d06ab90e01allow re-check-log entries to time out gradually rather than having to go all at once. This purges the log sooner than before, but without damaging the mapgen results.
2021-04-09-1
Vanessa Dannenberg
2021-04-09 13:04:28 -0400
ba46e6c05eReport the mod's progress and ETA while purging the mapblock log at shutdown
Vanessa Dannenberg
2021-04-09 12:17:39 -0400
3b35fc67c6Periodically re-trigger the mapblock queue code if it's idle, to give old, deferrred blocks a chance to time-out. Needed because if players aren't currently creating new terrain, old blocks would never get processed, causing the block log to only grow rather than eventually run dry (which could result in very long shutdown times).
2021-04-08-1
Vanessa Dannenberg
2021-04-08 06:33:43 -0400
eabc053c05If a block has to be re-checked, renew its timestamp
Vanessa Dannenberg
2021-04-07 09:12:57 -0400
dd650da443Allow old blocks to time-out after a while (default 5 minutes).
2021-04-07-5
Vanessa Dannenberg
2021-04-07 07:10:10 -0400
0a34e3c7afrename debug variable and option for consistency make global so it can be changed while running
Vanessa Dannenberg
2021-04-07 07:30:58 -0400
07c2b1d9d4move all settings at the top of the code (some were scattered here and there)
Vanessa Dannenberg
2021-04-07 07:04:36 -0400
1dc0febd8cprint a message when the queue goes idle.
2021-04-07-2
Vanessa Dannenberg
2021-04-07 05:26:31 -0400
50f921a85aimplement variable log levels so that one need not see all the spammy stuff if the only things of interest are e.g. warnings
Vanessa Dannenberg
2021-04-07 05:16:11 -0400
6009f261c2make sure that any block about to be scanned is definitely loaded (in case the engine has unloaded the block because the player wandered off for too long)
Vanessa Dannenberg
2021-04-07 04:55:57 -0400
531577afcfrather than copy the re-check log back into the block log when it comes time to run through it, just use it in-place, copying its entries back to the main block log if they have to be skipped again (essentially using the re-check list and the end of the block log as a double buffer)
2021-04-07-1
Vanessa Dannenberg
2021-04-07 01:44:31 -0400
e346fd599frather than rearranging the block log to deal with blocks that can't be populated yet, move those blocks to a separate list, and replay that list whenever new mapblocks come in. That way the main block list can run dry and allow the block populate routines to go idle.
Vanessa Dannenberg
2021-04-06 16:07:49 -0400
1d2593f022if the block list is empty, don't try to start another batch of actions.
Vanessa Dannenberg
2021-04-06 13:08:43 -0400
3bc8737e2dmake sure the target mapblock and all 8 of its corner neighbors have been generated before populating the block (else move the target block the end of the queue)
Vanessa Dannenberg
2021-04-06 12:37:47 -0400
0ea4cb3848don't bother checking dtime during globalstep it's enough to rely in the run ratio.
Vanessa Dannenberg
2021-04-06 10:00:16 -0400
bef0a0d87eoops, forgot to allow for no-air-check blocks
Vanessa Dannenberg
2021-04-06 04:19:57 -0400
89ca62e492added a bunch of debugging info
Vanessa Dannenberg
2021-04-06 02:57:36 -0400
a325c2ccd8rewrote block queue handlers to reduce code duplication and improve lag management
Vanessa Dannenberg
2021-04-06 01:07:29 -0400
53f55cdb4dmake sure a listed block is indeed loaded before writing to it (in case the mapgen takes long enough on a server that players have wandered off and the server has unloaded blocks)
extra-map-checks
Vanessa Dannenberg
2021-04-01 09:27:00 -0400
8ecb401309fix a couple of missing = signs
Vanessa Dannenberg
2021-04-05 11:21:22 -0400
9ed4858518take 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 :-)
Vanessa Dannenberg
2021-04-01 09:02:41 -0400
26dbbb5a67since 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.
Vanessa Dannenberg
2021-04-01 08:16:57 -0400
ec0a0f0c3badd some debugging messages
Vanessa Dannenberg
2021-04-01 07:18:28 -0400
e92361675fremove the old-plantslib-api compat thing
Vanessa Dannenberg
2021-04-01 06:24:09 -0400
7f1fec6ae0add compatibility for games other than minetest_game
non_mtg
Vanessa Dannenberg
2021-03-29 21:10:41 -0400
f569bb1fbdfix outdated "plantlife" message and some redundancy
Vanessa Dannenberg
2021-04-01 05:03:29 -0400
9b7705c380move the "registered N actions on M surfaces" message to debug
Vanessa Dannenberg
2021-04-01 04:59:57 -0400
c9f6235815Add a function to print active/pending block counts to debug
Vanessa Dannenberg
2021-04-01 04:39:35 -0400
ddd88613e0trim some blank lines
Vanessa Dannenberg
2021-04-01 04:34:07 -0400
27cd07cb36Fix overlap in the split-to-blocks feature
Vanessa Dannenberg
2021-04-01 04:31:46 -0400
ac8738d837use mod.conf instead of depends.txt
Vanessa Dannenberg
2021-03-29 19:56:09 -0400
0005af6022fix my name
Vanessa Dannenberg
2021-03-29 19:53:26 -0400
228296411esplit generated map chunks into mapblock-sized pieces as they're logged to reduce lag/latency at a tiny cost of overall throughput.
Vanessa Dannenberg
2021-03-29 05:19:52 -0400
353ca0cbd4optimize some blocklist/actionlist checks
Vanessa Dannenberg
2021-03-28 23:10:31 -0400
d65c72d48bdon'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-1
Vanessa Dannenberg
2021-03-25 19:27:38 -0400
5a910875affix deprecated function call
Vanessa Dannenberg
2020-04-15 16:59:40 -0400
a96f015ce9properly-limit abm-based growth to just the proper surfaces (if no surface list is given, just grow on anything)
2019-05-22
Vanessa Dannenberg
2019-05-22 20:01:31 -0400
d72e15f1d0get rid of old junglegrass -> dry shrub "corner case"
Vanessa Dannenberg
2019-05-22 19:28:13 -0400
29899f2d36Fix call to nil (function) vector.copy
SmallJoker
2019-01-07 19:37:16 +0100
0837ff7fd2Sync with world temperature if available
SmallJoker
2019-01-02 23:08:07 +0100
b7d69a8487Split code and tidy up
SmallJoker
2019-01-02 20:35:39 +0100
f056d6d76eadd 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
Vanessa Dannenberg
2018-12-01 10:51:18 -0500
ad12e97281Replace deprecated call to 'intllib.Getter'
Jordan Irwin
2018-11-25 23:54:02 +0000
3a6c8abb70license fixups: use LGPL 3.0 for code, CC-by-SA 4.0 for media and everything else
20181109
2018-11-09
Vanessa Dannenberg
2018-11-08 18:48:38 -0500
83a3383de0cache {name="air"} table into a global use it everywhere as needed
Vanessa Dannenberg
2018-10-25 10:04:26 -0400