Page 1 of 1

Tech Tree Availability Constants

Posted: Sat Aug 07, 2021 8:25 am
by Leif Ericson
I created code for The General with defconsts to specify which units, techs, and buildings were available for each civ, and I figured this code could be helpful for others as well. I believe the info is correct across all game versions. I'll try to keep this file updated as new DE updates are released.

With an AI that loads this file, you can use up-compare-const to check if the object or tech is available in the player's civ tech tree without having to use #load-ifs or (civ-selected):

(defrule
(up-compare-const PALADIN-AVAILABLE == YES)
=>
(chat-to-all "Paladin is available in my civ's tech tree!")
)

The Civ Tech Tree Constants.per file lists which techs a civ has available. The Civ Unique Constants.per redefines my-unique-unit-upgrade, my-unique-research, and my-second-unique-research for each civ, as well as adding constants that specify the unique unit's attack and armor upgrade types at the blacksmith.

Re: Tech Tree Availability Constants

Posted: Mon Feb 14, 2022 2:11 pm
by Leif Ericson
Updated to include Bohemians and Poles and include tech tree changes from the last few patches.

Re: Tech Tree Availability Constants

Posted: Mon Feb 14, 2022 9:56 pm
by KimberlyAzula
I didn't know this existed, this is great.
Thank you, Leif!

Re: Tech Tree Availability Constants

Posted: Mon Feb 14, 2022 10:07 pm
by GamesGod
Great, it's just a pity that it's too late)) the upgrade I am currently working on - I have already added all 4 new civilizations in it)) the only thing I can't check the performance, because I bought only the basic version of DE :D

Re: Tech Tree Availability Constants

Posted: Thu Feb 17, 2022 9:40 pm
by CheeseOnToast
Hope everyone can keep this file maintained for each balance update. :lol:

Re: Tech Tree Availability Constants

Posted: Fri Dec 23, 2022 1:05 pm
by Leif Ericson
Updated for the Dynasties of India December 2022 update.

Re: Tech Tree Availability Constants

Posted: Sun Jun 25, 2023 1:22 pm
by Leif Ericson
Updated for the Return of Rome. The zip now includes two files, one with tech tree info and one with info about unique units and techs.

Re: Tech Tree Availability Constants

Posted: Sun Mar 17, 2024 4:46 am
by Leif Ericson
Updated for patch 107882.