Commit Graph

85 Commits

Author SHA1 Message Date
Evan fa22861d43 patch server perf upates from v0.14.1 2025-02-05 19:53:04 -08:00
Evan 4ee37323f9 format codebase with prettier 2025-02-01 12:05:11 -08:00
Evan a103d721e4 don't throw archive error 2025-02-01 12:05:11 -08:00
Evan a5a2f46099 have client send winner to server 2025-02-01 12:05:11 -08:00
evanpelle 0d764eb885 update gamemap, rename gamemap enum => gamemaptype 2025-02-01 12:05:11 -08:00
Evan f6b739e263 validate usernames on change, fix public lobby highlight bug, validate
strings with zod for safety
2025-01-02 09:02:23 -08:00
evanpelle 239f5f11dc fix merge errors 2024-12-31 13:10:58 -08:00
Evan 0b8950f4bc fix ip processing bug: ip was sometimes an array 2024-12-31 13:09:20 -08:00
Evan 843a1186ce log ip address for debugging (TODO remove logging before next release) 2024-12-31 13:08:55 -08:00
Mittani 0cce2b3b57 * resolve conflict 2024-12-31 13:07:41 -08:00
Mittani 697b4c6111 * updata validation on public games 2024-12-31 13:07:17 -08:00
Mittani af6c519d77 * updata validation on public games 2024-12-31 13:06:43 -08:00
Mittani aba8e5dd81 + add validation server side 2024-12-31 13:06:43 -08:00
Mittani aa01ea7694 + add random bot names 2024-12-31 13:05:22 -08:00
Evan 0693b5db65 fix ip processing bug: ip was sometimes an array 2024-12-30 13:24:09 -08:00
Evan cb75f6780c log ip address for debugging (TODO remove logging before next release) 2024-12-27 12:36:06 -08:00
evanpelle 8e61632b8b implement pause feature,
bugfix: server stops in the beginning if no ticks found
2024-12-25 15:19:35 -08:00
evanpelle 57cbf5c55e Refactor: Split config into Config and ServerConfig 2024-12-25 14:04:19 -08:00
evanpelle 44d6962b88 have private lobby show players 2024-12-24 11:47:11 -08:00
Evan 33b3255a38 try-catch on websocket message to prevent crashing server 2024-12-23 11:31:17 -08:00
Evan 23b712623d better anonymize ip function 2024-12-21 20:43:48 -08:00
Evan 361b1f7d6c retry archiving to bigquery & gcs 2024-12-21 19:44:51 -08:00
Evan a73b7eab91 use custom ip masking instead of library 2024-12-20 21:41:17 -08:00
evanpelle ff02d9d8b6 have core/ directory use consolex for remote logging 2024-12-18 12:00:00 -08:00
evanpelle 642d5dc4ca create consolex class for remote logging 2024-12-18 11:50:31 -08:00
Evan 113518a96e use better structured logging 2024-12-17 20:34:15 -08:00
Evan 94992e1144 send all logs from client to server and log them 2024-12-17 19:53:17 -08:00
evanpelle 031f62c701 have clients send logs to server 2024-12-17 17:14:24 -08:00
evanpelle d26eddcf2d make ips less precise before storing 2024-12-17 14:53:52 -08:00
evanpelle 387fdcdef8 update archive error handling 2024-12-17 14:46:29 -08:00
evanpelle 1417808c14 store user's persistent id in bigquery 2024-12-17 14:30:16 -08:00
Evan 722165c401 adding persistent id 2024-12-17 14:30:16 -08:00
Evan d99b60b477 fix config build error, better logging in game server 2024-12-17 14:30:16 -08:00
Evan 37a71c2ef0 added discord bot 2024-12-17 14:29:31 -08:00
Evan 4d3f690c45 bugfix: private game ending when no clients connected (disconnects caused games to end), so check for no recent pings as well 2024-12-16 21:12:55 -08:00
Evan e7791b183b fix active clients == 0 2024-12-15 13:26:42 -08:00
Evan 1576a2c744 update version, ping every 5 seconds, only end game if no pings for 20 seconds 2024-12-15 13:24:05 -08:00
Evan 2970cd9d34 actually make game wait 30s with no clients before ending, only archive game if someone joined 2024-12-15 13:07:34 -08:00
Evan 5cf6a35fee multiply by 1000 to wait 30s before stopping game. 2024-12-15 12:55:06 -08:00
Evan 2fc81c7d17 store client ips in bigquery table 2024-12-14 10:03:05 -08:00
Evan dfe2f27ba8 store metadata in bigquery 2024-12-10 20:28:39 -08:00
evanpelle 601f606a7f save game stats to bigquery, update enums 2024-12-10 20:28:39 -08:00
evanpelle 63b0e89d8b rebalance unit cost 2024-12-10 20:28:39 -08:00
evanpelle d290054e5c catch and log archive failure to prevent server crash 2024-12-09 13:14:59 -08:00
Evan 323e30b875 fix join private lobby websocket reconnect bug 2024-12-08 13:17:23 -08:00
Evan 7669105a1b record games in gcs 2024-12-07 18:30:04 -08:00
Evan 60ccf2ba36 create singleplayer game record rest endpoints 2024-12-07 08:54:09 -08:00
Evan cd09c0a1d6 record game metadata to gcs 2024-12-07 08:54:09 -08:00
Evan b8db74247f add heartbeats, better websocket disconnection handling 2024-12-07 08:54:09 -08:00
Evan 926b6d2fb1 update gcs write logic, fix build cost bug 2024-12-05 08:07:40 -08:00