SP Tutorial Module System Complete Guide to Adding Factions

Currently Viewing (Users: 0, Guests: 1)

MadGuarang

Sergeant
M&BWBNWVC
Best answers
0
Hi! I asked about this on Q&A thread, but kalarhan suggested that I would ask you here. Maybe you had similar problems.

I think that I did exactly as tutorial said but, look at those 3 pictures.

Yes, I can change it manually, but there is more to that. Let me show:
,

Theese are my 3 new factions.

1st picture - kingdom 7 - kingdom town banner -> ("banner_196",0,"map_flag_15", banner_scale,0),
2nd picture - kingdom 8 kingdom town banner -> ("bandit_lair",mcn_no_shadow,"map_bandit_lair", 0.45, 0),
3rd picture - kingdom 9 kingdom town banner ->  ("mirkwood_elf_x3",0,"mirkwood_elf_x3", avatar_scale, snd_gallop, 0.15, 0.173, 0),

now:
icons that are on the towns, that should be kingdom banners, but hey are not. They are 3 icons below: 
Code:
("banner_196",0,"map_flag_15", banner_scale,0),
  ("bandit_lair",mcn_no_shadow,"map_bandit_lair", 0.45, 0),
  ("mirkwood_elf_x3",0,"mirkwood_elf_x3", avatar_scale, snd_gallop, 0.15, 0.173, 0),
this is how it looks from wider perspective:
Code:
("map_flag_kingdom_a",0,"map_flag_kingdom_a", banner_scale,0),
  ("map_flag_kingdom_b",0,"map_flag_kingdom_b", banner_scale,0),
  ("map_flag_kingdom_c",0,"map_flag_kingdom_c", banner_scale,0),
  ("map_flag_kingdom_d",0,"map_flag_kingdom_d", banner_scale,0),
  ("map_flag_kingdom_e",0,"map_flag_kingdom_e", banner_scale,0),
  ("map_flag_kingdom_f",0,"map_flag_kingdom_f", banner_scale,0),
  ("map_flag_kingdom_7",0,"map_flag_kingdom_7", banner_scale,0),
  ("map_flag_kingdom_8",0,"map_flag_kingdom_8", banner_scale,0),
  ("map_flag_kingdom_9",0,"map_flag_kingdom_9", banner_scale,0),
   
  
  
  ("banner_196",0,"map_flag_15", banner_scale,0),
  ("bandit_lair",mcn_no_shadow,"map_bandit_lair", 0.45, 0),
  
  
  #
  ("mirkwood_elf_x3",0,"mirkwood_elf_x3", avatar_scale, snd_gallop, 0.15, 0.173, 0),
  ("generic_knight_x3",0,"generic_knight_x3", avatar_scale, snd_gallop, 0.15, 0.173, 0),
  ("lorien_elf_b_x3",0,"lorien_elf_b_x3", avatar_scale, snd_gallop, 0.15, 0.173, 0), 

What is more: (and more important)

Knights from kingdom 7 have banners from g1 to g10, but other lords do not carry banners. Banners  from h1 to h20, i1 to i20, and j1 to j20.... (as you see at screens) they are transparent.

(Is it because in presentations banner when player can choose banner show also just up to g10)?

This is my files regarding banners:

modules:

constans:
Code:
banner_map_icons_begin = "icon_banner_01"
banner_map_icons_end_minus_one = "icon_banner_196"     #change

banner_scene_props_begin = "spr_banner_a"
banner_scene_props_end_minus_one = "spr_banner_f21"    #change

khergit_banners_begin_offset = 63
khergit_banners_end_offset = 84

sarranid_banners_begin_offset = 105
sarranid_banners_end_offset = 125

kingdom_7_banners_begin_offset = 126
kingdom_7_banners_end_offset = 146

kingdom_8_banners_begin_offset = 147
kingdom_8_banners_end_offset = 167

kingdom_9_banners_begin_offset = 168
kingdom_9_banners_end_offset = 188

banners_end_offset = 196                           


EDIT: updated constanse
module_scripts:

# Assign banners and renown.
# We assume there are enough banners for all kingdom heroes.

      #faction banners
      (faction_set_slot, "fac_kingdom_1", slot_faction_banner, "mesh_banner_kingdom_a"),
      (faction_set_slot, "fac_kingdom_2", slot_faction_banner, "mesh_banner_kingdom_b"),
      (faction_set_slot, "fac_kingdom_3", slot_faction_banner, "mesh_banner_kingdom_c"),
      (faction_set_slot, "fac_kingdom_4", slot_faction_banner, "mesh_banner_kingdom_f"),
      (faction_set_slot, "fac_kingdom_5", slot_faction_banner, "mesh_banner_kingdom_d"),
      (faction_set_slot, "fac_kingdom_6", slot_faction_banner, "mesh_banner_kingdom_e"),
 
  (faction_set_slot, "fac_kingdom_7", slot_faction_banner, "mesh_banner_kingdom_7"), #####################!!!!!!!!
  (faction_set_slot, "fac_kingdom_8", slot_faction_banner, "mesh_banner_kingdom_8"),
  (faction_set_slot, "fac_kingdom_9", slot_faction_banner, "mesh_banner_kingdom_9"),
 

      (try_for_range, ":cur_faction", npc_kingdoms_begin, npc_kingdoms_end),
        (faction_get_slot, ":cur_faction_king", ":cur_faction", slot_faction_leader),
        (faction_get_slot, ":cur_faction_banner", ":cur_faction", slot_faction_banner),
        (val_sub, ":cur_faction_banner", banner_meshes_begin),
        (val_add, ":cur_faction_banner", banner_scene_props_begin),
        (troop_set_slot, ":cur_faction_king", slot_troop_banner_scene_prop, ":cur_faction_banner"),
      (try_end),
      (assign, ":num_khergit_lords_assigned", 0),
      (assign, ":num_sarranid_lords_assigned", 0),
 
  (assign, ":num_kingdom_7_lords_assigned", 0),
  (assign, ":num_kingdom_8_lords_assigned", 0),
  (assign, ":num_kingdom_9_lords_assigned", 0),
 
      (assign, ":num_other_lords_assigned", 0),
           
      (try_for_range, ":kingdom_hero", active_npcs_begin, active_npcs_end),
        (this_or_next|troop_slot_eq, ":kingdom_hero", slot_troop_occupation, slto_kingdom_hero),
        (troop_slot_eq, ":kingdom_hero", slot_troop_occupation, slto_inactive_pretender),
       
        (store_troop_faction, ":kingdom_hero_faction", ":kingdom_hero"),
        (neg|faction_slot_eq, ":kingdom_hero_faction", slot_faction_leader, ":kingdom_hero"),
        (try_begin),
          (eq, ":kingdom_hero_faction", "fac_kingdom_3"), #Khergit Khanate
          (store_add, ":kingdom_3_banners_begin", banner_scene_props_begin, khergit_banners_begin_offset),
          (store_add, ":banner_id", ":kingdom_3_banners_begin", ":num_khergit_lords_assigned"),
          (troop_set_slot, ":kingdom_hero", slot_troop_banner_scene_prop, ":banner_id"),
          (val_add, ":num_khergit_lords_assigned", 1),
        (else_try),
          (eq, ":kingdom_hero_faction", "fac_kingdom_6"), #Sarranid Sultanate
          (store_add, ":kingdom_6_banners_begin", banner_scene_props_begin, sarranid_banners_begin_offset),
          (store_add, ":banner_id", ":kingdom_6_banners_begin", ":num_sarranid_lords_assigned"),
          (troop_set_slot, ":kingdom_hero", slot_troop_banner_scene_prop, ":banner_id"),
          (val_add, ":num_sarranid_lords_assigned", 1),
(else_try),
          (eq, ":kingdom_hero_faction", "fac_kingdom_7"), #digital legion
          (store_add, ":kingdom_7_banners_begin", banner_scene_props_begin, kingdom_7_banners_begin_offset),
          (store_add, ":banner_id", ":kingdom_7_banners_begin", ":num_kingdom_7_lords_assigned"),
          (troop_set_slot, ":kingdom_hero", slot_troop_banner_scene_prop, ":banner_id"),
          (val_add, ":num_kingdom_7_lords_assigned", 1),
(else_try),
          (eq, ":kingdom_hero_faction", "fac_kingdom_8"), #amazon empire
          (store_add, ":kingdom_8_banners_begin", banner_scene_props_begin, kingdom_8_banners_begin_offset),
          (store_add, ":banner_id", ":kingdom_8_banners_begin", ":num_kingdom_8_lords_assigned"),
          (troop_set_slot, ":kingdom_hero", slot_troop_banner_scene_prop, ":banner_id"),
          (val_add, ":num_kingdom_8_lords_assigned", 1),
(else_try),
          (eq, ":kingdom_hero_faction", "fac_kingdom_9"), #morgul thule
          (store_add, ":kingdom_9_banners_begin", banner_scene_props_begin, kingdom_9_banners_begin_offset),
          (store_add, ":banner_id", ":kingdom_9_banners_begin", ":num_kingdom_9_lords_assigned"),
          (troop_set_slot, ":kingdom_hero", slot_troop_banner_scene_prop, ":banner_id"),
          (val_add, ":num_kingdom_9_lords_assigned", 1), 
        (else_try),

          (assign, ":hero_offset", ":num_other_lords_assigned"),
          (try_begin),
            (gt, ":hero_offset", khergit_banners_begin_offset),#Do not add khergit banners to other lords
            (val_add, ":hero_offset", khergit_banners_end_offset),
            (val_sub, ":hero_offset", khergit_banners_begin_offset),
          (try_end),
          (try_begin),
            (gt, ":hero_offset", sarranid_banners_begin_offset),#Do not add sarranid banners to other lords
            (val_add, ":hero_offset", sarranid_banners_end_offset),
            (val_sub, ":hero_offset", sarranid_banners_begin_offset),
          (try_end),
 
  #(try_begin),
          #(gt, ":hero_offset", kingdom_7_banners_begin_offset),#Do not add digital banners to other lords
          #  (val_add, ":hero_offset", kingdom_7_banners_end_offset),
          #  (val_sub, ":hero_offset", kingdom_7_banners_begin_offset),
          #(try_end),
  #(try_begin),
          #  (gt, ":hero_offset", kingdom_8_banners_begin_offset),#Do not add amazon banners to other lords
          #  (val_add, ":hero_offset", kingdom_8_banners_end_offset),
          #  (val_sub, ":hero_offset", kingdom_8_banners_begin_offset),
          #(try_end),
  #(try_begin),
          # (gt, ":hero_offset", kingdom_9_banners_begin_offset),#Do not add morgul banners to other lords
          # (val_add, ":hero_offset", kingdom_9_banners_end_offset),
          # (val_sub, ":hero_offset", kingdom_9_banners_begin_offset),
          #(try_end),
 
          (store_add, ":banner_id", banner_scene_props_begin, ":hero_offset"),
          (troop_set_slot, ":kingdom_hero", slot_troop_banner_scene_prop, ":banner_id"),
          (val_add, ":num_other_lords_assigned", 1),
        (try_end),
        (try_begin),
          (this_or_next|lt, ":banner_id", banner_scene_props_begin),
          (gt, ":banner_id", banner_scene_props_end_minus_one),
          (display_message, "@{!}ERROR: Not enough banners for heroes!"),
        (try_end),

module_meshes:
Code:
  ("banner_f20", 0, "banner_f20", 0, 0, 0, -90, 0, 0, 1, 1, 1),

  ("banner_g01", 0, "banner_g01", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_g02", 0, "banner_g02", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_g03", 0, "banner_g03", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_g04", 0, "banner_g04", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_g05", 0, "banner_g05", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_g06", 0, "banner_g06", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_g07", 0, "banner_g07", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_g08", 0, "banner_g08", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_g09", 0, "banner_g09", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_g10", 0, "banner_g10", 0, 0, 0, -90, 0, 0, 1, 1, 1),

  ("banner_h01", 0, "banner_h01", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_h02", 0, "banner_h02", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_h03", 0, "banner_h03", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_h04", 0, "banner_h04", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_h05", 0, "banner_h05", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_h06", 0, "banner_h06", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_h07", 0, "banner_h07", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_h08", 0, "banner_h08", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_h09", 0, "banner_h09", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_h10", 0, "banner_h10", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_h10", 0, "banner_h10", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_h11", 0, "banner_h11", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_h12", 0, "banner_h12", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_h13", 0, "banner_h13", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_h14", 0, "banner_h14", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_h15", 0, "banner_h15", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_h16", 0, "banner_h16", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_h17", 0, "banner_h17", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_h18", 0, "banner_h18", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_h19", 0, "banner_h19", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_h20", 0, "banner_h20", 0, 0, 0, -90, 0, 0, 1, 1, 1),  
  
  ("banner_i01", 0, "banner_i01", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_i02", 0, "banner_i02", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_i03", 0, "banner_i03", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_i04", 0, "banner_i04", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_i05", 0, "banner_i05", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_i06", 0, "banner_i06", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_i07", 0, "banner_i07", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_i08", 0, "banner_i08", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_i09", 0, "banner_i09", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_i10", 0, "banner_i10", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_i10", 0, "banner_i10", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_i11", 0, "banner_i11", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_i12", 0, "banner_i12", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_i13", 0, "banner_i13", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_i14", 0, "banner_i14", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_i15", 0, "banner_i15", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_i16", 0, "banner_i16", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_i17", 0, "banner_i17", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_i18", 0, "banner_i18", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_i19", 0, "banner_i19", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_i20", 0, "banner_i20", 0, 0, 0, -90, 0, 0, 1, 1, 1), 
  
  ("banner_j01", 0, "banner_j01", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_j02", 0, "banner_j02", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_j03", 0, "banner_j03", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_j04", 0, "banner_j04", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_j05", 0, "banner_j05", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_j06", 0, "banner_j06", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_j07", 0, "banner_j07", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_j08", 0, "banner_j08", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_j09", 0, "banner_j09", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_j10", 0, "banner_j10", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_j10", 0, "banner_j10", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_j11", 0, "banner_j11", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_j12", 0, "banner_j12", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_j13", 0, "banner_j13", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_j14", 0, "banner_j14", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_j15", 0, "banner_j15", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_j16", 0, "banner_j16", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_j17", 0, "banner_j17", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_j18", 0, "banner_j18", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_j19", 0, "banner_j19", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_j20", 0, "banner_j20", 0, 0, 0, -90, 0, 0, 1, 1, 1), 
  
  
  
  ("banner_kingdom_a", 0, "banner_kingdom_a", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_kingdom_b", 0, "banner_kingdom_b", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_kingdom_c", 0, "banner_kingdom_c", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_kingdom_d", 0, "banner_kingdom_d", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_kingdom_e", 0, "banner_kingdom_e", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_kingdom_f", 0, "banner_kingdom_f", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  #new factions below 
  ("banner_kingdom_7", 0, "banner_kingdom_7", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_kingdom_8", 0, "banner_kingdom_8", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_kingdom_9", 0, "banner_kingdom_9", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("banner_f21", 0, "banner_a15", 0, 0, 0, -90, 0, 0, 1, 1, 1),

and more:

Code:
 ("arms_f20", 0, "banner_f20", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  

  ("arms_g01", 0, "banner_g01", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_g02", 0, "banner_g02", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_g03", 0, "banner_g03", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_g04", 0, "banner_g04", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_g05", 0, "banner_g05", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_g06", 0, "banner_g06", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_g07", 0, "banner_g07", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_g08", 0, "banner_g08", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_g09", 0, "banner_g09", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_g10", 0, "banner_g10", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  
  ("arms_h01", 0, "banner_h01", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_h02", 0, "banner_h02", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_h03", 0, "banner_h03", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_h04", 0, "banner_h04", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_h05", 0, "banner_h05", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_h06", 0, "banner_h06", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_h07", 0, "banner_h07", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_h08", 0, "banner_h08", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_h09", 0, "banner_h09", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_h10", 0, "banner_h10", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_h11", 0, "banner_h11", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_h12", 0, "banner_h12", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_h13", 0, "banner_h13", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_h14", 0, "banner_h14", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_h15", 0, "banner_h15", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_h16", 0, "banner_h16", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_h17", 0, "banner_h17", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_h18", 0, "banner_h18", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_h19", 0, "banner_h19", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_h20", 0, "banner_h20", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  
  ("arms_i01", 0, "banner_i01", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_i02", 0, "banner_i02", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_i03", 0, "banner_i03", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_i04", 0, "banner_i04", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_i05", 0, "banner_i05", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_i06", 0, "banner_i06", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_i07", 0, "banner_i07", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_i08", 0, "banner_i08", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_i09", 0, "banner_i09", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_i10", 0, "banner_i10", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_i11", 0, "banner_i11", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_i12", 0, "banner_i12", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_i13", 0, "banner_i13", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_i14", 0, "banner_i14", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_i15", 0, "banner_i15", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_i16", 0, "banner_i16", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_i17", 0, "banner_i17", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_i18", 0, "banner_i18", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_i19", 0, "banner_i19", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_i20", 0, "banner_i20", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  
  ("arms_j01", 0, "banner_j01", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_j02", 0, "banner_j02", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_j03", 0, "banner_j03", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_j04", 0, "banner_j04", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_j05", 0, "banner_j05", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_j06", 0, "banner_j06", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_j07", 0, "banner_j07", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_j08", 0, "banner_j08", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_j09", 0, "banner_j09", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_j10", 0, "banner_j10", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_j11", 0, "banner_j11", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_j12", 0, "banner_j12", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_j13", 0, "banner_j13", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_j14", 0, "banner_j14", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_j15", 0, "banner_j15", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_j16", 0, "banner_j16", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_j17", 0, "banner_j17", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_j18", 0, "banner_j18", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_j19", 0, "banner_j19", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_j20", 0, "banner_j20", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  
  
  ("arms_kingdom_a", 0, "banner_kingdom_a", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_kingdom_b", 0, "banner_kingdom_b", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_kingdom_c", 0, "banner_kingdom_c", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_kingdom_d", 0, "banner_kingdom_d", 0, 0, 0, -90, 0, 0, 1, 1, 1),
  ("arms_kingdom_e", 0, "banner_kingdom_e", 0, 0, 0, -90, 0, 0, 1, 1, 1),  
  ("arms_kingdom_f", 0, "banner_kingdom_f", 0, 0, 0, -90, 0, 0, 1, 1, 1),  
  ("arms_kingdom_7", 0, "banner_kingdom_7", 0, 0, 0, -90, 0, 0, 1, 1, 1),  
  ("arms_kingdom_8", 0, "banner_kingdom_7", 0, 0, 0, -90, 0, 0, 1, 1, 1),  
  ("arms_kingdom_9", 0, "banner_kingdom_7", 0, 0, 0, -90, 0, 0, 1, 1, 1),  
  
  
  
  ("arms_f21", 0, "banner_a15", 0, 0, 0, -90, 0, 0, 1, 1, 1),

modules_map_icon:

Code:
 ("banner_125",0,"map_flag_f20", banner_scale,0),

  ("banner_126",0,"map_flag_g01", banner_scale,0),
  ("banner_127",0,"map_flag_g02", banner_scale,0),
  ("banner_128",0,"map_flag_g03", banner_scale,0),
  ("banner_129",0,"map_flag_g04", banner_scale,0),
  ("banner_130",0,"map_flag_g05", banner_scale,0),
  ("banner_131",0,"map_flag_g06", banner_scale,0),
  ("banner_132",0,"map_flag_g07", banner_scale,0),
  ("banner_133",0,"map_flag_g08", banner_scale,0),
  ("banner_134",0,"map_flag_g09", banner_scale,0),
  ("banner_135",0,"map_flag_g10", banner_scale,0),
  
  ("banner_136",0,"map_flag_h01", banner_scale,0),
  ("banner_137",0,"map_flag_h02", banner_scale,0),
  ("banner_138",0,"map_flag_h03", banner_scale,0),
  ("banner_139",0,"map_flag_h04", banner_scale,0),
  ("banner_140",0,"map_flag_h05", banner_scale,0),
  ("banner_141",0,"map_flag_h06", banner_scale,0),
  ("banner_142",0,"map_flag_h07", banner_scale,0),
  ("banner_143",0,"map_flag_h08", banner_scale,0),
  ("banner_144",0,"map_flag_h09", banner_scale,0),
  ("banner_145",0,"map_flag_h10", banner_scale,0),
  ("banner_146",0,"map_flag_h11", banner_scale,0),
  ("banner_147",0,"map_flag_h12", banner_scale,0),
  ("banner_148",0,"map_flag_h13", banner_scale,0),
  ("banner_149",0,"map_flag_h14", banner_scale,0),
  ("banner_150",0,"map_flag_h15", banner_scale,0),
  ("banner_151",0,"map_flag_h16", banner_scale,0),
  ("banner_152",0,"map_flag_h17", banner_scale,0),
  ("banner_153",0,"map_flag_h18", banner_scale,0),
  ("banner_154",0,"map_flag_h19", banner_scale,0),
  ("banner_155",0,"map_flag_h20", banner_scale,0),
  
  ("banner_156",0,"map_flag_i01", banner_scale,0),
  ("banner_157",0,"map_flag_i02", banner_scale,0),
  ("banner_158",0,"map_flag_i03", banner_scale,0),
  ("banner_159",0,"map_flag_i04", banner_scale,0),
  ("banner_160",0,"map_flag_i05", banner_scale,0),
  ("banner_161",0,"map_flag_i06", banner_scale,0),
  ("banner_162",0,"map_flag_i07", banner_scale,0),
  ("banner_163",0,"map_flag_i08", banner_scale,0),
  ("banner_164",0,"map_flag_i09", banner_scale,0),
  ("banner_165",0,"map_flag_i10", banner_scale,0),
  ("banner_166",0,"map_flag_i11", banner_scale,0),
  ("banner_167",0,"map_flag_i12", banner_scale,0),
  ("banner_168",0,"map_flag_i13", banner_scale,0),
  ("banner_169",0,"map_flag_i14", banner_scale,0),
  ("banner_170",0,"map_flag_i15", banner_scale,0),
  ("banner_171",0,"map_flag_i16", banner_scale,0),
  ("banner_172",0,"map_flag_i17", banner_scale,0),
  ("banner_173",0,"map_flag_i18", banner_scale,0),
  ("banner_174",0,"map_flag_i19", banner_scale,0),
  ("banner_175",0,"map_flag_i20", banner_scale,0),
  
  ("banner_176",0,"map_flag_j01", banner_scale,0),
  ("banner_177",0,"map_flag_j02", banner_scale,0),
  ("banner_178",0,"map_flag_j03", banner_scale,0),
  ("banner_179",0,"map_flag_j04", banner_scale,0),
  ("banner_180",0,"map_flag_j05", banner_scale,0),
  ("banner_181",0,"map_flag_j06", banner_scale,0),
  ("banner_182",0,"map_flag_j07", banner_scale,0),
  ("banner_183",0,"map_flag_j08", banner_scale,0),
  ("banner_184",0,"map_flag_j09", banner_scale,0),
  ("banner_185",0,"map_flag_j10", banner_scale,0),
  ("banner_186",0,"map_flag_j11", banner_scale,0),
  ("banner_187",0,"map_flag_j12", banner_scale,0),
  ("banner_188",0,"map_flag_j13", banner_scale,0),
  ("banner_189",0,"map_flag_j14", banner_scale,0),
  ("banner_190",0,"map_flag_j15", banner_scale,0),
  ("banner_191",0,"map_flag_j16", banner_scale,0),
  ("banner_192",0,"map_flag_j17", banner_scale,0),
  ("banner_193",0,"map_flag_j18", banner_scale,0),
  ("banner_194",0,"map_flag_j19", banner_scale,0),
  ("banner_195",0,"map_flag_j20", banner_scale,0),
  
  ("map_flag_kingdom_a",0,"map_flag_kingdom_a", banner_scale,0),
  ("map_flag_kingdom_b",0,"map_flag_kingdom_b", banner_scale,0),
  ("map_flag_kingdom_c",0,"map_flag_kingdom_c", banner_scale,0),
  ("map_flag_kingdom_d",0,"map_flag_kingdom_d", banner_scale,0),
  ("map_flag_kingdom_e",0,"map_flag_kingdom_e", banner_scale,0),
  ("map_flag_kingdom_f",0,"map_flag_kingdom_f", banner_scale,0),
  ("map_flag_kingdom_7",0,"map_flag_kingdom_7", banner_scale,0),
  ("map_flag_kingdom_8",0,"map_flag_kingdom_8", banner_scale,0),
  ("map_flag_kingdom_9",0,"map_flag_kingdom_9", banner_scale,0),
   
  
  
  ("banner_196",0,"map_flag_15", banner_scale,0),
  ("bandit_lair",mcn_no_shadow,"map_bandit_lair", 0.45, 0),
  
  
  #
  ("mirkwood_elf_x3",0,"mirkwood_elf_x3", avatar_scale, snd_gallop, 0.15, 0.173, 0),
  ("generic_knight_x3",0,"generic_knight_x3", avatar_scale, snd_gallop, 0.15, 0.173, 0),
  ("lorien_elf_b_x3",0,"lorien_elf_b_x3", avatar_scale, snd_gallop, 0.15, 0.173, 0),   
  ("orc_tribal_x4",0,"orc_tribal_x4", avatar_scale, snd_gallop, 0.15, 0.173, 0),
  ("cataphract_x3",0,"cataphract_x3", avatar_scale, snd_gallop, 0.15, 0.173, 0),
  ("wargrider_walk_x4",0,"wargrider_walk_x4", avatar_scale, snd_gallop, 0.15, 0.173, 0),
  ("theoden_x3",0,"theoden_x3", avatar_scale, snd_gallop, 0.15, 0.173, 0),
  ("knight_rohan_x3",0,"knight_rohan_x3", avatar_scale, snd_gallop, 0.15, 0.173, 0),


modules_scene_props:

Code:
  ("banner_f20", 0, "banner_f20", "0", []),
 
 
  ("banner_g01", 0, "banner_g01", "0", []),
  ("banner_g02", 0, "banner_g02", "0", []),
  ("banner_g03", 0, "banner_g03", "0", []),
  ("banner_g04", 0, "banner_g04", "0", []),
  ("banner_g05", 0, "banner_g05", "0", []),
  ("banner_g06", 0, "banner_g06", "0", []),
  ("banner_g07", 0, "banner_g07", "0", []),
  ("banner_g08", 0, "banner_g08", "0", []),
  ("banner_g09", 0, "banner_g09", "0", []),
  ("banner_g10", 0, "banner_g10", "0", []),
  
  ("banner_h01", 0, "banner_h01", "0", []),
  ("banner_h02", 0, "banner_h02", "0", []),
  ("banner_h03", 0, "banner_h03", "0", []),
  ("banner_h04", 0, "banner_h04", "0", []),
  ("banner_h05", 0, "banner_h05", "0", []),
  ("banner_h06", 0, "banner_h06", "0", []),
  ("banner_h07", 0, "banner_h07", "0", []),
  ("banner_h08", 0, "banner_h08", "0", []),
  ("banner_h09", 0, "banner_h09", "0", []),
  ("banner_h10", 0, "banner_h10", "0", []),
  ("banner_h11", 0, "banner_h11", "0", []),
  ("banner_h12", 0, "banner_h12", "0", []),
  ("banner_h13", 0, "banner_h13", "0", []),
  ("banner_h14", 0, "banner_h14", "0", []),
  ("banner_h15", 0, "banner_h15", "0", []),
  ("banner_h16", 0, "banner_h16", "0", []),
  ("banner_h17", 0, "banner_h17", "0", []),
  ("banner_h18", 0, "banner_h18", "0", []),
  ("banner_h19", 0, "banner_h19", "0", []),
  ("banner_h20", 0, "banner_h20", "0", []),
  
  ("banner_i01", 0, "banner_i01", "0", []),
  ("banner_i02", 0, "banner_i02", "0", []),
  ("banner_i03", 0, "banner_i03", "0", []),
  ("banner_i04", 0, "banner_i04", "0", []),
  ("banner_i05", 0, "banner_i05", "0", []),
  ("banner_i06", 0, "banner_i06", "0", []),
  ("banner_i07", 0, "banner_i07", "0", []),
  ("banner_i08", 0, "banner_i08", "0", []),
  ("banner_i09", 0, "banner_i09", "0", []),
  ("banner_i10", 0, "banner_i10", "0", []),
  ("banner_i11", 0, "banner_i11", "0", []),
  ("banner_i12", 0, "banner_i12", "0", []),
  ("banner_i13", 0, "banner_i13", "0", []),
  ("banner_i14", 0, "banner_i14", "0", []),
  ("banner_i15", 0, "banner_i15", "0", []),
  ("banner_i16", 0, "banner_i16", "0", []),
  ("banner_i17", 0, "banner_i17", "0", []),
  ("banner_i18", 0, "banner_i18", "0", []),
  ("banner_i19", 0, "banner_i19", "0", []),
  ("banner_i20", 0, "banner_i20", "0", []),
  
  ("banner_j01", 0, "banner_j01", "0", []),
  ("banner_j02", 0, "banner_j02", "0", []),
  ("banner_j03", 0, "banner_j03", "0", []),
  ("banner_j04", 0, "banner_j04", "0", []),
  ("banner_j05", 0, "banner_j05", "0", []),
  ("banner_j06", 0, "banner_j06", "0", []),
  ("banner_j07", 0, "banner_j07", "0", []),
  ("banner_j08", 0, "banner_j08", "0", []),
  ("banner_j09", 0, "banner_j09", "0", []),
  ("banner_j10", 0, "banner_j10", "0", []),
  ("banner_j11", 0, "banner_j11", "0", []),
  ("banner_j12", 0, "banner_j12", "0", []),
  ("banner_j13", 0, "banner_j13", "0", []),
  ("banner_j14", 0, "banner_j14", "0", []),
  ("banner_j15", 0, "banner_j15", "0", []),
  ("banner_j16", 0, "banner_j16", "0", []),
  ("banner_j17", 0, "banner_j17", "0", []),
  ("banner_j18", 0, "banner_j18", "0", []),
  ("banner_j19", 0, "banner_j19", "0", []),
  ("banner_j20", 0, "banner_j20", "0", []),

  ("banner_kingdom_a", 0, "banner_kingdom_a", "0", []),
  ("banner_kingdom_b", 0, "banner_kingdom_b", "0", []),
  ("banner_kingdom_c", 0, "banner_kingdom_c", "0", []),
  ("banner_kingdom_d", 0, "banner_kingdom_d", "0", []),
  ("banner_kingdom_e", 0, "banner_kingdom_e", "0", []),
  ("banner_kingdom_f", 0, "banner_kingdom_f", "0", []),
  ("banner_kingdom_7", 0, "banner_kingdom_7", "0", []),
  ("banner_kingdom_8", 0, "banner_kingdom_8", "0", []),
  ("banner_kingdom_9", 0, "banner_kingdom_9", "0", []),
   
  
  ("banner_f21", 0, "banner_a15", "0", []),

Please if somene could even point me to any problem it is caused, I am working on it from monday, I have REDONE everything from scratch 2 TIMES (this is 3rd) and I am not any closer to solution....

Is there anybody who succesfully did this tutorial? Or maybe someone who had similar error?



EDIT: PARTIALLY SOLVED:
I tried everything but one. Presentations. After adding banners for 3 new factions I also wanted to give a player chance to choose from theese new ones. And ONLY after that new lords appeared with new banners.

If somebody would have similar problem you should first find module_presentations...
then:
Code:
(ti_on_presentation_event_state_change,
       [(store_trigger_param_1, ":object"),
        (try_begin),
          (eq, ":object", "$g_presentation_obj_banner_selection_1"),
          (val_add, "$g_presentation_page_no", 1),
          (val_mod, "$g_presentation_page_no", 8),
          (start_presentation, "prsnt_banner_selection"),
        (else_try),
          (store_sub, ":selected_banner", ":object", "$g_presentation_banner_start"),
          (store_mul, ":page_adder", 16, "$g_presentation_page_no"),
          (val_add, ":selected_banner", ":page_adder"),
          (store_add, ":selected_banner_map_icon", ":selected_banner", banner_map_icons_begin),
          (party_set_banner_icon, "p_main_party", ":selected_banner_map_icon"),
          (store_add, ":selected_banner_spr", ":selected_banner", banner_scene_props_begin),
          (troop_set_slot, "trp_player", slot_troop_banner_scene_prop, ":selected_banner_spr"),

change it to:

Code:
 (val_add, "$g_presentation_page_no", 1),
          (val_mod, "$g_presentation_page_no", 12),
- so this is "just" a question of creating more pages for presentation for banners.

So ***lovely stupid. But it worked for me.
 

sir_patrick1

Recruit
Best answers
0
Hi, Thank you for this great guide. I need some help however. My files are set up differently, for instance, My faction file has this.
0 fac_culture_6 {!}culture_6 0 11184810
0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.900000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000

What am I suppose to do with something like that? I can't figure out why its like that. I'm using the version 1.172 of M&B Warband. Is there something I'm suppose to use to convert this to what the guide had in it?

Please Help! Thank you.

I've been trying to make a new faction for a few days now.
 
Best answers
0
First of all thanks for the tutorial.

Two things for Viking Conquest how do you determine or how do you put religion to a faction and to a lord?
Second Kings have family but in their notes doesnt appear nor childs, nor wives nor brothers etc
 

kalarhan

Python Saint
Count
WBNWVCWF&S
Best answers
33
JurgenJuggernaut said:
Viking Conquest
VC is not covered by this guide, as they added new things that are not part of Native Vanilla. You will need to look for them yourself (test and error) or wait for a new tutorial (which is unlikely after 3 years of release).

You can still use it as a base to help you understand some of the things.
 
Best answers
0
I looked into warband and it seems kings(leaders) of every faction if they have family (sons/wife) isnt displayed in the characters/Journal. So even if they have they dont appear there.

Regarding religion for Viking conquest, if it is usefull to anyone here is a way to "chose" the religion

#reinos paganos y cristianos
      (try_for_range, ":faction_no", kingdoms_begin, kingdoms_end),
        (this_or_next|is_between, ":faction_no", "fac_kingdom_1", "fac_kingdom_5"), #Excluding player kingdom
        (this_or_next|is_between, ":faction_no", "fac_kingdom_24", "fac_kingdom_26"), #Added this line to make
kingdoms from 24 to 26 pagans, it seems that by default every kingdom is christian

        (eq, ":faction_no", "fac_kingdom_8"),
        (faction_set_slot, ":faction_no", kingdom_religion_pagana, 1),
      (else_try),
        (faction_set_slot, ":faction_no", kingdom_religion_cristiana, 1),
      (try_end),
      #JuJu70 -religion setup
      (try_for_range, ":cur_troop", original_kingdom_heroes_begin,heroes_end),
        (store_faction_of_troop, ":faction_no", ":cur_troop"),
        (faction_get_slot, ":religion", ":faction_no", kingdom_religion_cristiana),
        (try_begin),
          (eq, ":religion", 1),
          (troop_set_slot, ":cur_troop", slot_troop_religion, 1), # christian
        (else_try),
          (troop_set_slot, ":cur_troop", slot_troop_religion, 2), #pagan
        (try_end),
      (try_end),
    (troop_set_slot, "trp_knight_8_1", slot_troop_religion, 1), [size=10pt]# christian this ones are exceptions from northumbrya all the others are pagans[/size]
      (troop_set_slot, "trp_knight_8_3", slot_troop_religion, 1), # christian
      (troop_set_slot, "trp_knight_8_5", slot_troop_religion, 1), # christian
      (troop_set_slot, "trp_knight_8_6", slot_troop_religion, 1), # christian
      (troop_set_slot, "trp_kingdom_26_lord", slot_troop_religion, 2),
    (troop_set_slot, "trp_knight_26_1", slot_troop_religion, 2),  #Dont know why but kingdom 26 was still christian, so specified the lord and the king of that faction

      #chief acaba

1 for christian
2 for pagan
:party:
 

Vallixx

Regular
Best answers
0
Jacobhinds said:
As long as you change the troop ID, yes.
One other question, do we create the banners with a program like Photoshop? If so, what are the dimensions.
 

Vallixx

Regular
Best answers
0
Jacobhinds said:
Just copy the dimensions of an existing banner texture and save the file as a .dds in dxt1 format. It doesn't matter what program you use.
Gotcha, thank you.
 

Vallixx

Regular
Best answers
0
Sorry, I am back, I followed the instructions here, but when I press the batch file, I get errors,
Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\module_troops.py", line 619, in <module>
    [itm_arrows,itm_arrows,itm_nomad_bow,itm_arabian_sword_a,itm_hide_armor,itm_sarranid_boots_b,itm_sarranid_helmet1,itm_sarranid_warrior_cap,itm_turban,itm_desert_turban],
NameError: name 'itm_hide_armor' is not defined
Traceback (most recent call last):
  File "process_global_variables.py", line 12, in <module>
    from process_operations import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\module_troops.py", line 619, in <module>
    [itm_arrows,itm_arrows,itm_nomad_bow,itm_arabian_sword_a,itm_hide_armor,itm_sarranid_boots_b,itm_sarranid_helmet1,itm_sarranid_warrior_cap,itm_turban,itm_desert_turban],
NameError: name 'itm_hide_armor' is not defined
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Traceback (most recent call last):
  File "process_map_icons.py", line 6, in <module>
    from process_operations import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\module_troops.py", line 619, in <module>
    [itm_arrows,itm_arrows,itm_nomad_bow,itm_arabian_sword_a,itm_hide_armor,itm_sarranid_boots_b,itm_sarranid_helmet1,itm_sarranid_warrior_cap,itm_turban,itm_desert_turban],
NameError: name 'itm_hide_armor' is not defined
Traceback (most recent call last):
  File "process_factions.py", line 2, in <module>
    from module_factions import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\module_factions.py", line 51
    ("kingdom_7",  "New Calradic Empire", 0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.10),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 1C1C1C),
                                                                                                                                                                                    ^
SyntaxError: invalid syntax
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 66, in <module>
    from process_operations import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\module_troops.py", line 619, in <module>
    [itm_arrows,itm_arrows,itm_nomad_bow,itm_arabian_sword_a,itm_hide_armor,itm_sarranid_boots_b,itm_sarranid_helmet1,itm_sarranid_warrior_cap,itm_turban,itm_desert_turban],
NameError: name 'itm_hide_armor' is not defined
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\module_troops.py", line 619, in <module>
    [itm_arrows,itm_arrows,itm_nomad_bow,itm_arabian_sword_a,itm_hide_armor,itm_sarranid_boots_b,itm_sarranid_helmet1,itm_sarranid_warrior_cap,itm_turban,itm_desert_turban],
NameError: name 'itm_hide_armor' is not defined
Traceback (most recent call last):
  File "process_troops.py", line 4, in <module>
    from module_troops import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\module_troops.py", line 619, in <module>
    [itm_arrows,itm_arrows,itm_nomad_bow,itm_arabian_sword_a,itm_hide_armor,itm_sarranid_boots_b,itm_sarranid_helmet1,itm_sarranid_warrior_cap,itm_turban,itm_desert_turban],
NameError: name 'itm_hide_armor' is not defined
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\module_troops.py", line 619, in <module>
    [itm_arrows,itm_arrows,itm_nomad_bow,itm_arabian_sword_a,itm_hide_armor,itm_sarranid_boots_b,itm_sarranid_helmet1,itm_sarranid_warrior_cap,itm_turban,itm_desert_turban],
NameError: name 'itm_hide_armor' is not defined
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\module_troops.py", line 619, in <module>
    [itm_arrows,itm_arrows,itm_nomad_bow,itm_arabian_sword_a,itm_hide_armor,itm_sarranid_boots_b,itm_sarranid_helmet1,itm_sarranid_warrior_cap,itm_turban,itm_desert_turban],
NameError: name 'itm_hide_armor' is not defined
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\module_troops.py", line 619, in <module>
    [itm_arrows,itm_arrows,itm_nomad_bow,itm_arabian_sword_a,itm_hide_armor,itm_sarranid_boots_b,itm_sarranid_helmet1,itm_sarranid_warrior_cap,itm_turban,itm_desert_turban],
NameError: name 'itm_hide_armor' is not defined
Traceback (most recent call last):
  File "process_party_tmps.py", line 2, in <module>
    from module_party_templates import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\module_party_templates.py", line 123, in <module>
    ("kingdom_7_reinforcements_a", "{!}kingdom_7_reinforcements_a", 0, 0, fac_commoners, 0, [(trp_imperial_footman,5,10),(trp_imperial_recruit,2,42)]),
NameError: name 'trp_imperial_footman' is not defined
Traceback (most recent call last):
  File "process_parties.py", line 6, in <module>
    from process_operations import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\module_troops.py", line 619, in <module>
    [itm_arrows,itm_arrows,itm_nomad_bow,itm_arabian_sword_a,itm_hide_armor,itm_sarranid_boots_b,itm_sarranid_helmet1,itm_sarranid_warrior_cap,itm_turban,itm_desert_turban],
NameError: name 'itm_hide_armor' is not defined
Exporting quest data...
Exporting info_page data...
Traceback (most recent call last):
  File "process_scripts.py", line 7, in <module>
    from process_operations import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\module_troops.py", line 619, in <module>
    [itm_arrows,itm_arrows,itm_nomad_bow,itm_arabian_sword_a,itm_hide_armor,itm_sarranid_boots_b,itm_sarranid_helmet1,itm_sarranid_warrior_cap,itm_turban,itm_desert_turban],
NameError: name 'itm_hide_armor' is not defined
Traceback (most recent call last):
  File "process_mission_tmps.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\module_troops.py", line 619, in <module>
    [itm_arrows,itm_arrows,itm_nomad_bow,itm_arabian_sword_a,itm_hide_armor,itm_sarranid_boots_b,itm_sarranid_helmet1,itm_sarranid_warrior_cap,itm_turban,itm_desert_turban],
NameError: name 'itm_hide_armor' is not defined
Traceback (most recent call last):
  File "process_game_menus.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\module_troops.py", line 619, in <module>
    [itm_arrows,itm_arrows,itm_nomad_bow,itm_arabian_sword_a,itm_hide_armor,itm_sarranid_boots_b,itm_sarranid_helmet1,itm_sarranid_warrior_cap,itm_turban,itm_desert_turban],
NameError: name 'itm_hide_armor' is not defined
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\module_troops.py", line 619, in <module>
    [itm_arrows,itm_arrows,itm_nomad_bow,itm_arabian_sword_a,itm_hide_armor,itm_sarranid_boots_b,itm_sarranid_helmet1,itm_sarranid_warrior_cap,itm_turban,itm_desert_turban],
NameError: name 'itm_hide_armor' is not defined
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\module_troops.py", line 619, in <module>
    [itm_arrows,itm_arrows,itm_nomad_bow,itm_arabian_sword_a,itm_hide_armor,itm_sarranid_boots_b,itm_sarranid_helmet1,itm_sarranid_warrior_cap,itm_turban,itm_desert_turban],
NameError: name 'itm_hide_armor' is not defined
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\fehr3\Desktop\Module_system 1.171\module_troops.py", line 619, in <module>
    [itm_arrows,itm_arrows,itm_nomad_bow,itm_arabian_sword_a,itm_hide_armor,itm_sarranid_boots_b,itm_sarranid_helmet1,itm_sarranid_warrior_cap,itm_turban,itm_desert_turban],
NameError: name 'itm_hide_armor' is not defined
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .
I also somehow broke my entire warband, everytime it loads it crashes. I touched nothing but the module like this tutorial instructed, could I please have some assistance?
 

NPC99

Baron
M&BWBWF&SVC
Best answers
26
Vallixx said:
Sorry, I am back, I followed the instructions here, but when I press the batch file, I get ...

NameError: name 'itm_hide_armor' is not defined
Says it can't find hide_armor in your module_items.py. Either it's missing or spelt differently in that file.
 

Vallixx

Regular
Best answers
0
NPC99 said:
Vallixx said:
Sorry, I am back, I followed the instructions here, but when I press the batch file, I get ...

NameError: name 'itm_hide_armor' is not defined
Says it can't find hide_armor in your module_items.py. Either it's missing or spelt differently in that file.
I am getting NameError: fac_kingdom_7 is not defined, but I do have it in module_factions? Is this also an error?

  File "C:\Users\fehr3\Desktop\Module_system 1.171\module_troops.py", line 649, in <module>
    ["imperial_recruit","imperial Recruit","imperial recruits",tf_guarantee_boots|tf_guarantee_armor,0,0,fac_kingdom_7,
 

kalarhan

Python Saint
Count
WBNWVCWF&S
Best answers
33
Vallixx said:
I am getting NameError: fac_kingdom_7 is not defined, but I do have it in module_factions? Is this also an error?
the process to add new entities like a faction, troop, item, ...

1) create the entity (like a new faction on module_factions.py)
2) compile your code (run the .bat)
3) use the new faction on another file, like on module_troops.py, module_scripts.py, etc
4) compile your code again
5) play
 

zidozido

Regular
Best answers
0
hello i dont want to create new towns i want to re distrbute towns , villges castles betwwen factions how can i do it ?
edit i knew now thanks
 

sir_patrick1

Recruit
Best answers
0
I tried your steps and the steps from the other tutorial link you provided, but something is very wrong. Not only is the merchant at the start not the merchant, its some other character and other times a combat unit, which breaks the game, but the map is all messed up. Some factions have one town on one side or map and one on the other, not to mention but the villages of the new faction (which aren't assigned to it) don't have any recruits EVER. Also the new town nor villages isn't even showing up on the map I don't know why. Someone help please! I am new at modding, so please bear with me. I apologize for any confusion.

The faction is there, but the new town and villages are not. I followed both guilds.

Otherwise, its a great guide.
 

zidozido

Regular
Best answers
0
hey i am using hispainia as a base for my mod and in my mod almohds have 20 lords or less but in  hispainia they are 45 so i deleted them all and compiled to see what happens it said messing from trp_knight_6_1 to trp_knight_6_45 so if i want to rewrite them i need to rewrite 45 lord or 20 ? and if i want them 20 only how to do it which module file should i go to and what to change ? thanks in advance
 

Captain_Sheep

Recruit
Best answers
0
Yeah,hi
I have done the very first step of adding the faction in the code (kingdom_7) however it dosen't appear in game nor does it appear in my troop editor (morphgs)