[EXPERMENTAL]
Fixing AI fruit salads....
Fixing AI fruit salads turned out to be quite the fricking nightmare, as almost all AI behaviour turned out to be hardcoded, the was no *actual* method to fix the fruit salad issues that the AI faces, so the Rubicon had to be crossed! if limb is gangrenous and cancerous, it *has* to be cut, lest the whole body goes with it, and so the AI fruit salad issues had to go, *no matter the cost*, so I took to the painful solution of limiting what units a country can build by tradition group, yes, I know, this is nuts, but an extreme issue requires an extreme solution, and so I had to at least try and fix it, after all, how hard can it actually be?
Well, turns out, the game just craps itself if you try to put *more* than two restrictions on any given unit if you try to make more than one unit be unlocked by the header tradition, no matter what we, at the IR modding discord (special thanks), tried to come up with, nothing worked, neither limitation by tag, nor limitation by a conditional, we tried, and the game would just *totally* break, the game can't even process more than one requirement at a time, it wouldn't even process the trade good requirement, no matter what we tried...
But when all hope was lost, it struck me, while I was looking for an answer, I noticed a -15% ship cost modifier for the N.African tree...EUREKA!
Why not simply make everything 1000x as expensive, and give a 999% discount for *certain* units...and it worked! after several hours of failure, we DID IT! certain units can now be only built by certain traditions!
Countries are now only allowed to build one of four units, with the exception of Persians and Indians, who can choose from five units, additionally, the default deployment selector for AI has been tweaked so that they match the units allowed by the tradition, additionally, all traditions have been given access to either archer, or LI, to allow the building of an army even if things are going ruff.
Changes are:
Greeks can now only build HI, LC, HC, and archers.
Latins can now only build HI, LI, HC, and LC.
Indians can now only build HI, LC, WE, Chariots, and archers.
North Africa (now only Numidians) can now only build LC, LI, archers, and camels.
Levantine can now only build LC, LI, camels, and archers.
Parisian can now only build HI, HC, HA, WE, and archers.
Barbs can now only build HI, LC, archers, and chariots.
Three new tradition trees which are slight deviations from their parent group to represent some form of heritage or separate past from their cousins.
Seleukid, can only build HI, HC, WE, and archers.
Egyptian, can only build HI, LC, LI, and archers.
Stepp, can only build HA, LC, HC, and archers.
Additionally, a new Carthignian tree is planed, but now is only set up with basics to allow testing.
Carthaginian, can only build LC, HC, HI, and WE.
This version is still in no shape for release, as no tradition tree is yet been balanced around it, nor have any kicks been worked out, I would also like to add a separate Spanish tree somewhere at some point, but that is far off.
Thanks for both reading and patience.
Especial thanks to the members of the IR modding discord, whom without their help, I would've never gotten this far, extra special thanks to:
II_Paulus_II.
Parcipal.
Flowfire.
'Othman Ibn 'Affan.
and starchitec.
Who have been helping me on this pain of a journey, and enduring my ignorance on the nuances of IR modding, while providing support and ideas.
CaptainObvious.
Fixing AI fruit salads....
Fixing AI fruit salads turned out to be quite the fricking nightmare, as almost all AI behaviour turned out to be hardcoded, the was no *actual* method to fix the fruit salad issues that the AI faces, so the Rubicon had to be crossed! if limb is gangrenous and cancerous, it *has* to be cut, lest the whole body goes with it, and so the AI fruit salad issues had to go, *no matter the cost*, so I took to the painful solution of limiting what units a country can build by tradition group, yes, I know, this is nuts, but an extreme issue requires an extreme solution, and so I had to at least try and fix it, after all, how hard can it actually be?
Well, turns out, the game just craps itself if you try to put *more* than two restrictions on any given unit if you try to make more than one unit be unlocked by the header tradition, no matter what we, at the IR modding discord (special thanks), tried to come up with, nothing worked, neither limitation by tag, nor limitation by a conditional, we tried, and the game would just *totally* break, the game can't even process more than one requirement at a time, it wouldn't even process the trade good requirement, no matter what we tried...
But when all hope was lost, it struck me, while I was looking for an answer, I noticed a -15% ship cost modifier for the N.African tree...EUREKA!
Why not simply make everything 1000x as expensive, and give a 999% discount for *certain* units...and it worked! after several hours of failure, we DID IT! certain units can now be only built by certain traditions!
Countries are now only allowed to build one of four units, with the exception of Persians and Indians, who can choose from five units, additionally, the default deployment selector for AI has been tweaked so that they match the units allowed by the tradition, additionally, all traditions have been given access to either archer, or LI, to allow the building of an army even if things are going ruff.
Changes are:
Greeks can now only build HI, LC, HC, and archers.
Latins can now only build HI, LI, HC, and LC.
Indians can now only build HI, LC, WE, Chariots, and archers.
North Africa (now only Numidians) can now only build LC, LI, archers, and camels.
Levantine can now only build LC, LI, camels, and archers.
Parisian can now only build HI, HC, HA, WE, and archers.
Barbs can now only build HI, LC, archers, and chariots.
Three new tradition trees which are slight deviations from their parent group to represent some form of heritage or separate past from their cousins.
Seleukid, can only build HI, HC, WE, and archers.
Egyptian, can only build HI, LC, LI, and archers.
Stepp, can only build HA, LC, HC, and archers.
Additionally, a new Carthignian tree is planed, but now is only set up with basics to allow testing.
Carthaginian, can only build LC, HC, HI, and WE.
This version is still in no shape for release, as no tradition tree is yet been balanced around it, nor have any kicks been worked out, I would also like to add a separate Spanish tree somewhere at some point, but that is far off.
Thanks for both reading and patience.
Especial thanks to the members of the IR modding discord, whom without their help, I would've never gotten this far, extra special thanks to:
II_Paulus_II.
Parcipal.
Flowfire.
'Othman Ibn 'Affan.
and starchitec.
Who have been helping me on this pain of a journey, and enduring my ignorance on the nuances of IR modding, while providing support and ideas.
CaptainObvious.
Last edited:
- 1