mod_3d Posted April 23, 2024 Report Share Posted April 23, 2024 (edited) Adds a more advanced bot(based on PETRA) to the game. The bot is better configured to play on a Medium Map(with good amount of resources) and a Unit Limit of 300. UPDATE: Version 0.5.3 Spoiler The bot gains an additional bonus to vision range for units and buildings, depending on the difficulty level: Hard +50% Very Hard +200% Territory Influence Radius: Hard +7% Very Hard +15% Added ability to train dogs for Brits from the start of the game. Market Bot will not buy a resource if: 1.it is not needed at the moment 2.if there is more resource (to buy), than the resource (to sell). Optimized unit recruiting in Corral. No more than 2 units in the queue for each building. The first Technologies from the Forge are given a higher priority for research. The first Stone and Metal Technologies have been moved to the Town Phase. Fixed a bug when researching technology in Port. UPDATE: Version 0.5.1 Compatible with 0.27.0 Economics When recruiting workers, mercenaries no longer belong to this class (as they do not have the resource gathering skill). Factions that have access to mercenaries will first recruit a certain number of workers from their units, then mercenaries. For faster economic recovery Added scripts that check the number of Support units in each game Phase, if there are fewer units, their recruitment priority is increased. Construction of Special Buildings: These are built as soon as they become available to a faction. For example, Carthage will build all 3 Embassies in Phase 2, not Phase 3. Sparta will build a Syssition on Phase 1 and a Senate on Phase 2, not Phase 3. Corral - 5 in total. Build from the beginning of the game. UPDATE: Version 0.3.0 For the Volatile Market mod: Added a feature for building an Embassy. Prioritize exchanges to get resources(food, wood, stone, metal). Batch Size changes depending on the amount of food resource available. The more resource available, the larger the size can be. UPDATE: Version 0.2.1 Changing priorities and some other settings. UPDATE: Version 0.2.0 Bot adapted for the Volatile Market mod. Actively barters new resources and researches technologies. Settings are more noticeable after 15-20min of play. Focused on players with experience. Bot with the same bonuses for each difficulty level as the basic PETRA. At population limit(e.g. 300) it will hire units up to the ceiling. More technology and economy oriented at the start. More active in the Market. Builds more buildings to hire units. bot_PETRA_Expert.zip Edited Thursday at 20:35 by mod_3d 4 2 Quote Link to comment Share on other sites More sharing options...
mod_3d Posted June 23, 2024 Author Report Share Posted June 23, 2024 Updated to Version 0.2.0 Bot adapted for the Volatile Market mod. Quote Link to comment Share on other sites More sharing options...
mod_3d Posted July 20, 2024 Author Report Share Posted July 20, 2024 UPDATE: Version 0.2.1 The activity and efficiency of Bartering(with mod Volatile Market). Upper Petra Expert lower basic Petra. Activity during price jump: Units at 5 and 20 minutes 1 Quote Link to comment Share on other sites More sharing options...
Palaiologos Posted July 21, 2024 Report Share Posted July 21, 2024 Does this bot program look for market conditions like "price stability" or the volume of the resource(s) at the best prices? On 23/04/2024 at 1:51 AM, mod_3d said: More active in the Market. Appears there is a narrow difference between each prices at which prospective purchasers are willing to "buy" and which sellers were willing to "sell". On 23/04/2024 at 1:51 AM, mod_3d said: Actively barters new resources and researches technologies. Can you provide a bit of an in-depth explanation as to what "active/actively" means in specific. Thanks. Neat mod. Quote Link to comment Share on other sites More sharing options...
mod_3d Posted July 22, 2024 Author Report Share Posted July 22, 2024 20 hours ago, Palaiologos said: On 23/04/2024 at 8:51 AM, mod_3d said: Actively barters new resources and researches technologies. Can you provide a bit of an in-depth explanation as to what "active/actively" means in specific. Thanks. Neat mod. Technologies: Higher priority for those that give a bonus to the gatherer (stone and metal moved to phase 1) and a few others (house population, new technologies and forge). Market Price Search: Several parameters are taken into account when selecting an item to “buy”. 1. The amount of available resource (which is selected for “sale”). The more available, the lower the buying price can be. Example: if available 100 - rate 90 500 - rate 75 1000 - rate 60 2. Resources are infinite or not. New resources and food in the game are infinite, so when bartering them for resources that are finite, the rates are set to lower values. Conversely, if a resource is finite, the rate for selling it is set to a higher level. For example, the base rate is set to 80: When bartering 100 metal for food, the rate is set to 80+10. Thus, bartering is done if the price of food is greater than 90. When bartering 100 food for metal, the rate is set to 80-20. In this case, barter is performed if the price of metal is greater than 60. 3. Uniqueness of the Resource Coins have an increased base rate 165. It is bartered when there are high price spikes in the Market. The activity of the barters has been increased by changing some restrictions. For example, in the base version of the game, bartering is allowed if more than 500 resources are available. In the mod this parameter is reduced to 100. 1 Quote Link to comment Share on other sites More sharing options...
mod_3d Posted August 11, 2024 Author Report Share Posted August 11, 2024 Updated to Version 0.3.0 Added description to the first post. Quote Link to comment Share on other sites More sharing options...
mod_3d Posted February 19 Author Report Share Posted February 19 Updated to Version 0.5.1 Compatible with 0.27.0 Added description to the first post. 3 Quote Link to comment Share on other sites More sharing options...
zozio32 Posted Wednesday at 13:31 Report Share Posted Wednesday at 13:31 Hi, I tested it yestarday. I cannot tell only from 1 game how different it is, but I haven't seen any issue. I play only single player, and an improved Petra bot is great. If it can prevent some "ennemis" to collapse completely sometime, that's a great improvement Quote Link to comment Share on other sites More sharing options...
Emacz Posted Wednesday at 13:35 Report Share Posted Wednesday at 13:35 On 23/04/2024 at 1:51 AM, mod_3d said: Adds a more advanced bot(based on PETRA) to the game. UPDATE: Version 0.5.1 Compatible with 0.27.0 Economics When recruiting workers, mercenaries no longer belong to this class (as they do not have the resource gathering skill). Factions that have access to mercenaries will first recruit a certain number of workers from their units, then mercenaries. For faster economic recovery Added scripts that check the number of Support units in each game Phase, if there are fewer units, their recruitment priority is increased. Construction of Special Buildings: These are built as soon as they become available to a faction. For example, Carthage will build all 3 Embassies in Phase 2, not Phase 3. Sparta will build a Syssition on Phase 1 and a Senate on Phase 2, not Phase 3. Corral - 5 in total. Build from the beginning of the game. UPDATE: Version 0.3.0 For the Volatile Market mod: Added a feature for building an Embassy. Prioritize exchanges to get resources(food, wood, stone, metal). Batch Size changes depending on the amount of food resource available. The more resource available, the larger the size can be. UPDATE: Version 0.2.1 Changing priorities and some other settings. UPDATE: Version 0.2.0 Bot adapted for the Volatile Market mod. Actively barters new resources and researches technologies. Settings are more noticeable after 15-20min of play. Focused on players with experience. Bot with the same bonuses for each difficulty level as the basic PETRA. At population limit(e.g. 300) it will hire units up to the ceiling. More technology and economy oriented at the start. More active in the Market. Builds more buildings to hire units. bot_PETRA_Expert.zip 163.3 kB · 15 downloads OPPP I wanted to learn some coding to improve bot, hope it works with historical patch. Will maybe help with testing things out! Thanks Quote Link to comment Share on other sites More sharing options...
Player of 0AD Posted Wednesday at 15:39 Report Share Posted Wednesday at 15:39 The bot would be stronger, if it wouldn't build corrals that early. Also, the corral tech is researched extremely late. It seems to waste a lot of resources at the market, buying away expensive resources for cheap wood. Quote Link to comment Share on other sites More sharing options...
Player of 0AD Posted Wednesday at 17:42 Report Share Posted Wednesday at 17:42 Also, the bad bartering stops the bot from going into phase 3 within a reasonable time. Furthermore, it never seems to train women from houses even if it's Roman. At the other hand, the total number of economical units can grow very big. Is it a bot or is it @Atrik? Lol 1 Quote Link to comment Share on other sites More sharing options...
Emacz Posted Wednesday at 18:32 Report Share Posted Wednesday at 18:32 49 minutes ago, Player of 0AD said: Also, the bad bartering stops the bot from going into phase 3 within a reasonable time. Furthermore, it never seems to train women from houses even if it's Roman. At the other hand, the total number of economical units can grow very big. Is it a bot or is it @Atrik? Lol if it doesnt train women from houses, definitely isnt @Atrik It crashed 0ad twice the times i had it enabled... Ill have to see if i can figure out whats going on. 1 Quote Link to comment Share on other sites More sharing options...
Emacz Posted Wednesday at 18:36 Report Share Posted Wednesday at 18:36 yeah it crashes wheni try and use it with histoical patch Quote Link to comment Share on other sites More sharing options...
mod_3d Posted Thursday at 20:24 Author Report Share Posted Thursday at 20:24 On 26/02/2025 at 5:39 PM, Player of 0AD said: The bot would be stronger, if it wouldn't build corrals that early. Also, the corral tech is researched extremely late. It seems to waste a lot of resources at the market, buying away expensive resources for cheap wood. During the tests, the first Corral is built at the start of the game with the technology being researched after that. In the update, the Corral is optimized. Bartering at the Market has also been changed. On 26/02/2025 at 7:42 PM, Player of 0AD said: Also, the bad bartering stops the bot from going into phase 3 within a reasonable time. Furthermore, it never seems to train women from houses even if it's Roman. At the other hand, the total number of economical units can grow very big. Is it a bot or is it @Atrik? Lol 1. If the Population Limit is set to 200 units, the ratio of Support units to the rest may be high. The bot is better configured to play on a Medium Map(with good amount of resources) and a Unit Limit of 300. 2. Training from houses may need to be coded separately. Quote Link to comment Share on other sites More sharing options...
mod_3d Posted Thursday at 20:35 Author Report Share Posted Thursday at 20:35 Updated to Version 0.5.3 Added description to the first post. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.