Commit graph

282 commits

Author SHA1 Message Date
Tyler Marques
bad4ad37e3
FIX: Messages were triggering at the same time
Was calling the onMessageComplete function twice, fixed that
2025-06-16 09:39:30 -07:00
Tyler Marques
9333f531bd
WIP: Fixing no events in queue
Had a bug where we'd do down a path that didn't result in calling the
nextPhase, meaning we'd end up with zero events in the queue and then
just sit there. Wasn't great.
2025-06-16 09:39:30 -07:00
Tyler Marques
ef3e3a79fe
WIP: Mostly working version that uses the eventqueue
We've mostly got this working. Events get executed in the array of
events. We don't use setTimeout anymore thankfully. I'm not in love with
this system, it still isn't straight forward about what events happen
where, but I do at least now have an ability to better control the flow.
2025-06-16 09:39:30 -07:00
Tyler Marques
a929bf5ee6
WIP: Majority converted to event queue, continuing to work on others.
The bottom newsbar still needs conversion, as do numerous other pieces,
but we're working our way there. Attempting adding some tests with
Claude, but they aren't functioning yet, making them effectively
useless. Continuing to iterate.
2025-06-16 09:39:30 -07:00
Tyler Marques
2b52a9cbf9
WIP: An attempt at a completly event queue driven game.
This is a lot of Claude having at the code base, there is no human
review here yet. That is to come.
2025-06-16 09:39:30 -07:00
Tyler Marques
d454c68044
Cleanup of some lingering code
There is logic littered all over the place. We don't have some central
way of determining order for operations and it's driving me insane. This
needs a refactoring so we have a central way to control the order of
operations here.
2025-06-16 09:39:29 -07:00
Tyler Marques
e7a862aee8
Typefixes
Updating some typing errors, removing ports in docker-compose that
weren't used but were stopping others from using them.
2025-06-16 09:39:29 -07:00
Tyler Marques
b9a88e1c7d
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-16 09:39:29 -07:00
Tyler Marques
6f9c050741
WIP: Working on fixing moving from game to game 2025-06-16 09:39:29 -07:00
Tyler Marques
fd00131af2
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-16 09:39:29 -07:00
Tyler Marques
84536667f5
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-16 09:39:29 -07:00
Tyler Marques
9836e9eb7e
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-16 09:39:29 -07:00
Tyler Marques
b8a8f5a6f2
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-16 09:39:29 -07:00
Tyler Marques
d52753569b
Another fix for the turns getting stuck 2025-06-16 09:39:28 -07:00
AlxAI
77e7921b9c Support for o3-pro with openai responses api 2025-06-14 17:28:01 -04:00
AlxAI
fbd92d91ba added rule context 2025-06-09 11:26:12 -04:00
AlxAI
f723d27472
Update README.md 2025-06-08 16:16:34 -04: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