• We'll be making a number of structural changes to the forums on Wednesday, 06.12.2023. No downtime is expected. Read more here.

WB Coding UI list of lords - How to increase the maximum cap ? [game menu "Characters"]

Users who are viewing this thread

Douw

Recruit
Hello,
I am working on a Warband mod which intend to add a large amount of factions and lords. But the User Interface seems to have reached a maximum capacity on the number heroes (ladies, lords, kings, NPC) : the list on the right don't show everyone, and stops in the middle of the ladies.

Is there a way to show everyone in this menu ? (the pages of the missing lords exist : when you talk to them and then go in their own menu from the discussion with them, they are showed on the menu, but not listed on the right)
I have already made some researches in the forum and the module system, the UI seems to be partially hardcoded. the menu is ui_troops2 (characters) , and then the list of heroes is listed but I don't know if the module system properly permit to adjust it.

Thank you, if anyone can help me on this precise point.
 
Solution
Not entirely sure if it's hardcoded, but pretty convinced that it is.

To be honest, even in vanilla Warband the list is so long that it's difficult to use. So if you doubled the number of entries, it would become a hell to browse anyway.
As a workaround you could limit who gets the note and who doesn't - there is a command for that (see how pretenders are initially hidden, and only unlocked later - this process can work both ways).
This would give you control on who is really skipped.
And then just merge the pages, for example disable pages for all wives and include info about them on the husband's page - they aren't independent anyway. Same for daughters, same for sisters without fathers.
I'm aware that's not a very satisfying...
Not entirely sure if it's hardcoded, but pretty convinced that it is.

To be honest, even in vanilla Warband the list is so long that it's difficult to use. So if you doubled the number of entries, it would become a hell to browse anyway.
As a workaround you could limit who gets the note and who doesn't - there is a command for that (see how pretenders are initially hidden, and only unlocked later - this process can work both ways).
This would give you control on who is really skipped.
And then just merge the pages, for example disable pages for all wives and include info about them on the husband's page - they aren't independent anyway. Same for daughters, same for sisters without fathers.
I'm aware that's not a very satisfying solution, but I'd say it's better than nothing.
 
Upvote 0
Solution
Indeed, the function " (troop_set_note_available, ":troop_no", 1) " , with 0 for not showing and 1 for showing works this way, and everyone is initialized in the Game_start script, it's easy to deactivate the ladies.
Thank you for pointing it, I think I'll use this workaround !

For information, my first version of my mod more than doubled the number of lords and it worked without problem. The update try to triple the original number, and this is where the problem starts. (so the limit is somewhere between)
 
Upvote 0
Back
Top Bottom