1651 Commits

Author SHA1 Message Date
Aaron Suen
a9542329a1 Merge branch 'dev' of https://gitlab.com/LoneWolfHT/nodecore into dev 2020-06-17 01:25:45 -04:00
Aaron Suen
3d561a229b Optimize stack cook/cool check
If the item type does not at least pratially match any cooking/cooling recipe the first run, assume it never will and cache this fact
so we can quickly skip all stacks of the same
item next run.
2020-06-17 01:23:30 -04:00
Aaron Suen
ec822aa034 Optimize leaf decay check with caching 2020-06-17 00:54:21 -04:00
LoneWolfHT
37ef785450 Add new model 2020-06-16 21:46:49 -07:00
Aaron Suen
e1e92224b7 Nerf leaf decay speed to conserve ABM power 2020-06-16 21:56:23 -04:00
Aaron Suen
79674b7519 Swimming hysterisis, "swim stand" anim 2020-06-16 21:37:56 -04:00
Aaron Suen
f509f9fba8 Change eye height when swimming
Suggested by oilboi to make the swimming eye
height match the model anim.   There is a bit of
jank switching between swimming and standing
height, but it doesn't seem to be too bad, and it
makes players have to actually break the
surface to breathe, and makes swimming a little
less bizarre in 3rd person view.
2020-06-16 21:14:11 -04:00
Aaron Suen
eb248aaf22 Removed register_limited_abm
- There was never any real proof that the
  limiting mechanism was necessary, and if it is,
  it may be better to use it sparingly.
- We suspect this may be complicit in some
  serious issues, such as door ablation failures.
- Despite 2 different revisions of the code,
  limited abms have never worked reliably.
- Instead of fixed count limits, either dynamic
  or time-based limits would be better.
2020-06-16 20:39:41 -04:00
Aaron Suen
1ac9ed3f07 Even more wield/visinv microoptimizations
- Bake in on_step so we aren't doing metatable fallback each tick.
- Localize and tail-call some functions.
- Reduce redundant data lookups.
2020-06-16 06:43:08 -04:00
Aaron Suen
aba8b27bb1 Reduce light source of non-shining optics
Minimize the impact of oscillating optics on
mapblock lighting recalcs, as the start of an
effort to prevent light loop strobe issues.
2020-06-15 22:36:56 -04:00
Aaron Suen
f9acdc48cf Optimize visinv globalstep
Apparently avoiding rounding and hashing a
thousand vectors each globalstep makes a big
difference...
2020-06-15 22:15:38 -04:00
Aaron Suen
e4337b698c Optimize visinv ent item checks
When items are just chillin' in place and not
changing stacks, don't recalculate and reapply
entity properties.
2020-06-15 22:05:26 -04:00
Aaron Suen
82100b7519 Player wield view optimizations
Based on the profiler, this was taking like 20%
to 30% of the time and now it's down to like
5% to 6%.
2020-06-15 21:31:37 -04:00
Aaron Suen
338e4784e6 Automatic profiler labels for ents 2020-06-15 07:35:32 -04:00
Aaron Suen
e0156b4742 Add profiler instrumentation metadata everywhere
N.B. the MT built-in profiler doesn't yet actually support reading
labels from bare-function registrations, so a builtin hack is
needed.
2020-06-15 07:21:39 -04:00
Aaron Suen
74d42519b5 Revert grass growth abm
The performance costs were too high, as we're
under some ABM pressure on the new server...
2020-06-15 02:29:27 -04:00
Aaron Suen
dc347a3ffc Add another admin "cheat" code
Add a hand that can dig pretty much anything
in the game that's supposed to be diggable,
and a shortcut command to summon one.
2020-06-14 09:15:00 -04:00
Aaron Suen
e95dbf5fba Enlarge tools, fix wield glow 2020-06-13 18:53:24 -04:00
Aaron Suen
d4cc03625e Fix player hand UV maps 2020-06-10 21:33:16 -04:00
LoneWolfHT
a6d52f5942 Add second layer to player model 2020-06-10 12:33:04 -07:00
Aaron Suen
8935df061d Refactor player guide 2020-06-10 08:04:59 -04:00
Aaron Suen
de22a58162 Fix eggcorn planted falling visual 2020-06-10 00:59:48 -04:00
Aaron Suen
caf112fe75 Register protection violations for totes too 2020-06-09 22:48:45 -04:00
Aaron Suen
e2ed97205b Protection handling for totes 2020-06-09 20:57:19 -04:00
Aaron Suen
19ecff1198 Merge branch 'master' of https://gitlab.com/LoneWolfHT/nodecore into dev 2020-06-09 19:39:34 -04:00
Aaron Suen
efe6900c19 Buff lux charge rate, nerf total capacity again
This should lower the gap between the SP and MP
experience, since generally tools recharge all day on
MP but only when playing for SP.

Nerfing lux tool capacity should reduce the tendency
to rely on lux for everything after a certain point.

As always, boosted lux is exempt.
2020-06-09 19:37:46 -04:00
LoneWolfHT
bf72a05da1 Apply lots of sunscreen to player neck 2020-06-09 16:34:11 -07:00
Aaron Suen
2110bbba37 Nerf tree growth rate 2020-06-09 19:25:29 -04:00
Aaron Suen
60682f2f9c Merge branch 'master' of https://gitlab.com/LoneWolfHT/nodecore into dev 2020-06-09 19:06:35 -04:00
Aaron Suen
acfd3d08dd Clean up a few log items, fix levels 2020-06-09 19:05:39 -04:00
Aaron Suen
6c640a11b1 Validate log message levels 2020-06-09 19:02:07 -04:00
Aaron Suen
a998009656 Merge branch 'master' of gitlab.com:yamanq/nodecore into dev 2020-06-09 18:57:34 -04:00
Aaron Suen
d1a5aa55a0 More useful lode cube group 2020-06-09 18:11:15 -04:00
Aaron Suen
e9b9bd43d9 Protection support for storeboxes, pummel 2020-06-09 18:10:44 -04:00
LoneWolfHT
079c1ebe79 Add waving anim 2020-06-09 12:33:40 -07:00
Aaron Suen
b1c6f6feb9 Make lodesign a little more visible 2020-06-09 07:20:00 -04:00
Aaron Suen
c9b432d5e5 Lodesign redesign
Should be subtler at a distance, but more distinct up close.
2020-06-09 07:09:58 -04:00
Aaron Suen
7e065c8134 Nerf lux tool durability
These things are way too durable as they are, and it's
actually kind of game-breaking.  Players with lux
tools are in an entirely different class from players
without.

Instead, players should be forced to invest more in
lux reactors, or rely more on tempered lode as an
"everyday" tool and use lux for special projects.

Boosted lux is exempt from this nerf, and is now 4
times as durable as ordinary lux.  It might not be a
bad idea to allow them not to experience any wear
at all when boosted...
2020-06-07 22:26:28 -04:00
Aaron Suen
c3d0aed881 Tool breakage particles
Makes mining with stone tools less crappy with
sound turned off.
2020-06-07 18:14:32 -04:00
Aaron Suen
32e30328eb Delay breath HUD onset
The hack to start new players with full breath does
not apparently work with existing players, so players
are joining to find their breath half gone at the start
of play.

Instead, let's just hide the breath HUD entirely for the
initial half of underwater movement, and only show it
when the player is running low.  This effectively hides
the fact that players are losing the top half of breath
when joining, in the common case.

Players joining and being immediately submerged in
water is an uncommon enough case that this will
probably not affect gameplay significantly.
2020-06-07 14:17:20 -04:00
Aaron Suen
5fa2483d87 Refactor, fix new players starting a half breath 2020-06-07 12:26:27 -04:00
Aaron Suen
4048f15e82 Add a wishlist entry for player buoyancy. 2020-06-07 12:22:40 -04:00
Aaron Suen
5ddfd621f2 Revert player buoyancy
This feature is too annoying in practice and makes
the player harder to control when in water under most
circumstances, and isn't worth it for the cases it does
handle.

Buffing player breath should help alleviate drowning
problems due to network issues or chat.  Players may
just have to manually resurface more frequently.

This feature could be reconsidered for inclusion if a
better way to do it could be found, and if it could limit
gameplay impact.  Ideally the player should simply
remain at a fixed location when not moving (i.e. the
player character should counteract any drift
automatically) but that would require engine/client
changes.
2020-06-07 12:18:51 -04:00
Aaron Suen
0a5565a3ea Buff player breath 2020-06-07 12:15:56 -04:00
Aaron Suen
7a542abefe Fix float glass sunlight propagation 2020-06-06 21:39:26 -04:00
Aaron Suen
86d4a1a1fa More glassy pumice texture
Multiplied by inverted chromatic glass to create
larger-scale glassy structures.
2020-06-06 09:17:42 -04:00
Aaron Suen
ba2eed812d More uniform pumice texture 2020-06-06 09:16:56 -04:00
Aaron Suen
646f218abc Tweak particles 2020-06-06 08:28:19 -04:00
Aaron Suen
3493e8222b Add new pumice material
- Flowing lava quenches to pumice
- Pumice can spontaneously melt back to flowing
  lava, when touching lava, and sometimes even
  when still quenched.
- Pumice cannot be harvested or moved, it's
  utterly destroyed by digging.
2020-06-06 08:23:29 -04:00
Aaron Suen
f70c34cf8e Refactor amalgam into its own mod
This declutters nc_terrain and paves the way for
more igneous content
2020-06-06 08:00:59 -04:00