Troops and items problem.

Users who are viewing this thread

Status
Not open for further replies.
In my learning process, I thought that I should try and make my zombies slow, but powerful.
The only way I could think of was: make the troops very strong and then give them very heavy clothes.

So what I did was to copy the items that the peasants/ farmers have and paste them at the bottom (before the last bracket).
Rename them and then give them to my zombies.

However, I get some strange error when I compile.

Here is what I did.


Module_Items.py
["byzantion_helmet_a", "Byzantion Helmet", [("byzantion_helmet_a",0)], itp_type_head_armor  ,0, 278 , weight(2)|abundance(100)|head_armor(20)|body_armor(0)|leg_armor(0) ,imodbits_cloth ],
["magyar_helmet_a", "Magyar Helmet", [("magyar_helmet_a",0)], itp_type_head_armor  ,0, 278 , weight(2)|abundance(100)|head_armor(20)|body_armor(0)|leg_armor(0) ,imodbits_cloth ],
["rus_helmet_a", "Rus Helmet", [("rus_helmet_a",0)], itp_type_head_armor  ,0, 278 , weight(2)|abundance(100)|head_armor(20)|body_armor(0)|leg_armor(0) ,imodbits_cloth ],
["sipahi_helmet_a", "Sipahi Helmet", [("sipahi_helmet_a",0)], itp_type_head_armor  ,0, 278 , weight(2)|abundance(100)|head_armor(20)|body_armor(0)|leg_armor(0) ,imodbits_cloth ],
["shahi", "Shahi", [("shahi",0)], itp_type_head_armor  ,0, 278 , weight(2)|abundance(100)|head_armor(20)|body_armor(0)|leg_armor(0) ,imodbits_cloth ],
["rabati", "Rabati", [("rabati",0)], itp_type_head_armor  ,0, 278 , weight(2)|abundance(100)|head_armor(20)|body_armor(0)|leg_armor(0) ,imodbits_cloth ],

#Zombie Items Begin
["zombie_hide_boots", "Dead mans Boots", [("boot_nomad_a",0)],itp_type_foot_armor |itp_civilian  | itp_attach_armature,0, 34 , weight(1)|abundance(100)|head_armor(0)|body_armor(0)|leg_armor(10)|difficulty(0) ,imodbits_cloth ],
["zombie_leather_cap", "Dead mans Leather Cap", [("leather_cap",0)], itp_type_head_armor|itp_civilian ,0, 6 , weight(1)|abundance(100)|head_armor(10)|body_armor(0)|leg_armor(0)|difficulty(0) ,imodbits_cloth ],
["zombie_felt_hat", "Dead mans Felt Hat", [("felt_hat_a",0),("felt_hat_b",imodbits_good)], itp_type_head_armor |itp_civilian,0, 4 , weight(1)|abundance(100)|head_armor(:cool:|body_armor(0)|leg_armor(0)|difficulty(0) ,imodbits_cloth ],
["zombie_linen_tunic", "Dead mans Linen Tunic", [("linen_tunic",0)], itp_type_body_armor |itp_civilian |itp_covers_legs ,0, 6 , weight(1)|abundance(100)|head_armor(0)|body_armor(6)|leg_armor(1)|difficulty(0) ,imodbits_cloth ],
["zombie_coarse_tunic", "Dead mans Coarse Tunic", [("coarse_tunic",0)], itp_type_body_armor |itp_civilian |itp_covers_legs ,0, 47 , weight(2)|abundance(100)|head_armor(0)|body_armor(11)|leg_armor(6)|difficulty(0) ,imodbits_cloth ],
["zombie_nomad_boots", "Dead mans Nomad Boots", [("boot_nomad_b",0)], itp_type_foot_armor  |itp_civilian | itp_attach_armature,0, 116 , weight(1)|abundance(100)|head_armor(0)|body_armor(0)|leg_armor(14)|difficulty(0) ,imodbits_cloth ],
["zombie_wrapping_boots", "Dead mans Wrapping Boots", [("shoe_fur",0)], itp_type_foot_armor |itp_civilian | itp_attach_armature ,0, 3 , weight(1)|abundance(100)|head_armor(0)|body_armor(0)|leg_armor(3)|difficulty(0) ,imodbits_cloth ],
["zombie_leather_gloves","Dead mans Leather Gloves", [("lthr_glove_L",0)],itp_type_hand_armor,0, 130, weight(0.25)|abundance(120)|body_armor(2)|difficulty(0),imodbits_cloth],

#Zombie Items End




]


Module_Troops.py
##  def_attrib|level(9),wp(100),knows_common,swadian_face1, swadian_face2],
##  ["noble_refugee_woman","Noble Refugee Woman","Noble Refugee Women",tf_female|tf_guarantee_armor|tf_guarantee_boots,0,0,fac_noble_refugees,
##  [itm_knife,itm_dagger,itm_hunting_crossbow,itm_dress,itm_robe,itm_woolen_dress, itm_headcloth, itm_woolen_hood, itm_wrapping_boots],
##  def_attrib|level(3),wp(45),knows_common,refugee_face1,refugee_face2],

#Zombies Begin
["zombie","Zombie","Zombies",tf_undead|tf_allways_fall_dead|tf_guarantee_boots|tf_guarantee_gloves|tf_undead|tf_allways_fall_dead,0,0,fac_outlaws,
  [itm_zombie_hide_boots,itm_zombie_leather_gloves,itm_zombie_leather_cap,itm_zombie_felt_hat,itm_zombie_felt_hat,itm_zombie_linen_tunic,itm_zombie_coarse_tunic,itm_zombie_nomad_boots,itm_zombie_wrapping_boots],],lord_attrib|
  str_29|agi_6|level(1),wp(80),knows_warrior_npc,undead_face1,undead_face2],
#Zombies End 


  ["quick_battle_6_player", "quick_battle_6_player", "quick_battle_6_player", tf_hero, 0, reserved,  fac_player_faction, [itm_padded_cloth,itm_nomad_boots, itm_splinted_leather_greaves, itm_skullcap, itm_sword_medieval_b,  itm_crossbow, itm_bolts, itm_plate_covered_round_shield],    knight_attrib_1,wp(130),knight_skills_1, 0x000000000008010b01f041a9249f65fd],


#Player history array
  ["log_array_entry_type",            "Local Merchant","Local Merchant",tf_guarantee_boots|tf_guarantee_armor, 0,0, fac_commoners,[itm_leather_apron,itm_leather_boots,itm_butchering_knife],def_attrib|level(5),wp(40),knows_power_strike_1, merchant_face_1, merchant_face_2],
  ["log_array_entry_time",            "Local Merchant","Local Merchant",tf_guarantee_boots|tf_guarantee_armor, 0,0, fac_commoners,[itm_leather_apron,itm_leather_boots,itm_butchering_knife],def_attrib|level(5),wp(40),knows_power_strike_1, merchant_face_1, merchant_face_2],
  ["log_array_actor",                "Local Merchant","Local Merchant",tf_guarantee_boots|tf_guarantee_armor, 0,0, fac_commoners,[itm_leather_apron,itm_leather_boots,itm_butchering_knife],def_attrib|level(5),wp(40),knows_power_strike_1, merchant_face_1, merchant_face_2],


The error.
Initializing...
Traceback (most recent call last):
  File "process_global_variables.py", line 11, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\proce
ss_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\modul
e_troops.py", line 1462
    ["quick_battle_6_player", "quick_battle_6_player", "quick_battle_6_player",
tf_hero, 0, reserved,  fac_player_faction, [itm_padded_cloth,itm_nomad_boots, it
m_splinted_leather_greaves, itm_skullcap, itm_sword_medieval_b,  itm_crossbow, i
tm_bolts, itm_plate_covered_round_shield],    knight_attrib_1,wp(130),knight_ski
lls_1, 0x000000000008010b01f041a9249f65fd],
    ^
IndentationError: unexpected indent
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:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\proce
ss_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\modul
e_troops.py", line 1462
    ["quick_battle_6_player", "quick_battle_6_player", "quick_battle_6_player",
tf_hero, 0, reserved,  fac_player_faction, [itm_padded_cloth,itm_nomad_boots, it
m_splinted_leather_greaves, itm_skullcap, itm_sword_medieval_b,  itm_crossbow, i
tm_bolts, itm_plate_covered_round_shield],    knight_attrib_1,wp(130),knight_ski
lls_1, 0x000000000008010b01f041a9249f65fd],
    ^
IndentationError: unexpected indent
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 59, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\proce
ss_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\modul
e_troops.py", line 1462
    ["quick_battle_6_player", "quick_battle_6_player", "quick_battle_6_player",
tf_hero, 0, reserved,  fac_player_faction, [itm_padded_cloth,itm_nomad_boots, it
m_splinted_leather_greaves, itm_skullcap, itm_sword_medieval_b,  itm_crossbow, i
tm_bolts, itm_plate_covered_round_shield],    knight_attrib_1,wp(130),knight_ski
lls_1, 0x000000000008010b01f041a9249f65fd],
    ^
IndentationError: unexpected indent
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\proce
ss_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\modul
e_troops.py", line 1462
    ["quick_battle_6_player", "quick_battle_6_player", "quick_battle_6_player",
tf_hero, 0, reserved,  fac_player_faction, [itm_padded_cloth,itm_nomad_boots, it
m_splinted_leather_greaves, itm_skullcap, itm_sword_medieval_b,  itm_crossbow, i
tm_bolts, itm_plate_covered_round_shield],    knight_attrib_1,wp(130),knight_ski
lls_1, 0x000000000008010b01f041a9249f65fd],
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_troops.py", line 4, in <module>
    from module_troops import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\modul
e_troops.py", line 1462
    ["quick_battle_6_player", "quick_battle_6_player", "quick_battle_6_player",
tf_hero, 0, reserved,  fac_player_faction, [itm_padded_cloth,itm_nomad_boots, it
m_splinted_leather_greaves, itm_skullcap, itm_sword_medieval_b,  itm_crossbow, i
tm_bolts, itm_plate_covered_round_shield],    knight_attrib_1,wp(130),knight_ski
lls_1, 0x000000000008010b01f041a9249f65fd],
    ^
IndentationError: unexpected indent
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\proce
ss_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\modul
e_troops.py", line 1462
    ["quick_battle_6_player", "quick_battle_6_player", "quick_battle_6_player",
tf_hero, 0, reserved,  fac_player_faction, [itm_padded_cloth,itm_nomad_boots, it
m_splinted_leather_greaves, itm_skullcap, itm_sword_medieval_b,  itm_crossbow, i
tm_bolts, itm_plate_covered_round_shield],    knight_attrib_1,wp(130),knight_ski
lls_1, 0x000000000008010b01f041a9249f65fd],
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\proce
ss_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\modul
e_troops.py", line 1462
    ["quick_battle_6_player", "quick_battle_6_player", "quick_battle_6_player",
tf_hero, 0, reserved,  fac_player_faction, [itm_padded_cloth,itm_nomad_boots, it
m_splinted_leather_greaves, itm_skullcap, itm_sword_medieval_b,  itm_crossbow, i
tm_bolts, itm_plate_covered_round_shield],    knight_attrib_1,wp(130),knight_ski
lls_1, 0x000000000008010b01f041a9249f65fd],
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\proce
ss_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\modul
e_troops.py", line 1462
    ["quick_battle_6_player", "quick_battle_6_player", "quick_battle_6_player",
tf_hero, 0, reserved,  fac_player_faction, [itm_padded_cloth,itm_nomad_boots, it
m_splinted_leather_greaves, itm_skullcap, itm_sword_medieval_b,  itm_crossbow, i
tm_bolts, itm_plate_covered_round_shield],    knight_attrib_1,wp(130),knight_ski
lls_1, 0x000000000008010b01f041a9249f65fd],
    ^
IndentationError: unexpected indent
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 6, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\proce
ss_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\modul
e_troops.py", line 1462
    ["quick_battle_6_player", "quick_battle_6_player", "quick_battle_6_player",
tf_hero, 0, reserved,  fac_player_faction, [itm_padded_cloth,itm_nomad_boots, it
m_splinted_leather_greaves, itm_skullcap, itm_sword_medieval_b,  itm_crossbow, i
tm_bolts, itm_plate_covered_round_shield],    knight_attrib_1,wp(130),knight_ski
lls_1, 0x000000000008010b01f041a9249f65fd],
    ^
IndentationError: unexpected indent
Exporting quest data...
Traceback (most recent call last):
  File "process_scripts.py", line 7, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\proce
ss_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\modul
e_troops.py", line 1462
    ["quick_battle_6_player", "quick_battle_6_player", "quick_battle_6_player",
tf_hero, 0, reserved,  fac_player_faction, [itm_padded_cloth,itm_nomad_boots, it
m_splinted_leather_greaves, itm_skullcap, itm_sword_medieval_b,  itm_crossbow, i
tm_bolts, itm_plate_covered_round_shield],    knight_attrib_1,wp(130),knight_ski
lls_1, 0x000000000008010b01f041a9249f65fd],
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_mission_tmps.py", line 8, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\proce
ss_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\modul
e_troops.py", line 1462
    ["quick_battle_6_player", "quick_battle_6_player", "quick_battle_6_player",
tf_hero, 0, reserved,  fac_player_faction, [itm_padded_cloth,itm_nomad_boots, it
m_splinted_leather_greaves, itm_skullcap, itm_sword_medieval_b,  itm_crossbow, i
tm_bolts, itm_plate_covered_round_shield],    knight_attrib_1,wp(130),knight_ski
lls_1, 0x000000000008010b01f041a9249f65fd],
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_game_menus.py", line 8, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\proce
ss_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\modul
e_troops.py", line 1462
    ["quick_battle_6_player", "quick_battle_6_player", "quick_battle_6_player",
tf_hero, 0, reserved,  fac_player_faction, [itm_padded_cloth,itm_nomad_boots, it
m_splinted_leather_greaves, itm_skullcap, itm_sword_medieval_b,  itm_crossbow, i
tm_bolts, itm_plate_covered_round_shield],    knight_attrib_1,wp(130),knight_ski
lls_1, 0x000000000008010b01f041a9249f65fd],
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\proce
ss_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\modul
e_troops.py", line 1462
    ["quick_battle_6_player", "quick_battle_6_player", "quick_battle_6_player",
tf_hero, 0, reserved,  fac_player_faction, [itm_padded_cloth,itm_nomad_boots, it
m_splinted_leather_greaves, itm_skullcap, itm_sword_medieval_b,  itm_crossbow, i
tm_bolts, itm_plate_covered_round_shield],    knight_attrib_1,wp(130),knight_ski
lls_1, 0x000000000008010b01f041a9249f65fd],
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\proce
ss_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\modul
e_troops.py", line 1462
    ["quick_battle_6_player", "quick_battle_6_player", "quick_battle_6_player",
tf_hero, 0, reserved,  fac_player_faction, [itm_padded_cloth,itm_nomad_boots, it
m_splinted_leather_greaves, itm_skullcap, itm_sword_medieval_b,  itm_crossbow, i
tm_bolts, itm_plate_covered_round_shield],    knight_attrib_1,wp(130),knight_ski
lls_1, 0x000000000008010b01f041a9249f65fd],
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\proce
ss_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program\Mount&Blade\Modules\Zombie Invasion\Module\ModuleSystem\modul
e_troops.py", line 1462
    ["quick_battle_6_player", "quick_battle_6_player", "quick_battle_6_player",
tf_hero, 0, reserved,  fac_player_faction, [itm_padded_cloth,itm_nomad_boots, it
m_splinted_leather_greaves, itm_skullcap, itm_sword_medieval_b,  itm_crossbow, i
tm_bolts, itm_plate_covered_round_shield],    knight_attrib_1,wp(130),knight_ski
lls_1, 0x000000000008010b01f041a9249f65fd],
    ^
IndentationError: unexpected indent

______________________________

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

Did I forget something, or did I do something wrong?
I have checked the code, but I can't find anything wrong with it.

 
comment out the offending code line and compile again (you may get errors elsewhere if this item is called, but don't worry about that).  If it gives you the same error for the next tuple, chances are you forgot a comma or a bracket somewhere before the listed tuple.  This used to happen to me all the time...
 
Well... I tried removing everything that I added but the problem persisted. So the problem is else where.

Any idea where I should start?

I don't understand the compile error display so well so I have no idea.
 
check your syntax, it looks like you have an extra ], after your items

[itm_zombie_hide_boots,itm_zombie_leather_gloves,itm_zombie_leather_cap,itm_zombie_felt_hat,itm_zombie_felt_hat,
itm_zombie_linen_tunic,itm_zombie_coarse_tunic,itm_zombie_nomad_boots,itm_zombie_wrapping_boots],],lord_attrib|
  str_29|agi_6|level(1),wp(80),knows_warrior_npc,undead_face1,undead_face2],
 
Status
Not open for further replies.
Back
Top Bottom