Kotonia

Kotonia Articles

My AI VTuber Was Supposed to Improve but Its Deck Got Worse

I built a nonstop AI VTuber. After 126 games it won 16.7%, and its deck got weaker. Architecture, deck tests, and lessons on progression and bot difficulty.

By 13 min read
#ai#indiedev#python#rust#vtuber

TL;DR

Could an automatically generated 2D avatar and a conversation system become a nonstop AI VTuber that attracts attention? The first experiment aimed for a game commentator that grew through conversation and experience. It finished 126 games with a 16.7% win rate. In a separate comparison with a fixed bot piloting the decks, the starter deck won 53.8% and the final deck 30.8%. The experiment made me reconsider both the foundation of that growth story and the opponent's difficulty.

Who this article is for

This is for developers adapting avatar and conversation systems into AI VTubers. It records the original idea, the architecture, the fixes made during the stream, and the checks after I stopped it.

From 2D avatars and conversation to a nonstop stream

The starting point was a new system for automatically generating 2D avatars, along with a character conversation system. I wondered whether applying them to a tireless AI VTuber could attract attention automatically.

Neuro-sama was one of my inspirations: an appealing avatar talks with viewers, makes things happen in a game, and turns those events into more conversation. I wanted to try building that kind of stream on the systems I already had.

The plan included my own games and single-player consumer games. This card-game stream was the first experiment in that series.

The first experiment aimed for a story of learning through experience

I wanted a character that interacted with viewers and explained the game state and its decisions clearly. It could fail at first, accumulate experience over matches, and do better next time. The audience would get to watch that progress.

The game was my own Kotonia Card Game, built around “reservations”: setting a spell face down and specifying its trigger conditions. I named the character Celestia and began testing the streaming setup on December 1, 2026.

Progression meant earning cards through matches, modifying the deck, and passing reflection notes into later decisions. Cards, results, and notes were saved across stream restarts. The model's weights were not updated.

I wanted experience to lead to the next success. When I later extracted and compared the decks, they had become weaker than the starter.

Generate the avatar ahead of time and animate it during the stream

The avatar system separates an illustration into parts such as the face, eyes, mouth, and hair, then saves them with expression and mouth variants. During the stream, the browser animates those assets to produce blinking, idle motion, and lip sync. A separate article explains the generation process.

The stream uses the same 2D rendering component as the character chat, combined with a commentary process that receives game events and YouTube comments:

Preparation: illustration → part separation and variants → 2D avatar assets

Live: game state, viewer comments, results, and reflection notes
  → commentary coordinator selects context for the LLM
  → speech: dialogue → speech synthesis → captions, lip sync, expressions
  → action: game command → engine validation and execution → next state
  → browser combines game, avatar, and audio for YouTube

The coordinator switches context between turns, matchmaking, comment replies, and post-game reflection. The language model was Garnet v3 31B and speech synthesis was Irodori. Audio amplitude drove the mouth, while speech start and end events and match results changed the expression.

Rendering and broadcasting ran on a separate CPU server. Its integrated Radeon 760M GPU rendered the browser, and FFmpeg converted and transmitted the video and audio. LLM and speech inference ran separately; I observed browser rendering at roughly 60 fps.

The LLM received the hand, mana, health, current abilities, and board state. It decided card plays, reservations, attacks, and post-game deck changes. The existing game AI assisted with blocking and some target choices.

Because this was my own game, I could obtain structured state directly from its Rust engine. Extending the system to another game would require an adapter that reads that game's state and translates decisions into controls. Playing consumer games was outside this experiment's implementation.

Fixing the failures that stopped the stream

I changed the following behavior during the experiment:

FailureChange
A quest-reward screen waits indefinitely for inputShow an automatically dismissing notification in spectator mode
Up to five minutes of matchmaking produce silenceTalk about the previous game or the next plan
A rejected attack leaves the client waiting for a new boardRelease the wait on rejection and pass the reason into the next decision
The AI can name a reservation card but cannot specify its behaviorLet it specify trigger conditions, targets at activation, and mana to preserve

Another issue moved online matchmaking into a local AI match. I fixed a search that picked up a finished room and made online spectator mode return to matchmaking after a search expired or a connection dropped.

Rejected actions were especially important. When the server returns invalid attacker, it does not send a new board state. If the client waits only for a board update, it can sit idle until the turn ends. I treated a rejection as a response, released the wait, and returned its reason to the LLM.

I also moved announcements of successful actions after the server's response so the commentary matched the moves that actually went through.

More board information did not guarantee a win

Partway through, I found that the model was not receiving enough information about creatures' abilities and states. I added flying, divine shield, deathrattle, frozen status, and whether a creature had already blocked. Used shields and the state after silence were reflected too.

Card names and attack values were not enough. The model needed to know what each card could currently do.

Even then, it sometimes chose to remove an opposing creature when the opponent had seven health and the hand contained affordable four-damage and three-damage burn spells. I added an instruction to check whether multiple burn spells could finish the game.

In individual tests, I confirmed responses that chose the winning line. Consistently doing that over long matches remained a challenge.

Let the LLM write reservation conditions

Initially, the LLM named the card to reserve and the implementation selected a condition from existing candidates. The model was not fully handling the condition-setting mechanic at the heart of the game.

I changed it to let the model write the trigger event, predicate, and target at activation. A predicate for an opposing card or reservation costing at least two looks like this:

(and (= player enemy) (>= cost 2))

Predicates use a read-only language specific to the game. It also accepts multiple trigger branches and conditions based on board state. The engine validates syntax, allowed variables, and targets; invalid input returns a reason without spending the card.

Setting a reservation costs no mana. Mana is paid when it fires. Counter requires two mana to activate, plus ice charge at least equal to the cost of the card it interrupts. I also let the LLM specify mana to hold for reservations so ordinary plays would not spend it all.

The path from generated conditions to activation worked. Choosing good conditions for the actual situation remained a separate problem.

Waiting for speech also spent the game clock

During the up-to-five-minute matchmaking wait, the character reflected on the previous game or introduced its deck. Results and rewards were not processed again, and the waiting talk stopped when an opponent arrived.

During a match, however, waiting for every spoken thought consumes time. Each turn allows 90 seconds, and each player has a ten-minute clock for the entire match. Exhausting the latter loses the game. I confirmed time losses in the server notifications.

The logs contained 3,356 successful planning responses, with a median latency of 2.106 seconds and a 95th percentile of 3.332 seconds. Speech generation, playback, and pauses came on top of that.

I passed remaining time to the LLM and skipped spoken thoughts and playback waits when a turn had under 30 seconds left or the overall clock had under three minutes. The pacing of the broadcast affected match results too.

The final record was 21 wins and 105 losses in 126 games

These were the results at shutdown. I collected the commentary files and service logs and verified that all 126 outcomes matched the saved record.

GamesWinsLossesWin rate
All 1262110516.7%
Last 3032710.0%
Last 201195.0%
Last 101910.0%

The best streak was four wins. It ended on seven consecutive losses. I changed the information passed to the model, action handling, and the deck during operation, so these figures include earlier bugs and time losses.

Some records group timeouts and early exits together, so I cannot give an exact count of losses by timeout alone. This is an operational result for the whole streaming system, rather than a controlled model benchmark.

A five-win-streak goal did not make a path to completion visible

Late in the stream, I added milestones: five total wins, three consecutive wins, and a five-win streak to clear the challenge. The top right showed the current and best streak, the next goal, and completed milestones. First-time achievements triggered a special reflection segment.

The stream screen with current and best win streaks and milestones in the upper right

The screen when I added the goals. Its 20 wins and 95 losses are the record at that earlier point.

Five total wins and a three-win streak had already been achieved in the historical record. The stream ended without reaching five consecutive wins.

The collection grew from 20 to 188 cards, and the final deck contained 59. Reflection notes were passed into subsequent decisions, but I could not see an upward trend in win rate or a convincing route to the goal.

With the pilot fixed, the later decks were weaker than the starter

I started with two hypotheses: weak LLM deck building and a strong opponent bot of my own making. After stopping, I extracted the saved decks for a short comparison to separate out something beyond in-game decision making.

I could restore a 58-card deck after game 115 and the final 59-card deck after game 126. The same lightweight bot piloted every deck against a shared pool of 30 saved, admin-created decks. I sorted card entries by name and used four random seeds per opponent, playing both seats, for 240 games per candidate.

DeckCardsWinsLossesWin rate
Starter red deck2012911153.8%
LLM-built deck after game 115588115933.8%
LLM-built final deck after game 126597416630.8%

Each admin deck also played the same 240-game schedule. Across those 30 decks, the mean win rate was 49.1% and the median 48.3%. All 7,920 games completed in about 35 seconds, with none left undecided.

The two later decks were roughly 15–18 percentage points below the admin mean and 20–23 points below the starter. Both the declining live results and the fixed-pilot comparison point in the same direction. These edits probably did not strengthen the starter deck. Two late checkpoints do not establish that every individual edit made it worse.

Conditions this comparison does not separate

The admin decks can use the full card pool, while the stream built decks from earned cards, so collection differences are included. The starter 20-card deck, however, was available to the streaming character from the beginning.

Production opponents use search, with rating-based opponent selection and game clocks. This lightweight bot-versus-bot comparison cannot determine the production bot's strength or attribute the gap from the live 16.7% entirely to the LLM's piloting.

I also need to reconsider the bot I made strong as a hobby

I already suspected the opponent bot was quite strong before this stream. In a September 14, 2026 test with a quantized GLM-5.3-Flash model, the model used the same deck and went 2–8 over ten games without seeing the bot's recommended moves. With tactical notes it reached 5–5, but still did not finish ahead.

The implementation and conditions differed from this experiment, so those results are not a performance comparison with Garnet. They are a reason to question whether simply changing the streaming model would solve the problem. As the operator, I have also seen this bot win frequently against new users.

I may have focused too much on making a strong bot for fun and postponed the question of whether it lets a new user or an AI encountering the game for the first time experience progress. A strong opponent can be enjoyable, but choosing that difficulty for the first chapter of a growth story is something I need to reconsider as the creator.

Both explanations can be true: the deck may have become weaker and the opponent may have been too strong. I want to measure in-game decisions, deck building, and opponent difficulty separately.

The public stream did not develop an ongoing conversation with viewers

After checking the system with unlisted streams, I switched to public. I also created a dedicated @kotonia_ai channel along the way. From my experience running it, the stream never reached the point of sustained interaction with viewers.

For the last three broadcasts, these were the view counts retrieved just after shutdown, around 03:30 JST on December 4, 2026:

BroadcastTime in Japan Standard TimeViews
Previous channelDec 3, 17:21–21:2712
After restoring the broadcastDec 3, 21:30–23:201
Dedicated channelDec 3, 23:21–Dec 4, 03:273

Views are neither unique viewers nor peak concurrent viewers and may include my own checks. The dedicated channel was public for about four hours and six minutes, too short to judge the success of audience acquisition.

After a transmission failure, I shortened the restart delay from three minutes to 30 seconds. The viewing URL changed at that point too. With channel changes and split broadcasts, I have not isolated why people did not arrive.

My audience-acquisition hypothesis is that an original game cannot easily borrow the recognition of established intellectual property: familiar games and characters. An existing title offers an entry point through its name and player interest. Here, a first-time viewer needed to care about both a new character and an unfamiliar game.

When viewers know the rules and decisive moments of a game, they can understand a match they join halfway through. That shared context also has to be built for an original game. This is a hypothesis about the viewing results, not a cause established by these view counts.

Why I stopped and what I want to test next

I had considered keeping the stream public for about a week, but ended the experiment early. Progress toward the goal was hard to see, viewer interaction had not developed, and I lacked evidence to justify extending the run.

If I resume, I want to compare LLM and bot piloting with a tuned, fixed deck. I would avoid changing construction and piloting at the same time, and count time losses and missed winning lines separately. I also want a separate difficulty suited to new users and first-time AI players, followed by goals whose progress is visible even during a short visit.

Audience discovery and which moments are worth watching need their own design. I built the machinery for nonstop broadcasting from the avatar and conversation systems, but this run did not produce encouraging evidence for the original hypothesis of attracting attention automatically.

On December 4, 2026, I stopped the broadcast and its dedicated connections and disabled automatic startup. The results, decks, logs, code, and stream archives remain available.

What remains in Kotonia

Recovery from rejected actions, the handling of current abilities, and condition validation remain in the game and streaming code.

The stream has ended, but the card game is still playable. The experiment documented the interaction around reservations and the difficulty of having an AI handle it for long periods.

Kotonia brings voice AI, AI chat, image generation, and team collaboration into one AI workspace.

Try Kotonia