739 Commits

Author SHA1 Message Date
Aaron Suen
828f4a06d9 Try to fix faling node columns.
Before, settling was being processed out of order, so nodes could
fall into the space of nodes below and kick them out as items, so a
solid column of nodes could collapse and eject some nodes as items.
This makes hopper-feeding systems a pain to use.

Instead, explicitly signal upwards (tail-recursive) to settle all
falling nodes on the same tick, since they should already be falling
and accelerating downwards in lock-step.

This isn't perfect, as there are possible race conditions with things
being added into the node-space of the falling column while it's
falling, but it seems to work for now...
2019-10-15 20:35:26 -04:00
Aaron Suen
4dfc98eaa0 Fix a long-standing inconsistency in repose logic.
In the earliest days of the game, repose was added, and at the time it
seems that the intent was to have nodes "roll" off of their perches.
This caused problems though with tree leaves wandering an unlimited
distance down grassy hillsides, so it was changed so that repose
nodes could only roll off of loose/falling nodes that were able to "tilt"
to let the above nodes come off.  Because of this, the implied action
here seems to have changed from "rolling" to "sliding", so the extra
ceiling clearance is no longer necessary.
2019-10-15 19:13:37 -04:00
Aaron Suen
96e653a5b3 Minor screenshot update, some image optimization. 2019-10-15 07:13:11 -04:00
Aaron Suen
749169a10b Subtlize and overall nerf radiation accumulation rate. 2019-10-14 19:52:19 -04:00
Aaron Suen
c8b7b8b8c8 Include fluid texture building script. 2019-10-14 07:12:46 -04:00
Aaron Suen
22f24f7444 Buff water attenuation, add attenuation for all other materials. 2019-10-14 06:19:45 -04:00
Aaron Suen
88292e402b Lower lux tool radiation rate significantly. 2019-10-14 06:13:48 -04:00
Aaron Suen
f9a1996811 Limit lux radiation distance, water attenuates significantly. 2019-10-14 06:11:50 -04:00
Aaron Suen
bc11435786 Drop more pre-raycast MT support. 2019-10-14 05:56:18 -04:00
Aaron Suen
608742522f Add limited support for the enable_damage setting.
If disabled, players can still accumulate radiation poisoning,
but they won't lose inventory space for it.
2019-10-13 14:32:25 -04:00
Aaron Suen
f6102b9512 Revert "Allow placing nodes against ends of doors."
There are other situations where we right-click on things and
expect a non-placement action, and that action fails.  We should
probably be more consistent about not placing in these cases, as
players may be surprised by it, and be left in trouble due to
not having a tool to dig it back up.  Requiring sneak is safer.

Now technically shelves violate this principle, but their
violation is much narrower in scope, i.e. only placement of
containers.

This reverts commit 4795a63116782fe47e72847dd308468a345b9369.
2019-10-13 13:35:49 -04:00
Aaron Suen
70388c4ceb Item duplication bug. 2019-10-13 13:30:47 -04:00
Aaron Suen
4795a63116 Allow placing nodes against ends of doors. 2019-10-13 13:28:53 -04:00
Aaron Suen
fc0ef548e5 Doors prefer centrifugal movement. 2019-10-13 13:10:42 -04:00
Aaron Suen
af1f808c68 Fix player health FX auto-scaling.
Guarantee 2 usable slots no matter how many different
injury effects accumulate.

Filled slots will be shared among different damage types
roughly proportionally.
2019-10-13 12:57:57 -04:00
Aaron Suen
af42914d86 Oops, fix missing dependency, texture name. 2019-10-13 11:39:00 -04:00
Aaron Suen
402f0150b7 Lux Radiation, and player healthfx API. 2019-10-13 11:37:36 -04:00
Aaron Suen
2a77e6a852 More liberal lux cobble hint detection. 2019-10-13 10:21:30 -04:00
Aaron Suen
a4f53947a2 Official issue number. 2019-10-13 09:38:07 -04:00
Aaron Suen
8cffc156ba Workaround for another builtin bug. 2019-10-13 09:31:22 -04:00
Aaron Suen
4eb4e80bc7 Fix log splitting. 2019-10-13 09:19:08 -04:00
Aaron Suen
c32c32ed55 Bugfix for tree growth.
Dirt was repacking around planted eggcorns, killing them.
2019-10-12 17:09:42 -04:00
Aaron Suen
3b546ef2ee Tree trunks fall, dig to logs, logs rotate. 2019-10-12 11:41:07 -04:00
Aaron Suen
1c40762eae Further optimize large images. 2019-10-11 19:52:11 -04:00
Aaron Suen
984947830a Fixed water texture error. 2019-10-11 19:49:35 -04:00
Aaron Suen
ed2a9e9573 New experimental animated liquid textures.
These are based on the nodecore "honeycomb", so they should at
least thematically match the other textures somewhat, even if
they're not super-attractive.
2019-10-11 19:40:34 -04:00
Aaron Suen
522a4c0de5 Laser ablation door operation.
This now allows optics to interact with doors, tying the two
systems together.
2019-10-11 08:34:50 -04:00
Aaron Suen
252d167544 Back out falling-node operation.
Falling nodes themselves are too unstable, so players should not
be encouraged to build machines that perpetually put nodes into
that state and destabilize the game.  Testing has led to some node
duplication exploits.

Leave the door operatoin rate nerf in place, though, since it will
help keep a lid on traffic.
2019-10-11 01:29:47 -04:00
Aaron Suen
feb9c5016d Nerf door op rate, falling node operation.
Also:
- Persist door squelch data.
- Work around crush damage logic issue...?
- Try to reduce unnecessary network packets?
2019-10-11 01:14:00 -04:00
Aaron Suen
f44f9941bb Fixed last known conveyor issue. 2019-10-11 00:22:32 -04:00
Aaron Suen
13a3c37d55 Better conveyor support.
Items riding a gear can "turn outward" if they hit a wall.
Unfortunately this creates a divergence in the tracing path,
causing "bubbles" to appear in solid conveyor trains.
2019-10-11 00:20:14 -04:00
Aaron Suen
1152a6885a Allow moving doors to push loose items.
There are a couple of large glaring limitations:
- Items are only pushed after doors operate, so can block doors.
- No "secondary direction" allowing items to migrate out, making
  practical conveyor belts unncessarily difficult.
2019-10-11 00:04:21 -04:00
Aaron Suen
b6168151bf Style consistency.
Avoid redefining tables on every call.
2019-10-06 12:06:36 -04:00
Aaron Suen
1fbad4ad70 Buff torch firestarting ability. 2019-10-06 11:29:46 -04:00
Aaron Suen
d0ef7ab3ad Use torches for super-easy firestarting. 2019-10-06 11:26:30 -04:00
Aaron Suen
fb0aecaaea Make all loose nodes self-repack over time. 2019-10-06 11:22:56 -04:00
Aaron Suen
54e6ef9019 Fix door digging issue. 2019-10-06 10:37:15 -04:00
Aaron Suen
e4dba54be3 Lode smelting rework.
Separate ore melting and draining processes, to
ease the cognitive leap necessary to figure out
lode smelting.  Players now get feedback when
they have figured out the heating part of the
process, and the visual for cobble with molten
lode in it hints at the draining process.
2019-10-06 10:31:58 -04:00
Aaron Suen
90dd2c259b Fix and clean up tree growth and composting. 2019-10-06 09:26:18 -04:00
Aaron Suen
d453df0bb8 New dirt cycle.
- Pack 8 leaves into 1 peat node.
- Leave peat nodes near soil and moisture to decompose further
  into humus.
- Humus is a high-quality soil that works like dirt in most
  ways, but grows trees quite a bit faster.
- Humus converts to dirt via grass (and eventually maybe other
  plant cultivation activities).
2019-10-06 00:08:59 -04:00
Aaron Suen
b8d340587e Deprecated function cleanup. 2019-10-05 17:49:16 -04:00
Aaron Suen
0ed1c497fd Missing some coremod registrations...?! 2019-10-05 17:42:02 -04:00
Aaron Suen
c147da4dde Convert from depends.txt to mod.conf 2019-10-05 11:24:16 -04:00
Aaron Suen
956b02b82e Fix underwater tree growth, add tree debugging.
Special tree growing command, requires debug privs.
2019-10-05 10:17:47 -04:00
Aaron Suen
ce9e68fa9b Fix item duplication bug. 2019-10-05 10:07:12 -04:00
Aaron Suen
0c494955ef Setup weblate sync tools, and pull a snapshot. 2019-10-04 19:27:56 -04:00
Aaron Suen
6a012aeacb Move all src dirs to subdirs of output targets.
This should make organization a little more consistent, and more
specific.
2019-10-04 19:13:30 -04:00
Aaron Suen
27e9a218b0 Don't retranslate any mod's translated strings, not just ours. 2019-10-02 07:40:14 -04:00
Aaron Suen
955f41a578 Less tedious writing controls.
Once a writing node has been scrawled, hold your charcoal and...
- punch it to change between the 8 glyphs
- right-click it to change between 4 to 8 rotations
2019-10-01 22:49:12 -04:00
Aaron Suen
7fd1da272e Wield light effect works on thrown/dropped torches too. 2019-10-01 21:30:20 -04:00