Jump to content

Forums

  1. Welcome

    1. Announcements / News

      The latest. What is happening with 0 A.D. Stay tuned...

      5,4k
      posts
    2. Introductions & Off-Topic Discussion

      Want to discuss something that isn't related to 0 A.D. or Wildfire Games? This is the place. Come on in and introduce yourself. Get to know others who are using 0 A.D.

      38,7k
      posts
    3. Help & Feedback

      Here is where you can get help with your questions. Also be sure to tell us how we are doing. What can we improve? What do you wish we could do better? Your opinion matters to us!

      16,9k
      posts
  2. 0 A.D.

    1. General Discussion

      This is the place to post general stuff concerning the game. Want to express your love for hoplites or find people to play the game with? Want to share your stories about matches you have played or discuss historical connections to the game? These and any other topics which are related to the game, but don't have their own forums belong in this forum.

      51,2k
      posts
    2. Gameplay Discussion

      Discuss the game play of 0 A.D. Want to know why the game plays the way it does or offer suggestions for how to improve the game play experience? Then this is the forum.

      28,2k
      posts
    3. Game Development & Technical Discussion

      A forum for technical discussion about the development of 0 A.D. Feel free to ask questions of the developers and among yourselves.

      48,3k
      posts
    4. Art Development

      Open development for the game's art. Submissions, comments, and suggestions now open.

      30,4k
      posts
    5. Game Modification

      Do you have any questions about modifying the game? What will you need to do what you want to? What are the best techniques? Discuss Modifications, Map Making, AI scripting and Random Map Scripting here.

      45,8k
      posts
    6. Project Governance

      Forums for decision-making on issues where a consensus can't be reached or isn't sufficient. The committees are chosen from among the official team members, but to ensure an open and transparent decision process it's publically viewable.

      148
      posts
    7. 597
      posts
  • Topics

  • Posts

    • Attacks by swarms of fpv drones Screen Recording 2026-10-20 232949.mp4   Screen Recording 2026-10-20 233146.mp4      
    • Hi everyone, I’d like to share a small tool I made for anyone who wants to build their own AI for 0 A.D. GitHub: https://github.com/lilypoppybooks/PetraBot_Template The problem Starting a new bot from Petra usually begins with a tedious step: copy Petra, then rename it everywhere. Since R28 introduced JavaScript modules, you also have to fix about a hundred import paths. Miss a single one and your bot silently loads the original Petra code, or two derived bots overwrite each other in the game’s file system.   The solution PetraBot_Template is an exact copy of Petra from Release 28, isolated in its own namespace, with no change in behavior. It comes with a small Python script that clones it under a new name: python3 clone_bot.py Alpha     # creates PetraBot_Alpha.zip The script renames everything (mod, AI folder, imports) and keeps the license and credits intact. You get an independent, working bot ready to install, and several clones can play against each other in the same game. I've tested it over roughly 10 hours of games: I tested both land and naval maps across different game settings, repeatedly comparing the Petra bot, the PetraBot_Template, and the derived Petra. The result is that PetraBot_Template works and behaves exactly like Petra. Why? To make developing Petra-based bots easier. Instead of spending time on renaming, developers can focus on what matters: new ideas and new strategies. And since every bot starts from the same reliable base, it becomes simple to compare them fairly and to share results.   Three gaps I see in Petra Petra is stable, but in my opinion three areas leave room for improvement: Naval strategy. Petra’s naval manager mostly handles trade, fishing, coastal defense and transport. The comment at the top of navalManager.js even lists sea scouting as an “ultimately” goal. On island maps, war fleets that take the initiative, sea control and coordinated landings would make a big difference.                                                                                    Politics, dialogue and intimidation. Petra already handles tributes and alliance requests, but its diplomacy is reactive and its messages don’t form a real dialogue. Imagine a bot with a diplomatic personality, one that can intimidate (demand a tribute and actually attack if refused), remember betrayals, or make calculated alliances.                                                                Exploration and strategy. Petra mostly picks its strategy from its own situation and reacts more than it anticipates. Early scouting, adapting to what was seen, choosing targets from gathered information and switching plans mid-game are all open fields. Each of these could be a project on its own, and the template makes it easy to start one. Links GitHub: https://github.com/lilypoppybooks/PetraBot_Template License: GPL-2.0-or-later, same as Petra. All credit for Petra goes to Wildfire Games and the Petra contributors. This project is not an official Wildfire Games project. If you build a bot from it, please share it here! I’d love to see clones play against each other and compare approaches. Feedback and suggestions are very welcome. petrabot_cycle.svg
    • Of course, but in all the Age of games, the way civilisations are designed is similar. What I mean is that we should draw a bit more inspiration from this approach to designing civilisations rather than making them too similar to one another. I'd love to try it !
    • Code was removed in https://gitea.wildfiregames.com/0ad/0ad/commit/61534d63a1a5988b837425b2ac48b1e956c07e7d.
    • Join the server to find out  all the info is on the discord.
×
×
  • Create New...