OPENBRF error: cannot find Material 0

Users who are viewing this thread

snouz

Sergeant Knight
Google returns exactly 0 result for this error.

In OpenBRF, when I scan module for error, it gives me 4 times:

"Missing in txt: cannot find Material 0, referred in 'tableau_materials.txt'"

Here is module_tableau_materials.py

Code:
tableaus = [
  ("game_character_sheet", 0, "tableau_with_transparency", 1024, 1024, 0, 0, 266, 532,
   [
       (store_script_param, ":troop_no", 1),
       (cur_tableau_set_background_color, 0xFF888888),
       (cur_tableau_set_ambient_light, 10,11,15),
       (set_fixed_point_multiplier, 100),
       (cur_tableau_set_camera_parameters, 0, 40, 40, 0, 100000),

       (init_position, pos1),
       (position_set_z, pos1, 100),
       (position_set_x, pos1, -20),
       (position_set_y, pos1, -20),
       (cur_tableau_add_tableau_mesh, "tableau_troop_character_color", ":troop_no", pos1, 0, 0),
       (position_set_z, pos1, 200),
       (cur_tableau_add_tableau_mesh, "tableau_troop_character_alpha_mask", ":troop_no", pos1, 0, 0),
       (position_set_z, pos1, 300),
       ]),

  ("game_inventory_window", 0, "tableau_with_transparency", 1024, 1024, 0, 0, 180, 270,
   [
       (store_script_param, ":troop_no", 1),
       (cur_tableau_set_background_color, 0xFF888888),
       (cur_tableau_set_ambient_light, 10,11,15),
       (set_fixed_point_multiplier, 100),
       (cur_tableau_set_camera_parameters, 0, 40, 40, 0, 100000),

       (init_position, pos1),
       (position_set_z, pos1, 100),
       (position_set_x, pos1, -20),
       (position_set_y, pos1, -20),
       (cur_tableau_add_tableau_mesh, "tableau_troop_inventory_color", ":troop_no", pos1, 0, 0),
       (position_set_z, pos1, 200),
       (cur_tableau_add_tableau_mesh, "tableau_troop_inventory_alpha_mask", ":troop_no", pos1, 0, 0),
       (position_set_z, pos1, 300),
       ]),

  ("game_profile_window", 0, "tableau_with_transparency", 1024, 1024, 0, 0, 320, 480, [
    (store_script_param, ":profile_no", 1),
    (assign, ":gender", ":profile_no"),
    (val_mod, ":gender", 2),
    (try_begin),
      (eq, ":gender", 0),
      (assign, ":troop_no", "trp_multiplayer_profile_troop_male"),
    (else_try),
      (assign, ":troop_no", "trp_multiplayer_profile_troop_female"),
    (try_end),
    (troop_set_face_key_from_current_profile, ":troop_no"),
    (cur_tableau_set_background_color, 0xFF888888),
    (cur_tableau_set_ambient_light, 10,11,15),
    (set_fixed_point_multiplier, 100),
    (cur_tableau_set_camera_parameters, 0, 40, 40, 0, 100000),

    (init_position, pos1),
    (position_set_z, pos1, 100),
    (position_set_x, pos1, -20),
    (position_set_y, pos1, -20),
    (cur_tableau_add_tableau_mesh, "tableau_troop_profile_color", ":troop_no", pos1, 0, 0),
    (position_set_z, pos1, 200),
    (cur_tableau_add_tableau_mesh, "tableau_troop_profile_alpha_mask", ":troop_no", pos1, 0, 0),
    ]),

  ("game_party_window", 0, "tableau_with_transparency", 1024, 1024, 0, 0, 300, 300,
   [
       (store_script_param, ":troop_no", 1),
       (cur_tableau_set_background_color, 0xFF888888),
       (cur_tableau_set_ambient_light, 10,11,15),
       (set_fixed_point_multiplier, 100),
       (cur_tableau_set_camera_parameters, 0, 40, 40, 0, 100000),

       (init_position, pos1),
       (position_set_z, pos1, 100),
       (position_set_x, pos1, -20),
       (position_set_y, pos1, -20),
       (cur_tableau_add_tableau_mesh, "tableau_troop_party_color", ":troop_no", pos1, 0, 0),
       (position_set_z, pos1, 200),
       (cur_tableau_add_tableau_mesh, "tableau_troop_party_alpha_mask", ":troop_no", pos1, 0, 0),
       (position_set_z, pos1, 300),
       ]),

  ("game_troop_label_banner", 0, "tableau_with_transparency", 256, 256, -128, 0, 128, 256,
   [
       (store_script_param, ":banner_mesh", 1),

       (cur_tableau_set_background_color, 0xFF888888),
       (set_fixed_point_multiplier, 100),
       (cur_tableau_set_camera_parameters, 0, 100, 100, 0, 100000),

       (init_position, pos1),
       (position_set_y, pos1, 136),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 132, 0),
	   
       #(init_position, pos1),
       #(position_set_z, pos1, 10),
       #(cur_tableau_add_mesh, "mesh_troop_label_banner", pos1, 112, 0),
       ]),
	   
  ("round_shield_1", 0, "sample_shield_round_1", 512, 256, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),

       (set_fixed_point_multiplier, 100),

       (init_position, pos1),
       (position_set_x, pos1, -50),
       (position_set_y, pos1, 124),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 120, 0),
       (init_position, pos1),
       (position_set_z, pos1, 10),
       (cur_tableau_add_mesh, "mesh_tableau_mesh_shield_round_1", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 200, 100, 0, 100000),
       ]),
  ("round_shield_2", 0, "sample_shield_matte", 512, 256, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),

       (set_fixed_point_multiplier, 100),

       (init_position, pos1),
       (position_set_x, pos1, -50),
       (position_set_y, pos1, 120),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 116, 0),
       (init_position, pos1),
       (position_set_z, pos1, 10),
       (cur_tableau_add_mesh, "mesh_tableau_mesh_shield_round_2", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 200, 100, 0, 100000),
       ]),
  ("round_shield_3", 0, "sample_shield_matte", 512, 256, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),

       (set_fixed_point_multiplier, 100),

       (init_position, pos1),
       (position_set_x, pos1, -50),
       (position_set_y, pos1, 120),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 116, 0),
       (init_position, pos1),
       (position_set_z, pos1, 10),
       (cur_tableau_add_mesh, "mesh_tableau_mesh_shield_round_3", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 200, 100, 0, 100000),
       ]),
  
  ("round_shield_4", 0, "sample_shield_matte", 512, 256, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),

       (set_fixed_point_multiplier, 100),

       (init_position, pos1),
       (position_set_x, pos1, -50),
       (position_set_y, pos1, 127),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 123, 0),
       (init_position, pos1),
       (position_set_z, pos1, 10),
       (cur_tableau_add_mesh, "mesh_tableau_mesh_shield_round_4", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 200, 100, 0, 100000),
       ]),
  
  ("round_shield_5", 0, "sample_shield_matte", 512, 256, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),

       (set_fixed_point_multiplier, 100),

       (init_position, pos1),
       (position_set_x, pos1, -50),
       (position_set_y, pos1, 127),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 122, 0),
       (init_position, pos1),
       (position_set_z, pos1, 10),
       (cur_tableau_add_mesh, "mesh_tableau_mesh_shield_round_5", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 200, 100, 0, 100000),
       ]),
  ("small_round_shield_1", 0, "sample_shield_small_round_1", 512, 256, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),

       (set_fixed_point_multiplier, 100),

       (init_position, pos1),
       (position_set_x, pos1, -50),
       (position_set_y, pos1, 131),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 127, 0),
       (init_position, pos1),
       (position_set_z, pos1, 10),
       (cur_tableau_add_mesh, "mesh_tableau_mesh_shield_small_round_1", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 200, 100, 0, 100000),
       ]),
  
  ("small_round_shield_2", 0, "sample_shield_small_round_2", 512, 256, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),

       (set_fixed_point_multiplier, 100),

       (init_position, pos1),
       (position_set_x, pos1, -50),
       (position_set_y, pos1, 131),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 127, 0),
       (init_position, pos1),
       (position_set_z, pos1, 10),
       (cur_tableau_add_mesh, "mesh_tableau_mesh_shield_small_round_2", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 200, 100, 0, 100000),
       ]),
  ("small_round_shield_3", 0, "sample_shield_matte", 512, 256, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),

       (set_fixed_point_multiplier, 100),

       (init_position, pos1),
       (position_set_x, pos1, -50),
       (position_set_y, pos1, 131),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 127, 0),
       (init_position, pos1),
       (position_set_z, pos1, 10),
       (cur_tableau_add_mesh, "mesh_tableau_mesh_shield_small_round_3", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 200, 100, 0, 100000),
       ]),
  
  ("kite_shield_1", 0, "sample_shield_matte", 512, 512, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),

       (set_fixed_point_multiplier, 100),

       (init_position, pos1),
       (position_set_x, pos1, -59),
       (position_set_y, pos1, 140),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 116, 0),
       (init_position, pos1),
       (position_set_z, pos1, 10),
       (cur_tableau_add_mesh, "mesh_tableau_mesh_shield_kite_1", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 200, 200, 0, 100000),
       ]),
  ("kite_shield_2", 0, "sample_shield_matte", 512, 512, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),

       (set_fixed_point_multiplier, 100),

       (init_position, pos1),
       (position_set_x, pos1, -58),
       (position_set_y, pos1, 140),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 116, 0),
       (init_position, pos1),
       (position_set_z, pos1, 10),
       (cur_tableau_add_mesh, "mesh_tableau_mesh_shield_kite_2", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 200, 200, 0, 100000),
       ]),
  ("kite_shield_3", 0, "sample_shield_matte", 512, 512, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),

       (set_fixed_point_multiplier, 100),

       (init_position, pos1),
       (position_set_x, pos1, -58),
       (position_set_y, pos1, 140),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 116, 0),
       (init_position, pos1),
       (position_set_z, pos1, 10),
       (cur_tableau_add_mesh, "mesh_tableau_mesh_shield_kite_3", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 200, 200, 0, 100000),
       ]),
  ("kite_shield_4", 0, "sample_shield_matte", 512, 512, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),

       (set_fixed_point_multiplier, 100),

       (init_position, pos1),
       (position_set_x, pos1, -50),
       (position_set_y, pos1, 160),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 120, 0),
       (init_position, pos1),
       (position_set_z, pos1, 10),
       (cur_tableau_add_mesh, "mesh_tableau_mesh_shield_kite_4", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 200, 200, 0, 100000),
       ]),
  ("heater_shield_1", 0, "sample_shield_matte", 512, 512, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),

       (set_fixed_point_multiplier, 100),

       (init_position, pos1),
       (position_set_x, pos1, -58),
       (position_set_y, pos1, 151),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 116, 0),
       (init_position, pos1),
       (position_set_z, pos1, 10),
       (cur_tableau_add_mesh, "mesh_tableau_mesh_shield_heater_1", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 200, 200, 0, 100000),
       ]),
  ("heater_shield_2", 0, "sample_shield_matte", 512, 512, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),

       (set_fixed_point_multiplier, 100),

       (init_position, pos1),
       (position_set_x, pos1, -50),
       (position_set_y, pos1, 150),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 116, 0),
       (init_position, pos1),
       (position_set_z, pos1, 10),
       (cur_tableau_add_mesh, "mesh_tableau_mesh_shield_heater_2", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 200, 200, 0, 100000),
       ]),
  ("pavise_shield_1", 0, "sample_shield_matte", 512, 512, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),

       (set_fixed_point_multiplier, 100),

       (init_position, pos1),
       (position_set_x, pos1, -54),
       (position_set_y, pos1, 120),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 118, 0),
       (init_position, pos1),
       (position_set_z, pos1, 10),
       (cur_tableau_add_mesh, "mesh_tableau_mesh_shield_pavise_1", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 200, 200, 0, 100000),
       ]),
  ("pavise_shield_2", 0, "sample_shield_matte", 512, 512, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),

       (set_fixed_point_multiplier, 100),

       (init_position, pos1),
       (position_set_x, pos1, -54),
       (position_set_y, pos1, 120),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 116, 0),
       (init_position, pos1),
       (position_set_z, pos1, 10),
       (cur_tableau_add_mesh, "mesh_tableau_mesh_shield_pavise_2", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 200, 200, 0, 100000),
       ]),



  ("heraldic_armor_a", 0, "sample_heraldic_armor_a", 512, 512, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),

       (set_fixed_point_multiplier, 100),
       (store_sub, ":background_slot", ":banner_mesh", arms_meshes_begin), #banner_meshes_begin),
       (troop_get_slot, ":background_color", "trp_banner_background_color_array", ":background_slot"),
       (cur_tableau_set_background_color, ":background_color"),

       (init_position, pos1),
       (cur_tableau_add_mesh_with_vertex_color, "mesh_heraldic_armor_bg", pos1, 200, 100, ":background_color"),
#       (cur_tableau_add_mesh, "mesh_heraldic_armor_bg", pos1, 200, 0),
       (init_position, pos1),

       (position_set_z, pos1, 50),
       (position_set_x, pos1, -26),
       (position_set_y, pos1, 128),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 98, 0),
#       (cur_tableau_add_mesh, "mesh_banner_a01", pos1, 116, 0),
       (init_position, pos1),
       (position_set_z, pos1, 100),
       (cur_tableau_add_mesh, "mesh_tableau_mesh_heraldic_armor_a", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 200, 200, 0, 100000),
       ]),
  
  ("heraldic_armor_b", 0, "sample_heraldic_armor_b", 512, 512, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),

       (set_fixed_point_multiplier, 100),
       (store_sub, ":background_slot", ":banner_mesh", arms_meshes_begin),
       (troop_get_slot, ":background_color", "trp_banner_background_color_array", ":background_slot"),
       (cur_tableau_set_background_color, ":background_color"),

       (init_position, pos1),
       (cur_tableau_add_mesh_with_vertex_color, "mesh_heraldic_armor_bg", pos1, 200, 100, ":background_color"),
       (init_position, pos1),
       (position_set_z, pos1, 10),
       (position_set_x, pos1, -4),
       (position_set_y, pos1, 154),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 116, 0),
#       (cur_tableau_add_mesh, "mesh_banner_a01", pos1, 116, 0),
       (init_position, pos1),
       (position_set_z, pos1, 100),
       (cur_tableau_add_mesh, "mesh_tableau_mesh_heraldic_armor_b", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 200, 200, 0, 100000),
       ]),
  
  ("heraldic_armor_c", 0, "sample_heraldic_armor_c", 512, 512, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),

       (set_fixed_point_multiplier, 100),
       (store_sub, ":background_slot", ":banner_mesh", arms_meshes_begin), #banner_meshes_begin),
       (troop_get_slot, ":background_color", "trp_banner_background_color_array", ":background_slot"),
       (cur_tableau_set_background_color, ":background_color"),

       (init_position, pos1),
       (cur_tableau_add_mesh_with_vertex_color, "mesh_heraldic_armor_bg", pos1, 200, 100, ":background_color"),
       (init_position, pos1),
       (position_set_z, pos1, 10),
       (position_set_x, pos1, -1),
       (position_set_y, pos1, 155),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 115, 0),
#       (cur_tableau_add_mesh, "mesh_banner_a01", pos1, 116, 0),
       (init_position, pos1),
       (position_set_z, pos1, 100),
       (cur_tableau_add_mesh, "mesh_tableau_mesh_heraldic_armor_c", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 200, 200, 0, 100000),
       ]),
  
  ("heraldic_armor_d", 0, "sample_heraldic_armor_d", 512, 512, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),

       (set_fixed_point_multiplier, 100),
       (store_sub, ":background_slot", ":banner_mesh", arms_meshes_begin), #banner_meshes_begin),
       (troop_get_slot, ":background_color", "trp_banner_background_color_array", ":background_slot"),
       (cur_tableau_set_background_color, ":background_color"),

       (init_position, pos1),
       (cur_tableau_add_mesh_with_vertex_color, "mesh_heraldic_armor_bg", pos1, 200, 100, ":background_color"),
       (init_position, pos1),
       (position_set_z, pos1, 10),
       (position_set_x, pos1, -0),
       (position_set_y, pos1, 155),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 115, 0),
#       (cur_tableau_add_mesh, "mesh_banner_a01", pos1, 116, 0),
       (init_position, pos1),
       (position_set_z, pos1, 100),
       (cur_tableau_add_mesh, "mesh_tableau_mesh_heraldic_armor_d", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 200, 200, 0, 100000),
       ]),
  
#Added for Pop 3.0 Archangel 1 heraldic plate
#("plate_harness_heraldic", 0, "sample_platemail_surcoats_banner", 1024, 1024, 0, 0, 0, 0,
("plate_harness_heraldic", 0, "sample_platemail_banner", 1024, 1024, 0, 0, 0, 0, #POP Warband
[
       (store_script_param_1, ":troop_no"),
       (call_script, "script_troop_get_banner_mesh", ":troop_no"),
       (assign, ":banner_mesh", reg1),
       (set_fixed_point_multiplier, 100),
       (try_begin),
         (ge, ":troop_no", 0),
         (troop_slot_eq, ":troop_no", slot_troop_banner_scene_prop, -1),
         (troop_get_slot, ":bg_color_1", ":troop_no", slot_troop_custom_banner_bg_color_1),
         (cur_tableau_set_background_color, ":bg_color_1"),
         (init_position, pos1),
         (call_script, "script_draw_banner_to_region", ":troop_no", -8, -44, 10000, 10000, 2200, 2200, 5000, 10000, 1),
       (else_try),
         (store_sub, ":background_slot", ":banner_mesh", arms_meshes_begin), #banner_meshes_begin),
         (troop_get_slot, ":background_color", "trp_banner_background_color_array", ":background_slot"),
         (cur_tableau_set_background_color, ":background_color"),
         (init_position, pos1),
#         (cur_tableau_add_mesh_with_vertex_color, "mesh_heraldic_armor_bg", pos1, 200, 100, ":background_color"),
         (init_position, pos1),
         (position_set_z, pos1, 50),
         (position_set_x, pos1, -66),
         (position_set_y, pos1, 22),
#         (position_set_x, pos1, -25),
#         (position_set_y, pos1, 145),#130#165
#         (position_set_x, pos1, "$MVX"),
#         (position_set_y, pos1, "$MVY"),
#         (position_set_z, pos1, "$MVZ"),
         (cur_tableau_add_mesh, ":banner_mesh", pos1, 87, 0),
#         (cur_tableau_add_mesh, ":banner_mesh", pos1, 103, 0),
#         (cur_tableau_add_mesh, ":banner_mesh", pos1, "$MVZ", 0),
       (try_end),
       (init_position, pos1),
       (position_set_z, pos1, 100),
       (try_begin),
         (lt, ":troop_no", 0),
         (cur_tableau_add_mesh, "mesh_tableau_mesh_platemail", pos1, 0, 0),
       (else_try),
         (eq, ":troop_no", 0),
         (troop_slot_eq, ":troop_no", slot_troop_banner_scene_prop, 0),
         (cur_tableau_add_mesh, "mesh_tableau_mesh_platemail", pos1, 0, 0),
       (else_try),
         (cur_tableau_add_mesh, "mesh_tableau_mesh_platemail_banner", pos1, 0, 0),
       (try_end),
       (cur_tableau_set_camera_parameters, 0, 200, 200, 0, 100000),
]),
#1 heraldic_platemail
#("platemail_harness_heraldic", 0, "sample_platemail_surcoats_banner", 1024, 1024, 0, 0, 0, 0,
("platemail_harness_heraldic", 0, "sample_platemail_banner", 1024, 1024, 0, 0, 0, 0, #POP Warband
[
      (store_script_param_1, ":troop_no"),
      (call_script, "script_troop_get_banner_mesh", ":troop_no"),
      (assign, ":banner_mesh", reg1),
      (set_fixed_point_multiplier, 100),
      (try_begin),
        (ge, ":troop_no", 0),
        (troop_slot_eq, ":troop_no", slot_troop_banner_scene_prop, -1),
        (troop_get_slot, ":bg_color_1", ":troop_no", slot_troop_custom_banner_bg_color_1),
        (cur_tableau_set_background_color, ":bg_color_1"),
        (init_position, pos1),
        (call_script, "script_draw_banner_to_region", ":troop_no", 65, -50, 10000, 10000, 2500, 2500, 5000, 10000, 1),
      (else_try),
        (store_sub, ":background_slot", ":banner_mesh", arms_meshes_begin), #banner_meshes_begin),
        (troop_get_slot, ":background_color", "trp_banner_background_color_array", ":background_slot"),
        (cur_tableau_set_background_color, ":background_color"),
        # (init_position, pos1),
        # (cur_tableau_add_mesh_with_vertex_color, "mesh_heraldic_armor_bg", pos1, 200, 100, ":background_color"),
        (init_position, pos1),
        (position_set_z, pos1, 50),
        #(position_set_x, pos1, 66),
        (position_set_x, pos1, -66),
        (position_set_y, pos1, 91),
        (cur_tableau_add_mesh, ":banner_mesh", pos1, 87, 0),
      (try_end),
      (init_position, pos1),
      (position_set_z, pos1, 100),
      (try_begin),
        (lt, ":troop_no", 0),
        (cur_tableau_add_mesh, "mesh_tableau_mesh_platemail", pos1, 0, 0),
      (else_try),
        (eq, ":troop_no", 0),
        (troop_slot_eq, ":troop_no", slot_troop_banner_scene_prop, 0),
        (cur_tableau_add_mesh, "mesh_tableau_mesh_platemail", pos1, 0, 0),
      (else_try),
        (cur_tableau_add_mesh, "mesh_tableau_mesh_platemail_banner", pos1, 0, 0),
      (try_end),
      (cur_tableau_set_camera_parameters, 0, 200, 200, 0, 100000),
]),
#----------------end Archangel Paste

#narf's early_heraldic_transistional plate JL PoP 3.43:
  ("early_transitional_heraldic", 0, "sample_early_transitional_heraldic_banner", 1024, 1024, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),

       (set_fixed_point_multiplier, 100),
        (store_sub, ":background_slot", ":banner_mesh", arms_meshes_begin), #banner_meshes_begin),
       (troop_get_slot, ":background_color", "trp_banner_background_color_array", ":background_slot"),
       (cur_tableau_set_background_color, ":background_color"),

       (init_position, pos1),
       (cur_tableau_add_mesh_with_vertex_color, "mesh_heraldic_armor_bg", pos1, 200, 100, ":background_color"),
       (init_position, pos1),
       (position_set_x, pos1, 17),
       (position_set_y, pos1, 150),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 90, 0),
       (init_position, pos1),
       (position_set_z, pos1, 30),
       (cur_tableau_add_mesh, "mesh_tableau_mesh_early_transitional_heraldic_banner", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 200, 200, 0, 100000),
       ]),

 


It's not actually hurting anything, but it's been bothering me for a while.

Do you have an idea? thank you : )
 
part 2 of the file

Code:
("troop_note_alpha_mask", 0, "mat_troop_portrait_mask", 1024, 1024, 0, 0, 400, 400,
   [
       (store_script_param, ":troop_no", 1),
       (cur_tableau_set_background_color, 0x00888888),
       (cur_tableau_set_ambient_light, 10,11,15),
       (cur_tableau_render_as_alpha_mask),
       (call_script, "script_add_troop_to_cur_tableau", ":troop_no"),
       ]),

  ("troop_note_color", 0, "mat_troop_portrait_color", 1024, 1024, 0, 0, 400, 400,
   [
       (store_script_param, ":troop_no", 1),
       (cur_tableau_set_background_color, 0xFFC6BB94),
       (cur_tableau_set_ambient_light, 10,11,15),
       (call_script, "script_add_troop_to_cur_tableau", ":troop_no"),
       ]),

  ("troop_character_alpha_mask", 0, "mat_troop_portrait_mask", 1024, 1024, 0, 0, 400, 400,
   [
       (store_script_param, ":troop_no", 1),
       (cur_tableau_set_background_color, 0x00888888),
       (cur_tableau_set_ambient_light, 10,11,15),
       (cur_tableau_render_as_alpha_mask),
       (call_script, "script_add_troop_to_cur_tableau_for_character", ":troop_no"),
       ]),

  ("troop_character_color", 0, "mat_troop_portrait_color", 1024, 1024, 0, 0, 400, 400,
   [
       (store_script_param, ":troop_no", 1),
       (cur_tableau_set_background_color, 0xFFE0CFB1),
       (cur_tableau_set_ambient_light, 10,11,15),
       (call_script, "script_add_troop_to_cur_tableau_for_character", ":troop_no"),
       ]),
  
  ("troop_inventory_alpha_mask", 0, "mat_troop_portrait_mask", 1024, 1024, 0, 0, 400, 400,
   [
       (store_script_param, ":troop_no", 1),
       (cur_tableau_set_background_color, 0x00888888),
       (cur_tableau_set_ambient_light, 10,11,15),
       (cur_tableau_render_as_alpha_mask),
       (call_script, "script_add_troop_to_cur_tableau_for_inventory", ":troop_no"),
       ]),

  ("troop_inventory_color", 0, "mat_troop_portrait_color", 1024, 1024, 0, 0, 400, 400,
   [
       (store_script_param, ":troop_no", 1),
       (cur_tableau_set_background_color, 0xFF6A583A),
       (cur_tableau_set_ambient_light, 10,11,15),
       (call_script, "script_add_troop_to_cur_tableau_for_inventory", ":troop_no"),
       ]),

  ("troop_profile_alpha_mask", 0, "mat_troop_portrait_mask", 1024, 1024, 0, 0, 400, 400,
   [
       (store_script_param, ":troop_no", 1),
       (cur_tableau_set_background_color, 0x00888888),
       (cur_tableau_set_ambient_light, 10,11,15),
       (cur_tableau_render_as_alpha_mask),
       (call_script, "script_add_troop_to_cur_tableau_for_profile", ":troop_no"),
       ]),

  ("troop_profile_color", 0, "mat_troop_portrait_color", 1024, 1024, 0, 0, 400, 400,
   [
       (store_script_param, ":troop_no", 1),
       (cur_tableau_set_background_color, 0xFFF9E7A8),
       (cur_tableau_set_ambient_light, 10,11,15),
       (call_script, "script_add_troop_to_cur_tableau_for_profile", ":troop_no"),
       ]),


  ("troop_party_alpha_mask", 0, "mat_troop_portrait_mask", 1024, 1024, 0, 0, 400, 400,
   [
       (store_script_param, ":troop_no", 1),
       (cur_tableau_set_background_color, 0x00888888),
       (cur_tableau_set_ambient_light, 10,11,15),
       (cur_tableau_render_as_alpha_mask),
       (call_script, "script_add_troop_to_cur_tableau_for_party", ":troop_no"),
       ]),

  ("troop_party_color", 0, "mat_troop_portrait_color", 1024, 1024, 0, 0, 400, 400,
   [
       (store_script_param, ":troop_no", 1),
       (cur_tableau_set_background_color, 0xFFBE9C72),
       (cur_tableau_set_ambient_light, 10,11,15),
       (call_script, "script_add_troop_to_cur_tableau_for_party", ":troop_no"),
       ]),

  ("troop_note_mesh", 0, "tableau_with_transparency", 1024, 1024, 0, 0, 350, 350,
   [
       (store_script_param, ":troop_no", 1),
       (cur_tableau_set_background_color, 0xFF888888),
       (cur_tableau_set_ambient_light, 10,11,15),
       (set_fixed_point_multiplier, 100),
       (cur_tableau_set_camera_parameters, 0, 40, 40, 0, 100000),

       (init_position, pos1),
       (position_set_z, pos1, 100),
       (position_set_x, pos1, -20),
       (position_set_y, pos1, -20),
       (cur_tableau_add_tableau_mesh, "tableau_troop_note_color", ":troop_no", pos1, 0, 0),
       (position_set_z, pos1, 200),
       (cur_tableau_add_tableau_mesh, "tableau_troop_note_alpha_mask", ":troop_no", pos1, 0, 0),
       (position_set_z, pos1, 300),
       (cur_tableau_add_mesh, "mesh_portrait_blend_out", pos1, 0, 0),
       ]),

  ("center_note_mesh", 0, "tableau_with_transparency", 1024, 1024, 0, 0, 200, 200,
   [
       (store_script_param, ":center_no", 1),
       (set_fixed_point_multiplier, 100),
       (cur_tableau_set_background_color, 0x00888888),
       (cur_tableau_set_ambient_light, 10,11,15),
       
       (init_position, pos8),
       (position_set_x, pos8, -210),
       (position_set_y, pos8, 200),
       (position_set_z, pos8, 300),
       (cur_tableau_add_point_light, pos8, 550,500,450),

       (cur_tableau_set_camera_parameters, 1, 10, 10, 10, 10000),

##       (position_set_x, pos1, -100),
       (init_position, pos1),
       (position_set_z, pos1, 0),
       (position_set_z, pos1, -500),


       (init_position, pos1),
       (position_set_y, pos1, -100),
       (position_set_x, pos1, -100),
       (position_set_z, pos1, 100),
       (position_rotate_z, pos1, 200),

##       (cur_tableau_add_mesh, ":banner_mesh", pos1, ":banner_scale", 0),
       (party_get_icon, ":map_icon", ":center_no"),
       (try_begin),
         (ge, ":map_icon", 0),
         (cur_tableau_add_map_icon, ":map_icon", pos1, 0),
       (try_end),

       (init_position, pos5),
       (position_set_x, pos5, -90),
       (position_set_z, pos5, 500),
       (position_set_y, pos5, 480),
       (position_rotate_x, pos5, -90),
       (position_rotate_z, pos5, 180),
       (position_rotate_x, pos5, -35),
       (cur_tableau_set_camera_position, pos5),
       ]),

  ("faction_note_mesh_for_menu", 0, "pic_arms_swadian", 1024, 512, 0, 0, 450, 225,
   [
     (store_script_param, ":faction_no", 1),
     (cur_tableau_set_background_color, 0xFFFFFFFF),
     (set_fixed_point_multiplier, 100),
     (try_begin),
       (is_between, ":faction_no", "fac_kingdom_1", kingdoms_end), #Excluding player kingdom
       (store_add, ":banner_mesh", "mesh_pic_arms_swadian", ":faction_no"),
       (val_sub, ":banner_mesh", "fac_kingdom_1"),
       (init_position, pos1),
       (position_set_y, pos1, -5),
       (position_set_x, pos1, -45),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 160, 80, 0, 100000),
     (try_end),
     ]),

  ("faction_note_mesh", 0, "pic_arms_swadian", 1024, 512, 0, 0, 500, 250,
   [
     (store_script_param, ":faction_no", 1),
     (cur_tableau_set_background_color, 0xFFFFFFFF),
     (set_fixed_point_multiplier, 100),
     (try_begin),
       (is_between, ":faction_no", "fac_kingdom_1", kingdoms_end), #Excluding player kingdom
       (store_add, ":banner_mesh", "mesh_pic_arms_swadian", ":faction_no"),
       (val_sub, ":banner_mesh", "fac_kingdom_1"),
       (init_position, pos1),
       (position_set_y, pos1, -5),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 100, 50, 0, 100000),
     (try_end),
     ]),

  ("faction_note_mesh_banner", 0, "tableau_with_transparency", 1024, 1024, 0, 0, 200, 200,
   [
     (store_script_param, ":faction_no", 1),
     (set_fixed_point_multiplier, 100),
     (try_begin),
       (faction_get_slot, ":leader_troop", ":faction_no", slot_faction_leader),
       (ge, ":leader_troop", 0),
       (troop_get_slot, ":banner_spr", ":leader_troop", slot_troop_banner_scene_prop),
       (store_add, ":banner_scene_props_end", banner_scene_props_end_minus_one, 1),
       (is_between, ":banner_spr", banner_scene_props_begin, ":banner_scene_props_end"),
       (val_sub, ":banner_spr", banner_scene_props_begin),
       (store_add, ":banner_mesh", ":banner_spr", banner_meshes_begin),
       (init_position, pos1),
       (position_set_y, pos1, 100),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 0, 0),
       (cur_tableau_set_camera_parameters, 0, 210, 210, 0, 100000),
     (try_end),
     ]),
  
  ("2_factions_mesh", 0, "tableau_with_transparency", 1024, 1024, 0, 0, 200, 200,
   [
     (store_script_param, ":faction_no", 1),
     (store_mod, ":faction_no_2", ":faction_no", 128),
     (val_div, ":faction_no", 128),
     (val_add, ":faction_no", kingdoms_begin),
     (val_add, ":faction_no_2", kingdoms_begin),
     (set_fixed_point_multiplier, 100),
     (try_begin),
       (faction_get_slot, ":leader_troop", ":faction_no", slot_faction_leader),
       (ge, ":leader_troop", 0),
       (troop_get_slot, ":banner_spr", ":leader_troop", slot_troop_banner_scene_prop),
       (store_add, ":banner_scene_props_end", banner_scene_props_end_minus_one, 1),
       (is_between, ":banner_spr", banner_scene_props_begin, ":banner_scene_props_end"),
       (val_sub, ":banner_spr", banner_scene_props_begin),
       (store_add, ":banner_mesh", ":banner_spr", banner_meshes_begin),
       (init_position, pos1),
       (position_set_x, pos1, -50),
       (position_set_y, pos1, 100),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 0, 0),
     (try_end),
     (try_begin),
       (faction_get_slot, ":leader_troop", ":faction_no_2", slot_faction_leader),
       (ge, ":leader_troop", 0),
       (troop_get_slot, ":banner_spr", ":leader_troop", slot_troop_banner_scene_prop),
       (store_add, ":banner_scene_props_end", banner_scene_props_end_minus_one, 1),
       (is_between, ":banner_spr", banner_scene_props_begin, ":banner_scene_props_end"),
       (val_sub, ":banner_spr", banner_scene_props_begin),
       (store_add, ":banner_mesh", ":banner_spr", banner_meshes_begin),
       (init_position, pos1),
       (position_set_x, pos1, 50),
       (position_set_y, pos1, 100),
       (cur_tableau_add_mesh, ":banner_mesh", pos1, 0, 0),
     (try_end),
     (cur_tableau_set_camera_parameters, 0, 210, 210, 0, 100000),
     ]),

  ("color_picker", 0, "missiles", 32, 32, 0, 0, 0, 0,
   [
     (store_script_param, ":color", 1),
     (set_fixed_point_multiplier, 100),
     (init_position, pos1),
     (cur_tableau_add_mesh, "mesh_color_picker", pos1, 0, 0),
     (position_move_z, pos1, 1),
     (position_move_x, pos1, -2),
     (position_move_y, pos1, -2),
     (cur_tableau_add_mesh_with_vertex_color, "mesh_white_plane", pos1, 200, 0, ":color"),
     (cur_tableau_set_camera_parameters, 0, 20, 20, 0, 100000),
     ]),

  ("custom_banner_square_no_mesh", 0, "missiles", 512, 512, 0, 0, 300, 300,
   [
     (store_script_param, ":troop_no", 1),
     (set_fixed_point_multiplier, 100),
     (call_script, "script_draw_banner_to_region", ":troop_no", 0, 0, 10000, 10000, 9800, 9800, 10000, 10000, 0),
     (cur_tableau_set_camera_parameters, 0, 100, 100, 0, 100000),
     ]),

  ("custom_banner_default", 0, "missiles", 512, 256, 0, 0, 0, 0,
   [
     (store_script_param, ":troop_no", 1),
     (set_fixed_point_multiplier, 100),
     (call_script, "script_draw_banner_to_region", ":troop_no", -9, -2, 7450, 19400, 7200, 18000, 9000, 10000, 0),
     (init_position, pos1),
     (position_set_z, pos1, 10),
     (cur_tableau_add_mesh, "mesh_tableau_mesh_custom_banner", pos1, 0, 0),
     (cur_tableau_set_camera_parameters, 0, 100, 200, 0, 100000),
     ]),

  ("custom_banner_tall", 0, "missiles", 512, 256, 0, 0, 0, 0,
   [
     (store_script_param, ":troop_no", 1),
     (set_fixed_point_multiplier, 100),
     (call_script, "script_draw_banner_to_region", ":troop_no", -9, 12, 8250, 18000, 8000, 21000, 10000, 10000, 0),
     (init_position, pos1),
     (position_set_z, pos1, 10),
     (cur_tableau_add_mesh, "mesh_tableau_mesh_custom_banner", pos1, 0, 0),
     (cur_tableau_set_camera_parameters, 0, 100, 200, 0, 100000),
     ]),

  ("custom_banner_square", 0, "missiles", 256, 256, 0, 0, 0, 0,
   [
     (store_script_param, ":troop_no", 1),
     (set_fixed_point_multiplier, 100),
     (call_script, "script_draw_banner_to_region", ":troop_no", -11, 10, 7700, 7700, 7500, 7500, 8300, 10000, 0),
     (init_position, pos1),
     (position_set_z, pos1, 10),
     (cur_tableau_add_mesh, "mesh_tableau_mesh_custom_banner_square", pos1, 0, 0),
     (cur_tableau_set_camera_parameters, 0, 100, 100, 0, 100000),
     ]),

  ("custom_banner_short", 0, "missiles", 256, 512, 0, 0, 0, 0,
   [
     (store_script_param, ":troop_no", 1),
     (set_fixed_point_multiplier, 100),
     (call_script, "script_draw_banner_to_region", ":troop_no", -10, 0, 8050, 5000, 4200, 4800, 6600, 10000, 0),
     (init_position, pos1),
     (position_set_z, pos1, 10),
     (cur_tableau_add_mesh, "mesh_tableau_mesh_custom_banner_short", pos1, 0, 0),
     (cur_tableau_set_camera_parameters, 0, 100, 50, 0, 100000),
     ]),

  ("background_selection", 0, "missiles", 512, 512, 0, 0, 100, 100,
   [
     (store_script_param, ":banner_bg", 1),
     (troop_get_slot, ":old_bg", "trp_player", slot_troop_custom_banner_bg_type),
     (troop_set_slot, "trp_player", slot_troop_custom_banner_bg_type, ":banner_bg"),
     (set_fixed_point_multiplier, 100),
     (call_script, "script_draw_banner_to_region", "trp_player", 0, 0, 10000, 10000, 9800, 9800, 10000, 10000, 0),
     (cur_tableau_set_camera_parameters, 0, 100, 100, 0, 100000),
     (troop_set_slot, "trp_player", slot_troop_custom_banner_bg_type, ":old_bg"),
     ]),

  ("positioning_selection", 0, "missiles", 512, 512, 0, 0, 100, 100,
   [
     (store_script_param, ":positioning", 1),
     (troop_get_slot, ":old_positioning", "trp_player", slot_troop_custom_banner_positioning),
     (troop_set_slot, "trp_player", slot_troop_custom_banner_positioning, ":positioning"),
     (set_fixed_point_multiplier, 100),
     (call_script, "script_draw_banner_to_region", "trp_player", 0, 0, 10000, 10000, 9800, 9800, 10000, 10000, 0),
     (cur_tableau_set_camera_parameters, 0, 100, 100, 0, 100000),
     (troop_set_slot, "trp_player", slot_troop_custom_banner_positioning, ":old_positioning"),
     ]),

   ("achievement_troop", 0, "troop_portrait", 1024, 1024, 0, 0, 600, 600,
   [
     (store_script_param, ":type", 1),
     (set_fixed_point_multiplier, 100),
     (cur_tableau_set_background_color, 0x00000000),
     (cur_tableau_set_ambient_light, 100,100,100), # MadVader bright

     (init_position, pos8),
     (position_set_x, pos8, -210),
     (position_set_y, pos8, 200),
     (position_set_z, pos8, 300),
     (cur_tableau_add_point_light, pos8, 550,500,450),

     (cur_tableau_set_override_flags, af_override_everything),
     
     (troop_get_type, ":is_female", "trp_player"),

     (try_begin),
       (eq, ":type", 0), # Deathbringer - berserker (achievement title - outfit theme)
#       (cur_tableau_add_override_item, "itm_pl_8"), # berserker helm - ditched for low poly count
       (try_begin),
         (ge, ":is_female", 1),
#         (cur_tableau_add_override_item, "itm_pl_271"), # Lady's Leather Armor, as requested by Mason
#         (cur_tableau_add_override_item, "itm_pl_444"), # or Madame Light Plate Armor
         (cur_tableau_add_override_item, "itm_pl_443"), # or D'Shar Isharia Armor
       (try_end),
       (cur_tableau_add_override_item, "itm_hide_boots"),
       (cur_tableau_add_override_item, "itm_two_handed_battle_axe_2"), # was itm_double_axe
       (assign, ":animation", "anim_pose_cheer_1"),
     (else_try),
       (eq, ":type", 1), # Masterful Warrior - noldor warrior
       (cur_tableau_add_override_item, "itm_pop_noldor_capt_helm"), # noldor helm, was itm_pop_noldor_inf_helm
       (try_begin),
         (ge, ":is_female", 1),
         (cur_tableau_add_override_item, "itm_pop_noldor_female_armor"), # Female Noldor Armor
       (else_try),
         (cur_tableau_add_override_item, "itm_pop_noldor_ranger_garb"), # noldor garb, was itm_pop_noldor_archer_garb
       (try_end),
       (cur_tableau_add_override_item, "itm_pop_noldor_boots"), # noldor boots
       (cur_tableau_add_override_item, "itm_pop_noldor_longsword"), # noldor longsword
       (assign, ":animation", "anim_pose_cheer_1"),
     (else_try),
       (eq, ":type", 2), # Legendary Warrior - noldor twilight
       (cur_tableau_add_override_item, "itm_pop_noldor_knight_helm"), # noldor knight helm
       (cur_tableau_add_override_item, "itm_pop_noldor_rune_armor"), # noldor rune armor or pop_noldor_noble_armor
       (cur_tableau_add_override_item, "itm_mail_boots"),
       (cur_tableau_add_override_item, "itm_gauntlets"),
       (cur_tableau_add_override_item, "itm_pop_noldor_runesword"), # noldor runesword
       (assign, ":animation", "anim_pose_cheer_2"),
     (else_try),
       (eq, ":type", 3), # Battle Master - lord (khan)
       (cur_tableau_add_override_item, "itm_pl_447"), # dshar warrior helm
       (cur_tableau_add_override_item, "itm_pl_111"), # D'Shar Dueling Armor, was dshar noble armor, itm_pl_276 
       (cur_tableau_add_override_item, "itm_splinted_greaves"),
       (cur_tableau_add_override_item, "itm_scale_gauntlets"),
       (cur_tableau_add_override_item, "itm_strange_great_sword"),
       (assign, ":animation", "anim_pose_4"), #hands at hips
     (else_try),
       (eq, ":type", 4), # Great General - lord (koningur)
       (cur_tableau_add_override_item, "itm_pl_554"), # Barclay Open Face..., was crowned helm, itm_pl_23
       (cur_tableau_add_override_item, "itm_pop_royal_platemail"), # Royal Platemail, was fierdsvain breastplate, itm_pl_128
       (cur_tableau_add_override_item, "itm_pl_490"), # Polished Plate Boots, was itm_iron_greaves
       (cur_tableau_add_override_item, "itm_gauntlets"), 
       (cur_tableau_add_override_item, "itm_pop_knight_war_axe"), # Knights War Axe, was runed bastard, itm_pop_runed_bastard
       (assign, ":animation", "anim_pose_4"),
     (else_try),
       (eq, ":type", 5), # Defender of Pendor - hero spawn - Zulkar
       (cur_tableau_add_override_item, "itm_pop_jatu_noble_armor"), # Jatu Noble Armor 
       (cur_tableau_add_override_item, "itm_pl_487"), # Empire Consul Greaves, was Noldor Leather Boots, itm_pop_noldor_boots
       (cur_tableau_add_override_item, "itm_gauntlets"),
       (cur_tableau_add_override_item, "itm_pop_noldor_longsword"), # Noldor Longsword
       (assign, ":animation", "anim_pose_3"),
     (else_try),
       (eq, ":type", 6), # Guardian of Pendor - hero spawn - Syla Uzas
       (assign, ":animation", "anim_pose_3"),
       (cur_tableau_add_override_item, "itm_pop_shadow_legion_armor"), # shadow legion armor 
       (cur_tableau_add_override_item, "itm_pl_489"), # shadow legion boots
       (cur_tableau_add_override_item, "itm_gauntlets"),
       (cur_tableau_add_override_item, "itm_pop_empire_broadsword"), # empire broadsword
     (else_try),
       (eq, ":type", 7), # Bane of Vejovis - Wolfbode Honor Guard
       (cur_tableau_add_override_item, "itm_pop_dark_chain_armor"), # dark mercenary armor 
       (cur_tableau_add_override_item, "itm_leather_boots"),
       (cur_tableau_add_override_item, "itm_leather_gloves"),
       (cur_tableau_add_override_item, "itm_two_handed_axe"),
       (assign, ":animation", "anim_pose_cheer_2"),
     (else_try),
       (eq, ":type", 8), # Cult Banisher - Anaconda Knight
       (cur_tableau_add_override_item, "itm_pop_anaconda_plate"), # anaconda plate 
       (cur_tableau_add_override_item, "itm_pl_488"), # heavy plate greaves
       (cur_tableau_add_override_item, "itm_mail_mittens"),
       (cur_tableau_add_override_item, "itm_war_spear"),
       (assign, ":animation", "anim_pose_cheer_1"),
     (else_try),
       (eq, ":type", 9), # Scourge of Jatu - K'Juda's Kajahar
       (cur_tableau_add_override_item, "itm_pop_jatu_raider_armor"), # Jatu Raider Lamellar Armor, was Jatu Nomad Lamellar Armor, itm_pop_jatu_nomad_armor
       (cur_tableau_add_override_item, "itm_pl_486"), # Soft Soled Plate Greaves
       (cur_tableau_add_override_item, "itm_scale_gauntlets"),
       (cur_tableau_add_override_item, "itm_strange_sword"),
       (assign, ":animation", "anim_pose_cheer_1"),
     (else_try),
       (eq, ":type", 10), # Purger of Heresy - Fallen Revenant
       # Demonskin (itm_pop_demonskin) needs 30 Str, Demonplate Armor (itm_pop_demonplate) needs 73 Str (impossible, limit is 63 Str)
       (cur_tableau_add_override_item, "itm_pop_demonskin"), # Demonskin, was itm_lamellar_vest
       (cur_tableau_add_override_item, "itm_black_greaves"),
       (cur_tableau_add_override_item, "itm_gauntlets"),
       (cur_tableau_add_override_item, "itm_morningstar"),
#       (cur_tableau_add_override_item, "itm_pl_504"), # Eyegrim Shield 
       (assign, ":animation", "anim_pose_cheer_2"),
     (else_try),
       (eq, ":type", 11), # Arena Survivor - arena
       (cur_tableau_add_override_item, "itm_arena_tunic_green"),
       (cur_tableau_add_override_item, "itm_hide_boots"),
       (assign, ":animation", "anim_pose_fists_up"),
     (else_try),
       (eq, ":type", 12), # Tournament Champion - arena
       (cur_tableau_add_override_item, "itm_arena_armor_red"), # was Imperial Heavy Armor
       (cur_tableau_add_override_item, "itm_hide_boots"),
       (assign, ":animation", "anim_pose_fists_up"),
     (else_try),
       (eq, ":type", 13), # Hero/Heroine of Pendor - hero/heroine adventurer
       (try_begin),
         (eq, ":is_female", 1),
         (cur_tableau_add_override_item, "itm_pop_valk_stag_plate"), # Valkyrie Stag Plate
       (else_try),
         (cur_tableau_add_override_item, "itm_pl_452"), # Studded Pauldron Plate Armor
       (try_end),
       (cur_tableau_add_override_item, "itm_pl_490"), # Polished Plate Boots, was itm_iron_greaves
       (cur_tableau_add_override_item, "itm_gauntlets"),
       (cur_tableau_add_override_item, "itm_morningstar"),
       (assign, ":animation", "anim_pose_1"),
     (else_try),
       (eq, ":type", 14), # Lion/Lioness of Pendor - knight of lion
       (cur_tableau_add_override_item, "itm_pl_552"), # Sarleon Open Face Chain Neck Hounskull Bascinet
       (cur_tableau_add_override_item, "itm_pl_134"), # Lion Breastplate over Chainmail, was Lion Engraved Breastplate, itm_pl_131  
       (cur_tableau_add_override_item, "itm_pl_490"), # Polished Plate Boots, was itm_iron_greaves
       (cur_tableau_add_override_item, "itm_mail_mittens"),
       (cur_tableau_add_override_item, "itm_bastard_sword_b"),
       (assign, ":animation", "anim_pose_1"),
     (else_try),
       (eq, ":type", 15), # Chevalier of Pendor - order of the dawn
       (cur_tableau_add_override_item, "itm_pop_dawn_plate"), # Knights of the Dawn Plate Harness
       (cur_tableau_add_override_item, "itm_pl_490"), # Polished Plate Boots
       (cur_tableau_add_override_item, "itm_gauntlets"),
       (cur_tableau_add_override_item, "itm_pop_claymore"), # Claymore
       (assign, ":animation", "anim_pose_2"),
     (else_try),
       (eq, ":type", 16), # Rogue King/Queen - king/queen
       (cur_tableau_add_override_item, "itm_royal_crown"),
       (cur_tableau_add_override_item, "itm_pl_508"), # Old Empire Plate Armor, was Noble Clothing, itm_pl_255
       (cur_tableau_add_override_item, "itm_black_greaves"),
       (cur_tableau_add_override_item, "itm_gauntlets"),
#       (cur_tableau_add_override_item, "itm_strange_great_sword"),
       (assign, ":animation", "anim_pose_3"),
     (else_try),
       (eq, ":type", 17), # Great Persuader - rich, gaudy noble - Caliph Hamid
       (try_begin),
         (eq, ":is_female", 1),
         (cur_tableau_add_override_item, "itm_pop_sing_temptress_armor"), # Singalian Temptress Armor
       (else_try),
         (cur_tableau_add_override_item, "itm_pl_277"), # Bright D'Shar Clothing
         (cur_tableau_add_override_item, "itm_leather_gloves"),
       (try_end),
       (cur_tableau_add_override_item, "itm_pl_486"), # Soft Soled Plate Greaves
       (assign, ":animation", "anim_pose_5"),
     (else_try),
       (eq, ":type", 18), # Master Builder - rich townie
       (try_begin),
         (eq, ":is_female", 1),
         (cur_tableau_add_override_item, "itm_pl_442"), # Fur-lined coat over armored bodice
       (else_try),
         (cur_tableau_add_override_item, "itm_pl_251"), # D'shar Clothing
       (try_end),
       (cur_tableau_add_override_item, "itm_woolen_hose"),
       (assign, ":animation", "anim_pose_1"),
     (else_try),
       (eq, ":type", 19), # Competent Aide - fast troop, messenger?
       (cur_tableau_add_override_item, "itm_pl_259"), # Yellow and Green Clothing
       (cur_tableau_add_override_item, "itm_light_leather_boots"),
       (assign, ":animation", "anim_pose_running"),
     (else_try),
       (eq, ":type", 20), # Epitome of Ineptitude - peasant
       (try_begin),
         (eq, ":is_female", 1),
         (cur_tableau_add_override_item, "itm_headcloth"),
         (cur_tableau_add_override_item, "itm_dress"),
       (else_try),
         (cur_tableau_add_override_item, "itm_felt_hat"),
         (cur_tableau_add_override_item, "itm_coarse_tunic"),
       (try_end),
       (cur_tableau_add_override_item, "itm_wrapping_boots"),
       (assign, ":animation", "anim_pose_fail"),
     (else_try),
       (eq, ":type", 21), # Slippery Fellow - peasant girl
#       (cur_tableau_add_override_item, "itm_woolen_hood"), # itm_woolen_hood or itm_headcloth
       (cur_tableau_add_override_item, "itm_woolen_dress"), # itm_dress or itm_woolen_dress
       (assign, ":animation", "anim_pose_scratchass"),
     (else_try),
       (eq, ":type", 22), # Caravan Marauder - caravan master
       (cur_tableau_add_override_item, "itm_leather_jacket"), # itm_fur_coat or itm_leather_jacket
       (cur_tableau_add_override_item, "itm_hide_boots"),
       (cur_tableau_add_override_item, "itm_sword_medieval_c"),
       (assign, ":animation", "anim_pose_5"),
     (else_try),
       (eq, ":type", 23), # Village Plunderer - looter
       (cur_tableau_add_override_item, "itm_ragged_outfit"), # or itm_linen_tunic
       (cur_tableau_add_override_item, "itm_hunter_boots"),
       (cur_tableau_add_override_item, "itm_butchering_knife"),
       (assign, ":animation", "anim_pose_2"),
     (else_try),
       (eq, ":type", 24), # Blatant Deceiver - naked
#       (cur_tableau_add_override_item, "itm_felt_hat"),
       (assign, ":animation", "anim_pose_ashamed"),
     (else_try),
       (eq, ":type", 25), # Order Grandmaster - pick up the items from an order troop
       (troop_get_slot, ":order_troop", "trp_player", slot_troop_order_member),
       (try_for_range, ":item_slot", ek_body, ek_horse), #no helm, other armor only
         (troop_get_inventory_slot, ":item", ":order_troop", ":item_slot"),
         (try_begin),
           (ge, ":item", 0),
           (cur_tableau_add_override_item, ":item"),
         (try_end),
       (try_end),
       (assign, ":animation", "anim_pose_3"),
     (else_try),
       (eq, ":type", 100), # Victory Screen
       (assign, ":override_flags", af_override_fullhelm|af_override_weapon_1|af_override_weapon_2|af_override_weapon_3), #with gear minus helmet
       (cur_tableau_set_override_flags, ":override_flags"), 
       (assign, ":animation", "anim_pose_4"),
     (else_try),
       (eq, ":type", 101), # Order founded
       (faction_get_slot, ":order_knight", "$g_notification_menu_var1", slot_faction_order_knight),
       (try_for_range, ":item_slot", ek_body, ek_horse), #no helm, other armor only
         (troop_get_inventory_slot, ":item", ":order_knight", ":item_slot"),
         (try_begin),
           (ge, ":item", 0),
           (cur_tableau_add_override_item, ":item"),
         (try_end),
       (try_end),
       (assign, ":animation", "anim_pose_4"),
     (else_try), # error
       (assign, ":animation", "anim_pose_scratchass"),
    (try_end),

     (init_position, pos2),
     (cur_tableau_set_camera_parameters, 1, 6, 6, 10, 10000),

     (init_position, pos5),
     (position_set_z, pos5, 96),
     (position_set_y, pos5, 350),

     (try_begin),
       (eq, ":type", 101), # Order founded - show the founding instead of player
       (party_get_slot, ":lord", "$g_notification_menu_var2", slot_town_lord),
       (cur_tableau_add_troop, ":lord", pos2, "anim_pose_4", 0),
     (else_try),
       # max strength so we can beat item requirements
       (store_attribute_level, ":player_str", "trp_player", ca_strength),
       (troop_raise_attribute, "trp_player", ca_strength, 100),
     
       (cur_tableau_add_troop, "trp_player", pos2, ":animation", 0),
     
       (troop_raise_attribute, "trp_player", ca_strength, -1000),
       (troop_raise_attribute, "trp_player", ca_strength, ":player_str"),
    (try_end),

     (position_rotate_x, pos5, -90),
     (position_rotate_z, pos5, 180),
     (cur_tableau_set_camera_position, pos5),
     ]),
## MadVader achieve end

## MadVader groupphoto begin
   ("group_companions", 0, "troop_portrait", 1024, 1024, 0, 0, 1000, 1000,
   [
     (set_fixed_point_multiplier, 100),
     (cur_tableau_set_background_color, 0x00000000),
     (cur_tableau_set_ambient_light, 100,100,100), # MadVader bright

     (init_position, pos8),
     (position_set_x, pos8, -210),
     (position_set_y, pos8, 200),
     (position_set_z, pos8, 300),
     (cur_tableau_add_point_light, pos8, 550,500,450),

     (cur_tableau_set_override_flags, af_override_head), # so we can see their pretty faces
#     (cur_tableau_set_camera_parameters, 1, 6, 6, 10, 10000),
     (cur_tableau_set_camera_parameters, 1, 9, 9, 10, 10000),
     
     # Player
     (init_position, pos1),     
     (position_set_x, pos1, 0),
     (position_set_y, pos1, 0),
     (position_set_z, pos1, 0),
     (troop_get_inventory_slot, ":horse_item", "trp_player", ek_horse),
     (try_begin),
       (gt, ":horse_item", 0),
       (cur_tableau_add_horse, ":horse_item", pos1, "anim_horse_stand", 0),
       (cur_tableau_add_troop, "trp_player", pos1, "anim_ride_0" , 0),
     (else_try),
       (cur_tableau_add_troop, "trp_player", pos1, "anim_pose_1" , 0),
     (try_end),

     # Four companions/troops
     (party_get_num_companion_stacks, ":num_stacks","p_main_party"),
     (val_min, ":num_stacks", 5),
     (try_for_range, ":stack_no", 1, ":num_stacks"),
       (party_stack_get_troop_id, ":troop", "p_main_party", ":stack_no"),
       
       (try_begin),
         (is_between, ":troop", companions_begin, companions_end),
         (cur_tableau_set_override_flags, af_override_head), # so we can see their pretty faces
         (assign, ":random_seed", 0),
       (else_try),
         (cur_tableau_set_override_flags, 0), # regulars can have helmets
         (store_mul, ":random_seed", ":troop", 126233), # gollum face fix
         (val_mod, ":random_seed", 1000),
         (val_add, ":random_seed", 1),
       (try_end),
       
       (store_mod, ":x_sign", ":stack_no", 2),
       (val_mul, ":x_sign", 2),
       (val_sub, ":x_sign", 1),
       (store_add, ":x_pos", ":stack_no", 1),
       (val_div, ":x_pos", 2),
       (val_mul, ":x_pos", 110),
       (val_mul, ":x_pos", ":x_sign"),
       
       (init_position, pos2),     
       (position_set_x, pos2, ":x_pos"),
       (position_set_y, pos2, -100),
       (troop_get_inventory_slot, ":horse_item", ":troop", ek_horse),
       (try_begin),
         (gt, ":horse_item", 0),
         (cur_tableau_add_horse, ":horse_item", pos2, "anim_horse_stand", 0),
         (cur_tableau_add_troop, ":troop", pos2, "anim_ride_0" , ":random_seed"),
       (else_try),
         (cur_tableau_add_troop, ":troop", pos2, "anim_stand_man" , ":random_seed"),
       (try_end),
     (try_end),     
     
     (init_position, pos6),
     (position_set_z, pos6, 260), #185 #190 # camera height
     (position_set_y, pos6, 600), #600 #700 #800 #900 #1000 # zoom out
     (position_rotate_x, pos6, -80), # looking down
     (position_rotate_z, pos6, 180), # turn around
     (cur_tableau_set_camera_position, pos6),
     
       (copy_position, pos7, pos6),
       (position_rotate_x, pos7, -90), #y axis aligned with camera now. z is up
       (position_rotate_z, pos7, 30), 
       (position_rotate_x, pos7, -60), 
       (cur_tableau_add_sun_light, pos7, 175,150,125),
     ]),
## MadVader groupphoto end
  
  ("retired_troop_alpha_mask", 0, "mat_troop_portrait_mask", 2048, 2048, 0, 0, 600, 600,
   [
       (store_script_param, ":type", 1),
       (cur_tableau_set_background_color, 0x00888888),
       (cur_tableau_set_ambient_light, 10,11,15),
       (cur_tableau_render_as_alpha_mask),
       (call_script, "script_add_troop_to_cur_tableau_for_retirement", ":type"),
       ]),

  ("retired_troop_color", 0, "mat_troop_portrait_color", 2048, 2048, 0, 0, 600, 600,
   [
       (store_script_param, ":type", 1),
       (cur_tableau_set_background_color, 0xFFe7d399),
       (cur_tableau_set_ambient_light, 10,11,15),
       (call_script, "script_add_troop_to_cur_tableau_for_retirement", ":type"),
       ]),

  ("retirement_troop", 0, "tableau_with_transparency", 2048, 2048, 0, 0, 600, 600,
   [
     (store_script_param, ":type", 1),
     (cur_tableau_set_background_color, 0xFF888888),
     (cur_tableau_set_ambient_light, 10,11,15),
     (set_fixed_point_multiplier, 100),
     (cur_tableau_set_camera_parameters, 0, 40, 40, 0, 100000),

     (init_position, pos1),
     (position_set_z, pos1, 100),
     (position_set_x, pos1, -20),
     (position_set_y, pos1, -20),
     (cur_tableau_add_tableau_mesh, "tableau_retired_troop_color", ":type", pos1, 0, 0),
     (position_set_z, pos1, 200),
     (cur_tableau_add_tableau_mesh, "tableau_retired_troop_alpha_mask", ":type", pos1, 0, 0),
     ]),
  
]
 
why don't you try to find the indicated error?

Open tableau_materials.txt and search for

Code:
text 0 0
like
Code:
tab_troop_note_alpha_mask 0 0 1024 1024
is there any case of this? Then you know the tableu (first text is the name)



otherwise sounds like you have a material being listed that does not exist. You could remove some and use this for elimination (delete some, refresh, see if hte error is still in there, etc), or search them all manually with CTRL+F
 
kalarhan said:
why don't you try to find the indicated error?

Open tableau_materials.txt and search for

Code:
text 0 0
like
Code:
tab_troop_note_alpha_mask 0 0 1024 1024
is there any case of this? Then you know the tableu (first text is the name)



otherwise sounds like you have a material being listed that does not exist. You could remove some and use this for elimination (delete some, refresh, see if hte error is still in there, etc), or search them all manually with CTRL+F

That's possible that I've deleted some native unused materials. I'll roll back and see how it goes.
Thank you for your help : )
 
Back
Top Bottom