Commit Graph

559 Commits

Author SHA1 Message Date
Evan 903a630953 added Black Sea 2025-01-02 11:16:43 -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
evanpelle 3fe8d28abe implement pause feature,
bugfix: server stops in the beginning if no ticks found
2024-12-31 13:08:29 -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 d99219afba * formating 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
evanpelle eb261fe103 make front page mobile friendly 2024-12-31 12:44:31 -08:00
evanpelle 2e913ed5e3 rebalance game, don't use startTroops when determine attack TN land speed 2024-12-31 12:14:10 -08:00
evanpelle 6e8a3b6f40 fix npe in radial menu when clicked right after spawn phase, rebalance weaken attacks to make up for expanded attack bonus range from previous commit 2024-12-31 10:45:58 -08:00
evanpelle b7af94ec47 bugfix: didn't call isTraitor so NPCs treated everyone as traitor 2024-12-31 10:26:43 -08:00
Evan 0553a56c06 Increase price of atom bomb to 750k 2024-12-30 20:27:44 -08:00
Evan 309ee84246 NPCs send boats at enemies when not adjacent 2024-12-30 20:23:09 -08:00
Evan c1f78e0e3b fix NPCs sending message showing raw html 2024-12-30 14:07:22 -08:00
Evan c4061e8848 NPCs only attack target when friendly, more bonus for larger attack vs defender troops 2024-12-30 13:55:30 -08:00
Evan ba67ac9507 create error modal when game crashes 2024-12-30 13:42:39 -08:00
Evan 0693b5db65 fix ip processing bug: ip was sometimes an array 2024-12-30 13:24:09 -08:00
Evan e9d9fe1d98 make hard & impossible more difficult 2024-12-30 13:21:46 -08:00
Evan f4c98318b6 Show player relations in player info overlay 2024-12-30 09:40:16 -08:00
Evan a159c50160 bugfix: NPCs not reseting enemy correctly, don't flip off NPCs, NPCs send messages to enemy 2024-12-27 20:56:07 -08:00
Evan ac1d0c0378 Add relations, NPCs attack enemies using relation, NPCs attack targeted players 2024-12-27 16:53:56 -08:00
Evan cb75f6780c log ip address for debugging (TODO remove logging before next release) 2024-12-27 12:36:06 -08:00
Evan bb968ec6b6 always recalc name, NPCs spawn warships less frequently 2024-12-27 10:59:41 -08:00
Evan 2ceeda051d added suez canal 2024-12-27 10:21:09 -08:00
Evan c9c10ccfa8 shell does not attack friendly units 2024-12-27 10:02:00 -08:00
Evan f12fd23e2b battleship doesn't attack trade ship if destroyer nearby 2024-12-27 10:01:07 -08:00
Evan 5ea10751ea display gold on leaderboard 2024-12-27 09:39:55 -08:00
Evan 1eb6066653 NPCs send nukes 2024-12-27 09:35:50 -08:00
Evan 5fdfc98893 NPCs spawn cities 2024-12-26 20:19:11 -08:00
Evan 4afe6f4cbf make territory more opaque, space bar makes territory invisible. 2024-12-26 19:41:52 -08:00
Evan fa3b3478b7 don't delete nukes when player dies. was creating a an error because nukeexecution tried deleting inactive unit. 2024-12-26 09:56:12 -08:00
evanpelle 2771d3d432 ctrl + click brings up build menu 2024-12-25 18:45:26 -08:00
evanpelle a6f75b5f82 build menu wraps on smaller devices 2024-12-25 18:15:04 -08:00
evanpelle dbf288d2c4 hide build menu when click on map on mobile 2024-12-25 17:38:49 -08:00
evanpelle fbdf26cff8 alt-r to redraw graphics 2024-12-25 17:07:11 -08:00
evanpelle 99e5a62ba6 make leaderboard & events box smaller 2024-12-25 15:36:28 -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 111775a3f4 generate mini map offline and load it from binary. this reduces loading time by 30-40% 2024-12-25 11:27:36 -08:00
evanpelle 44d6962b88 have private lobby show players 2024-12-24 11:47:11 -08:00
Evan 0d0b3ad65e bump version 2024-12-23 20:03:59 -08:00
Evan d39aa245d3 rebalance troops increase & max population 2024-12-23 20:03:34 -08:00
Evan 33b3255a38 try-catch on websocket message to prevent crashing server 2024-12-23 11:31:17 -08:00
Evan 07f8e4dd26 update duration for warn messages 2024-12-23 10:34:19 -08:00
Evan 4e1b37d976 make NPCs less likely to build warships 2024-12-23 10:13:35 -08:00