Parties

Users who are viewing this thread

[D]ark [K]night

Sergeant at Arms
What file must i edit for changing the trp_looters to trp_half_goblins (my new troop) so that it is half goblins instead of looters?
 
Yeah, well i got this problem now.... mount&blade crashes...
here is the troop file:
  ["half_goblin","Half Goblin","Half Goblins",tf_gob|tf_guarantee_armor,0,0,fac_commoners,
  [itm_knife],
  def_attrib|level(1),wp(40),knows_common,gob_face1,gob_face2],
The Module_skins file:
# tf_gob
  (
    "gob", skf_use_morph_key_10,
    "Gbody",  "Gob_calf_l", "Gob_handL",
    "Gob_head", man_face_keys,
    ["man_hair_s","man_hair_m","man_hair_n","man_hair_o", "man_hair_y10", "man_hair_y12","man_hair_p","man_hair_r","man_hair_q","man_hair_v","man_hair_t","man_hair_y6","man_hair_y3","man_hair_y7","man_hair_y9","man_hair_y11","man_hair_u","man_hair_y","man_hair_y2","man_hair_y4"], #man_hair_meshes ,"man_hair_y5","man_hair_y8",
#    ["woman_hair_a","woman_hair_b","woman_hair_c","woman_hair_d","woman_hair_e","woman_hair_f","woman_hair_g"], #woman_hair_meshes
    [],
    ["hair_blonde", "hair_red", "hair_brunette", "hair_black", "hair_white"], #hair textures
  [],
    [("manface_young_2",0xffcbe0e0,["hair_blonde"],[0xffffffff, 0xffb04717, 0xff502a19]),
    ("manface_midage",0xffdfefe1,["hair_blonde"],[0xffffffff, 0xffb04717, 0xff632e18, 0xff502a19, 0xff19100c]),
    ("manface_young",0xffd0e0e0,["hair_blonde"],[0xff83301a, 0xff502a19, 0xff19100c, 0xff0c0d19]),   
#    ("manface_old",0xffd0d0d0,["hair_white","hair_brunette","hair_red","hair_blonde"],[0xffffcded, 0xffbbcded, 0xff99eebb]),
    ("manface_young_3",0xffdceded,["hair_blonde"],[0xff2f180e, 0xff171313, 0xff007080c]),
    ("manface_7",0xffc0c8c8,["hair_blonde"],[0xff171313, 0xff007080c]),
    ("manface_midage_2",0xfde4c8d8,["hair_blonde"],[0xff502a19, 0xff19100c, 0xff0c0d19]),
    ("manface_rugged",0xffb0aab5,["hair_blonde"],[0xff171313, 0xff007080c]),
#    ("manface_young_4",0xffe0e8e8,["hair_blonde"],[0xff2f180e, 0xff171313, 0xff007080c]),
    ("manface_african",0xff807c8a,["hair_blonde"],[0xff120808, 0xff007080c]),   
#    ("manface_old_2",0xffd5d5c5,["hair_white"],[0xffffcded, 0xffbbcded, 0xff99eebb]),
    ], #man_face_textures,
    [(voice_die,"snd_man_die"),(voice_hit,"snd_man_hit")], #voice sounds
    "skel_human", 1.0,
    psys_game_blood,psys_game_blood_2,

  ),

I have made custom mesh, header_skins, module_skins... well you name it...
 
[quote author=Dark Knight]What file must i edit for changing the trp_looters to trp_half_goblins (my new troop) so that it is half goblins instead of looters?[/quote]
Go to module_party_templates and find this. ("looters","Looters",icon_axeman|carries_goods(:cool:,0,fac_outlaws,bandit_personality,[(trp_looter,4,25)]),.
Change the trp_looter in the end to trp_half_goblin. (Also, the number 4,25 is the amount of the looters in the party. If you change it to 200,500 then there will be around 200-500 looters in the party.)

[quote author=Dark Knight]Yeah, well i got this problem now.... mount&blade crashes...[/quote]
What error does it give when it crashes? Also, did you include the tf_gob in header_troops.py? Add this "tf_gob = 2" below the tf_female one.  :wink:

[quote author=Dark Knight]I have made custom mesh, header_skins, module_skins... well you name it...[/quote]
What do you mean "custom header_skins"?  :???: You should not and must not edit the header_skins. The "# comments" also say that.

 
cdvader said:
[quote author=Dark Knight]What file must i edit for changing the trp_looters to trp_half_goblins (my new troop) so that it is half goblins instead of looters?
Go to module_party_templates and find this. ("looters","Looters",icon_axeman|carries_goods(:cool:,0,fac_outlaws,bandit_personality,[(trp_looter,4,25)]),.
Change the trp_looter in the end to trp_half_goblin. (Also, the number 4,25 is the amount of the looters in the party. If you change it to 200,500 then there will be around 200-500 looters in the party.)

[quote author=Dark Knight]Yeah, well i got this problem now.... mount&blade crashes...[/quote]
What error does it give when it crashes? Also, did you include the tf_gob in header_troops.py? Add this "tf_gob = 2" below the tf_female one.  :wink:

[quote author=Dark Knight]I have made custom mesh, header_skins, module_skins... well you name it...[/quote]
What do you mean "custom header_skins"?  :???: You should not and must not edit the header_skins. The "# comments" also say that.
[/quote]

well, tf_undead use tf_undead = 2
 
when i made the head texture i forgot to mirror it :smile: hehe, half of his head is green, the rest is white :smile:



Edit: When i go to the looter and speak to them the game crash.... no error message, just mount & blade crashed, looking for a solution... (not sure how it's in english)

can you people see something wrong with my troop file?

  ["half_goblin","Half Goblin","Half Goblins",tf_gob|tf_guarantee_armor,0,0,fac_commoners,
  [itm_sword_medieval_b],
  def_attrib|level(1),wp(40),knows_common,gob_face1,gob_face2],
 
In the troops file, I see gob_face1. Is it gob_face1 or gob_face_1? Make sure.
 
cdvader said:
In the troops file, I see gob_face1. Is it gob_face1 or gob_face_1? Make sure.

  ["half_goblin","Goblin","Goblins",tf_gob,0,0,fac_neutral,
  [itm_falchion],
  str_12|agi_6|level(:cool:,wp(80),knows_common,goblin_face_1,goblin_face_2],

that is the file you sent me, and that's the file i'm using.
the face codes are goblin_face_1 and 2
 
[D]ark [K]night said:
can you people see something wrong with my troop file?

  ["half_goblin","Half Goblin","Half Goblins",tf_gob|tf_guarantee_armor,0,0,fac_commoners,
  [itm_sword_medieval_b],
  def_attrib|level(1),wp(40),knows_common,gob_face1,gob_face2],

There it is gob_face1. :razz: Anyway, I can't think of the possible problem.
 
Anyone help me please....

Module Skins:

from header_skins import *
from ID_particle_systems import *
####################################################################################################################
#  Each skin record contains the following fields:
#  1) Skin id: used for referencing skins.
#  2) Skin flags. Not used yet. Should be 0.
#  3) Body mesh.
#  4) Calf mesh (left one).
#  5) Hand mesh (left one).
#  6) Head mesh.
#  7) Face keys (list)
:cool: List of hair meshes.
#  9) List of beard meshes.
# 10) List of hair textures.
# 11) List of beard textures.
# 12) List of face textures.
# 13) List of voices.
# 14) Skeleton name
# 15) Scale (doesn't fully work yet)
# 16) Blood particles 1 (do not add this if you wish to use the default particles)
# 17) Blood particles 2 (do not add this if you wish to use the default particles)
# 17) Face key constraints (do not add this if you do not wish to use it)
####################################################################################################################

man_face_keys = [
(20,0, 0.7,-0.6, "Chin Size"),
(260,0, -0.6,1.4, "Chin Shape"),
(10,0,-0.5,0.9, "Chin Forward"),
(240,0,0.9,-0.8, "Jaw Width"),
(210,0,-0.5,1.0, "Jaw Position"),
(250,0,0.8,-1.0, "Mouth-Nose Distance"),
(200,0,-0.3,1.0, "Mouth Width"),
(50,0,-1.5,1.0, "Cheeks"),

(60,0,-0.4,1.35, "Nose Height"),
(70,0,-0.6,0.7, "Nose Width"),
(80,0,1.0,-0.1, "Nose Size"),
(270,0,-0.5,1.0, "Nose Shape"),
(90,0,-0.2,1.4, "Nose Bridge"),

(100,0,-0.3,1.5, "Cheek Bones"),
(150,0,-0.2,3.0, "Eye Width"),
(110,0,1.5,-0.9, "Eye to Eye Dist"),
(120,0,1.9,-1.0, "Eye Shape"),
(130,0,-0.5, 1.1, "Eye Depth"),
(140,0,1.0,-1.2, "Eyelids"),

(160,0,1.3,-0.2, "Eyebrow Position"),
(170,0,-0.1,1.9, "Eyebrow Height"),
(220,0,-0.1,0.9, "Eyebrow Depth"),
(180,0,-1.1,1.6, "Eyebrow Shape"),
(230,0,1.2,-0.7, "Temple Width"),

(30,0,-0.6,0.9, "Face Depth"),
(40,0,0.9,-0.6, "Face Ratio"),
(190,0,0.0,0.95, "Face Width"),

(280,0,0.0,1.0, "Post-Edit"),
]
# Face width-Jaw width Temple width
woman_face_keys = [
(230,0,0.8,-1.0, "Chin Size"),
(220,0,-1.0,1.0, "Chin Shape"),
(10,0,-1.2,1.0, "Chin Forward"),
(20,0, -0.6, 1.2, "Jaw Width"),
(40,0,-0.7,1.0, "Jaw Position"),
(270,0,0.9,-0.9, "Mouth-Nose Distance"),
(30,0,-0.5,1.0, "Mouth Width"),
(50,0, -0.5,1.0, "Cheeks"),

(60,0,-0.5,1.0, "Nose Height"),
(70,0,-0.5,1.1, "Nose Width"),
(80,0,1.5,-0.3, "Nose Size"),
(240,0,-1.0,0.8, "Nose Shape"),
(90,0, 0.0,1.1, "Nose Bridge"),

(100,0,-0.5,1.5, "Cheek Bones"),
(150,0,-0.4,1.0, "Eye Width"),
(110,0,1.0,0.0, "Eye to Eye Dist"),
(120,0,-0.2,1.0, "Eye Shape"),
(130,0,-0.1,1.6, "Eye Depth"),
(140,0,-0.2,1.0, "Eyelids"),


(160,0,-0.2,1.2, "Eyebrow Position"),
(170,0,-0.2,0.7, "Eyebrow Height"),
(250,0,-0.4,0.9, "Eyebrow Depth"),
(180,0,-1.5,1.2, "Eyebrow Shape"),
(260,0,1.0,-0.7, "Temple Width"),

(200,0,-0.5,1.0, "Face Depth"),
(210,0,-0.5,0.9, "Face Ratio"),
(190,0,-0.4,0.8, "Face Width"),

(280,0,0.0,1.0, "Post-Edit"),
]
undead_face_keys = []


chin_size = 0
chin_shape = 1
chin_forward = 2
jaw_width = 3
jaw_position = 4
mouth_nose_distance = 5
mouth_width = 6
cheeks = 7
nose_height = 8
nose_width = 9
nose_size = 10
nose_shape = 11
nose_bridge = 12
cheek_bones = 13
eye_width = 14
eye_to_eye_dist = 15
eye_shape = 16
eye_depth = 17
eyelids = 18
eyebrow_position = 19
eyebrow_height = 20
eyebrow_depth = 21
eyebrow_shape = 22
temple_width = 23
face_depth = 24
face_ratio = 25
face_width = 26

comp_less_than = -1;
comp_greater_than = 1;

skins = [
  (
    "man", 0,
    "man_body", "man_calf_l", "m_handL",
    "male_head", man_face_keys,
    ["man_hair_s","man_hair_m","man_hair_n","man_hair_o", "man_hair_y10", "man_hair_y12","man_hair_p","man_hair_r","man_hair_q","man_hair_v","man_hair_t","man_hair_y6","man_hair_y3","man_hair_y7","man_hair_y9","man_hair_y11","man_hair_u","man_hair_y","man_hair_y2","man_hair_y4"], #man_hair_meshes ,"man_hair_y5","man_hair_y8",
    ["beard_e","beard_d","beard_k","beard_l","beard_i","beard_j","beard_z","beard_m","beard_n","beard_y","beard_p","beard_o",  "beard_v", "beard_f", "beard_b", "beard_c","beard_t","beard_u","beard_r","beard_s","beard_a","beard_h","beard_g",], #beard meshes ,"beard_q"
    ["hair_blonde", "hair_red", "hair_brunette", "hair_black", "hair_white"], #hair textures
    ["beard_blonde","beard_red","beard_brunette","beard_black","beard_white"], #beard_materials
    [("manface_young_2",0xffcbe0e0,["hair_blonde"],[0xffffffff, 0xffb04717, 0xff502a19]),
    ("manface_midage",0xffdfefe1,["hair_blonde"],[0xffffffff, 0xffb04717, 0xff632e18, 0xff502a19, 0xff19100c]),
    ("manface_young",0xffd0e0e0,["hair_blonde"],[0xff83301a, 0xff502a19, 0xff19100c, 0xff0c0d19]),   
#    ("manface_old",0xffd0d0d0,["hair_white","hair_brunette","hair_red","hair_blonde"],[0xffffcded, 0xffbbcded, 0xff99eebb]),
    ("manface_young_3",0xffdceded,["hair_blonde"],[0xff2f180e, 0xff171313, 0xff007080c]),
    ("manface_7",0xffc0c8c8,["hair_blonde"],[0xff171313, 0xff007080c]),
    ("manface_midage_2",0xfde4c8d8,["hair_blonde"],[0xff502a19, 0xff19100c, 0xff0c0d19]),
    ("manface_rugged",0xffb0aab5,["hair_blonde"],[0xff171313, 0xff007080c]),
#    ("manface_young_4",0xffe0e8e8,["hair_blonde"],[0xff2f180e, 0xff171313, 0xff007080c]),
    ("manface_african",0xff807c8a,["hair_blonde"],[0xff120808, 0xff007080c]),   
#    ("manface_old_2",0xffd5d5c5,["hair_white"],[0xffffcded, 0xffbbcded, 0xff99eebb]),
    ], #man_face_textures,
    [(voice_die,"snd_man_die"),(voice_hit,"snd_man_hit"),(voice_grunt,"snd_man_grunt"),(voice_grunt_long,"snd_man_grunt_long"),(voice_yell,"snd_man_yell"),(voice_victory,"snd_man_victory")], #voice sounds
    "skel_human", 1.0,
    psys_game_blood,psys_game_blood_2,
    [[1.7, comp_greater_than, (1.0,face_width), (1.0,temple_width)], #constraints: ex: 1.7 > (face_width + temple_width)
    [0.3, comp_less_than, (1.0,face_width), (1.0,temple_width)],
    [1.7, comp_greater_than, (1.0,face_width), (1.0,face_depth)],
    [0.3, comp_less_than, (1.0,eyebrow_height), (1.0,eyebrow_position)],
    [1.7, comp_greater_than, (1.0,eyebrow_height), (1.0,eyebrow_position)],
    [-0.7, comp_less_than, (1.0,nose_size), (-1.0,nose_shape)],
    [0.7, comp_greater_than, (1.0,nose_size), (-1.0,nose_shape)],
    [2.7, comp_greater_than, (1.0,chin_size), (1.0,mouth_nose_distance), (1.0,nose_height), (-1.0,face_width)],
    ]
  ),
 
  (
    "woman", skf_use_morph_key_10,
    "woman_body",  "woman_calf_l", "f_handL",
    "female_head", woman_face_keys,
    ["woman_hair_p","woman_hair_n","woman_hair_o","woman_hair_q","woman_hair_r","woman_hair_t","woman_hair_s"], #woman_hair_meshes
#    ["woman_hair_a","woman_hair_b","woman_hair_c","woman_hair_d","woman_hair_e","woman_hair_f","woman_hair_g"], #woman_hair_meshes
    [],
    ["hair_blonde", "hair_red", "hair_brunette", "hair_black", "hair_white"], #hair textures
    [],
    [("womanface_young",0xffe3e8ef,["hair_blonde"],[0xffffffff, 0xffb04717, 0xff502a19, 0xff19100c]),
    ("womanface_b",0xffdfdfdf,["hair_blonde"],[0xffa5481f, 0xff502a19, 0xff19100c, 0xff0c0d19]),
    ("womanface_a",0xffe8dfe5,["hair_blonde"],[0xff502a19, 0xff19100c, 0xff0c0d19]),
    ("womanface_brown",0xffaf9f7e,["hair_blonde"],[0xff19100c, 0xff0c0d19, 0xff007080c]),
    ("womanface_african",0xff808080,["hair_blonde"],[0xff120808, 0xff007080c]),
#    ("womanface_midage",0xffe5eaf0,["hair_black","hair_brunette","hair_red","hair_white"],[0xffffcded, 0xffbbcded, 0xff99eebb]),
    ],#woman_face_textures
    [(voice_die,"snd_woman_die"),(voice_hit,"snd_woman_hit")], #voice sounds
    "skel_human", 1.0,
    psys_game_blood,psys_game_blood_2,
  ),
 
  # tf_new_race
  (
    "new_race", skf_use_morph_key_10,
    "elf_body",  "man_calf_l", "m_handL",
    "male_head", man_face_keys,
    ["man_hair_s","man_hair_m","man_hair_n","man_hair_o", "man_hair_y10", "man_hair_y12","man_hair_p","man_hair_r","man_hair_q","man_hair_v","man_hair_t","man_hair_y6","man_hair_y3","man_hair_y7","man_hair_y9","man_hair_y11","man_hair_u","man_hair_y","man_hair_y2","man_hair_y4"], #man_hair_meshes ,"man_hair_y5","man_hair_y8",
#    ["woman_hair_a","woman_hair_b","woman_hair_c","woman_hair_d","woman_hair_e","woman_hair_f","woman_hair_g"], #woman_hair_meshes
    [],
    ["hair_blonde", "hair_red", "hair_brunette", "hair_black", "hair_white"], #hair textures
    [],
    [("manface_young_2",0xffcbe0e0,["hair_blonde"],[0xffffffff, 0xffb04717, 0xff502a19]),
    ("manface_midage",0xffdfefe1,["hair_blonde"],[0xffffffff, 0xffb04717, 0xff632e18, 0xff502a19, 0xff19100c]),
    ("manface_young",0xffd0e0e0,["hair_blonde"],[0xff83301a, 0xff502a19, 0xff19100c, 0xff0c0d19]),   
#    ("manface_old",0xffd0d0d0,["hair_white","hair_brunette","hair_red","hair_blonde"],[0xffffcded, 0xffbbcded, 0xff99eebb]),
    ("manface_young_3",0xffdceded,["hair_blonde"],[0xff2f180e, 0xff171313, 0xff007080c]),
    ("manface_7",0xffc0c8c8,["hair_blonde"],[0xff171313, 0xff007080c]),
    ("manface_midage_2",0xfde4c8d8,["hair_blonde"],[0xff502a19, 0xff19100c, 0xff0c0d19]),
    ("manface_rugged",0xffb0aab5,["hair_blonde"],[0xff171313, 0xff007080c]),
#    ("manface_young_4",0xffe0e8e8,["hair_blonde"],[0xff2f180e, 0xff171313, 0xff007080c]),
    ("manface_african",0xff807c8a,["hair_blonde"],[0xff120808, 0xff007080c]),   
#    ("manface_old_2",0xffd5d5c5,["hair_white"],[0xffffcded, 0xffbbcded, 0xff99eebb]),
    ], #man_face_textures,
    [(voice_die,"snd_man_die"),(voice_hit,"snd_man_hit")], #voice sounds
    "skel_human", 1.0,
    psys_game_blood,psys_game_blood_2,
  ),
 
# Simple goblin flag. #
# tf_gob #
  ( #begin
    "gob", 0, # The goblins flag name. #
    "Gbody", "Gob_calf_l", "Gob_handL", # The goblins body mesh(es). #
    "Gob_head", man_face_keys, # The goblins head mesh(es? lol). #
["man_hair_s"], # The goblins hair mesh(es). #
    ["beard_e"], # The goblins beard mesh(es). #
    ["hair_blonde"], # The goblins hair texture(s). #
    ["beard_blonde"], # The goblins beard material(s). #
    [("Gob_head",0xffffffff,["hair_blonde"],[0xffffffff, 0xffb04717, 0xff502a19, 0xff19100c]), # The goblins face texture(s) (If you have no face texture for the goblin, use this "manface_young_2". #
    ],
[(voice_die,"snd_man_die"),(voice_hit,"snd_man_hit"),(voice_grunt,"snd_man_grunt"),(voice_grunt_long,"snd_man_grunt_long"),(voice_yell,"snd_man_yell"),(voice_warcry,"snd_man_warcry"),(voice_victory,"snd_man_victory")], # The goblins sound(s). Here you can give the goblin custom sounds. #
    "skel_human", 1.0, # The goblins skeleton. Don't change this. #
    psys_game_blood,psys_game_blood_2, # The goblins blood. You can change the colour of this if you want. #
  ), #end
# Simple goblin flag. #

 
##  (
##    "undead", 0,
##    "undead_body", "undead_calf_l", "undead_handL",
##    "undead_head", undead_face_keys,
##    [],
##    [],
##    [],
##    [],
##    [("undeadface_a",0xffffffff,[]),
##    ("undeadface_b",0xffcaffc0,[]),
##    ], #undead_face_textures
##    [], #voice sounds
##    "skel_human", 1.0,
##  ),
]

Module_troops

  ["half_goblin","Goblin","Goblins",tf_gob,0,0,fac_neutral,
  [itm_falchion],
  str_12|agi_6|level(:cool:,wp(80),knows_common,goblin_face_1,goblin_face_2],

face codes:
goblin_face_1  = 0x0000000000000000000000000000000000000000000000000000000000000000
goblin_face_2  = 0x000000003f000493000000000000000000000000000000000000000000000000

Module_party_templates

("looters","Goblins",icon_axeman|carries_goods(:cool:,0,fac_outlaws,bandit_personality,[(trp_half_goblin,10,60)]),

Header Troops :

#Troop flags
tf_male          = 0
tf_female        = 1
tf_gob           = 4
tf_new_race   = 3
tf_undead        = 2
troop_type_mask  = 0x0000000f
tf_hero              = 0x00000010
tf_inactive          = 0x00000020
tf_unkillable        = 0x00000040
tf_allways_fall_dead = 0x00000080
tf_no_capture_alive  = 0x00000100
tf_mounted          = 0x00000400 #Troop's movement speed on map is determined by riding skill.
tf_is_merchant      = 0x00001000 #When set, troop does not equip stuff he owns
tf_randomize_face    = 0x00008000 #randomize face at the beginning of the game.
 
What do you need help with .... please post the error code in here if you get a error.
 
Well ( i have to stop saying "well"), the problem is that when i encounter the Goblins party, the game crash, and i tried using the troopeditor too, from upgrading Swadian recruit to Goblin, but the game crashed when i selected the goblins.... the error message i get is standard vista.... "Mount&Blade crashed bla bla bla...." no details like in Xp..
 
Back
Top Bottom