• 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.

Vasoli

Sergeant
84 Badges
Mar 21, 2015
75
56
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Surviving Mars
  • Imperator: Rome
  • Europa Universalis IV: Common Sense
  • Victoria 3 Sign Up
  • Stellaris: Necroids
  • Europa Universalis IV: Cossacks
  • Europa Universalis 4: Emperor
  • Battle for Bosporus
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV: By Blood Alone
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Nemesis
  • Stellaris: Federations
  • Hearts of Iron IV: La Resistance
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Cradle of Civilization
  • Cities in Motion
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Golden Century
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Surviving Mars: Digital Deluxe Edition
  • Imperator: Rome Deluxe Edition
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Stellaris: Megacorp
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Magicka
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise

I made a new mod which add some new feature in searching characters in CK3. This are additions to normal search:​

  • Sort by willingness to join your court
  • Undo feature with up to 100 times
  • Search window do not close automatically.
  • Check if someone do not have a particular trait. (Especially useful when search who will become next witch)
  • Check for characters with any sinful, virtuous, commander, lifestyle trait. Or with any good or bad genetic trait. Or with any disease or any infamous (crime) trait.
  • Extensive heritage search
  • Search in near by realms
  • Check if someone is not ruler and not a heir
  • Younger Adults and Older Adults
  • Not Betrothed, Betrothed characters
  • Having secret of someone, or not having secret or hook
  • Filter by your house, not your house, filter not lowborn but not in your family.
  • Magic sauce sort which take all stats health and age in account.
  • Sort by gold
  • Sort by gold monthly balance
  • Sort by income
  • Sort by expenses
  • Sort by prestige
  • Sort by piety
  • Sort by military strength
  • Sort by dread
  • Sort by progeny (number of descendants)
  • Sort by claims
  • Heritage tooltip where you can see all titles this character is in line of succession.
  • More information for every character visible.
  • Fine tuning which religion to select and which not to select.
Update:
I will try to find time to work on the mod again. A new discord server is opened: https://discord.gg/nvfF2dMGNQ


[h2]Translation Projects:[/h2]

Tnx to MacAwesome for allowing me to used his asset for character boarder.
Tnx to Lucas182 for designing icons.



Changes in version 9​

  • New religion search
  • Korean translation tnx to LimeCake
  • BugFix: Memory leak for undo

Changes in version 8.3​

  • Making fixes for game version 1.5

Changes in version 8​

  • Improving sort algorithm performance.
  • Sort by willingness to join a court
  • Sort by monthly balance.
  • Sort by income
  • Sort by expenses
  • Added tooltips all over the place
  • Added more information about characters
  • Improved heritage and claims tooltips

Changes in version 7.6​

  • Added Russian translation by Sonik

Changes in version 7.5​

  • German localization.

Changes in version 7.4​

  • Fixing claim tooltip
  • Adding heritage tooltip
  • [Code improvements] Removing deprecated dummy_male to future proof a little ACS

Changes in version 7.3​

  • Game version 1.4 compatibility

Changes in version 7.2​

  • Full Chinese localization,
  • Full Spanish localization.

Changes in version 7.1​

  • Speed and RAM optimization
  • Filter for any trait of a specific kind.
  • Spanish localization.
  • Russian localization.
  • French localization.

Changes in version 6​

  • This update is bringing advanced filtering based on what character can be inherent. Also, you can now check the living status of character parents and you can search nearby realms. The dropdown code is refactored and there are some small performance improvements.

Changes in version 5.1​

  • Disabling undo slots due to memory issue.

Changes in version 5.1​

  • Full Korean support.
  • BufFix: Not a trait filter.
  • BufFix: Small Chinese localization fix.

Changes in version 5.0​

  • Added trait search
  • Added Simplified Chinese localization
  • Added partial Korean localization
  • BufFix: Sorting by opinion fixed

Changes in version 4.3​

  • Fixing problem with vanilla search.

Changes in version 4.2​

  • Update to game version 1.3
  • Fixing colors of stats.

Changes in version 4.1​

  • Performance improvements.
  • More compact UI
  • Bug fixes

Changes in version 4​

  • Adding load/save feature with 13 save slots
  • Adding Undo feature up to 5 times
  • Fixing character counting.

Changes in version 3:​

  • Auto filter/sort on is the default option.

Changes in version 2:​

  • Adding auto filter/sorting
  • Adding sort by gold
  • Adding sort by prestige
  • Adding sort by piety
  • Adding sort by military strength
  • Adding sort by dread
  • Adding sort by progeny
  • Adding sort by claim
  • Fixing error with else
Code for this mode can be found here: https://github.com/Vasolik/CK3ACS
Mod can be found here: https://mods.paradoxplaza.com/mods/18022/Any
Steam workshop: https://steamcommunity.com/sharedfiles/filedetails/?id=2346680183


screenshot2.png

1612903464996.png
1612903495966.png
 
Last edited:
  • 8Like
  • 4Love
Reactions:
Good lord, you've actually done it!
This a lot of work.

Is it possible to make filters and sorting apply right away? I actually thought the mod was broken until I read the description on Paradox Mods.
There's also a typo in your script values. Missing an '=' after an 'else'. The error log also doesn't like opinion_modifier.

Also, suggestion: change your characters_grid from a vbox to a fixedgridbox. It will significantly improve performace when doing big searches.

Do you not own the game on Steam? Would be nice to have the mod on the workshop.
 
Last edited:
Good lord, you've actually done it!
This a lot of work.

Is it possible to make filters and sorting apply right away? I actually thought the mod was broken until I read the description on Paradox Mods.
There's also a typo in your script values. Missing an '=' after an 'else'. The error log also doesn't like opinion_modifier.

Also, suggestion: change your characters_grid from a vbox to a fixedgridbox. It will significantly improve performace when doing big searches.

Do you not own the game on Steam? Would be nice to have the mod on the workshop.
Hi Adamidae,

Change to apply sorting and filters right away is small one. Only thing which need to change is calling one scripted_effect after every change. I did not do it because I was afraid of performance issue. As solution for that I thought to add one checkbox somewhere (defalting to true) which would control this behaviour. But I temporally moved to play Final Fantasy X-2, :), so change was never made.

I will fix missing = right away. I will use fixedgridbox as you suggested. I am afraid that will not improve performance to much, because highest performance hit is actual search (and most probably sorting). I am aware with opinion problem, but I do not know how to solve it. I do not know how to get opinion value.

I will add it to Steam aswell. You can mod source code on github where you can make pull requests with changes you want to make
 
I used game launcher to upload it to steam workshop, but I cannot find it there? What is a process for uploading game there.

Also I tried to use fixedgridbox instead of vbox, but it is showing only 1 element. I do not have time to try to fix it at the moment.

Also if anyone have any idea how to solve problem with sorting by opinion.
 
Man, this is insanely good.
Paradox needs to put this in the base game!
 
Man, this is insanely good.
Paradox needs to put this in the base game!
I created suggestion thread, you can vote there:
 
  • 1Love
Reactions:
When I enable this mod, nothing happens in-game. Search is still vanilla.

Game Version 1.2.1. Files say the mod should be compatible with any 1.2.x.

Am I doing something wrong?
It is very similar to vanilla search. These are examples how it should looks like:
1612900216491.png
1612900251670.png


You should have small icon in button of the screen to open it:
1612900424859.png

Default shortcut is also opening this new screen.

You can still open vanilla search if you have need for it by pressing ...
 
Oooooooh. Thank you so much. I didn't know the button was there.

Is this explained in the mod description notes? Did I miss it somewhere?

If not, I think it should be added in big letters at the top.
Sorry, there was no explanation there. I will add it.
I will add it. Also when you try it feel free to come back with feedback and suggestions for new features.
 
  • 1Like
Reactions:
Finally got around to trying your mod out today. Impressive work, and thanks for going to all the effort to work on this. I toyed with the idea of doing my own character finder and immediately shied away from it on seeing the filtering code.

Couple of things to mention:
  1. vertical margins between the characters is significantly larger than vanilla, resulting in less characters being shown
  2. the editbox for being able to enter traits/cultures/faiths/names is not available. I'm assuming this is a technical issue of getting that sort of filtering to work
  3. the filters panel doesn't open up by default
  4. saved settings only apply to the current game. I realize this is a limitation of the environment not allowing us to save them, but you might want to mention that as part of the feature description
 
Last edited:
Sorry, there was no explanation there. I will add it.
I will add it. Also when you try it feel free to come back with feedback and suggestions for new features.
I have tried it and it is excellent and indispensable. Thank you so much for your great work and for sharing this with us!

But I actually do have a request/suggestion:

Because ACS modifies the hud.gui, it is incompatible with several major mods like Advanced Cheat Menu. Even the "c" hotkey shortcut doesn't work when another mod changes hud.gui.

Would it be possible to make the Vanilla Search icon open ACS? Vanilla search is basically pointless if ACS is enabled, and it would remove the need for an extra icon in the Bottom Right HUD.

Although I'm not sure if that would completely fix the HUD compatibility issue.
 
Finally got around to trying your mod out today. Impressive work, and thanks for going to all the effort to work on this. I toyed with the idea of doing my own character finder and immediately shied away from it on seeing the filtering code.

Couple of things to mention:
  1. vertical margins between the characters is significantly larger than vanilla, resulting in less characters being shown
  2. the editbox for being able to enter traits/cultures/faiths/names is not available. I'm assuming this is a technical issue of getting that sort of filtering to work
  3. the filters panel doesn't open up by default
  4. saved settings only apply to the current game. I realize this is a limitation of the environment not allowing us to save them, but you might want to mention that as part of the feature description
Thank you for your feedback. About it:
  1. This can be solved, I will take a look of it next weekend.
  2. There is no support for strings in ck3 scripting, so edit-box is out of question.
    1. I was thinking of introducing a drop box for traits, maybe with 3 states checkbox (have trait, does not have a trait, and ignored trait). I not sure how this will look like. Also it will be huge job to list all of the traits (every trait must be listed manually at least on 2 places, and maybe even for every save slot).
    2. For culture/religions/faiths, I have 2 ideas. First one would be to have a possibility to mark someone as a root for those searches (one for culture/culture group, and other one for religion/faith) and to show filter for their culture/religion. Other idea would be something similar to traits ideas. What do you think?
    3. Nothing can be done for names, just there is no support for strings.
  3. I think that stays open when you open it one time (every time you start the game), I can make it open by default or I can save last state.
  4. As we are talking about saving stuff, currently those are saved in global variables. Those should be saved in save game, but there is no possibility to transfer them between 2 games (you can just transfer then between save/load of same game). If it is not working like that, I will need to save them on player character, and to sync them somehow with global variables. Problem with saving them to player character is one that when that character is dead, everything saved on him is lost. So if saving of global variables does not work ( I must be honest I was playing Final Fantasy (X2, X and XV) and I did not test all of the latest changes myself) following thing can be done:
    1. On beginning of any game check if something is saved on player character, if there is something copy that to global variables (because then stay saved when character dies).
    2. Then
      1. If I can find event just before saving I can copy everything from global variables to player character.
      2. If I cannot find such event (on_action) there is 2 possibility:
        1. On every change save it both on player character and in global variables. But also I must recognize if player character has changed (by death or any other way). If this happens everything needs to copied again from global variables to player character.
        2. Have GUI button witch would trigger save from global variables to player character.
Please let me know if it is not saving between 2 load/save games. Also let me know what solutions do you think is the best. I will try to find time during the weekend to implement them. I am just too tired from my regular work during weekdays.

PS: Filtering code is not that complex at all. It is just lots of if/elses. There are a lot of little bit more advance programming features (if you may call then advance, maybe even called then basic programming features missing), so lots of code needed to be copy pasted. And strings are not supported at all, so nothing with textbox can be done.
 
Because ACS modifies the hud.gui, it is incompatible with several major mods like Advanced Cheat Menu. Even the "c" hotkey shortcut doesn't work when another mod changes hud.gui.

Would it be possible to make the Vanilla Search icon open ACS? Vanilla search is basically pointless if ACS is enabled, and it would remove the need for an extra icon in the Bottom Right HUD.
Unfortunately it seems that hud.gui is the only place to add interface elements to the main game window, and even the technique for getting some shortcuts to work in the hud is very inelegant ( ie. having to create an invisible button on the action so the shortcut can activate it ).
 
  • 1
  • 1Like
Reactions:
I have tried it and it is excellent and indispensable. Thank you so much for your great work and for sharing this with us!

But I actually do have a request/suggestion:

Because ACS modifies the hud.gui, it is incompatible with several major mods like Advanced Cheat Menu. Even the "c" hotkey shortcut doesn't work when another mod changes hud.gui.

Would it be possible to make the Vanilla Search icon open ACS? Vanilla search is basically pointless if ACS is enabled, and it would remove the need for an extra icon in the Bottom Right HUD.

Although I'm not sure if that would completely fix the HUD compatibility issue.
HUD modification is needed to allow rebinding of shortcut key. Vanilla search icon is also in hud.gui (under ...) so changing it would also produce need of changing hud gui. I preffer having that icon, it is more accessible then one under ... (it is 1 click instead of 2). Is there any other icon I not aware of? Vanilla is still useful when you are using edit box. For me it is just impossible to reproduce that functionality because of technical issue.

Maybe we can talk with them to make compatibility mod. I do not mind them incorporate ACS mod in theirs, or make their mod dependent on ACS. Making compatibility mod should not be difficult. ACS hud.g change i rather small one. It is moving one button, removing one shortcut and adding one new button. Those 3 changes needs to be merged with their mod. I do not believe that I will make any more hud changes in the future, but I do not know for the other mods. If they plan to make more changes to hud, then compatibility mod should be updated every time.

Until we find good solution you can make your compatibility mod. Let me know all of the mods you need compatibility with, so I can write in their threads about possible cooperation. Maybe there can be separate thread just for huge compatibility mod, for different other mods relaying on hud.gui.
 
  • 1
Reactions:
There is no support for strings in ck3 scripting, so edit-box is out of question.
  1. I was thinking of introducing a drop box for traits, maybe with 3 states checkbox (have trait, does not have a trait, and ignored trait). I not sure how this will look like. Also it will be huge job to list all of the traits (every trait must be listed manually at least on 2 places, and maybe even for every save slot).
  2. For culture/religions/faiths, I have 2 ideas. First one would be to have a possibility to mark someone as a root for those searches (one for culture/culture group, and other one for religion/faith) and to show filter for their culture/religion. Other idea would be something similar to traits ideas. What do you think?

I was actually thinking in terms of using the existing editbox feature out of window_character_filter.gui. It looks like it might be adding the elements selected in the dropdown box from the editbox to a NullCharacter, then using that character later as the basis for what to filter on. Unfortunately so much of this area is hidden in non-accessible native code or unexposed script code that it's hard to make out what exactly it is doing.
As we are talking about saving stuff, currently those are saved in global variables. Those should be saved in save game, but there is no possibility to transfer them between 2 games
Yep, exactly what I figured you were doing. It is truly unfortunate that there is no ability to save custom data between saves, otherwise people would have modded in saving game rules by now as well.
 
I was actually thinking in terms of using the existing editbox feature out of window_character_filter.gui. It looks like it might be adding the elements selected in the dropdown box from the editbox to a NullCharacter, then using that character later as the basis for what to filter on. Unfortunately so much of this area is hidden in non-accessible native code or unexposed script code that it's hard to make out what exactly it is doing.
Everything there is in native code as much as I much as I know. Other reason I did not want to change that screen was auto closing of that screen. I do now know if it is even possible to make that screen not auto close (without native code), and that was frustrating for me. What do you think about my suggestion for solving search for traits/culture/religion? Actually same root trick for religion/culture can be done for dynasty/house as well. I can add user interaction to select NullCharacter. That interaction can be shown/hidden from search menu.
Yep, exactly what I figured you were doing. It is truly unfortunate that there is no ability to save custom data between saves, otherwise people would have modded in saving game rules by now as well.
So global variables (filters) are saved in save game? I do not need to change anything here? Or they are missing on load?
 
Last edited: