2942 Commits

Author SHA1 Message Date
Aaron Suen
8b6bbd9959 Retire a probably-no-longer-necessary check
Also, if somebody really wants to make an API-compatible "default"
mod that works on top of NodeCore to allow MTG mods to work with
NodeCore or something, that's fine too.
2023-04-22 21:20:45 -04:00
Aaron Suen
c1d165031c Don't drop unsoftened ores
Fixes inconsistencies with high-tier tools in custom mods
2023-04-22 19:39:49 -04:00
Aaron Suen
7950f62fde Promote sponge survival check to public API
Allowing matching logic to be used in mods
2023-04-21 18:23:09 -04:00
Aaron Suen
e4be594862 Translations 2023-04-21 08:37:38 -04:00
Aaron Suen
2545124756 Boost the default brightness a bit 2023-04-14 20:40:04 -04:00
Aaron Suen
73cc6ced50 Enable experimental dynamic exposure
Players still need to enable some settings:
- Enable shaders in Settings
- Hunt for "auto exposure" in advanced settings and enable it

The game will try to adjust the brightness automatically based on
the local light level.  Unfortunately there are problems with it
(e.g. it seems to detect light based on the light level where you
are standing instead of where you're looking) but it may help
improve the "caving" experience without having to mess with gamma
curves.
2023-04-14 07:15:04 -04:00
Aaron Suen
ad2e135378 Notes update 2023-04-14 06:38:22 -04:00
Aaron Suen
0178fb67f3 Sort discoveries chronologically, newest first
Note that if the exact wording of a hint changes, then those hints
may be pushed to the top of the list.  This is an internal
limitation and cannot be prevented without assigning some other
stable unique identifier to hints (a lot of work and probably not
worth it for now).

A tiny amount of timing jitter is applied to hint discover time
(<1ms) to ensure that hints are always in a stable order.

Hints are identified by a short hash of the hint text, so it is
also possible (but unlikely) to have collisions that cause
hints to sort earlier in order than they normally should.
2023-04-07 20:29:45 -04:00
Aaron Suen
71311e284b Refactor visinv stack pick into an "add node drop" API
Using the new API, it is now possible to register custom logic to
operate on a node drop list at each time a node is dropping its
drops, in list form, before they're processed into the player
inventory or into entities.

This can be used by a number of the "add extra drops to ores" 3rd
party mods like WC Adamant, YCTIE, and LuxGates, to add drops to
existing ores *without* overwriting other mods' changes.
2023-04-04 19:41:18 -04:00
Aaron Suen
d2742bef22 Merge notes 2023-04-04 06:18:52 -04:00
Aaron Suen
4b2bc0a026 Do not expire artificial water near unloaded area boundary
Sometimes sponge squeezers are built too close to a mapblock
boundary, and rarely fail due to the artificial water being
loaded but the lens powering the squeezer being unloaded or
inactive.  Try to detect these borderline cases and prevent the
water from disappearing.  It would be somewhat unfair to expect
players to predict and prevent this failure mode, especially in
certain high stakes play modes like skyblocks, so try to prevent
it if we can.
2023-04-04 06:09:48 -04:00
Aaron Suen
384ebf13d8 Support official CDB donate link 2023-03-28 22:58:25 -04:00
Aaron Suen
bff4ecf148 Revert "Remove liberapay link for now"
This reverts commit 08dfff17e5f77cc49a100aa42c70cee2ae96ebea.

LiberaPay works now with Stripe
2023-03-28 22:56:35 -04:00
Aaron Suen
f6324fbb82 Purge abandoned translations with no strings done 2023-03-27 07:25:45 -04:00
Aaron Suen
68c26a7225 Fix all translations to parameterize (C) end year 2023-03-27 07:04:25 -04:00
Aaron Suen
19bf18519f Fix stagnant (C) year in About tab 2023-03-27 06:57:40 -04:00
Aaron Suen
70ae0a0ed0 Fix major startup slowdown from craft index
While remaining compatible with the old functionality
(we allow registering craft recipes at runtime,
whether this is really sane or not), significantly
reduce the number of craft index rebuilds we do, to
only up to one per tick, only when new recipes have
been registered.  This should be fine because no
recipe should be actually used until at least one
tick after it was registered.
2023-03-20 20:26:12 -04:00
Aaron Suen
f49af76666 Translation 2023-03-20 19:46:35 -04:00
Aaron Suen
4026b2cb01 Snapshot items before iterating in retroactive on_register
One potential source of the "missed item registration" bug could
be the on_register callback running multiple times for an item if
it was registered during a retroactive on_register scan.  The
behavior of pairs() if the table being iterated is modified is
apparently undefined.  In fact, it may be possible for a table to
get rehashed, such that some items might be skipped.  Taking
a snapshot first and iterating that instead should be more
stable overall.
2023-03-17 22:19:53 -04:00
Aaron Suen
46cf4471c9 Merge remote-tracking branch 'origin/master' 2023-03-10 20:39:10 -05:00
Aaron Suen
8d0f1f38a5 Merge branch 'fix-tote-crash-bug' into 'master'
fix crash with door and tote

See merge request sztest/nodecore!27
2023-03-11 01:27:08 +00:00
Aaron Suen
c44399c739 Merge branch 'dev' into 'dev'
Add lode crate and form to metallic group

See merge request sztest/nodecore!28
2023-03-11 01:13:18 +00:00
Aaron Suen
3df09ceb43 Merge branch 'gluefix' into 'dev'
Fix allowing glueing of lens and prism items

See merge request sztest/nodecore!31
2023-03-11 01:04:24 +00:00
J. Edward Jewell
2ca11eddcf Disallow glueing of lens and prism items 2023-03-10 20:00:37 -05:00
Edward Jewell
a5c8ebf01c Added lode crate and form to metallic group 2023-03-04 19:42:11 +00:00
Aaron Suen
1d2ba522ec Translation updates 2023-03-03 20:18:14 -05:00
Aaron Suen
4351fe126a Translations, fix zh_* language codes.
https://gitlab.com/sztest/nodecore/-/issues/18
2023-02-19 09:26:02 -05:00
NoComment
15874f4eef fix crash with door and tote
minetest.get_player_privs crashes on nil
2023-02-03 18:58:53 +00:00
Aaron Suen
8ef7b1311f Switch door ablation cooldown key to pos_to_string
This was done for doors in operate.lua, when
hash_node_position caused all sorts of problems,
including freezes.  Never did actually figure out
WHY, but the change worked there.  Since door
ablation is suffering its own reliability issues,
maybe it's time to try that change here too?
2023-01-25 21:15:10 -05:00
Aaron Suen
f732fe793e Translation update 2023-01-18 21:12:40 -05:00
Aaron Suen
ee79cfaf9a Fix problematic "moist soil" language 2023-01-18 21:11:04 -05:00
Aaron Suen
4f73985c45 Merge 'hexagon-recursion-dev-patch-57836' into dev 2023-01-18 20:19:03 -05:00
Aaron Suen
cc35486f10 Translation sync 2023-01-18 20:11:17 -05:00
Aaron Suen
61d1e60de0 Sync up admin tool rename w/ translations 2023-01-16 16:04:54 -05:00
Aaron Suen
5bc651e067 Change leaf decay to use groups 2023-01-14 11:49:36 -05:00
Aaron Suen
79128f1c27 Fix AISMs removing player hand model
Apparently AISMs DO work on the "hand" slot, so
detect this and avoid it.
2023-01-14 09:58:28 -05:00
Aaron Suen
aba4068f65 Detect and clean cheat items too 2023-01-14 09:56:57 -05:00
Aaron Suen
134ce0a471 Fix admin tool, rename to "admin tool" 2023-01-14 09:43:51 -05:00
Aaron Suen
a42fb47f7b Missed a little hand cleanup 2023-01-14 09:37:37 -05:00
Aaron Suen
3bcc360080 Fix player hand shenanigans 2023-01-14 09:27:23 -05:00
Aaron Suen
9bc62696f5 Typos 2023-01-02 22:47:18 -05:00
Aaron Suen
e20d68a563 Fix spackling degrading to dirt 2023-01-02 22:47:09 -05:00
Aaron Suen
49b3a9f534 Make cloudstone door scuffs a bit subtler again 2023-01-02 20:15:30 -05:00
Aaron Suen
1a9f5fcf95 Some doors are louder than others 2023-01-02 20:05:08 -05:00
Aaron Suen
f646975210 Missed a couple renames 2023-01-01 19:43:00 -05:00
Aaron Suen
1ecca90d3f More interesting name for cloudstone mix 2023-01-01 19:41:04 -05:00
Aaron Suen
494afbdb79 Fluid wandering fixes
- Place flow first, so crude glass curing
  detects properly from a lateral move
- Set DNT on the correct node
2023-01-01 16:50:39 -05:00
Aaron Suen
a6c2a0d3f7 Translation source string update 2023-01-01 13:59:55 -05:00
Aaron Suen
50c78d2dd6 Remove extremal "lucky sedges"
Sedges are never fully-grown when planted,
always need at least one growth cycle.
2023-01-01 12:49:48 -05:00
Aaron Suen
3dad00b819 Cloudstone hint 2023-01-01 12:40:20 -05:00