Commit Graph

61 Commits

Author SHA1 Message Date
Evan a9caee6323 make GameManager more efficient 2025-03-02 09:39:36 -08:00
Evan a029b4277f use node cluster to shard server 2025-03-02 09:39:09 -08:00
Evan ff33c2db50 have server check hashes, crash game if out of sync 2025-03-02 09:29:10 -08:00
Evan cd5e2dfbb5 only limit ips in public games 2025-03-02 09:29:10 -08:00
Evan e0938253df send game hash to server each second 2025-03-02 09:29:10 -08:00
Evan 808107c9c3 don't log zod validation errors 2025-03-02 09:29:10 -08:00
NewHappyRabbit 02d5060352 Customizable creative mode 2025-02-24 23:06:50 +02:00
Evan a7f08b5233 allow up to 3 of same ip to join game 2025-02-23 19:57:51 -08:00
Evan 0994fb19bb rate limit start & create private lobby, change max game duration to 3 hours 2025-02-23 19:42:25 -08:00
Evan 528c8c371e only allow 1 ip per game, don't allow modifying public games 2025-02-23 19:42:15 -08:00
Evan 951d708763 only allow one ip per game 2025-02-23 19:41:56 -08:00
Evan a072a24433 add ws rate limiter 2025-02-23 19:41:38 -08:00
Evan 876fb8dbf9 validate persistent id to prevent player spoofing 2025-02-18 13:53:28 -08:00
Evan 6d507914c9 add websocket error handling 2025-02-12 13:31:22 -08:00
NewHappyRabbit 1f1a07113c Fixed creative mode not working in private lobby 2025-02-12 02:21:46 +02:00
NewHappyRabbit 684b0bb2e0 Added checkboxes to disable Bots and NPCs for single player and private lobbies 2025-02-11 03:29:56 +02:00
Evan b3498976fb show game map name in public lobby 2025-02-09 13:15:06 -08:00
Evan 4ee37323f9 format codebase with prettier 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 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 113518a96e use better structured logging 2024-12-17 20:34:15 -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 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 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 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
Evan 731536931e have game server store game 2024-12-04 18:53:36 -08:00
Evan a2a6654bf5 fixed bug where each intent was duplicated
destroyers find and capture trade ships
ports generate more trade ships
2024-11-22 20:28:58 -08:00
Evan 56d4b924fa add difficulties 2024-10-23 21:08:24 -07:00
evanpelle 206f6d3333 Can select map on private lobbies 2024-10-16 20:34:57 -07:00
evanpelle be7a01954a fix lobby join bugs 2024-10-15 20:00:56 -07:00
evanpelle 42a6a2fcef can creater & join lobby 2024-10-14 20:45:31 -07:00
evanpelle cac66c2186 used msUntil start because server has different time than client 2024-09-02 17:29:38 -07:00
evanpelle 523552bc44 fix bug can't join game if click with 1s before start 2024-09-02 12:05:20 -07:00
evanpelle 026a0cddbe use structed logging 2024-09-01 12:51:20 -07:00
evanpelle 735a2ae57b end game when all clients disconnected or 1 hour 2024-09-01 03:54:04 -07:00
evanpelle b672a79dcd updated game duration to 30 mins 2024-08-27 06:50:35 -07:00
evanpelle 6f1848dbc7 can leave lobby 2024-08-25 09:33:58 -07:00