Commit Graph
58 Commits
Author SHA1 Message Date
ilan schemoul 1b76c46bc5 feat: remove LocalPersistantStats so we locally save GameRecords
GameRecords also now include PlayerStats
2025-03-08 17:39:41 +01:00
ilan schemoul 9a1f916f4d feat: cancel attack
Canceling attack takes time and incurs a malus (loose some troops).
Also prettier fixed a file HostLobbyModal.
2025-03-03 22:06:35 +01:00
evanpelleandGitHub 38b762b8bc Merge pull request #95 from ilan-schemoul/embargoes
feat: everyone trade with everyone, anyone can embargo a player to stop trade
2025-03-02 10:58:05 -08:00
Evan a029b4277f use node cluster to shard server 2025-03-02 09:39:09 -08:00
evanpelleandilan schemoul 0a077ebf4d Merge pull request #100 from d3n0x8/scrollAttackRatio
add shift + scroll command in HelpModal hotkeys table
2025-03-02 18:34:04 +01:00
Evan ff33c2db50 have server check hashes, crash game if out of sync 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 f894276ef0 fix execution validation, verify that clientID own playerID to prevent spoofing 2025-02-18 17:13:08 -08:00
Evan 876fb8dbf9 validate persistent id to prevent player spoofing 2025-02-18 13:53:28 -08:00
NewHappyRabbit 949f68287e Added flags 2025-02-11 23:34:19 +02: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 4bbb63fd48 move Game updates to GameUpdate.ts 2025-02-01 12:05:11 -08:00
evanpelle 4034d11015 split Player/Unit from its Views for better separation 2025-02-01 12:05:11 -08:00
Evan f0f5bae79f thread_split: convert all tile to tileref 2025-02-01 12:05:11 -08:00
Evan 459fc50dae builds 2025-02-01 12:05:11 -08:00
Evan 8443095d89 create game runner 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
Mittaniandevanpelle aba8e5dd81 + add validation server side 2024-12-31 13:06:43 -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 03acaa1ffc have transport use console prevent stack overflow 2024-12-18 14:10:52 -08:00
evanpelle 0d3d49fdd0 use consolex in client folder 2024-12-18 14:01:34 -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
evanpelle e3ea353b22 log locally for transport related logs to avoid stack overflow 2024-12-18 10:53:26 -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 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 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 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 b8db74247f add heartbeats, better websocket disconnection handling 2024-12-07 08:54:09 -08:00
Evan 18ac34ae45 Created hydrogen bomb 2024-11-20 19:55:42 -08:00
Evan b5a8339eb3 move unit info to config 2024-11-16 21:09:25 -08:00
evanpelle 1c8489f099 port spawns on coast 2024-11-15 20:43:15 -08:00
Evan 4236a580e3 working on port 2024-11-15 20:43:15 -08:00
evanpelle c7951d77c0 adding destroyer 2024-11-15 20:43:15 -08:00
Evan 2afecf0f39 create troop slider 2024-11-03 12:37:56 -08:00
Evan 3ab9f3b617 add troop send amount bar. can full send! 2024-10-30 17:31:01 -07:00
Evan 56d4b924fa add difficulties 2024-10-23 21:08:24 -07:00
evanpelle a81dbda071 add nuke button 2024-10-19 10:04:40 -07:00
evanpelle d92dc9eba6 rewrite game join network logic: don't load client game until game starts. Allows setting attrs like game map, difficulty 2024-10-16 19:52:05 -07:00
evanpelle be7a01954a fix lobby join bugs 2024-10-15 20:00:56 -07:00
evanpelle ac46c786c9 implement single player 2024-10-12 18:20:41 -07:00
evanpelle 117027779f single player start 2024-10-12 13:50:11 -07:00
evanpelle db7a259587 can donate to allies 2024-10-07 20:17:15 -07:00
evanpelle df28ee169f send emojis working! 2024-10-04 20:17:27 -07:00