AoE3 Unhardcode Patch
This is the official discussion and support thread for the AoE3 Unhardcode Patch.The AoE3 UnHardcode is a project started by AoE3 Modders to investigate, research and eliminate the hardcoded issues, also known as "no-nos", which are faced by many modders, like the AI amount limit, in example. The patch will change your AoE3:TAD .exe to apply the code needed to eliminate some of those limitations.
AI Limit: Removes the hardcoded 14 AI/Civilization limit by making the game read all .personality files in the from the AI directory defined in the .exe (which should be \AI3, by default) Revolution Banners: Allows new revolutions to have banners above the revolutionary's portrait in the Revolution UI. Ignore Registry Path: Makes the game read the AoE3 files from the folder in which the AoE3 .exe is located, instead of looking for a working path in the registry. Team Limit: Enables team options 3 and 4 for Single Player and Multiplayer games. Resource Restriction: Allows the usage of the Fame Resource in ProtoActions, like AutoGather and ModifyGather, and enables proper displaying of Fame, Experience and Shipment costs in the politicians screen and HC cards. Conversion Restriction: Allows the usage of the ConvertGuardian tactic unit action on units that aren't linked to a treasure, which effectively allows the usage of that action in powers that affect classes other than the Guardian class.
- v1.9:
- A new patch option, which allows the usage of the ConvertGuardian tactic unit action on units that aren't linked to a treasure (which effectively allows the usage of that action in powers that affect classes other than the Guardian class) has been added!
- v1.8:
- The bug that would cause the
farmingRadius property to not work properly in case more than one unit was assigned to it has been fixed. - Three new properties have been added for the UHC configuration file:
attackTypeIcons, explorerUnits, and twoScoutCivs. More information about them can be found at the "UHC Configuration File" document. - Three new properties have been added for the UHC configuration file:
- v1.7:
- The addition of new Native and Asian civilizations no longer causes crashes. Thanks to Takatmo Yereoc and Hoop Thrower, from AoE3H, for reporting!
- The “Fame Restriction” patch option ( “Resource Restriction”, as of UHC 1.7) now enables the proper displaying of Fame, Experience and Shipment costs in the politician screen and in HC cards
- Some changes have been made to the UHC Plugin System API. Make sure to use the latest UHCPlugin.h hearder file in your plugin projects and refer to the “UHC Plugin System” document for more information
customCheats and customSyscalls settings are no longer removed from the Configuration File by the Patcher after patching an executable. - The “Fame Restriction” patch option ( “Resource Restriction”, as of UHC 1.7) now enables the proper displaying of Fame, Experience and Shipment costs in the politician screen and in HC cards
- v1.6:
- The bug that caused the “Team ?” and “Team 4” team options to not work properly in Multiplayer, after applying the Team Limit patch, has been fixed.
- A new patch option to allow the usage of the Fame resource in ProtoActions, like AutoGather and ModifyGather, has been added!
- Two new properties have been added for the UHC configuration file:
tacticSwitching and farmingRadius. More information about them can be found at the "UHC Configuration File" document. - The documentation has been updated to reflect the fact that, in order to the new team options to show up in ESO, the file
data\uimpesogamesetuppage2.xml has to be changed. Thanks to Mandos, from AoE3H, for reporting! - The Patcher will now create the parent directory for a custom UHC Configuration File relative path, in case it doesn’t exist. Thanks to Mandos, from AoE3H, for reporting!
- The Patcher has been changed to remove the digital signature from an executable, after patching it, in order to prevent it from being detected as a potential threat by some AVs.
- The include files related to the UHC Plugin System have been updated, with some bugfixes and improved commentaries.
- A new patch option to allow the usage of the Fame resource in ProtoActions, like AutoGather and ModifyGather, has been added!
- v1.5:
- A brand-new plugin system, which allows the implementation of custom patches, syscalls and cheats has been implemented. Refer to the "UHC Plugin System" for more information.
- The patcher now has a proper graphical user interface.
- The code of both DLLs has been merged into one single UHC.dll.
- All patch options are now defined in the configuration file of the UHC Patch.
- The patch configuration file format has been changed. Refer to the "UHC Configuration File" document for more information.
- The bug that prevented the basePop configuration file property from working properly has been fixed.
- The option to add more native civilizations no longer removes the native properties of XPSPC civilization.
- The patcher now has a proper graphical user interface.
- v1.4:
- Support to new civilizations with the same features of the Native civilizations (Fire Pit UI and Council/Five Politician Aging Up) has been added through the
NativeCivs property of the UHC Configuration File. More information about it can be found at the "UHC Configuration File" document. - Game won't start if the UHC Configuration File patch was applied, but no configuration file exists or if it could not be loaded.
- v1.3:
- Three new properties have been added for the UHC configuration file:
AsianCivs, BigButtonCivs and NotBigButtonBlds. More information about them can be found at the "UHC Configuration File" document, which is included with the patch. - Fixed the bug that would allow all buildings to have proper Market behaviour, if there was no valid cfg files or no valid entries in the
MarketUnits property. - Fixed the bug that would allow all buildings to have proper Market behaviour, if there was no valid cfg files or no valid entries in the
- v1.2:
- The bug that would cause the game to fail to load UHC.dll in some systems has been fixed.
- v1.1:
- The patches Unlimited Population, Ignore Registry Path and Deck Card Limit have been added.
- A bug was fixed in the AI Limit patch.
- Support for the UHC configuration file has been added.
- v1.0:
- Initial release
The patch can be downloaded at
A mod that adds new civilizations, a new age, a new resource and introduces new gameplay features!
2nd place as Best Mod Pack in AoKH GOTY 2013 (PCM I) | 1st place as Best Mod Pack in AoKH GOTY 2015 (PCM II) | 2nd place as Best Mod Pack in AoKH GOTY 2017 (PCM III)
"And he that sat upon the throne said, Behold, I make all things new. And he said unto me, Write: for these words are true and faithful." - Revelation 21:5 (KJV)
[This message has been edited by danielpereira (edited 01-05-2018 @ 07:55 PM).]