• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Wastringhea

Recruit
4 Badges
Sep 1, 2023
1
0
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Empire of Sin
I know the charinfo command, but it shows a lot of information I don't need. I am only interested in the character id.
I don't know how to create mods or modify game files.

I use 3.3.5.1
 
You can do this with one line, but you need to create a mod (or edit one that you already have) in %UserProfile%\Documents\Paradox Interactive\Crusader Kings II\mod.
1. You could create a folder in there called "CharID" -> and inside one called "localisation" -> and inside a text file with this text:
CHARACTER_TOOLTIP_DELAYED;[GetStatusInfo]\nID: §Y[GetID]§!;;;;;;;;;;;;;x
2. You can save it as "CharID.csv"
3. Then you can go back to the mod folder (%UserProfile%\Documents\Paradox Interactive\Crusader Kings II\mod), and create a text file with this text:
name = "CharID"
path = "mod/CharID"
4. You can save it as "CharID.mod"
5. Then all you need to do is enable CharID in the launcher.
If you want to skip all of this, I've attached a file you can extract to your mod folder (stated above).

If you want more than just the character ID to appear, then this is what I use (from CK2Plus):
CHARACTER_TOOLTIP_DELAYED;Dynasty: §Y[GetOnlyDynastyName]§!\nCulture: §Y[Culture.GetName]§!\nReligion: §Y[Religion.GetName]§!\n[GetStatusInfo]\nID: §Y[GetID]\n§![GetTributaryPeriod];;;;;;;;;;;;;x
This adds dynasty, culture, religion, character ID, and tributary period.
 

Attachments

  • CharID.zip
    714 bytes · Views: 0