Predator145
Prince
- Joined
- May 22, 2020
- Messages
- 458
Predator145... Please Upload the the units_32.pcx Slots that Allow and Disallow the King Units you Posted about.
The Army and Leader Slots, for example, are indicated in the PediaIcons and I assumed that those slots could be changed if the PediaIcons.txt was changed for them.
If indeed there are particular "Hard Coded" Slots that will Allow the AI to Upgrade any Unit to a King Unit, we need this information... same for the Slots that do not allow AI King Unit Upgrades.
There are only a handful of slots disallowing. The rest are free real estate. I don't know for sure how many slots and what number they are as I found this out through trial and error. It would take me even more time to trial and error every unit in the WW2 Pacific scenario.
I unhooked the "Archer" unit from the upgrade line, gave it the stats, abilities and 'tactical nuke' AI strat of the "Atomic Bomb" unit. Then had it upgrade to an "Atomic Bomb2" with king ability and 'air bombard' AI strat that I added to that scenario. At the same time the original "Atomic Bomb" with 'tactical nuke' AI strat also upgrades to that. Both me and the AI were able to upgrade the Archer, but not the Atomic Bomb.
Next I replaced the Archer's animation with Wyrm's FROG-7. The menu icon is still the Archer but the unit in game is a friggin truck mounted missile. Yet it upgraded just fine. Conversely the Atomic Bomb with Archer animation but same old icon still couldn't be upgraded.
I suspect the slots where the original leader, armies, ships, missiles, aircrafts and maybe workers and settlers icons are positioned are coded to be barred while most ground unit slots are ok. The work around is to copy paste these icons on the icon sheet to a slot past the last unit which is the Mobile SAM and then change the icon there. The Mobile SAM icon slot is 207 if I didn't count wrong. Which means anything 208 or beyond is safe to upgrade.