Crusader Kings III

Crusader Kings III

Debug Toggle (Less Invasive)
77 Comments
E 15 Jul @ 8:30am 
@Vhodnoylogin It enables cheats and such
Vhodnoylogin 20 May @ 6:43am 
What does debug mode do?
Swordsman Chinchilla 15 May @ 3:48pm 
To this day I click F10-F11-F10 and it still works
Kenooji 28 Sep, 2024 @ 4:18pm 
Advance Cheat Menu has a buttom to toggle debug and its not laggy unlike this one
Starshock 26 Sep, 2024 @ 1:15pm 
It certainly isn't working in 1.13 for me either
cybrxkhan 24 Sep, 2024 @ 6:02pm 
Mod seems to work fine with Roads to Power/Patch 1.13 for me like before.
steempvnc1880 24 Sep, 2024 @ 4:35pm 
Doesn't appear to work in the new roads to power update
KaiserMuhhanmud 6 Sep, 2024 @ 6:41am 
cant work with agot and agot chinese ver
reio789 14 Mar, 2024 @ 2:10am 
why it keeps crashing when pressing debug button?
lobosan 11 Mar, 2024 @ 7:40pm 
works with v1.12 for me
Hans Gruber  [author] 22 Dec, 2023 @ 9:28am 
@strafe @Dusty I've uploaded the version for CK3 1.5 here: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3120098330

If I remember right, there was only really one big version change for this mod, and I think it was at version 1.9
Hans Gruber  [author] 22 Dec, 2023 @ 8:56am 
@Goat I've noticed that a little spike happens while you leave the encyclopedia open, and also for a moment after you toggle it. There's maybe a very tiny bump while debug mode is enabled, too. I'm not seeing any persistent spike, though

@curetonissac Maybe AGOT has a bad mod for the debug menu? Would be curious if booting up debug mod without this mod (like with the command line argument) causes the same crash. If it's not that, the only other option would be AGOT somehow using the Encyclopedia for load-bearing code... and I hope they didn't do that

@strafe I'll add a little blurb about 1.5 in the description
Hans Gruber  [author] 22 Dec, 2023 @ 8:49am 
@sm0lweeweeman I'm pretty sure that once your playthrough detects debug mode, it's flagged as achievement ineligible. Pretty annoying measure when a modder can just go create a button or decision to cheat in whatever they want, but I suppose the restrictions are a lot better now than they used to be.
curetonissac 6 Dec, 2023 @ 2:20pm 
crashes when right-clicking on a character, playing with the AGOT MOD
Goat 3 Dec, 2023 @ 1:52am 
For some reason this mod has a noticeable impact on game speed and performance.
Nemo of Utopia 18 Aug, 2023 @ 10:12am 
@strafe this was covered in a post just a little bit further down.
strafe 7 Aug, 2023 @ 3:10pm 
are there older versions available of this mod I want to use it while playing 1.5
sm0lweeweeman 6 Aug, 2023 @ 11:51am 
but someone says that achievements will be on after you toggle debug mode off again. Is that not the case anymore ?
Xherdos 5 Aug, 2023 @ 10:25am 
Because you basically cheated in game thus Deactivating Achievements.
sm0lweeweeman 5 Aug, 2023 @ 10:24am 
achievements stay turned off after I toggle debug mode off again. Does anyone know why that is ?
Hans Gruber  [author] 3 Jul, 2023 @ 3:02pm 
Also! Big thanks to @Drottenssten, @fisto the robo, @Donald J Trump, and @c h u for helping to figure out these issues!
Hans Gruber  [author] 3 Jul, 2023 @ 2:59pm 
@Dusty, regarding past versions again: I'm an idiot, that past version stuff isn't available for everyone, and my only option with it is to revert the whole mod.

I don't have a public repo anywhere with past versions, but the changes have always just been copying in the same button to an updated encyclopedia. You should be able to make a new mod (or start with a copy of this one), copy in your target CK3's version of jomini_encyclopedia.gui, then just add a new hbox above the name = "main" hbox:

hbox = {
margin = { 0 10 }
button_primary = {
text = "Toggle Debug"
onclick = "[ExecuteConsoleCommand('debug_mode')]"
shortcut = "screenshot"
}
}
Hans Gruber  [author] 3 Jul, 2023 @ 2:15pm 
Regarding other mods: I didn't see any conflicts in Elder Kings 2, but this mod should always be fine at the bottom of load order. It only overwrites the Encyclopedia, so unless another mod is depending on that or your debug state for some critical functionality (which would be weird af), it shouldn't impact anything else you have running. If you can't see the button, it's likely that another mod in your load order is overwriting the encyclopedia. If you can see the button but it's not doing anything, you're either in Ironman or there's some crazy bug that I am unaware of.

@Dusty, regarding past versions: I believe you can download them through Steam. Just click on "( view )" next to the "X Change Notes" in the description, and you can revert to any version there.

2/2
Hans Gruber  [author] 3 Jul, 2023 @ 2:15pm 
Whoa, comments got busy! Sorry about the delay.

Ironman disables the method I'm using to toggle debug mode, which is by executing the console command "debug_mode" -- the same thing that the "Debug Mode" button does in the game's debug console. Both my mod and the debug console will throw the error, "No Console commands in ironman!" if you try to toggle debug mode on. In fact, not a single button on the entire console works when Ironman is on, displaying that same error.

My guess is that this was changed in the last patch, but I never use Ironman with mods, so I don't actually know how much was available in the first place. I'll check the forums and other mods for an alternative way to toggle debug mode, but my first look through the code wasn't very promising. For now, Ironman just isn't supported. :(

1/2
Osium 28 Jun, 2023 @ 4:48pm 
I may have discovered a bug/work around for people having issues using this with 1.8.2 (GOT/EK2 mod plays). If you have a crash a few days after loading a save game, try toggling the debug mode on and off. Not ideal, but if you're using this with say Elder Kings or the GOT mod, it seems to fix these sorts of crashes.
fisto the robo 16 Jun, 2023 @ 3:00pm 
it disable achievements when active, just deactive it after (click turn off debug mode) after youre done
Crusader 16 Jun, 2023 @ 2:31pm 
Does this still disable achievements?
Dusty 13 Jun, 2023 @ 6:33am 
Thank you for the nice mod! Is there any way to download the previous version?
Drottenssten 21 May, 2023 @ 12:30pm 
I believe I've found the issue. Foundational Framework overwrites jomini_encyclopedia.gui with a copy of the vanilla version
Santa9053 21 May, 2023 @ 3:49am 
I've unsubscribed, resubscribed and fiddled with the load order - but the debug button no longer appears.
Donald J. Trump 21 May, 2023 @ 12:15am 
Not sure if this is the same reason other people are having for the button not working for them, but in my experience it doesn't work when ironman mode is on. When it's disabled debug button works fine, but when enabled it does nothing when you click.
c h u 20 May, 2023 @ 12:27pm 
The mod works for me, so I'm not sure why so many people seem to be having issues.. Have you guys tried to unsubscribe and resubscribe to the mod? Sometimes steam just doesn't automatically update workshop mods for whatever reason. The mod is also placed at the top of my mod list.

Pressing F10 brings up the encyclopedia, and the debug buttons is at the top.
ColdLemon 18 May, 2023 @ 10:55am 
Update broke mod, debug menu button no longer appears in encyclopedia.
philmarghetto 18 May, 2023 @ 10:14am 
Doesn't work!
AppleWeed 16 May, 2023 @ 1:46pm 
Any way to get 1.8 version of this mod? Thank you!
LTSpec 16 May, 2023 @ 4:15am 
it doesn't work, button does nothing when i click it
15 May, 2023 @ 9:45pm 
Not working.
DUBB 13 May, 2023 @ 3:45pm 
Same as @JvJ and @SerbianLegends. I've used your mod to great effect in the past so I'm certain it's not user error in this instance ^_^
JvJ 13 May, 2023 @ 7:59am 
Same issue as SerbianLegends
Miraklos 13 May, 2023 @ 3:55am 
@Coda, thanks but that does not work. Ive used this mod a long time and it seems it is the new update that has made something not work
Coda 12 May, 2023 @ 1:18pm 
Ty Hans :luv:
Coda 12 May, 2023 @ 1:16pm 
@SerbianLegends, hit the ` key at the top left of your keyboard (right under the escape key) once you turn debug on, it should bring up the console where you can enter commands and whatnot
Miraklos 12 May, 2023 @ 10:10am 
When pressing toggle debug nothing happens?
Hans Gruber  [author] 11 May, 2023 @ 7:54pm 
Updated with the new hotkey combo!
Coda 11 May, 2023 @ 12:07pm 
This still works in Tours and Tournaments / 1.9.0.2 , however, you now have to click F10 instead of F9 as Paradox changed the hotkey for the Encyclopedia.

New Hotkey Combo: F10 -> F11 -> F10
Bruce 6 May, 2023 @ 1:15pm 
Little things like this are sometimes the grist for the greatest mods. This saves having to end the game, go to Steam, open up the game's properties, insert "-debug_mode" in launch options, start the game again, do your thing, save the game, exit the game, go to Steam, open up the game's properties, delete "-debug_mode" in launch options, start the game again. In the time that you took to read that sentence (much less type it), you can use this mod to open debug mode, make a change, and toggle it off again. Super stuff, thanks.
misawashogun 15 Apr, 2023 @ 12:22pm 
This is awesome! Cheers!
BAPBHΛΩ 1 Apr, 2023 @ 7:51am 
Thank you, this mod's perfect
Matthew 3 Feb, 2023 @ 11:30am 
Thank you Hans!
Hans Gruber  [author] 21 Dec, 2022 @ 8:56pm 
Sorry for not seeing these comments, guys! 1.8 is up. Well done on resolving everything.