1681 Commits

Author SHA1 Message Date
Aaron Suen
86d513d063 Language bidirectional filling
Share strings across variants for a common
langauge, if we don't have a string for that
specific variant.  This should help us get better
overall translation coverage.

This is done as a "filter" on converting the raw
weblate data to MT locale files, so we don't get
the purity of the original translations ruined.
2020-09-14 21:33:53 -04:00
Aaron Suen
621592bc41 Update translations
New translators: Elon_Satoshi and heshman,
working on the es_US translation
2020-09-14 20:37:56 -04:00
Aaron Suen
7e2a4c0b0c Reintroduce radiation HUD 2020-09-14 09:36:59 -04:00
Aaron Suen
cfeae44a72 Fix items settling into shelves too eagerly
Items now try to settle into air and open stacks
first, and only squeeze into shelves/storeboxes if
there is no other available space.
2020-09-14 08:33:32 -04:00
Aaron Suen
7702830df1 Stop actually rearranging player inventory
Want to see if we see anything weird during
gameplay, since this is quite rare now.  We are
still recalculating what we WOULD have done for
debugging purposes so if we see anything weird
we can tell if the rearrange would have fixed it.
2020-09-13 20:12:42 -04:00
Aaron Suen
8520236197 Add wield index to inv rearrange debug 2020-09-13 20:10:04 -04:00
Aaron Suen
4ea87829b7 Another radiation nerf
When I was watching other people work on their
reactors, I was standing some distance off and
still got significant radiation damage after a
short time, even with the reactors subcritical.

Cut the radiation accumulation rate by 75% this
time, while buffing flux a little more relative to
solids.
2020-09-13 19:43:21 -04:00
Aaron Suen
92953a6ac1 Fix inv rearrangement trap 2020-09-12 21:40:32 -04:00
Aaron Suen
81df25633a Add stone brick doors 2020-09-12 21:20:46 -04:00
Aaron Suen
6e939c5877 Nerf rad a bit more, still mainly off solids 2020-09-12 20:38:37 -04:00
Aaron Suen
367e0ec514 Fix rad damage immunity priv 2020-09-12 20:19:19 -04:00
Aaron Suen
4272204cb9 Nerf rads from tools and solids 2020-09-12 18:30:28 -04:00
Aaron Suen
8742b48fc8 New inventory radiation mechanics
Items in inventory can both emit radiation
and shield you from in-inventory radiation.
This process happens separately from
node-space radiation, though.
2020-09-12 16:43:00 -04:00
Aaron Suen
cb74ad204b Remove now-defuct HUD
Lux no longer has a "build-up" level, so
we have no good way to show the HUD
anymore anyway.
2020-09-12 16:31:53 -04:00
Aaron Suen
da75c0dfc6 Merge branch 'dev' into luxredo 2020-09-12 16:30:50 -04:00
Aaron Suen
0f8459c1c7 Fix code formatting issue 2020-09-12 16:30:15 -04:00
Aaron Suen
7ceb716473 Finished node rad emit/absorb
Lux things outside the player now
emit/absorb/scatter radiation, and can
also wash away radiation damage.

Remaining to do: player inventory
2020-09-12 16:27:15 -04:00
Aaron Suen
e6bd880528 Start work on redoing lux radiation logicUse a more direct, straightforward approach tolux radiation. Perhaps allow exposure to be morestochastic and less "smoothed". Offer more directand varied effects from sheilding.The end goal is to make radiation a significant force,but easily, and as intuitively as possible,manageable. 2020-09-12 12:10:18 -04:00
Aaron Suen
2d78f30c11 Add just one more paranoia check 2020-09-11 22:58:34 -04:00
Aaron Suen
4f3f6066c2 Prevent hot potato item moving exploit
Certain items, e.g. heated lode, were meant not to
be carryable so that players would need to plan
certain constructions properly.  The "hot potato"
feature was added to achieve this, and I had
assumed that players would eventually find it
sufficiently frustrating that they would stop and try
to figure out how to do things properly.  This has
not worked out, and players working at a forge
spend a lot of their time fiddling with hot things
trying to randomly throw it into the right spot.

This change should make it more difficult for
players to manipulate the "hot potato" item
physics to move items that shouldn't be movable
by hand once heated.  Problems involving heated
item placement need to be solved through proper
furnace design, not workarounds.  As a bonus, it's
now also harder to accidentally hot-potato your
items into places it's hard to get them out of.

At some point in the future, we will probably be
adding tongs to provide a proper way to move
these items, once players have reached the
proper tech level.
2020-09-11 22:57:33 -04:00
Aaron Suen
761753d5dc Simplify water names 2020-09-11 19:48:42 -04:00
Aaron Suen
80ad330a15 Touchtips for fluids above nodes 2020-09-11 19:23:35 -04:00
Aaron Suen
ae74e4f546 Complete basic hint audit of all mods 2020-09-11 17:20:21 -04:00
Aaron Suen
859a57c572 Partial translation update 2020-09-11 01:26:23 -04:00
Aaron Suen
de87702497 Door crafting hints and witnessing 2020-09-11 01:08:20 -04:00
Aaron Suen
ce4a77ab79 Concrete hints 2020-09-11 00:29:58 -04:00
Aaron Suen
d712ad3668 Stone brick hints 2020-09-10 23:21:36 -04:00
Aaron Suen
24953aafe6 Almost completely opaque pumwater inside 2020-09-10 22:39:51 -04:00
Aaron Suen
efa2446e42 Add hints for player mods 2020-09-10 22:28:25 -04:00
Aaron Suen
15ae43c7a6 Extra debugging on inv rearrangement 2020-09-10 22:12:24 -04:00
Aaron Suen
7b6abce986 Fix fire ignition ABM
We were using the igniter's position instead of the
flammable's to check if the flammable had already
been tested, which caused fire not to spread fully
though large blocks of contiguous flammables, and
biased the direction of fire spread where it did.

Thanks to Elon_Satoshi a.k.a. Copenhagen_Bram for
discovering, reporting, and helping to confirm that
this bug had a long history.
2020-09-09 21:59:49 -04:00
Aaron Suen
be3ac536cf Typo 2020-09-09 21:32:20 -04:00
Aaron Suen
46f1682600 Attempted fire ignition rework
- Add debug logging
- Raise the ignition check limit to 250%
- Atomic ignition queue management, to ensure that
  there's no chance of things getting "stuck" in the
  blacklist due to partial queue resets
2020-09-09 21:31:46 -04:00
Aaron Suen
6d39ebb77d Fix dynamic light DNT conversion 2020-09-09 10:15:48 -04:00
Aaron Suen
d95e7bb714 Disable timer-based light check for now 2020-09-09 10:00:13 -04:00
Aaron Suen
0a8583d4a5 Fix on_timer trap hook 2020-09-09 09:56:50 -04:00
Aaron Suen
8624ee3a89 Fix lux rake durability issues 2020-09-08 21:23:03 -04:00
Aaron Suen
90fbdabdf2 Redo pickup interceptor using base metatables
The new method of intercepting item addition into
player inventories hooks into the base metatables for
the userdata types only once per type, instead of
trying to substitute every inventory object with a
table (which crashed some things) and does a lookup
to find the player per inv.  This should hopefully be
more reliable, and avoid some of the leaks to
rearrangement we had before.

If we can finally stop hitting the player inv rearrange
safety net then it can be removed.
2020-09-08 09:24:45 -04:00
Aaron Suen
d448a8ae98 Revert a possible broken perf optimization
The use of hash instead of string for pos was causing
a bug in doors some time ago where doors would
randomly fail to fire ... and then now we're seeing
reports of fire that refuses to ignite for some specific
planks...
2020-09-07 23:35:13 -04:00
Aaron Suen
eea966ff5d Fix some fenceposts 2020-09-07 23:32:13 -04:00
Aaron Suen
d18eaf23fb Warn about missing mux for each node name 2020-09-07 23:23:20 -04:00
Aaron Suen
1b33ccb431 XD 2020-09-07 21:55:41 -04:00
Aaron Suen
4da3d92757 Fix pumice melt antigravity bug 2020-09-07 21:34:36 -04:00
Aaron Suen
e2fe637ca4 Remove debug code 2020-09-07 15:28:00 -04:00
Aaron Suen
c47008bc44 Door presses can now place nodes and craft
Thanks to Kimapr for the basic approach, and proving
the concept.

Doors pressing a single-item stack now place that
item as a node, and trigger placement recipes.  Doors
pressing nodes that don't have a single item stack
node form (sticks, leaves) also trigger placement
craft recipes.

All craft pressing recipes require some form of
backstop to provide pressure.
2020-09-07 10:53:51 -04:00
Aaron Suen
2f730e0c68 Fix the "light a torch" hint 2020-09-06 18:10:07 -04:00
Aaron Suen
3915426d7b Add exclusive use for infused rake
Recalculate rake function based on update tool
capabilities so rakes can work on pumice now, and
theoretically even a future snappy=3 material.
2020-09-06 17:48:47 -04:00
Aaron Suen
6e9865487c Initial lux rakes
Operation on existing loose/snappy/crumbly stuff
is acceptable.  TBD is operation on pumice.
2020-09-06 17:25:03 -04:00
Aaron Suen
35c800d942 Make pumice snappy=2
Paving the way for infused rakes that can clean
up more extensive messes...
2020-09-06 17:09:43 -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