Recent content by Gingy

  1. EU Native Skirmish Completed [BNL] Bannerlord Native League #3 - Skirmish tournament

    Team: House Red Knights
    If you played last BNL tournament - In which Division did you play?:
    In which Division would you like to play?: E - F

    Teambanner (if available):
    image.png


    Team contact:
    Jude (jude8431)
    Pluto (pluffo)

    Roster:
  2. How do I add a custom armor I made into Warband

    when you say item index, you mean item number right, so if item number 620 is (Items_End) does that mean the item index for Items_End is 620 ?
    Yeah, in item_kinds1.txt you count how many items there are starting from 0 instead of 1. I think morgh's editor shows the index. If you want to get the ending item's index, you can use the item count at the top of 'item_kinds1.txt' below 'itemsfile version 3' and subtract 1 from it.
  3. How do I add a custom armor I made into Warband

    In Diplomacy's 'menus.txt'
    Code:
    4
    2133 2 72057594037927941 144115188075856184
    2120 3 72057594037927942 144115188075856184 96
    2110 2 72057594037927942 603
    2106 2 72057594037927942 1 3

    In Native's 'menus.txt'
    Code:
    4 - 4 Statements
    2133 2 72057594037927941 144115188075856184
    2120 3 72057594037927942 144115188075856184 96
    2110 2 72057594037927942 288230376151712346
    2106 2 72057594037927942 1 3

    They're using the index directly, change 603 to your ending item's index + 1, or use the item count at the top.

    If that don't work add the index to 288230376151711744 and try that.

    The number 603 is repeated a couple more times in both lines. You'll need to replace them.

    Since it's diplomacy, you're better off using their module system.

    You can then add your item before 'items_end' in module_items.py. The compiler will update the index for you then

    Where as if you want to change it in the .txt files, you'll need to update the index
  4. How do I add a custom armor I made into Warband

    cheat_find_item in module_game_menus.py

    These 2 lines are in menus.txt
    Code:
    menu_cheat_find_item 0 {!}Current_item_range:_{reg5}_to_{reg6} none 4 2133 2 72057594037927941 144115188075856184 2120 3 72057594037927942 144115188075856184 96 2110 2 72057594037927942 288230376151712346 2106 2 72057594037927942 1 3
     mno_cheat_find_item_next_range  0  {!}Move_to_next_item_range.  6 2105 2 144115188075856184 96 4 0 30 2 144115188075856184 288230376151712346 2133 2 144115188075856184 0 3 0 2060 1 864691128455135257  .  mno_cheat_find_item_choose_this  0  {!}Choose_from_this_range.  9 1532 1 360287970189639684 2120 3 1224979098644774912 144115188075856184 96 2110 2 1224979098644774912 288230376151712346 2121 3 1224979098644774913 1224979098644774912 144115188075856184 6 3 1224979098644774914 0 1224979098644774913 2120 3 1224979098644774915 144115188075856184 1224979098644774914 1535 3 360287970189639684 1224979098644774915 1 3 0 2042 1 360287970189639684  .  mno_camp_action_4  0  {!}Back_to_camp_menu.  1 2060 1 864691128455135255  .

    The structure of menus.txt
    Code:
    [id], [flags], [text], [mesh name], [num of statements/operations], [[operations]], [num of menu options]
        [[option id], [num of operations], [[condition operation]], [option text], [num of operations], [[consequence operation]]]

    The 4 statements in MS
    Code:
    (assign, reg5, "$cheat_find_item_range_begin"),
    (store_add, reg6, "$cheat_find_item_range_begin", max_inventory_items),
    (val_min, reg6, "itm_items_end"),
    (val_sub, reg6, 1),

    The numbers that relate
    Code:
    4 - 4 Statements
    2133 2 72057594037927941 144115188075856184
    2120 3 72057594037927942 144115188075856184 96
    2110 2 72057594037927942 288230376151712346
    2106 2 72057594037927942 1 3

    You're looking for the ending item index in 'item_kinds1.txt'
    288230376151712346 - 288230376151711744 = 602 for 'itm_items_end' in 'item_kinds1.txt'

    Replace 288230376151712346 with 288230376151711744 + your ending items index.

    There's a few instances of 288230376151712346 in both menu lines, replace them with the new value.

    The ending index can be the item count at the top of 'item_kinds1.txt' below 'itemsfile version 3'. Since the script subtracts 1 from the value.
  5. Ranks in module_factions.py

    Thanks for the replies.
    Is the script that recursive mentioned, 'party_get_attached_party_with_rank, or ':attached_party_rank' related to ranks in factions? Or are they used for something else?

    Code:
    # Inside "game_event_simulate_battle" in "module_scripts"
    # center defeated block
    (party_get_num_attached_parties, ":num_attached_parties",  ":root_attacker_party"),
    (try_for_range, ":attached_party_rank", 0, ":num_attached_parties"),
        (party_get_attached_party_with_rank, ":attached_party", ":root_attacker_party", ":attached_party_rank"),
                                                                                            
        (party_get_num_companion_stacks, ":num_stacks", ":attached_party"),                 
        (assign, ":total_size", 0),
    
        (try_for_range, ":i_stack", 0, ":num_stacks"),
            (party_stack_get_size, ":stack_size", ":attached_party", ":i_stack"),
            (val_add, ":total_size", ":stack_size"),
        (try_end), 
    
        . . .
  6. Ranks in module_factions.py

    Does anyone know what the ranks argument does in module_factions.py or how it's structured? Using module system 1.171 Been looking through mods and I don't see any of them using it, factions.txt - I've been looking at these to know if it's being used, I might be wrong
Back
Top Bottom