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 cooked up something special for 0 A.D. Nothing serious, nothing historically verified — it's pure testing. But the result is so hypnotic that you'll want to settle in for a while and just watch.

The concept: a war far away. You're neither a general nor a god. You're a spectator. A small, fully automated war unfolding in 7 phases and lasting about 6 minutes. Each side fights on its own, the mechanics do their job, and all you have to do is 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.

 

 

image.thumb.png.5bbc6a00d7d601de63faf845bb1ac817.png

 

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:

Delete the file maps/scenarios/the_oath_of_ashes_triggers.js.

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.

Now you're the one playing — no more automated war, no more scripted phases, just a normal battle to fight with a friend.

 

Technical note — OpenGL (especially macOS and R28)

A quick heads-up for the graphics side. This scenario leans on the base game's rendering, and 0 A.D. uses OpenGL. On macOS, OpenGL support is deprecated and can be finicky depending on your driver and OS version — and if you're on a build around R28, there are known quirks worth watching for. I can't guarantee a perfectly smooth ride on every Mac setup.

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.

One phase of this project was the map itself. The map was created using Atlas Tools — a package that combines Mercator and post-Atlas, created by Grautvornix. It's a set of Python-based tools designed to make map creation and verification easier for 0 A.D. projects: Mercator helps you build terrain from scratch or from digital elevation models, and post-Atlas checks, verifies, and converts maps to the R28/R29 game format. You can hand over work between them and refine in Atlas afterwards. @Grautvornix  

Une guerre lointaine.

— Lilypoppy

le_serment_des_cendres.zip

Edited by lilypoppy
  • Like 3
Link to comment
Share on other sites

1 minute ago, lilypoppy said:

@Asher I’ve managed to create some scenes with Burning Heart, but I have to admit that it’s a challenge.

Yah, I can imagine it would be. But it is pretty cool :)

Link to comment
Share on other sites

Spoiler: one party won the fight - although a two remaining adversary troops plus a single warrior were left inactive and were not attacked. Did I say already that it looks awesome?  Moving such an army on both sides looks truly impressive. 

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...