aiinvalid Console Command
Documentation and examples for the aiinvalid command in Europa Universalis IV.
aiinvalid
Debug
Prints invalid AI command counts to ai.log
Overview
Writes a count of invalid AI commands to ai.log, a diagnostic for spotting AI logic errors during development.
Frequently asked questions
How do you use the aiinvalid command in EU4?
Open the console with the grave (`) key while in-game, type aiinvalid, then press Enter. The console can't be opened in Ironman games.
What does the aiinvalid command do?
Prints invalid AI command counts to ai.log.
Does the aiinvalid command require any DLC?
No. aiinvalid is part of the base game and works without any DLC.
Can you use aiinvalid in Ironman mode?
No. The console is disabled in Ironman games, so aiinvalid can't be entered. Because achievements are only earned in Ironman, console commands like aiinvalid can't be used to unlock them.