THE ENGINE · NINTH SIGNAL

Asgard Tveir

I’m building Asgard Tveir so I can change a game without losing the battle that made me want to change it.

In Rampart Zero, a damaged tank can leave its post for a Repair Bay. When it stops halfway there, I want the battle that led to that decision. I want to see its orders and what changed along the route, then put the world back and try the next move again.

Read the history of Asgard Watch Rampart Zero on Asgard Tveir Follow an order

Run the rules on their own

A late wave can take a long time to set up. It may depend on which units survived the last fight, which buildings still have power, and the orders a player gave ten minutes earlier. I want to keep those conditions so I can ask the same question again after changing the game.

In the Rampart Zero development build, the rules run in WebAssembly in the browser and the interface draws the world from its snapshots. The same simulation can run in a native test with no window. A saved checkpoint gives both ways of working a starting point. Recorded orders give me a way to advance from there, and the world reports what those orders actually did.

The renderer has its own job. It makes the battle readable, and there’s room to change it while continuing to test the rules behind the battle. On wave nine of a development run, the battlefield stopped updating while the HUD and the simulation carried on. The game clock in the trace gave me a way to distinguish a stalled view from a stalled battle. That changed the investigation. I could keep the run and look at what the renderer had been asked to draw, with the original presentation available as a point of comparison.

Read about the renderer in a real battle

What happens after an order

Send the tank to the Repair Bay. Every step gives you something you can check again.

  1. Order

    A player, the Commander or a test submits a command with a known source.

  2. Simulation

    The world applies the game’s rules when it advances. The route, other vehicles and the bay shape what happens.

  3. Result

    The browser draws a snapshot. A headless test can inspect the orders, events and state behind it.

  4. Replay

    Restore a checkpoint and apply recorded commands to revisit that part of the battle.

A checkpoint and the orders that follow it let a test return to a known part of a run.

Who placed the Garage?

During the Rampart Zero port, a Commander task could stay open while the player built a Garage by hand. For that stretch of time, the browser could give the player’s action the Commander’s name. An ordinary click had borrowed someone else’s authority.

The regression holds a Commander power task open, places the Garage through the normal hotkey and click, then lets the task finish. The orders on either side belong to the Commander. The Garage in the middle belongs to the player. That is what the test now checks.

Knowing who gave the order matters in a fight. It can affect whether another system may override it. The bug crossed a boundary I care about as a player. I had given the Commander a job and was still free to use the controls while it worked. The two actions needed to stay independent even when they reached the game close together.

The useful thing about the regression is that the Garage can appear in the right place and the test can still fail. Its visible position is only part of the outcome. When I save a battle, I want the decisions in it to remain legible too, including the origin of an order and what the game did with it.

Read the Garage investigation

Give an agent the battle

A coding agent can already run a headless game test and inspect whether the simulation reached the expected state. A good task comes with a specific situation and a question you can answer. Restore the stalled tank, apply the orders, and see whether it reaches the bay and returns to its post.

I want more ordinary playtest reports to arrive with that kind of evidence. A repeatable run can make a repair bug easier to find and show whether a save restores the same pending orders. It also gives me something specific to review when an agent fixes the bug. I can compare the old and new runs and ask where the behavior began to differ. If the change reaches into how vehicles yield to one another, I have a reason to look at what it did to the rest of the line.

There’s still a decision to make after the test passes. A tank can get fixed every time and spend so long doing it that I stop relying on the Repair Bay. I build the engine to get back to that decision sooner, with a battle I can actually play.

Where it stands

Rampart Zero is the engine’s first full game test. The invitation playtest now runs the campaign, checkpoint saves and the on-device Commander on Asgard, which also draws the battlefield. The browser uses WebGPU where it can and falls back to WebGL 2. The browser and native tests let me keep checking the rules as those parts of the game evolve.

EDEN//ZERO has also supplied an action-physics experiment. I want Asgard to hold up in games where the time between a button press and a dodge can matter as much as the rules of a long campaign. Those games will tell me which parts of the engine deserve the next round of work.

Explore Rampart Zero

Field Notes on Asgard