4e3493a981use %Y-%m-%d for the date instead of %F
master
sfan5
2021-04-23 18:42:59 -04:00
e8afe017daUse engine decorations when possible
Vanessa Dannenberg
2021-04-20 19:58:09 -04:00
76b5046009Split the actual API code into a separate file from init.lua
Vanessa Dannenberg
2021-04-20 17:56:43 -04:00
5148cca1b7Using ":" notation to treat functions as methods is now deprecated in favor of more normal "." notation.
Vanessa Dannenberg
2021-04-20 16:27:17 -04:00
c4151a0701add timestamps to log output
Vanessa Dannenberg
2021-04-20 13:46:21 -04:00
bf2ac2ea57don't nil-out the recheck list, just empty it.
Vanessa Dannenberg
2021-04-16 12:59:56 -04:00
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 -04:00
c6cd524f62fix reporting of log sizes during shutdown
Vanessa Dannenberg
2021-04-16 11:59:52 -04:00
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 -04:00
f165434a84change the queue ratio config setting to avoid breaking old configs also increase the default amount of work done per tick.
Vanessa Dannenberg
2021-04-16 10:41:38 -04:00
d6cba18844add a mention in the readme about the mod's config settings
Vanessa Dannenberg
2021-04-16 10:39:17 -04:00
f003f19998add a proper settingtypes.txt
Vanessa Dannenberg
2021-04-10 06:01:01 -04:00
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.
Vanessa Dannenberg
2021-04-09 13:04:28 -04:00
ba46e6c05eReport the mod's progress and ETA while purging the mapblock log at shutdown
Vanessa Dannenberg
2021-04-09 12:17:39 -04:00
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).
Vanessa Dannenberg
2021-04-08 06:33:43 -04:00
eabc053c05If a block has to be re-checked, renew its timestamp
Vanessa Dannenberg
2021-04-07 09:12:57 -04:00
dd650da443Allow old blocks to time-out after a while (default 5 minutes).
Vanessa Dannenberg
2021-04-07 07:10:10 -04:00
0a34e3c7afrename debug variable and option for consistency make global so it can be changed while running
Vanessa Dannenberg
2021-04-07 07:30:58 -04:00
07c2b1d9d4move all settings at the top of the code (some were scattered here and there)
Vanessa Dannenberg
2021-04-07 07:04:36 -04:00
1dc0febd8cprint a message when the queue goes idle.
Vanessa Dannenberg
2021-04-07 05:26:31 -04:00
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 -04:00
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 -04:00
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)
Vanessa Dannenberg
2021-04-07 01:44:31 -04:00
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 -04:00
1d2593f022if the block list is empty, don't try to start another batch of actions.
Vanessa Dannenberg
2021-04-06 13:08:43 -04:00
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 -04:00
0ea4cb3848don't bother checking dtime during globalstep it's enough to rely in the run ratio.
Vanessa Dannenberg
2021-04-06 10:00:16 -04:00
bef0a0d87eoops, forgot to allow for no-air-check blocks
Vanessa Dannenberg
2021-04-06 04:19:57 -04:00
89ca62e492added a bunch of debugging info
Vanessa Dannenberg
2021-04-06 02:57:36 -04:00
a325c2ccd8rewrote block queue handlers to reduce code duplication and improve lag management
Vanessa Dannenberg
2021-04-06 01:07:29 -04:00
8ecb401309fix a couple of missing = signs
Vanessa Dannenberg
2021-04-05 11:21:22 -04:00
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 -04:00
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 -04:00
ec0a0f0c3badd some debugging messages
Vanessa Dannenberg
2021-04-01 07:18:28 -04:00
e92361675fremove the old-plantslib-api compat thing
Vanessa Dannenberg
2021-04-01 06:24:09 -04:00
7f1fec6ae0add compatibility for games other than minetest_game
Vanessa Dannenberg
2021-03-29 21:10:41 -04:00
f569bb1fbdfix outdated "plantlife" message and some redundancy
Vanessa Dannenberg
2021-04-01 05:03:29 -04:00
9b7705c380move the "registered N actions on M surfaces" message to debug
Vanessa Dannenberg
2021-04-01 04:59:57 -04:00
c9f6235815Add a function to print active/pending block counts to debug
Vanessa Dannenberg
2021-04-01 04:39:35 -04:00
ddd88613e0trim some blank lines
Vanessa Dannenberg
2021-04-01 04:34:07 -04:00
27cd07cb36Fix overlap in the split-to-blocks feature
Vanessa Dannenberg
2021-04-01 04:31:46 -04:00
ac8738d837use mod.conf instead of depends.txt
Vanessa Dannenberg
2021-03-29 19:56:09 -04:00
0005af6022fix my name
Vanessa Dannenberg
2021-03-29 19:53:26 -04:00
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 -04:00
353ca0cbd4optimize some blocklist/actionlist checks
Vanessa Dannenberg
2021-03-28 23:10:31 -04:00
d65c72d48bdon't need the old non-air-above find nodes call anymore only very old minetest engine lacks the air-above api call
Vanessa Dannenberg
2021-03-25 19:27:38 -04:00
10a1089767add minimum minetest version key for contentdb
VanessaE
2020-06-03 13:00:01 -04:00
5a910875affix deprecated function call
Vanessa Dannenberg
2020-04-15 16:59:40 -04:00
a96f015ce9properly-limit abm-based growth to just the proper surfaces (if no surface list is given, just grow on anything)
Vanessa Dannenberg
2019-05-22 20:01:31 -04:00
d72e15f1d0get rid of old junglegrass -> dry shrub "corner case"
Vanessa Dannenberg
2019-05-22 19:28:13 -04:00
29899f2d36Fix call to nil (function) vector.copy
SmallJoker
2019-01-07 19:37:16 +01:00
0837ff7fd2Sync with world temperature if available
SmallJoker
2019-01-02 23:08:07 +01:00
b7d69a8487Split code and tidy up
SmallJoker
2019-01-02 20:35:39 +01:00
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 -05:00
6935e73994Merge branch 'intllib_update' into 'master'
Vanessa Dannenberg
2018-11-25 23:54:02 +00:00
ad12e97281Replace deprecated call to 'intllib.Getter'
Jordan Irwin
2018-11-25 23:54:02 +00:00
3a6c8abb70license fixups: use LGPL 3.0 for code, CC-by-SA 4.0 for media and everything else
Vanessa Dannenberg
2018-11-08 18:48:38 -05:00
83a3383de0cache {name="air"} table into a global use it everywhere as needed
Vanessa Dannenberg
2018-10-25 10:04:26 -04:00
68a8fe1a8amissed a couple of status messages in the rename
Vanessa Ezekowitz
2015-08-09 11:18:36 -04:00
f2362ed38euse alias for deprecated functions
Diego Martinez
2015-08-09 10:45:45 -04:00
94218fb5a9Initial commit: split plants_lib off from plantlife modpack renamed it to biome_lib adapt all functions and references accordingly.
Vanessa Ezekowitz
2015-08-09 10:15:16 -04:00