76 Commits

Author SHA1 Message Date
Aaron Suen
dea2432325 Add stasis/quell state to cheat HUD, detect more node types 2023-06-20 08:01:43 -04:00
Aaron Suen
7b4d953c1f Prevent ticking-automation exploits
The soaking-tickling mechanism was intended only to speed up
otherwise very boring "waiting" gameplay gates in skyblock play,
by allowing players to trade attention for time.  It seems it has
been exploited in vanilla play, though, by triggering the tickling
recipes far faster than they normally should be triggered by
hand, using doors, breaking the time cost balance of things like
leaching or growing trees.

Add a "cuddly" dig group to the hand, and ONLY the hand, and make
the tickling recipes use this group so they only work with the
player's actual hand.

N.B. this group can be used for other pummel recipes in mods,
where a gentler touch is needed that cannot be gotten from a tool
or a machine, such as petting animals.
2023-04-26 07:10:34 -04:00
Aaron Suen
4f73985c45 Merge 'hexagon-recursion-dev-patch-57836' into dev 2023-01-18 20:19:03 -05:00
Aaron Suen
9555b48ad7 Fix redundant core mod registration 2022-12-23 11:21:39 -05:00
Aaron Suen
7e8f16f106 Fix charcoal glyph looktip translations 2022-12-12 07:25:10 -05:00
Andrey Bienkowski
6e48431d6f Fix leaching
Pummeling raked dirt with a spade had no effect due to an error in the recipe
2022-11-15 17:14:13 +00:00
Aaron Suen
eea39a773f Fix raking sand/gravel by machine 2022-05-01 01:41:29 -04:00
Aaron Suen
563324c8fe Fall check immediately after raking 2022-04-05 19:05:51 -04:00
Aaron Suen
1da5ebcc7f Soaking tickle recipes require placed nodes 2022-01-23 16:51:39 -05:00
Aaron Suen
72e417e49d Soil leaching tickling recipe
Also, fix inability to push soaking for leaching
ABMs due to fieldname collision.
2022-01-15 14:07:51 -05:00
Aaron Suen
9116857cc0 Back out leaching particles
They're barely visible if at all, create a ton of
network traffic, and now inconsistent with
composting.  Trees are allowed to be a little
special.
2022-01-15 13:51:21 -05:00
Aaron Suen
5c812035c7 Dirt leaching particles 2022-01-15 13:39:12 -05:00
Aaron Suen
a1b2df3941 Begin standardization of unload bounds check
- New near_unloaded API that supports custom
  distance parameter, map bounds check, and
  some optimizations.
- Add area automatic unload check support to ABM
  API and add to applicable ABMs, replacing many
  old manual checks.

Note that the explicit unload check is only strictly
necessary when something will happen due to
a node NOT being present in the area, e.g. something
igniting due to absent coolant, or soaking quantity
being reset due to missing sources.  In simple cases
where the absence of a thing causes the ABM to do
nothing, then the standard check can work because
the default action is to do nothing anyway.
2021-12-18 11:28:14 -05:00
Aaron Suen
f48798ba77 Tweak raking line opacity 2021-12-13 06:54:09 -05:00
Aaron Suen
67e4c5d476 Leach to non-loose to aid witnessability
If the node leaches and then later repacks, then
the delayed witness would be lost.  This gives
players more time to witness the result.
2021-12-12 00:46:06 -05:00
Aaron Suen
0e96a579b1 Fix leaching hints 2021-12-12 00:33:17 -05:00
Aaron Suen
17c5b2fda7 Leaching by group, fix settingtypes.txt 2021-12-11 11:36:52 -05:00
Aaron Suen
c34bc39530 Soil leaching now requires raked soils
This is a design compromise to knock out the
worst offender in ABM cost, by requiring a node
that must be created by player action instead
of ubiquitous naturally-occuring nodes that all
need to be checked.

Leaching is really meant to be more of a minor
gameplay element anyway, for either skyblock
purposes, or for people who are bored enough
that they want to take on a challenge like a
neutral eco footprint; most normal players just
gather the materials from mapgen and hardly
bother with leaching recipes anyway.
2021-12-11 11:25:18 -05:00
Aaron Suen
227fef47d9 Fix wrong ordering in glyph touchthru
things are listed in Z order, and the glyph is clearly printed
on TOP of the node.  Put glyph on top, consistent with the way
fluids work.
2021-12-10 07:19:36 -05:00
Aaron Suen
80b7160366 Earth raking hints 2021-12-08 23:12:22 -05:00
Aaron Suen
d0f50dd11a Falling nodes crush raked earth back to normal 2021-12-08 22:37:00 -05:00
Aaron Suen
7db1beee70 Add raked dirt and humus
These also function as "farmland", as raking enhances
the nutrient bioavailiability.
2021-12-08 22:30:50 -05:00
Aaron Suen
443bade6d6 Unified custom falling checks 2021-11-27 15:21:11 -05:00
Aaron Suen
b73d1d1290 Pre-clean-transparent filter on all textures
Some users may use filtering but not have the "clean transparent"
filter enabled in the Minetest engine config.  Bake this filter
into all images to (1) avoid the consequences of this (i.e. black
halos), and (2) possibly speed up startup time (the filter will
converge immediately).
2021-09-23 07:36:21 -04:00
Aaron Suen
3a425f5459 Fix writing orientation on walls 2021-08-19 20:51:43 -04:00
Aaron Suen
215c2cd36e Flora hints 2021-07-05 11:34:33 -04:00
Aaron Suen
01c2e17e4b Fix glyph kerning issues
Glyphs were too close to texture edge, causing
them to run into each other and bleed/wrap around
with filtering enabled.
2021-07-04 11:20:30 -04:00
Aaron Suen
75bb408590 More crisp charcoal glyph textures
Also separate into mask layers
2021-07-04 11:02:21 -04:00
Aaron Suen
a034287dd7 Thump raked sand back to smooth 2021-07-04 09:38:46 -04:00
Aaron Suen
56a5028646 Tweak texture compositing, vary alpha
- Make texture pure black so it can be used to
  darken gravel as well.
- Bolden texture alpha so it can be controlled per
  node def with opacity.
- Use lighter effect on sand, heavier on gravel.
2021-07-03 10:50:25 -04:00
Aaron Suen
43d1b6df2f Genericize sand-raking API, add gravel support 2021-07-03 10:42:45 -04:00
Aaron Suen
84bdd1d57a Add on_door_convey API, unrake sand w/ doors 2021-07-02 23:15:31 -04:00
Aaron Suen
04bb7d083e New raked sand prototype
New pattern textures by GreenXenith
- Linear and Nexus shapes
- Recipe determined by player looking direction
- Rake same again to clear
- Handle pattern loss on digging, silktouch
2021-07-02 23:08:04 -04:00
Aaron Suen
20eae3dc49 Simplify sand raking, add recipe 2021-07-02 17:51:35 -04:00
Aaron Suen
a87c7391e6 Fix missing pattern 2021-07-02 15:52:11 -04:00
Aaron Suen
40e8d23a16 Proof of concept sand-raking nodes 2021-07-02 15:40:52 -04:00
Aaron Suen
95f0fb0ee9 Heaviest image compression option 2021-03-09 08:33:58 -05:00
Aaron Suen
410ebd5d8d Recompression using ECT
https://github.com/fhanau/Efficient-Compression-Tool
2021-03-09 08:16:23 -05:00
Aaron Suen
01332c2a0b Prevent writing breaking on unloaded areas
If the glyph is in an active area but the node it's
attached to isn't loaded (so we can't check it for
eligibility) then let the writing stay.
2021-03-02 18:53:02 -05:00
Aaron Suen
c10e80ef87 Set name in mod.conf as demanded by 5.5+ 2021-03-01 20:10:27 -05:00
Aaron Suen
dabf8ac697 Fix node registration alpha for 5.4+ 2021-02-07 12:40:10 -05:00
Aaron Suen
e2fe637ca4 Remove debug code 2020-09-07 15:28:00 -04:00
Aaron Suen
1632b6352a Revert "Appease 5.4-dev texture_alpha warnings"
This reverts commit 253c2282917ecade5b8356d592edab40b1d517f5.

Apparently this warning is full of crap.  Explicitly
setting use_texture_alpha in the node def does
something DIFFERENT than what the engine says
it's doing enabling it internally.  use_texture_alpha
enables alpha BLENDING, which is what we
don't want with interpolation filters, whereas
leaving it off enables alpha THRESHOLDING which
is exactly what we want.
2020-09-05 23:46:44 -04:00
Aaron Suen
95d0368f46 Tree and writing hints 2020-09-05 21:51:10 -04:00
Aaron Suen
18b01c1ae7 Redistribute hints into each mod
Hints themselves have not been tided up
much, but this makes the project of fixing the
hints for each mod a little more manageable
and breaks up the hard-to-navigate single
monolithic hints file in the old guide mod.

The old guide mod has now been completely
retired.  Hints are now a full-fledged API-layer
standard feature.
2020-09-04 19:07:45 -04:00
Aaron Suen
253c228291 Appease 5.4-dev texture_alpha warnings
Apparently we will be required to enable
use_texture_alpha explicitly for anything using
any level of transparency, not just alpha
blending, in some future version.
2020-08-31 23:36:35 -04:00
Aaron Suen
1d35109312 Admin tool auditing, fix falling check 2020-07-07 08:04:05 -04:00
Aaron Suen
34259f12fa Back out stylus for now
The stylus is not ready for use, BUT the
changes already in are worth merging.
2020-06-28 16:08:44 -04:00
Aaron Suen
f16acdc638 Initial glyph facing relative to player
When drawing a glyph, it will always be
oriented relative to the player's looking dir
(except in gymbal lock).
2020-06-28 16:04:44 -04:00
Aaron Suen
f8cfd5a316 Fix missing writing sounds 2020-06-28 15:32:27 -04:00