Way to make modifying troops less tedious?

Users who are viewing this thread

Are there any tips that people could give to make modifying troops less tedious? I'm just doing a mod that changes Native a bit for my own practice and learning purposes, but I find editing the troops to be so mind numbing that I stop after only doing two of them. I didn't have this issue when adding items, or doing scripts.

I like how Morgh's looks and feels, and I've tried using it with the module system options, but whenever I do "build mod" I get a bunch of errors because of it.

Is there anything people could suggest doing so that editing troops could be a more pleasant experience?
 
The errors I get are this:

Code:
Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\module_troops.py", line 1650
    component_name = "troops"
                 ^
IndentationError: expected an indented block
Traceback (most recent call last):
  File "process_global_variables.py", line 12, in <module>
    from process_operations import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\module_troops.py", line 1650
    component_name = "troops"
                 ^
IndentationError: expected an indented block
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 "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\module_troops.py", line 1650
    component_name = "troops"
                 ^
IndentationError: expected an indented block
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 66, in <module>
    from process_operations import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\module_troops.py", line 1650
    component_name = "troops"
                 ^
IndentationError: expected an indented block
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\module_troops.py", line 1650
    component_name = "troops"
                 ^
IndentationError: expected an indented block
Traceback (most recent call last):
  File "process_troops.py", line 4, in <module>
    from module_troops import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\module_troops.py", line 1650
    component_name = "troops"
                 ^
IndentationError: expected an indented block
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\module_troops.py", line 1650
    component_name = "troops"
                 ^
IndentationError: expected an indented block
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\module_troops.py", line 1650
    component_name = "troops"
                 ^
IndentationError: expected an indented block
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\module_troops.py", line 1650
    component_name = "troops"
                 ^
IndentationError: expected an indented block
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 6, in <module>
    from process_operations import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\module_troops.py", line 1650
    component_name = "troops"
                 ^
IndentationError: expected an indented block
Exporting quest data...
Exporting info_page data...
Traceback (most recent call last):
  File "process_scripts.py", line 7, in <module>
    from process_operations import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\module_troops.py", line 1650
    component_name = "troops"
                 ^
IndentationError: expected an indented block
Traceback (most recent call last):
  File "process_mission_tmps.py", line 8, in <module>
    from process_operations import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\module_troops.py", line 1650
    component_name = "troops"
                 ^
IndentationError: expected an indented block
Traceback (most recent call last):
  File "process_game_menus.py", line 8, in <module>
    from process_operations import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\module_troops.py", line 1650
    component_name = "troops"
                 ^
IndentationError: expected an indented block
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\module_troops.py", line 1650
    component_name = "troops"
                 ^
IndentationError: expected an indented block
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\module_troops.py", line 1650
    component_name = "troops"
                 ^
IndentationError: expected an indented block
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\steam\SteamApps\common\mountblade warband\Modules\11th Cent Calradia Mod S
ystem\module_troops.py", line 1650
    component_name = "troops"
                 ^
IndentationError: expected an indented block
Exporting postfx_params...

______________________________

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

This is an example of module_troops.py after I use Morgh's. The only thing done being to add "itm_new_sword".

Code:
["swadian_recruit","Swadian Recruit","Swadian Recruits",tf_guarantee_armor,0,0,fac_kingdom_1,[itm_scythe,itm_hatchet,itm_pickaxe,itm_club,itm_stones,itm_tab_shield_heater_a,itm_leather_cap,itm_felt_hat,itm_felt_hat,itm_shirt,itm_coarse_tunic,itm_leather_apron,itm_nomad_boots,itm_wrapping_boots,itm_new_sword],def_attrib|level(4),wp(60),knows_common,swadian_face_younger_1,swadian_face_middle_2],
["swadian_militia","Swadian Militia","Swadian Militia",tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_shield,0,0,fac_kingdom_1,[itm_bolts,itm_spiked_club,itm_fighting_pick,itm_boar_spear,itm_hunting_crossbow,itm_tab_shield_heater_a,itm_padded_cloth,itm_red_gambeson,itm_arming_cap,itm_arming_cap,itm_ankle_boots,itm_wrapping_boots,itm_new_sword],def_attrib|level(9),wp(75),knows_common,swadian_face_young_1,swadian_face_old_2],

All of the troops in it after using Morgh's look like this, and I get build errors, and evidently everything loses its indentation.

This is the same example from my backup module_troops.py (no build errors with this):

Code:
  ["swadian_recruit","Swadian Recruit","Swadian Recruits",tf_guarantee_armor,0,0,fac_kingdom_1,
   [itm_scythe,itm_hatchet,itm_pickaxe,itm_club,itm_stones,itm_tab_shield_heater_a,itm_leather_cap,itm_felt_hat,itm_felt_hat,
    itm_shirt,itm_coarse_tunic,itm_leather_apron,itm_nomad_boots,itm_wrapping_boots,itm_new_sword],
   def_attrib|level(4),wp(60),knows_common,swadian_face_younger_1, swadian_face_middle_2],
  ["swadian_militia","Swadian Militia","Swadian Militia",tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_shield,0,0,fac_kingdom_1,
   [itm_bolts,itm_spiked_club,itm_fighting_pick,itm_boar_spear,itm_hunting_crossbow,itm_tab_shield_heater_a,
    itm_padded_cloth,itm_red_gambeson,itm_arming_cap,itm_arming_cap,itm_ankle_boots,itm_wrapping_boots,itm_new_sword],
   def_attrib|level(9),wp(75),knows_common,swadian_face_young_1, swadian_face_old_2],
 
Compiler is producing an error on the line

Code:
    component_name = "troops"

This is not a standard line for module_troops. Can you copy some lines from your file before the line 1650? Pay extra care to indentation spaces and tabs: for Python they are not equivalent.
 
I believe that's from modmerger, from when I implemented Motomataru's formations kit. I decided to merge it with the mod system it manually, and Morgh's works fine now.
 
ThegnAnsgar said:
I believe that's from modmerger, from when I implemented Motomataru's formations kit. I decided to merge it with the mod system it manually, and Morgh's works fine now.

I actually have the problem al the time. I just uninstall Modmerger, compile and then reinstall it. Works perfectly then.
 
Back
Top Bottom