Knights of Honor II: Sovereign

Knights of Honor II: Sovereign

56 ratings
In-Game Cheats
By Vaweila
This guide will explain how to activate and use the in-game developer console to cheat.
4
2
   
Award
Favorite
Favorited
Unfavorite
Introduction
Hello everyone, this guide will show you how you can enable and use the in-game console. This console was most probably made by the developers to find and fix bugs in the game more easily, but it can also be used to cheat. There are no additional tools you need to download or have any knowledge with other programs (like CheatEngine). I hope you find this guide helpful!
Setup
Before you can use the console, you have to do only one thing: Add a launch parameter to the game. Right-click the game in your steam library and click on 'Properties...'. A new window should appear. In this window you should see 'LAUNCH OPTIONS'. In there you have to add "--ForceEnableConsole" (without the quotation marks).



Now you are all done and can start the game as usual. Inside the game you can load up any campaign, even ones you already started. The cheats will work with every save game.

When you've loaded a save, you now have to press " ` ". This character is called a backquote or backtick. If you do not have an english keyboard, you might need to press another key. You can use this website[keycode-visualizer.netlify.app] to test if you can produce the needed backquote. If the website shows that you pressed the key with the keycode 192, you'll have to press the same key in game. Currently I know of following other keys you need to press for other keyboards:
  • German: " ö " (Thanks to Riesenzwerg)
  • Nordic: " æ " (Thanks to larsi64)
  • French: " ù "

If you've done everything right, you should see a window just like that..

How To Cheat
Before you can start using the cheats from the list below, you have to set your cheat-level. The game normally starts out at cheat-level 0, which is equivalent to "no cheats allowed". The maximum cheat-level is 3, which allows every available console command.

To set your cheat-level you simply enter "cl X" (without the quotation marks), where X is the cheat-level you want to set.
Available Cheats
Commands to control the console
cl
Shows the current cheat level

cl X
Sets the current cheat level to x. Must be between 0 (None) and 3 (High).

help X
Shows information about another console command. X must be another console command.

clear
Clears the console from any past commands. This doesn't undo the commands previously entered!

Commands to change resources
gold X
Sets the gold of the player kingdom to X.

give_gold X
Gives X gold to the selected kingdom.

piety X
Sets the piety of the player kingdom to X.

give_piety X
Gives X piety to the selected kingdom.

books X
Sets the books of the players kingdom to X.

give_books X
Gives X books to the selected kingdom.

spawn_pop X
Gives X population to the selected realm/province.

Other commands
unprison
Frees the selected character.

imprison_all
Imprisons everyone in the selected kingdom.

conquer
Conquers the selected kingdom.

kill
Kills currently selected character.

add_child X
Adds a child to the selected kingdom. If X is 0, a prince will be added. If X is something else, a princess will be added.

force_endless_game X
Enables/Disables that the game will continue running even after an endgame-condition was met. This means, that the game continues to run, even if the player is eliminated. If X is 1, it is enabled. If X is 0, it is disabled.

sub X
Makes the selected kingdom a vassal/independent. If X is 1, the kingdom becomes a vassal. If X is 0, it becomes independent.

cal X
Makes the selected kingdom a caliphate. If X is 1, the kingdom becomes a caliphate. If X is 0, it becomes non-caliphate.

cr X
Changes the religion of the selected kingdom. Allowed values for X are "Catholic", "Orthodox", "Muslim" and "Pagan".

crr X
Changes the religion of the selected realm/province. Allowed values for X are "Catholic", "Orthodox", "Muslim" and "Pagan".

ex
Excommunicate selected kingdom.

unex
Un-Excommunicate selected kingdom.

restore_papacy
Restores the papacy.

Commands for AI
gai
Enables/Disables the ai for everyone.

kai
Disables the AI for the selected kingdom.

bai
Enables/Disables the ai inside the battleview.

rai
Enables/Disables the ai for rebels.

Commands for Spawning
rai
Enables/Disables spawning of rebels.

Commands for Levels
max X
Levels up the selected characters skill. If X is 1, all skills are leveld up. If X is 0, a random skill is leveled up.

More coming soon..
FAQ
When I press the letter "I" or "Insert" an army appears. What's up with that?
This happens if you have your cheat level set to 3. This logic cannot be removed as it is inside the game code. You should reset your cheat level to 2 or lower to not accidentally spawn armies you do not want.

Any more questions? Comment below and I'll try to answer them.
41 Comments
Vaweila  [author] 21 Dec, 2024 @ 9:02am 
@Shade, very interesting. It has to do something with the cheat level then. Hard to troubleshoot without being able to reproduce the crash myself. If you'd like we could chat on discord and try to find the issue together. My Discord tag is zerg8482
Shade 18 Dec, 2024 @ 12:52pm 
@Vaweila , without the command the game works fine , instead of using the command i just modded the game and its still working fine
When i tried running it again without the mod and with the command ( i verified the files just in case as well - no issues) and the game loads , i set the cheat level to 3 start a game and it crashes
Vaweila  [author] 17 Dec, 2024 @ 11:13am 
@Shade Hey, I've looked a bit into it but I can't reproduce the issue. Are you sure the crash only happens if the setting is present? Maybe try it without the setting and after verifying the files. I can help you further via Discord, if you want to but for me it looks like an issue unrelated to the setting.
Shade 13 Dec, 2024 @ 11:05am 
Just tried it , it crashes the game when i add the --ForceEnableConsole command
Otherness 2 Dec, 2023 @ 3:55am 
it's working ! many thanks :)
Vaweila  [author] 1 Dec, 2023 @ 2:11pm 
Hey there, I guessed that you are french or belgian because of the azerty keyboard. So I installed the french keyboard on my pc and tried a bit. It seems to be that the letter ù produces the keycode 192. So you may be able to activate the cheat console with that letter.

Please let me know if it worked so I can add it to the list.
Otherness 1 Dec, 2023 @ 8:34am 
Hi ! need your help please, my keyboard (azerty) dont have a specific key for "`", and your keycode vizualiser say "dead" when i use alt gr + è to make "`"
So in game, i can't activate the consol command when i press alt gr + è... any advise please ?
Vaweila  [author] 23 Nov, 2023 @ 11:32am 
Yes, you can use "add_pop <percentage> <cultural_attacker>" to attack a selected realm culturally.

As an example, I'm playing as England and want to turn Barcelona english. I select Barcelona and enter "add_pop 55 england". This will result into Barcelona turning to 55% loyal to England and being of english culture.

Hope that helps!
Purity42 22 Nov, 2023 @ 5:01pm 
Is there a command to change a province's culture and loyalty?
ryansw989 11 Nov, 2023 @ 7:57am 
Thanks, read these online, but they never explain fully how to make them work.