1513 Commits

Author SHA1 Message Date
Aaron Suen
950dd195ea Revert swimming eye_height changes
This is severely jarring when actually trying
to mine or build in or near water.  We will
just need to find a better solution.
2020-06-18 20:20:58 -04:00
Aaron Suen
fece086b12 New player skin by WintersKnight
Showing off the new layers :-)
2020-06-18 20:15:57 -04:00
Aaron Suen
1b515d64d1 Merge branch 'dev' into 'dev'
Improve wave anim

See merge request sztest/nodecore!14
2020-06-18 18:54:25 +00:00
Aaron Suen
f7fd09a04a Fix deprecation warning 2020-06-18 07:23:11 -04:00
Aaron Suen
70efb016af Add auditing for player stack movement 2020-06-18 07:20:15 -04:00
Aaron Suen
cb844813f0 Refactor and nerf stone hardening 2020-06-18 06:40:19 -04:00
LoneWolfHT
058a30d30b Improve wave anim 2020-06-17 21:45:21 -07:00
Aaron Suen
272abb62dd Merge branch 'dev' of https://gitlab.com/LoneWolfHT/nodecore into dev 2020-06-17 21:53:46 -04:00
Aaron Suen
53508ee327 Eliminate visinv on_step
We actually have good enough coverage to
push in events when the ents need to update
appearance, so the only thing the patrol
on step was doing was clearing old ents that
the ABM wouldn't catch, which would just be
cleared eventually anyway due to unloading
or something.

This cuts out a major performance cost item
entirely.
2020-06-17 21:53:07 -04:00
LoneWolfHT
aa32ca5190 Fix wield/bando bugs 2020-06-17 18:44:17 -07:00
Aaron Suen
984e87e155 Consistent ABM labeling
- Make sure every ABM has a label
- Use consistent case
- More concise names / consistent voice
2020-06-17 07:09:20 -04:00
Aaron Suen
9cb6a72d6d Correct wield tool position (in mining anim) 2020-06-17 01:37:15 -04:00
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