206 Commits

Author SHA1 Message Date
Aaron Suen
3bc06c5118 Try moving player after setting lookdir
See if we can get rid of that one step worth of jank after
moving the player before their lookdir is set correctly, which
might be due to the delay involved in the work of moving the
player's position.
2022-04-20 07:35:01 -04:00
Aaron Suen
b001ce7b36 Standardize target cycling time 2022-04-20 07:33:31 -04:00
Aaron Suen
744be01ae0 Add dummycam, stay inside airlikes
If no player is connected, just show random views around "spawn"
(the origin for now, not actually testing to find the real spawn
location or honoring static_spawn setting yet) every ~10s.

Make sure the camera is never placed inside a solid; if it is,
then it needs to be moved immediately.
2022-04-20 07:29:26 -04:00
Aaron Suen
66df91ced7 Don't shuffle camera order
This leads to uneven times between cycling to
a particular player; it's probably best to just use
the naive order and let players rotate through
deterministically.

This was especially noticeable when a player
was last in the queue and then first in the next
queue, so you'd see a "Watching: ..." HUD
announcement but no actual change in perspective
and the player would just run twice as long.
2022-04-19 20:39:57 -04:00
Aaron Suen
09ca6f0c89 Allow certain players to be ignored for restarts 2022-04-19 19:34:09 -04:00
Aaron Suen
a27fc1e13d Add a "watching:" HUD 2022-04-19 19:25:57 -04:00
Aaron Suen
8ad44fcd15 Fix wrong mod name 2022-04-18 23:52:03 -04:00
Aaron Suen
cf489835cf Fix code formatting issue 2022-04-18 23:46:45 -04:00
Aaron Suen
47f89855ed Add new WIP "cinematic camera" mod 2022-04-18 23:46:36 -04:00
Aaron Suen
c09272b39d Fix DM beeps w/ new translation 2022-04-01 13:08:12 -04:00
Aaron Suen
9664255b3e Fix broken server status line in 5.5+ 2022-02-18 00:12:43 -05:00
Aaron Suen
159ede89d4 Fix special case of :00 countdown
Should not happen anymore, but just in case.
2022-01-26 22:02:50 -05:00
Aaron Suen
f54dc14dd9 Fix graceless uptime-based restarts
Make sure to trigger the restart countdown before
the uptime limit to make sure there's enough time
for the grace period countdown before the restart.
2022-01-26 22:01:18 -05:00
Aaron Suen
1a550952a7 Fix mis-restoring interact privs on unwatch
Apparently {interact=false} grants the interact
priv, it needs to actually be nil (i.e. key absent)
to not grant interact.
2022-01-23 20:56:02 -05:00
Aaron Suen
6f7892e232 Fix restart announcing
Announce pending restarts if one was pended at the time the
first player joins a game (possible if it's held off by the
minimum restart interval).
2022-01-06 07:14:17 -05:00
Aaron Suen
0cd4737c96 Automatic interact revocation where appropriate 2022-01-06 07:12:58 -05:00
Aaron Suen
19d89b0565 CDB dev state 2021-12-26 14:33:01 -05:00
Aaron Suen
c33e7afba2 Fix blockstats hud breaking other huds
- Remember to clear cached IDs on exit
- Try to defer HUD creation a tiny amount to avoid slamming clients
  with a ton of HUD creation packets all at once
2021-12-10 07:31:29 -05:00
Aaron Suen
9af45a5bab Fix infinite node placement bug 2021-08-19 07:39:07 -04:00
Aaron Suen
a1afdabdb6 Mod to kick idle players 2021-08-18 08:08:25 -04:00
Aaron Suen
a526faffc2 Capture item drop in block usage too 2021-07-18 08:21:12 -04:00
Aaron Suen
609d54473f Include mapblock pruning script by usage 2021-07-18 08:14:12 -04:00
Aaron Suen
0dfff3eb10 Fix crash on config parse fail 2021-07-10 20:39:35 -04:00
Aaron Suen
f86b39a83d Strip remaining escapes 2021-07-10 19:51:02 -04:00
Aaron Suen
55ed9c368a Strip MT translation tags from socket text 2021-07-10 19:43:43 -04:00
Aaron Suen
dd1cf72902 Usage survey improvements, live HUD 2021-07-08 21:45:19 -04:00
Aaron Suen
7cab2bec37 Add todo 2021-07-05 22:49:08 -04:00
Aaron Suen
0a142a2a79 Add /nodeuse command to limit report to building actions 2021-06-30 07:29:00 -04:00
Aaron Suen
d31bc2e71b Migrate usage database to json 2021-06-30 07:09:13 -04:00
Aaron Suen
7d88a00c4f Try fixing NodeCore inv dump on /unwatch
Move player to target position first, then restore
inventory after so it doesn't get left behind where
it's restored (i.e. next to the /watch-ed player)
2021-06-08 07:18:03 -04:00
Aaron Suen
b9e80905ac Fix backwards emerging timeout check 2021-03-23 15:43:30 -04:00
Aaron Suen
e83db42fa7 Fix "emerging" players never expiring
Make sure we're comparing times in seconds always,
and never seconds vs. microseconds.
2021-03-23 15:41:37 -04:00
Aaron Suen
ea555a6783 Say "gone" instead of "purge" for account removal 2021-03-14 15:46:17 -04:00
Aaron Suen
660bf3a530 Fix some messages, tag purge departures 2021-03-11 21:34:51 -05:00
Aaron Suen
c3baa94a0f Aggressive image optimization 2021-03-11 21:28:36 -05:00
Aaron Suen
b9d635ecff Restarts are only silent if no announcement was made 2021-03-11 08:31:29 -05:00
Aaron Suen
c8b680b5fc Explain lagometer in built-in help text
Got tired of people not being able to figure out how
to read it and having to explain it each time.
2021-03-10 09:16:09 -05:00
Aaron Suen
555cb9e7c4 Automated image compression including ECT 2021-03-09 08:12:36 -05:00
Aaron Suen
63e9aa8ce9 Fix log message param reversal 2021-03-09 07:39:54 -05:00
Aaron Suen
412bcac521 One more mod idea 2021-03-08 19:59:47 -05:00
Aaron Suen
74a29459fa Tweak lagometer buffer fencepost
Before the times would add up to a little over 58 seconds (assuming
the dtime steps keep up well enough); now it should add up to a
little over 60 seconds, getting us closer to an exactly 1 minute
sliding sample window.
2021-03-08 06:49:26 -05:00
Aaron Suen
81637bf297 Tidy up TODO, merge personal notes 2021-03-07 10:01:41 -05:00
Aaron Suen
b1c41bc31f Typo 2021-03-06 18:56:23 -05:00
Aaron Suen
a06d4feee2 Import new /admin command mod 2021-03-06 18:47:23 -05:00
Aaron Suen
07a3c36466 Fix old copyright year range 2021-03-06 12:39:38 -05:00
Aaron Suen
229c235383 Import restart countdown mod
An earlier form of this mod was used on the
NodeCore Community server.
2021-03-06 10:02:26 -05:00
Aaron Suen
67ad61ddcd Add notes 2021-03-05 21:31:12 -05:00
Aaron Suen
6f7e5fd36d Lagometer precision improvements
Set the max bar width to 50% of the total accumulated time, so
there is always one longest bar unless 2 bars have 50% each, and
all non-longest bars are linearly comparable.

Increase accounting granularity so we have smoother expiration
of old entries.
2021-03-02 08:40:09 -05:00
Aaron Suen
d54230df66 Next-generation lagometer as a weighted histogram 2021-03-02 07:47:13 -05:00
Aaron Suen
9ce18fd427 Add all required mod.conf files 2021-03-01 20:04:16 -05:00