0 A.D.

Random Civ Selection Groups for 0 A.D.

Released (updated ago). Ranked 23 of 54 with 3,164 (3 today) downloads

Published by hopeless-ponderer - learn more (mod ID: 163642)


Random Civ Selection Groups

This small mod allows you to select a civ randomly from a smaller subset of civs instead of from the entire available list of civs. It is especially useful for mods such as Millennium A.D. and Aristeia that add civs from an entirely different place and time from the original game.

How it works

Random selection groups are stored in json files under simulation/data/settings/random_groups. Each .json file contains the following information:

  • Title: The name that will appear in the civ selection menu
  • Tooltip: A brief description of the selection group
  • GUIOrder: A number that identifies where the selection group will appear in the selection menu. Lower numbers will appear higher.
  • Weights: The list of civs to be selected from and the probability of selecting each one. Weights can be any number greater than zero. The probability of each civ being selected is determined by its weight as a percentage of the sum of weights. Using "*" will apply a default weight to all civs (subsequently setting a civ’s weight to 0 will remove it from the selection).
  • Color (optional): The color of text used in the selection menu. Defaults to the same color as Random.
  • Disable (optional): If true, prevents the selection group from appearing in the selection menu.

By convention, the “Default” selection group (only civs from the original game) has a GUIOrder of 0, selection groups containing mostly original and Delenda Est civs have a GUIOrder of 1, and selection groups dependent on other mods have a GUIOrder of 2 or higher.

Selection groups containing less than two available civs are automatically filtered out of the selection menu.


All African civs:

<~INNERCODE~ class="sourceCode json">{
    "Title": "African",
    "GUIOrder": 1,
    "Tooltip": "African civs.",
    "Weights": {
        "cart": 1,
        "kush": 1,
        "ptol": 1

All civs except nomads (Scythians and Xiongnu):

<~INNERCODE~ class="sourceCode json">{
    "Title": "Non-Nomadic",
    "GUIOrder": 1,
    "Tooltip": "Non-nomadic civs.",
    "Weights": {
        "*": 1,
        "scyth": 0,
        "xion": 0

All civs from Millennium AD:

<~INNERCODE~ class="sourceCode json">{
    "Title": "Millennium A.D.",
    "Color": "green",
    "GUIOrder": 2,
    "Tooltip": "Civs from Millennium A.D.",
    "Weights": {
        "anglo": 1,
        "byza": 1,
        "caro": 1,
        "norse": 1,
        "umay": 1

Support for other mods

Currently, selection groups are provided for most mods published on 0ad.mod.io, including:


Although this mod supports many other mods, it only requires basic 0ad.

This mod alters the following javascript files:

  • gui/gamesetup/gamesetup.js
  • gui/gamesetup/Pages/GameSetupPage/GameSettings/PerPlayer/Dropdowns/PlayerCiv.js
  • gui/common/functions_utility.js
  • globalscripts/Templates.js

Any mod that also alters any of these files will likely be incompatible.

Starting with 0AD alpha 25 (version 0.25.01), the mods Delenda Est and Mare Nostrum support this feature natively. Please do not try to run this mod on top of these mods, as the redundant code will create some issues. Civs from Delenda Est will still be supported in case they are integrated into Empires Ascendant or other mods.

Maintained by hopeless-ponderer at Github.com.







Join the community or sign in with your gaming account to join the conversation:

Justus_Avramenko @justus-avramenko

Can I modify this and add it to Delenda Est? With credit of course.

hopeless-ponderer @hopeless-ponderer

Yes, of course! I've also started supporting Delenda Est with the latest release, so it should work already. Github.com

I'm a big fan of your work, glad to know I've contributed a little bit :)