Crusader Kings III

Crusader Kings III

Debug Toggle (Less Invasive)
76 Comments
Vhodnoylogin May 20 @ 6:43am 
What does debug mode do?
Swordsman Chinchilla May 15 @ 3:48pm 
To this day I click F10-F11-F10 and it still works
Kenooji Sep 28, 2024 @ 4:18pm 
Advance Cheat Menu has a buttom to toggle debug and its not laggy unlike this one
Starshock Sep 26, 2024 @ 1:15pm 
It certainly isn't working in 1.13 for me either
cybrxkhan Sep 24, 2024 @ 6:02pm 
Mod seems to work fine with Roads to Power/Patch 1.13 for me like before.
steempvnc1880 Sep 24, 2024 @ 4:35pm 
Doesn't appear to work in the new roads to power update
KaiserMuhhanmud Sep 6, 2024 @ 6:41am 
cant work with agot and agot chinese ver
reio789 Mar 14, 2024 @ 2:10am 
why it keeps crashing when pressing debug button?
lobosan Mar 11, 2024 @ 7:40pm 
works with v1.12 for me
Hans Gruber  [author] Dec 22, 2023 @ 9:28am 
@strafe @Dusty I've uploaded the version for CK3 1.5 here: https://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] Dec 22, 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] Dec 22, 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 Dec 6, 2023 @ 2:20pm 
crashes when right-clicking on a character, playing with the AGOT MOD
Goat Dec 3, 2023 @ 1:52am 
For some reason this mod has a noticeable impact on game speed and performance.
Nemo of Utopia Aug 18, 2023 @ 10:12am 
@strafe this was covered in a post just a little bit further down.
strafe Aug 7, 2023 @ 3:10pm 
are there older versions available of this mod I want to use it while playing 1.5
sm0lweeweeman Aug 6, 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 Aug 5, 2023 @ 10:25am 
Because you basically cheated in game thus Deactivating Achievements.
sm0lweeweeman Aug 5, 2023 @ 10:24am 
achievements stay turned off after I toggle debug mode off again. Does anyone know why that is ?
Hans Gruber  [author] Jul 3, 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] Jul 3, 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] Jul 3, 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] Jul 3, 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 Jun 28, 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 Jun 16, 2023 @ 3:00pm 
it disable achievements when active, just deactive it after (click turn off debug mode) after youre done
Crusader Jun 16, 2023 @ 2:31pm 
Does this still disable achievements?
Dusty Jun 13, 2023 @ 6:33am 
Thank you for the nice mod! Is there any way to download the previous version?
Drottenssten May 21, 2023 @ 12:30pm 
I believe I've found the issue. Foundational Framework overwrites jomini_encyclopedia.gui with a copy of the vanilla version
Santa9053 May 21, 2023 @ 3:49am 
I've unsubscribed, resubscribed and fiddled with the load order - but the debug button no longer appears.
Donald J. Trump May 21, 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 May 20, 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 May 18, 2023 @ 10:55am 
Update broke mod, debug menu button no longer appears in encyclopedia.
philmarghetto May 18, 2023 @ 10:14am 
Doesn't work!
AppleWeed May 16, 2023 @ 1:46pm 
Any way to get 1.8 version of this mod? Thank you!
LTSpec May 16, 2023 @ 4:15am 
it doesn't work, button does nothing when i click it
Private Profile May 15, 2023 @ 9:45pm 
Not working.
DUBB May 13, 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 May 13, 2023 @ 7:59am 
Same issue as SerbianLegends
Miraklos May 13, 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 May 12, 2023 @ 1:18pm 
Ty Hans :luv:
Coda May 12, 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 May 12, 2023 @ 10:10am 
When pressing toggle debug nothing happens?
Hans Gruber  [author] May 11, 2023 @ 7:54pm 
Updated with the new hotkey combo!
Coda May 11, 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 May 6, 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 Apr 15, 2023 @ 12:22pm 
This is awesome! Cheers!
BAPBHΛΩ Apr 1, 2023 @ 7:51am 
Thank you, this mod's perfect
Matt Feb 3, 2023 @ 11:30am 
Thank you Hans!
Hans Gruber  [author] Dec 21, 2022 @ 8:56pm 
Sorry for not seeing these comments, guys! 1.8 is up. Well done on resolving everything.
zgold425 Dec 21, 2022 @ 11:30am 
Updated?