Character Tooltip Customization w/ Character ID and language localization
First, many thanks to the many kind, dedicated souls that have that have helped me achieve a more fulfilling game experience with Crusader Kings II. There have been many.
I thought I would open a thread dedicated to character tool-tip pop-ups and delayed tooltip pop-ups as so much detail and effort is buried deeply in other MOD project-specific discussions.
My quest started from looking for a way to display the Character ID in game; it has led me to a full custom character sheet showing ambitions, plots, skills, with a simple mouse-over of any portrait - and supporting all four (4) languages (multilingual support) based on the #Code English;French;German;;Spanish;;;;;;;;;;;;x format.
Moreover, I'm looking for more input and better ideas to implement.
What I have come up with works reliably well (and I have even (manually) added it to CK2+ builds - to the tooltip file included - to ensure the best compatibility when running that MOD. BTW, thanks Wiz, its an incredible effort you have undertaken, and a great MOD as a result).
Paste and use at your leisure (but give me a shout out if you like or don't) - to whatever localization ("localisation") set-up you are using; this code supports English, French, German, Spanish as stated. I replaced and tested this in both native game files (line 267 in 1.08) and modes that do the same with great success. Screen shots below show various points of interest and languages in action. And I did steal some ideas from some of you
... so in return feel free to use this under unrestricted terms. Its a single line of markup as represented below:
(Screen shots below)

I use Notepad++ (GPL free-tool) for text editing, and OpenOffice.org for anything .csv... I find Notepad++to be incredibly useful...
First, many thanks to the many kind, dedicated souls that have that have helped me achieve a more fulfilling game experience with Crusader Kings II. There have been many.
I thought I would open a thread dedicated to character tool-tip pop-ups and delayed tooltip pop-ups as so much detail and effort is buried deeply in other MOD project-specific discussions.
My quest started from looking for a way to display the Character ID in game; it has led me to a full custom character sheet showing ambitions, plots, skills, with a simple mouse-over of any portrait - and supporting all four (4) languages (multilingual support) based on the #Code English;French;German;;Spanish;;;;;;;;;;;;x format.
Moreover, I'm looking for more input and better ideas to implement.
What I have come up with works reliably well (and I have even (manually) added it to CK2+ builds - to the tooltip file included - to ensure the best compatibility when running that MOD. BTW, thanks Wiz, its an incredible effort you have undertaken, and a great MOD as a result).
Paste and use at your leisure (but give me a shout out if you like or don't) - to whatever localization ("localisation") set-up you are using; this code supports English, French, German, Spanish as stated. I replaced and tested this in both native game files (line 267 in 1.08) and modes that do the same with great success. Screen shots below show various points of interest and languages in action. And I did steal some ideas from some of you
Code:
CHARACTER_TOOLTIP_DELAYED;§R Character Sheet:§!\n§!ID: §Y[GetID]§! Dynasty: §Y[GetOnlyDynastyName]\n§!Culture: §Y[Culture.GetName] §!Religion: §Y[Religion.GetName]\n§!DIP: §G[GetDiplomacy]§! MAR: §G[GetMartial]§! STW: §G[GetStewardship]§! INT: §G[GetIntrigue]§! LRN: §G[GetLearning]\n §B Ambition: §![GetAmbition]\n §B Objective: §![GetPlot]\n\n[GetStatusInfo];§R Feuille de personnage:§!\n§!ID: §Y[GetID]§! Dynastie: §Y[GetOnlyDynastyName]\n§!Culture: §Y[Culture.GetName] §! Religion: §Y[Religion.GetName]\n§!DIP: §G[GetDiplomacy]§! MAR: §G[GetMartial]§! INTe: §G[GetStewardship]§! INTr: §G[GetIntrigue]§! SAV: §G[GetLearning]\n §B Ambition: §![GetAmbition]\n §B Objectif: §![GetPlot]\n\n[GetStatusInfo];§R Charakterseite:§!\n§!ID: §Y[GetID]§! Dynastie: §Y[GetOnlyDynastyName]\n§!Kultur: §Y[Culture.GetName] §!Glaube: §Y[Religion.GetName]\n§!DIP: §G[GetDiplomacy]§! KRI: §G[GetMartial]§! VER: §G[GetStewardship]§! INT: §G[GetIntrigue]§! BIL: §G[GetLearning]\n §B Ehrgeiz: §![GetAmbition]\n §B Ziel: §![GetPlot]\n\n[GetStatusInfo];;§R Carácter página:§!\n§!ID: §Y[GetID]§! Dinastria: §Y[GetOnlyDynastyName]\n§!Cultura: §Y[Culture.GetName] §!Religion: §Y[Religion.GetName]\n§!DIP: §G[GetDiplomacy]§! MAR: §G[GetMartial]§! ADM: §G[GetStewardship]§! INT: §G[GetIntrigue]§! SAB: §G[GetLearning]\n §B Ambición: §![GetAmbition]\n §B Objetivo: §![GetPlot]\n\n[GetStatusInfo];;;;;;;;;;;;x
(Screen shots below)
I use Notepad++ (GPL free-tool) for text editing, and OpenOffice.org for anything .csv... I find Notepad++to be incredibly useful...
Last edited: