Commit graph

273 commits

Author SHA1 Message Date
Tyler Marques
2733e4acd1
Typefixes
Updating some typing errors, removing ports in docker-compose that
weren't used but were stopping others from using them.
2025-06-09 16:11:19 -07:00
Tyler Marques
5411f0bae7
Endgame correctly moves on
I believe this is a working version where we move to the next game after
a delay in the endgame modal. I still need to write tests for all of
this.
2025-06-09 14:25:18 -07:00
Tyler Marques
0316728bc6
WIP: Working on fixing moving from game to game 2025-06-09 09:39:47 -07:00
Tyler Marques
c3cd8370a2
FIX: SC History now works and correctly updates on phase move
The SVG paths weren't getting added to the chart. Should be fixed and
does work in later phases.
2025-06-08 15:45:45 -07:00
Tyler Marques
1583503b62
FIX: Rotating Display rotates, Diplo relations no longer doubles
The display wasn't rotating, and the diplomatic relations always doubled
when first starting a game. Fixed both bugs.
2025-06-08 15:11:40 -07:00
Tyler Marques
d293ec3193
Updating style to focus on 1080p display
The stream should be a 1080p display, so we'll focus on that style for
the moment.
2025-06-07 22:33:18 -07:00
Tyler Marques
5177d761eb
FIX: Map jump bug, leaderboard misname
Reintroducing the fix for the bug in tween.js (issue 677) that causes
the map to jump at the end of the tween.

Leaderboard name was used twice in the code base, once for the modal at
the beginning of games, and also for the rotating display in the bottom
left. I've removed the modal at the beggining of the game as its data is
stale and not updated yet. I've renamed the bottom left to
'rotatingDisplay' and the bottom right to 'leaderboard'.
2025-06-07 21:04:00 -07:00
Tyler Marques
e232d4ab57
Another fix for the turns getting stuck 2025-06-05 07:21:49 -07:00
Alx-Ai
ad3af94f72 added background music 2025-06-05 08:02:33 +00:00
Alx-Ai
30849a36e4 closest so far! 2025-06-05 07:42:20 +00:00
Alx-Ai
8521881c9d optimizations and sound for stream! 2025-06-05 07:29:43 +00:00
Alx-Ai
48c9ff51b6 fixing sounds and timing 2025-06-05 07:07:36 +00:00
Alx-Ai
51e6b4d21b fixed sounds! 2025-06-05 04:58:41 +00:00
AlxAI
417e508300
Merge pull request #34 from Tylermarques/main
Lots of minor bugfixes
2025-06-04 19:39:26 -07:00
Tyler Marques
4e3d6ba204
FIX: Catching bad next phase
Sometimes there is an animation missing, or we can't find the unit we
expect to find for the animation, and it throws an error. This was
cancelling the move forward. "Fixing" with a catch for now.
2025-06-04 19:30:17 -07:00
Tyler Marques
d3d8b22428
O4 tries to fix stream performance
Signed-off-by: Tyler Marques <me@tylermarques.com>
2025-06-04 15:44:13 -07:00
Tyler Marques
061a048dc6
Removing the duplicated banner add call
Signed-off-by: Tyler Marques <me@tylermarques.com>
2025-06-04 15:24:48 -07:00
Tyler Marques
d3f7827287
Setting keyframe rate to ever 60 frames (2 seconds at 30fps)
Signed-off-by: Tyler Marques <me@tylermarques.com>
2025-06-04 14:47:52 -07:00
Tyler Marques
334950d674
FIX: Some phase logic was mucked in chatwindows
This created some very weird behaviour where it got hung up on certain
phases. Removed that logic, as well as extraneous file
relationshipPopup.ts
2025-06-04 16:49:33 -04:00
Tyler Marques
e483c82f10
Select only powers that are in end game
We were selecting powers to play as randomly, but sometimes they'd lose
mid game, making the rest of the game very boring.
2025-06-04 15:44:01 -04:00
Tyler Marques
3cccbbce6f
Fixing the phase schedule being called repeatedly 2025-06-04 15:38:18 -04:00
Tyler Marques
a09ba27437
Fixing wrong name issues
Signed-off-by: Tyler Marques <me@tylermarques.com>
2025-06-04 14:47:46 -04:00
Tyler Marques
700a5132a1
Fixing some issues with streaming and games not being accessible
Signed-off-by: Tyler Marques <me@tylermarques.com>
2025-06-04 14:16:44 -04:00
Tyler Marques
7fa5672877
FIX: Promises not rejecting properly causing game to not move
Updated some of the start game functionality to properly reject the
promises so we can catch them later and update them. Updated tsNoCheck
so that we can build without it screaming about type errors
2025-06-04 10:32:54 -07:00
Tyler Marques
ac8c511334
Fixing game movement.
The git gods appear to have swallowed the code I previously wrote for
loadNextGame. Here is a fix for that. The games load in order, from 0 =>
infinity (more likely max of int).
2025-06-04 09:35:37 -07:00
AlxAI
311553d087
Merge pull request #33 from Tylermarques/main
Updating main branch
2025-06-04 06:31:11 -07:00
Tyler Marques
adccd41d89
Merge branch 'feature/continuous-games' 2025-06-03 19:16:07 -07:00
Tyler Marques
f4b853a6c5
More work 2025-06-03 19:13:51 -07:00
Tyler Marques
9695a64d65
FIX: Instant mode wouldn't disable on toggle. 2025-06-03 12:08:39 -07:00
Tyler Marques
1a78cfdb5c
Fixing the loading of the moments and game zod schema
Removed the old format. Only using the new format now
2025-06-03 11:42:38 -07:00
AlxAI
c3cb07fbbe Merge branch 'main' of https://github.com/EveryInc/AI_Diplomacy 2025-06-03 13:54:22 -04:00
AlxAI
cf556c119d analyze any game results appended with FULL_GAME 2025-06-03 13:54:18 -04:00
Tyler Marques
cbe6c5f8d0
Added some more stuff
Signed-off-by: Tyler Marques <me@tylermarques.com>
2025-06-03 10:15:09 -07:00
Tyler Marques
eebfba0a1b
Initial attempt at some tests that help us determine if the game has basic functionality
Signed-off-by: Tyler Marques <me@tylermarques.com>
2025-06-03 10:14:34 -07:00
Tyler Marques
e81f41fc57
Adding an 'instant mode' toggle, which can be used during testing when we just want to make sure games play through
Signed-off-by: Tyler Marques <me@tylermarques.com>
2025-06-03 10:14:07 -07:00
AlxAI
2d80e7ccff
Update README.md 2025-06-03 11:41:50 -04:00
AlxAI
38eea6229c
Update README.md 2025-06-03 11:41:31 -04:00
AlxAI
9b24abef53 webhooks 2025-06-02 20:33:36 -04:00
AlxAI
fa17592e75 Update utils.py 2025-06-02 13:58:07 -04:00
AlxAI
d60c969b1c fixing output json & rendering! 2025-05-31 14:26:37 -04:00
AlxAI
9253b2198a fix formatting 2025-05-31 09:42:31 -04:00
AlxAI
03b0db2894
Merge pull request #31 from Tylermarques/main
Adding dynamic power names (now shows model names)
2025-05-30 15:53:54 -04:00
Tyler Marques
8c2d778065
Can now set the power a game should run as
When creating a game.json, you can set the top level key "power" to any
valid key of PowerENUM and the game will always run from that power's
perspective.
2025-05-30 12:06:04 -07:00
Tyler Marques
32cce1bce0
Fixing styling so overflow doesn't occur in chat 2025-05-30 11:33:17 -07:00
Tyler Marques
aa8ccf123d
Tool to show random moment in the game and skip to that turn.
Useful for testing the moment display, as well as comparing the moment
to thestate of the game
2025-05-30 11:33:17 -07:00
Tyler Marques
16f4384c5a
Updating font sizes to be more readable. 2025-05-30 11:33:17 -07:00
Tyler Marques
ecf8e1db06
Another pass at basic moments
Adding diary, name of powers, name of moment type, and some supporting
thoughts.

Added a debug menu item to disable or enable the eleven labs speech.
Useful for removing it when debugging
2025-05-30 11:33:16 -07:00
Tyler Marques
e1309c4012
Rudimentary moments working, instant chat debug tool
The moments are now triggered correctly and have the phases happen as
expected.
Also added an instant chat tool that skips the playing out of all the
messages and instead lets us quickly move through a game
2025-05-30 11:33:16 -07:00
Tyler Marques
8a3b6273cc
WIP: Moment display at the end of the turn only 2025-05-30 11:33:16 -07:00
Tyler Marques
25c67cbf78
Updating interface to use the names of the models instead of the powers 2025-05-30 11:33:16 -07:00