Knights of Honor II: Sovereign

Knights of Honor II: Sovereign

View Stats:
ShadowFox 17 May, 2023 @ 3:05pm
2
Console commands/Cheats UPDATED
Thank you to everyone that helped on the first post, this is the new and improved list! As before if anyone has ones that they have discovered or trouble feel free to post below.

right click on game s shortcut
Add --ForceEnableConsole parameter
"installpath\Knights of Honor II Sovereign\Sovereign.exe" --ForceEnableConsole

When in Steam instead of creating a shortcut you simply add the
--ForceEnableConsole
line to the "Launch Options" section in the games' properties (right click KoH 2 in the Library, select "Properties" -> "General" tab - "Launch Options".

In-game you open the console via ~ key or ö.
The latter likely only for germanic keyboard layouts.

you may need to run the game as admin for console to work. or open the console after the game starts(in the menu before load/continue campaign)

commands:
cl - display current cheat level
cl high - set cheat level to high - use this first
gold [value] , set player kingdom gold
piety [value] , set player kingdom piety
books [value] , set player kingdom books
add_units [value] , Add units to selected army
kk - kill current king - players king
add_child - you guess it. It looks id adds just baby boys
co - Change opinion (name, amount). eg co nobility 10 - change nobility opinion to 10
del_opportunity - delete opportunity from selected character
add_challenge - add challenge to the player kingdom
new_rumor - Add new rumor from seleted character
new_rumors - Add new rumors from seleted character
add_units - Add units to selected army
ai - enable / disable all AI
kai - enabe / disable selected kingdom AI
tkai - enabe / disable tracing for selected kingdom AI
bai - enabe / disable battleview AI
rai - enabe / disable rebel AI
income_mul - set gold income multiplier - just for silver. example income_mul 2 will double current income
give_gold - give gold to selected kingdom
give_piety - give piety to selected kingdom
give_books - give books to selected kingdom
cc - change the class of the selected character
age - Make selected character grow up soon
prestige - add prestige to selected kingdom
fame - add fame to selected kingdom
fame - view selected kingdom's fame
max - level up selected character to maximum using all skills (1) or random skills (0)
cr religion name - change selected kindom religion. example: cr Catholic
crr - Change selected realm's religion
spawn_pop "number"- Spawn population in the selected realm. eg spawn_pop 20 - add 20 population to selected city
recall - Recall selected character to court
imprison - Imprison selected character in our kingdom
imprison - Imprison selected character in specified kingdom
unprison - Free the selected character from prison
kill_prisoners - Kill all prisoners in local player's kingdom
ao - Force action outcome
nce - new Cardinal-Elect from the selected kingdom
nc - new player-led crusade against selected kingdom
poc - set Player-Only Crusade leaders
build buildingname, Build a building / upgrade in selected castle)
apf - Add a province feature to selected realm. Eg apf Raisins - add raising to selected city/province
add_opportunity [opportunity name] - Adds an opportunity for the selected character
kill - Kills the selected knight
conquer - Conquers the selected kingdom
upgrade [upgrade name] - Adds an upgrade in selected fief
fow 0 - remove Fog of War
spawn_pop X - Add X amount of pop to a selected town
sa - spawn army
sm - spawn mercenary
switch - switch to selected kingdom
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.
conquer_rest - conquers all kingdoms except the selected one
build name- Building name found in buildings.def, building gets constructed in selected town
build name castlename - Building gets built in specified province, example build CropFarming Rennes
upgrade name - upgrade name is found in upgrades.def, this command completes the upgrade
Insert key - inserts a friendly knight with an army under the cursor, not in towns
delet key - deletes ANY selected army and knight on the map also your own , not in towns
win 0 win any selected sieges or battles
ca (int) - change crown authority


EDIT: Thanks to 8Mucha8 here is a list of apf commands you can use

There's list of province features (buildings) you can add with apf command:
DeepForests
Mountain
Pirates
Rivers
Vineyard
HorseFarm
SheepFarm
CattleFarm
MarbleDeposit &
- LimestoneDeposit
IronOre &
- GoldOre
- SilverOre
- LodestoneDeposits
HerbsGardens
FlaxFields
SaltDeposit
SaltpeterDeposits
SulfurDeposits
AmberDeposit

And after using apf command you have to "exit" city/province and choose it again or press Tab and next Ctrl+Tab then added province feature appears in buildings window.
Last edited by ShadowFox; 19 Jul @ 6:26pm
< >
Showing 1-15 of 19 comments
Lord Haart 19 May, 2023 @ 3:25am 
Wow, nice1 brother. I don't use cheats to win games but love them for testing. Safe as.
Vibe High! 19 May, 2023 @ 11:53am 
Originally posted by ShadowFox:
Originally posted by Lord Haart:
Wow, nice1 brother. I don't use cheats to win games but love them for testing. Safe as.
Thanks! Yeah I originally looked them up as I was going to attempt to make a mod but I quickly realized I was in way way over my head but it was fun tooling around and trying things that may not happen in a real game. I hope they can help people to have fun however they want to play =)

Thank you very much! =))))))))))))
ashurakain 3 Jul, 2023 @ 10:39pm 
in terms of adding units, where do i find the list that has the id# to all of them?
Last edited by ashurakain; 3 Jul, 2023 @ 10:40pm
Varainger (Banned) 4 Jul, 2023 @ 7:58am 
Originally posted by ashurakain:
in terms of adding units, where do i find the list that has the id# to all of them?

I don't know a command that can use troop types.
I do it like ShadowFox described.
ashurakain 4 Jul, 2023 @ 7:32pm 
Originally posted by ShadowFox:
Originally posted by ashurakain:
in terms of adding units, where do i find the list that has the id# to all of them?
I'll be honest I don't try to add specific units I just add how every many missing slots there are then delete the ones I don't want and try again its a little hit or miss but seems to work out

This seems to be the best method, it seems that modding this game and changing things in it is also a fun part bout this game.
ShadowFox 17 Sep, 2023 @ 11:48am 
Originally posted by Cheeseburger:
Struggling with APF trying to test something but can't seem to adds "hills and mountains" to a province. Anyone know what I need to put? I've tried hills, mountains, hillsandmountains and so far no luck
Ahh okay so I found

"def Mountain : ProvinceFeature
{
name = "Hills and Mountains"
flavor = "Mountains province feature flavor"
tooltip = "Provinces, surrounded by mountains, are easier to defend and often offer valuable ores."
icon = "Assets/UI/Elements/Common/Icons/ProvinceFeatures/Icon_ProvinceFeature_Mountains.tga:Icon_ProvinceFeature_Mountains#2" //GUID:f84e61007c9352a41b355af54e29fb53
icon_big = "Assets/UI/Elements/Common/Icons/ProvinceFeatures/Icon_ProvinceFeature_Mountains_60x60.tga:Icon_ProvinceFeature_Mountains_60x60#2" //GUID:80a951fd253be144faff6de251cee17f
spawn_chance = 100
sort_id = 0
}
"

So it was just "Mountain" I feel dumb. But hey now I know where to find all the province features list :D
Last edited by ShadowFox; 17 Sep, 2023 @ 11:50am
Hanzo 5 Nov, 2023 @ 1:54am 
Looks pretty good. Some of them could probably help with getting some tricky achievements (like changing your religion 2 times)

Do they work in MP?
It could be fun to use one player as GM and do some sort of survival game with players against entire AI world.
Lord Haart 6 Nov, 2023 @ 3:23am 
How 'bout json :

{
"Mountain" : {
"name" : "Hills and Mountains",
"flavor" : "Mountains province feature flavor",
"tooltip" : "Provinces surrounded by mountains are easier to defend and often offer valuable ores.",
"icon" : "Assets/UI/Elements/Common/Icons/ProvinceFeatures/Icon_ProvinceFeature_Mountains.tga:Icon_ProvinceFeature_Mountains#2",
"icon_big" : "Assets/UI/Elements/Common/Icons/ProvinceFeatures/Icon_ProvinceFeature_Mountains_60x60.tga:Icon_ProvinceFeature_Mountains_60x60#2",
"spawn_chance" : 100,
"sort_id" : 0
}
}
ShadowFox 2 Jan, 2024 @ 9:12am 
Bumping cause I saw the outdated one on the front page
Varainger (Banned) 2 Jan, 2024 @ 11:14am 
Originally posted by PrinceShadowFox:
Bumping cause I saw the outdated one on the front page

edited: nevermind, i misremembered.
Last edited by Varainger; 2 Jan, 2024 @ 11:22am
CaliphAragorn 2 Jan, 2024 @ 11:33am 
Originally posted by PrinceShadowFox:
Bumping cause I saw the outdated one on the front page
Did you manage to add hills and mountains? Also, it's still not possible to mod settlements right? I mean if you want to change to template and add new design.
ShadowFox 2 Jan, 2024 @ 12:19pm 
Originally posted by CaliphAragorn:
Originally posted by PrinceShadowFox:
Bumping cause I saw the outdated one on the front page
Did you manage to add hills and mountains? Also, it's still not possible to mod settlements right? I mean if you want to change to template and add new design.
Yup for mountain it was "apf Mountain" once you put "CL high" ofc. I don't think you can change settlements with console commands but with actually modding it might be possible
belko 28 Feb, 2024 @ 8:54am 
Hi, thank you, is there a way to increase opinion limit to 200 ? Im doing it with wemod but when i upgrade a building for army par example it reduce the opinion to 10 and reset my 200 opinion boonus
ShadowFox 28 Feb, 2024 @ 9:00am 
Originally posted by BK:
Hi, thank you, is there a way to increase opinion limit to 200 ? Im doing it with wemod but when i upgrade a building for army par example it reduce the opinion to 10 and reset my 200 opinion boonus
I think for changing the max that might be something in the game files themselves you would have to shift. Can I ask why you need/want it to be @200? (not judging or anything just curious what benefit that gives over the regular max 10)
DriftyMartin 19 Jun, 2024 @ 11:36am 
I cant get it to work, when i write in the console "gold 10000"
The console replies:"Command ignored! Reauired cheat level is High, but current is None."
< >
Showing 1-15 of 19 comments
Per page: 1530 50