Hi! so my idea is to create a tool that lets hosts ban specific units/structures. my idea of how it's gonna work is that when the user initiates building/training something, the piece of code that's responsible for that specific action also calls a function which sends a public message in the chat to notify the host. I just need someone who's familiar with the game's code help me write the syntax. thank you!
I've been building Specula, a web service that lets you play, watch and replay 0 A.D. matches in a web browser. You don't need to install anything. You can try it by the link above. No registration is required. I already posted about the observer functionality, but now it is a fully self-contained service that also allow playing the game.
The best way to try it is multiplayer. Grab a friend (or three), type a nickname, click "New game" and send them the room link. The demo server runs up to 9 player matches at once. If no one is around, there's always an AI-vs-AI match running that you can watch. It runs best in Chrome, but Firefox works too. Press F4 for some debug info if you like tinkering.
- you can play on any device that has a modern browser (keyboard and mouse also needed due to input specifics), be it ipad or chromebook, so now you can procrastinate on a work laptop where security team doesn't let you install 0ad. - you can enjoy multiplayer 0ad even if you or your friend only have IPv6 - you can observe matches from your phone. (touch support is OKAYish for observing, not suitable for playing) - Limit observers so that it's impossible to cheat via observing the match. The host picks the delay, and whether observers see everything, only explored areas, or nothing until the match ends. - Replay matches in the browser: Hosted matches are recorded. Replays have pause, speed control, a timeline you can scrub, and links to a specific moment. - Each match is essentially a vanilla 0ad game under the hood and you can download a replay that is playable in local 0ad. - Fair pause: server manages pause and allow for brief disconnects. If a player disconnects, the game can pause to give them time to come back. Each seat has a pause allowance, and a pause every player agrees to doesn't count against it. - improved setup screen: non-host now can choose their civ themselves - host migration: if original host leave the match, host rights migrate to the next available human player. - up to 15 players (on selected maps that support it) and theoretically unlimited observers - command delay is reduced from 800 to ~200ms and works consistently.
How it works
Each match runs in a headless copy of Pyrogenesis (no graphics) on the server. Your browser never runs the simulation, which is why a phone can keep up. The server turns the game state into a compact visual model of units, buildings, animations, territory and fog of war. It compresses that and sends it over a WebSocket, and the browser smooths movement between updates. The renderer is written in Rust, compiled to WebAssembly and drawn with wgpu (WebGPU, or WebGL2 where WebGPU isn't available). It uses 0ad;s own models, textures, animations and sounds, converted ahead of time into compact files and served via CDN. When you play, your orders go over the WebSocket to the engine on the server. You only ever connect to the website.
Current limitations
- no registration, everybody can name themselves however they want. - no moderation, so if you are sensitive to words refrain from reading the chat messages, or at leas disable observers chat in settings - no password protected games: by design, since this is a free demo server I want to be able to take a look at how you play. - no save/restore. - 0 A.D. 0.28 only, no mods. - It's still early. Expect rough edges and some differences from the regular game's interface.
Please try a multiplayer game and tell me what breaks, either with the Feedback button or in this thread.
In the game, is supposed to boost soldiers "in formation" by giving them +3 armor (piercing/hack/crush/all???) and give them +15% movement speed. But i failed to replicate the effect at all. Could someone check it still works ?
does anyone have a fix for the issue where the enemy AI builds a city closer to my teams stuff and then places a market there causing all their traders have to walk past my defenses and die. it kind of ruins the game when enemies economy just tanks mid game. (Solution could be like making it so that AI markets can only be built in connected territory, but not sure if this is possible).
This devlog took longer than usual, but for a good reason. The project has been moving fast.
Scripts are coming along really quickly, so we're now at the gameplay stage. We also made original soundtrack music and recordings. Even the voice-overs are in production.
For the next part we used some tools that helped us a lot and are still being developed:
Every time i try to install the game, the setup pops up a screen saying "unpacking files" but when that hits 90 percent it retjurns an error "error writing file LanguageDLL.dll" .ive tried starting as administrator, ivr tried moving it, i've tried whitelisting the executable but still nothing. Any help?
as you know, sone walls cost a lot while being mostly useless. enemy siege can just pull up and destroy them and you can't do anything even if you have siege engines of your own since your own walls are in their way. I have two ideas to change this:
A: (the realistic one)
there's an upgrade on stone walls that lets you build catapults/bolt shooters if your civilization has access to them. they cost more (the opposite of real life) since spamming them would be OP but they'd have more range and damage than the usual siege engines as in real life.
B: (the easier one)
You just garrison your siege engines inside the walls and they start shooting with higher range.
Mine is the Ptolemeis. I started playing back in 2020, before the devs removed the free houses for the Ptolemeis, but they are still cheap houses and the whole looks of everything is so peak.
I, fended off an intial larger attack with a group of archers pretty well then when I saw a new wave coming i decided to garrison my walls with my archers and they just got wiped almost instantly. I know they say there is an armor boost but still.
In another note, I know the wiki is proably outdated and correct me if Im wrong but the wall turrets dont shoot arrows anymore even if garrisoned
I recreated a battalion system and worked on a campaign map. A first campaign is playable:
Two layers of play. On the campaign map you develop your economy, train battalions, organize them into regiments and armies, and move them around the map. Meeting another army, or besieging a city or camp, starts a battle. Battles are fought by controlling the battalions, with controls similar to Total War.
The campaign is a playable demo: you start as a single battalion of bodyguards attached to a hero, and raise a city from ruins while dealing with brigands spawning around the map. Your hero gains experience, and at each level you spend skill points on campaign or battle effects.
It's technically a fork, because it introduces some engine changes, mainly the rework I've been doing on UnitMotion and Formation.
For convenience, you can download a Windows installer or a Linux AppImage at https://kleos.quest/
Over the last few weeks, we've been revising the scenario 1 The Blood of Lusitania.
At the same time, we've focused on the music — which I think is both the most important part of the project and the biggest challenge.
We had to build contact lists and find musicians. We also got many recommendations from an expert, plus our own research. We even found an artistic representation of Iberian music.
One difficulty is that in 0 A.D., the Iberians are shown as one unified group. In reality, the Lusitanians were a different culture from the non-Indo-European Iberians. The current Iberian civ is really a hybrid of Iberian, Lusitanian, Tartessian, and Celtiberian elements.
so there are two teams: turtles and besiegers. turtles are Iberians and are supposed to turtle in and the besigers (can be any civ) are supposed to besiege their castles. both teams spawn with a lot of resources so we can skip the early struggle and get to the fun part. these are the rules: Iberians cannot send troops outside of their civic center range under any circumstances (unless an honest mistake). Iberians can only have one civic center. Iberians can only upgrade to city level once they wall off their entire town territory with walls. they can no longer build new walls in city stage unless the ones in their place are destroyed. besiegers have 30 (this can change) minutes to defeat Iberians. if they fail, Iberians win. There is 10 (this can change too) minutes of ceasefire to let both sides build their castle or their economy. iberians cannot build forts/other buildings to expand their civic center's reach.
let me know what you think and what should be changed. this is just a rough draft.