wowgetoffyourcellphone Posted May 21 Share Posted May 21 So, sometime this month, some changes in the base game's code have rendered the AI in Delenda Est neutered. The AI no longer builds the structures listed in petra/config.js and after a short while the civilian citizens they train stand idle at the Civic Center. These things don't happen with vanilla (I've play tested). I thought I kept DE's AI files up to date with all the recent changes, but perhaps there is something I overlooked or there's something with the new changes which negatively affect the mod. Anyone willing to take a look and see what they can find? https://github.com/JustusAvramenko/delenda_est The AI in R28 works really well and is pretty deadly, so this is a post-R28 issue. 1 Link to comment Share on other sites More sharing options...
Guest Posted May 22 Share Posted May 22 To be clear, this doesn't affect the release version of the mod, only the latest GitHub branch? Link to comment Share on other sites More sharing options...
Stan` Posted May 22 Share Posted May 22 cc @phosit @Deicide4u that's correct Link to comment Share on other sites More sharing options...
Perzival12 Posted May 22 Share Posted May 22 17 hours ago, wowgetoffyourcellphone said: So, sometime this month, some changes in the base game's code have rendered the AI in Delenda Est neutered. The AI no longer builds the structures listed in petra/config.js and after a short while the civilian citizens they train stand idle at the Civic Center. These things don't happen with vanilla (I've play tested). I thought I kept DE's AI files up to date with all the recent changes, but perhaps there is something I overlooked or there's something with the new changes which negatively affect the mod. Anyone willing to take a look and see what they can find? https://github.com/JustusAvramenko/delenda_est The AI in R28 works really well and is pretty deadly, so this is a post-R28 issue. Your Headquarters.jd file manages most of the building, you probably changed the Classes and VisibleClasses of some structures, and so the ai can’t find what it would normally build. You also might have handicapped it in some way by changing required pop/phase or something like that. Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted May 23 Author Share Posted May 23 It may have been my attackplan.js file. It had not been updated with the deserialization changes. https://github.com/JustusAvramenko/delenda_est/commit/456f297a3975678149ef70148a968c52d465951b I need the file because Delenda Est changes "Farmsteads" to Granaries. "Farmsteads" are the capturable Gaia buildings that give the farmland and fertile soil auras. This does not solve the AI not building special buildings though. hmm Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted May 26 Author Share Posted May 26 So, it seems like the AI stops attempting to gather wood, stone, or metal at some point now, and then can't phase up to Town phase. Link to comment Share on other sites More sharing options...
Perzival12 Posted May 26 Share Posted May 26 On 23/5/2026 at 2:15 PM, wowgetoffyourcellphone said: It may have been my attackplan.js file. It had not been updated with the deserialization changes. https://github.com/JustusAvramenko/delenda_est/commit/456f297a3975678149ef70148a968c52d465951b I need the file because Delenda Est changes "Farmsteads" to Granaries. "Farmsteads" are the capturable Gaia buildings that give the farmland and fertile soil auras. This does not solve the AI not building special buildings though. hmm That’s something that needs to be added to the config file iirc, but they’ll only build them in City Phase. Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted May 26 Author Share Posted May 26 5 hours ago, Perzival12 said: That’s something that needs to be added to the config file iirc, but they’ll only build them in City Phase. I know. They've been in the config file for years. I've gotten the AI to build special buildings again, which is good. But outstanding issues remain: The AI will hunt elephants and ignore nearby, readily-available berries. The AI will stop gathering wood 5-10 minutes into the match, never gathering enough to research Town Phase. The citizens will just stand at the Civic Center. The AI will default to building its military buildings on the "South" side of their base, no matter which direction the enemy base is. These are pretty severe issues, making the AI very weak to the player. Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted May 27 Author Share Posted May 27 I wonder if DE's simulation\components\Helpers.js and Environment.js files (needed for sandstorms and blizzards) needs to be "deserialized" like the other components. Link to comment Share on other sites More sharing options...
phosit Posted May 27 Share Posted May 27 Sorry for the late reply. Maybe you can find something in this PR. In there are many commits, so bisect should help a lot. Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted 1 hour ago Author Share Posted 1 hour ago On 27/05/2026 at 12:40 PM, phosit said: Sorry for the late reply. Maybe you can find something in this PR. In there are many commits, so bisect should help a lot. Looks like pickRandom was deleted as a tech research option in https://gitea.wildfiregames.com/0ad/0ad/pulls/8468/files#diff-982d380b40dc36243a91196999bdea61854236ba But I use it in DE's researchManager: if (tech[0] == "gather_lumbering_ironaxes" || tech[0] == "gather_mining_pickaxes") return { "name": pickRandom(["gather_lumbering_ironaxes", "gather_mining_pickaxes"]), "increasePriority": true }; if (tech[0] == "forge/techs_forge_cost" || tech[0] == "forge/techs_forge_speed") return { "name": pickRandom(["forge/techs_forge_cost", "forge/techs_forge_speed"]), "increasePriority": true }; Could this cause the problem? I really want the AI to choose a tech out of these pairs. It worked well enough in R28. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now