OSP Code SP [WB v1.127] Expanded nobility title system kit (v0.3.3)

Users who are viewing this thread

Hello Jrider,

Can you tell me exactly where to put your code in module_constants.py AND in module_triggers.py?
Because I've got a lot of errors when compiling : it's varables related...
And is your code 1.146 compatible ?

Thanks for your answer
 
    # Jrider + TITLES v0.3.2 update both player and troop titles
        (try_begin),
Code:
            (store_troop_faction, ":troop_faction", ":troop_no"),
            (eq, ":troop_faction", "$players_kingdom"),
            (call_script, "script_troop_set_title_according_to_faction_gender_and_lands", "trp_player", "$players_kingdom"),
            (call_script, "script_troop_set_title_according_to_faction_gender_and_lands", ":troop_no", "$players_kingdom"),
        (try_end),
        # Jrider -

I found out that the error due to this piece of code!
How can I fix it?


Code:
Initializing...
Compiling all global variables...
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Exporting map icons...
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Exporting faction data...
Exporting item data...
Exporting scene data...
Exporting troops data
Exporting particle data...
Exporting scene props...
Exporting tableau materials data...
Exporting presentations...
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting info_page data...
Exporting scripts...
ERROR: Usage of unassigned local variable: :troop_no
ERROR: Usage of unassigned local variable: :troop_no
Exporting mission_template data...
Exporting game menus data...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .




 
Search module scripts for the variable and manually fix it. :smile:

Otherwise, you probably added something incorrectly
 
Is there a list of what the lord needs to get a certain title? For instance, what title does a Sarranid lord get when he owns a town or just a village?
 
all done but during compile i have this error

Code:
Initializing...
Compiling all global variables...
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Exporting map icons...
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Exporting faction data...
Exporting item data...
Exporting scene data...
Exporting troops data
Exporting particle data...
Exporting scene props...
Exporting tableau materials data...
Exporting presentations...
Error: Unable to find object:str_name_kingdom_text
ERROR: Illegal Identifier:str_name_kingdom_text
Error: Unable to find object:str_default_kingdom_name
ERROR: Illegal Identifier:str_default_kingdom_name
Error: Unable to find object:str_default_kingdom_name
ERROR: Illegal Identifier:str_default_kingdom_name
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting info_page data...
Exporting scripts...
Exporting mission_template data...
Exporting game menus data...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
Imported 21 global variables for saved-game compatability that are not used.
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .
 
Leon, have you tried reading your errors?
Error: Unable to find object:str_name_kingdom_text
ERROR: Illegal Identifier:str_name_kingdom_text
Error: Unable to find object:str_default_kingdom_name
ERROR: Illegal Identifier:str_default_kingdom_name
Error: Unable to find object:str_default_kingdom_name
ERROR: Illegal Identifier:str_default_kingdom_name

str stands for string, thus you're missing the strings I marked in brown
 
i added these trig in module_strings_py and now i dont have errors

("name_kingdom_text", "What will be the name of your kingdom?"),
  ("default_kingdom_name", "{s0}'s Kingdom"),


is this correct?
 
I had built a mod using it
Im not playing the game anymore (for a long time) so cant really help. If you follow the entire tread you will see its quite easy tonadapt this to your mod. Now Im off again - probably until Bannerlord is really out.
 
I tried to comment out the titles etc for companions, the fisque, hero etc. but everytime i do it i get a missing str OR just a read error, any more indepth explenation on how to remove it? i like it for the lords etc, jsut not the companions when they are in my party (their names get a bit long for my liking)
 
I wonder if one may know if it is ok or not to use it in 1.171 module system... Or how to achieve such things in 1.171? Ta for any help...
---
So sorry that I wasn't clear enough – it is always one of my biggest disadvantages.. I meant if the version 1.171 is ok or not because sometimes I use OSP that doesn't fit 1.171 & crash... But still cheers to Eärendil tho
 
Last edited:
:razz:
EDIT: I forgot to mention, though, a main factor of why I didn't implemented this OSP earlier is that while jrider is an ingenious coder, his layout of code was a bit chaotic to read and track. But in the new forums, it is very nice and clear.
 
Last edited:
Sorry for the double post, but it is important and relevant to the thread (and that's why I choose to make separate post and not edit my previous one :grin: ).

During Christmas I tested the script in the latest system + Dipomacy 1.154. There are a couple of differences, in the 1.171 Native due to scripts being updated and in the Diplomacy MS due to Dipomacy's additions and edits; nothing major, just you need to watch the lines and not follow the OP blindly. But other than that, it is fully compatible so far, with both. With the usual caveats, I have no doubt it would be compatible with anything else, provided you edit it to adapt to any module changes you did.
 
Back
Top Bottom