Jump to content

The Oath of Ashes — a mini automated war for 0 A.D.


lilypoppy
 Share

Recommended Posts

 

image.thumb.png.075e5e80c020aa6b61f2f846bf8fb9c8.pngimage.thumb.png.e69f7ed4132e37ad0cb3cc541978216c.pngimage.thumb.png.efc90c42e016540dff620f3ffd1b36c7.png

 

My friends, get the popcorn ready… or your dinner. 

I put together a little something special for 0 A.D. Nothing serious, nothing historically verified — it's pure testing. But the result is hypnotic enough that you'll want to sit down and watch.

The idea: a war far away. You're not a general, you're not a god. You're a spectator. A small 100% automated war, unfolding in 7 phases, lasting about 6 minutes. Both sides fight on their own, the triggers do their job, and you just watch.

It's first and foremost a test bench: I wanted to see what 0 A.D.'s JavaScript and triggers have in their belly. The Oath of Ashes is that — a story of honor and ashes played out by units that know nothing about it.

How to watch (100% automated mode)

This is the default mode, the one the scenario was made for. You launch it, you watch, you don't touch anything.

But watch out, there's a trap. When you start the game, by default you have you (the player) and Petra on the other side. If you leave it like that, Petra takes command of her side and the war no longer plays out on its own — she starts reacting, producing, attacking according to her AI, and the whole 7-phase timing goes up in smoke.

 

 

image.thumb.png.5bbc6a00d7d601de63faf845bb1ac817.png

 

So for the 100% auto mode, you need to set the player to unassigned. Concretely: in the game setup, assign unassigned to the player (you), and unassigned to Petra / player 2 as well. Nobody controls anything, both sides are driven only by the triggers, and the little war unfolds exactly as planned. Otherwise, it won't work.

That's the real show mode: two armies with no general, and you, sitting in the stands.

 

How to play with a friend (manual mode)

Here we do the opposite: we want the players to take control back, so we disable the automation. Two things to do:

1. Delete the file maps/scenarios/the_oath_of_ashes_triggers.js.

2. Remove its reference in the_oath_of_ashes.xml. In the ScriptSettings block, the "TriggerScripts" line becomes:

json
"TriggerScripts": ["scripts/TriggerHelper.js"],
(You can also delete the TriggerScripts entry entirely.)

Then, in the game setup, assign an AI to player 2 (Kushites). Otherwise their army will just stand there while you attack them — and that's less fun.

 

So if you run into graphical glitches, crashes, black screens, or weird rendering while running this scenario, please send me feedback. Tell me your OS, your 0 A.D. version, your OpenGL/driver situation if you know it, and what you saw. That kind of report is genuinely useful — it helps me figure out whether the issue comes from the scenario's triggers or from the OpenGL side itself.

 

A war far away.

— Lilypoppy

the_oath_of_ashes.zip

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...