Commit Graph

101 Commits

Author SHA1 Message Date
Evan 5f26cf72c8 Make world & europe maps more likely for public multiplayer 2025-02-18 20:36:00 -08:00
Evan 876fb8dbf9 validate persistent id to prevent player spoofing 2025-02-18 13:53:28 -08:00
evanpelle 4f3ad5c1ac Merge pull request #39 from NewHappyRabbit/map-randomizer
Public lobbies map will now be picked from a randomized playlist, assuring each map is played at least once, without duplicates.
2025-02-18 11:30:10 -08:00
Evan e37cba91dc don't crash when failing to load discord secrets 2025-02-17 19:36:31 -08:00
Evan 6a66d0c52d load archived game if not found 2025-02-17 19:30:30 -08:00
NewHappyRabbit 2249f5207e Public lobbies map will now be picked from a randomized playlist, assuring each map is played at least once, without duplicates. 2025-02-17 21:32:36 +02:00
Evan 0f325d4be8 add database layer 2025-02-16 12:18:50 -08:00
Evan 969886331c create discord login button & flow 2025-02-16 12:18:50 -08:00
Evan 6d507914c9 add websocket error handling 2025-02-12 13:31:22 -08:00
NewHappyRabbit 303543d246 Lobby urls! Server will server index.html and act as a SPA. 2025-02-12 21:18:23 +02:00
Evan 40966ca3b9 format all files with prettier 2025-02-12 08:28:15 -08:00
NewHappyRabbit 1f1a07113c Fixed creative mode not working in private lobby 2025-02-12 02:21:46 +02:00
NewHappyRabbit 7fcbaa8584 Added creative mode. Everything costs 0 gold, builds instantly and you start with 100k population 2025-02-12 00:15:30 +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 6ff4e10a7e public games have random map 2025-02-09 12:29:13 -08:00
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