Commit graph

105 commits

Author SHA1 Message Date
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
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
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
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
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
9b24abef53 webhooks 2025-06-02 20:33:36 -04:00
AlxAI
d60c969b1c fixing output json & rendering! 2025-05-31 14:26:37 -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
Tyler Marques
cebfa8e980
Removing the relationship popup - currently not used. 2025-05-28 10:38:17 -07:00
Tyler Marques
a02594e3cc
Fixing issue where fleets convoy-ing were trying to move 2025-05-28 10:38:17 -07:00
Tyler Marques
3dcdadf096
Claude - Adding workflows that will run on PR to catch failed tests 2025-05-28 10:38:16 -07:00
Tyler Marques
29bc960fe3
Added some initial tests for the functions present.
Had a resurgence of a bug I was pretty sure I fixed, but it came back.
Adding some tests to make sure we catch it if it comes back again.
2025-05-28 10:38:16 -07:00
Tyler Marques
cad1cb0464
Fixing bug where province colors didn't reset on game change.
The province colors were not properly being iterated through, needed to
do all of them on game change.
2025-05-28 10:38:16 -07:00
Tyler Marques
3642e391bc
Updating phase state control to allow for reinit of units at any phase.
I wanted to be able to cause the turns to either progress, or to set the
units in their specific spots. This way if I skip ahead a bunch of turns
for one reason or another, I don't have to worry about the units on the
  board being all messed up.
2025-05-28 10:38:16 -07:00
Tyler Marques
9a43be9b9c
Adding a GameId to allow moving through a list of games. 2025-05-28 10:38:16 -07:00
Tyler Marques
9314a411f9
WIP: Starting the ingestion of moments.json file 2025-05-28 10:38:16 -07:00
Tyler Marques
06cf18c7bf
Fixing issue with province names appended with /...
Signed-off-by: Tyler Marques <me@tylermarques.com>
2025-05-28 10:38:16 -07:00
Tyler Marques
981dfef6a0
WIP: Continuing to iterate 2025-05-28 10:38:16 -07:00
Tyler Marques
190686e248
WIP: Adding games to test. 2025-05-28 10:38:15 -07:00
Tyler Marques
d250e38359
WIP: Adding a larger relationship view, that shows all powers 2025-05-28 10:38:15 -07:00
Tyler Marques
302e93de9d
Updating Elevenlabs to speak fully when not in debug 2025-05-15 11:34:02 -04:00
Tyler Marques
5621a43c48
Adding the missing provinces.
There still may be more, but these were what was triggered when
ingesting new game. We obviously need tests.
2025-05-15 08:28:59 -04:00
Tyler Marques
e46455d279
Fixing bug where yoyo-tween jumped to init pos
There is a bug in Tween.js that makes the camera jump when you are using
the yoyo() function. This is mitigated by calling update twice per loop,
waiting for a patch from the tween.js team.
https://github.com/tweenjs/tween.js/issues/677
2025-05-13 12:19:18 -07:00
Tyler Marques
500428e872
Fixing cameraPanAnim not getting init'd properly. 2025-05-12 10:02:24 -07:00