The Stronghold 2 Community Lord Editor (v1.1) allows the viewing and editing the behaviour of the Stronghold Legends AI opponents, via the gameRules.dat file.
You may create copies of the file and relaunch Stronghold 2 to see the latest version in game. Keep in mind that it is the "gameRules.dat" file that will be processed by the game.
The original SH2 definition contains some errors, disabling the King and the Hawk from launching sieges, as well as the Bull from recruiting guarding Spearmen. A fixed version is bundled under the name gameRules_fixed.dat.
How to use:
The utility requires no additional installations, it runs out of the box as a self-contained application.
When using the program, various hover tooltips and helper buttons help you understand the categories and the user interface elements much easier. There is also an auto-save functionality that can be used to speed up editing.
After you pick a definition, you can view a lord's traits by clicking on his avatar. The inconsistencies (cyan) and errors (red) in your definition are shown in the bottom left panel.
You can manually save by selecting a new location via the Save Definition button. The Autosave will always save to the current file and requires no prompt from you. Keep in mind that saving only works when there are no errors in your definition!
To ensure that the app works properly, please do not move or edit images or other content from their respective folders! We take no responsibility for such malformed programs.
Distributable in accordance with the MIT license.