Commit graph

363 commits

Author SHA1 Message Date
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
Tyler Marques
d20eaa5217
Power names are now shown as the model name 2025-05-30 11:33:16 -07:00
Tyler Marques
b90df44aee
Implementing a debug menu item for moments
Lets you see what moment is meant to come up next.
2025-05-30 11:33:16 -07:00
Tyler Marques
256c3b67c3
Debug menu.
Shows when run in debug mode and includes tools to look at
game state while the game is running and inspect behaviour interactively
2025-05-30 11:33:15 -07:00
Tyler Marques
2fd8ee379a
Add debug province highlighting feature
Adds a debug panel that allows typing province names to highlight them on the map with a flashing yellow animation. Only visible when debug mode is enabled.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-30 11:33:15 -07:00
Tyler Marques
b8b7770435
WIP: Better scaffolding for triggering moments 2025-05-30 11:33:15 -07:00
Tyler Marques
e6f48b7289
Moving render to end of the function
More info found here https://threejs.org/manual/#en/rendering-on-demand
2025-05-30 11:33:15 -07:00
Tyler Marques
863ed605e9
Removing no longer used var 2025-05-30 11:33:15 -07:00
Tyler Marques
4c3fb72983
Removing files that got added by accident 2025-05-30 11:33:15 -07:00
Tyler Marques
9b514e8c13
Some file typing fixes. 2025-05-30 11:33:14 -07:00
AlxAI
1055920b45 re-add json file 2025-05-29 22:09:15 -04:00