Author Topic: Napoleonic Wars basic modding Tutorial.  (Read 91818 times)

0 Members and 1 Guest are viewing this topic.

Offline George385

  • Donator
  • **
  • Posts: 2601
  • nah yeah nah nah yeah nah
    • View Profile
  • Nick: George385
  • Side: Confederacy
Re: Napoleonic Wars basic modding Tutorial.
« Reply #30 on: January 07, 2014, 11:31:58 pm »
ok. here is up to the test soldier-

Code
["kutuzov","Feldmarshal Mikhail Kutuzov","Commander",tf_mounted|tf_guarantee_all,0,0,fac_russia,
   [itm_kutuzov,itm_rus_kutuzov_pants,itm_kutuzov_hat,itm_russian_guard_sword_1799,itm_heavy_horse_russia,itm_officer_gloves,itm_spyglass],
   def_attrib|level(20),wpex(130,5,30,5,30,5),knows_common|knows_riding_6|knows_ironflesh_5|knows_power_strike_3,swadian_face_middle_1, swadian_face_old_2],   
 
  ### AUSTRIA ###
  ["austrian_infantry","Infantrie Regiment Erzherzog Rudolf Nr. 14","Line Infantry",tf_guarantee_all,0,0,fac_austria,
   [itm_austrian_infantry,itm_aus_infantry_ranker,itm_austrian_infantry_pants,itm_bullets,itm_austrian_musket],
   def_attrib_multiplayer|level(20),wpex(50,5,130,5,150,5),knows_common|knows_ironflesh_3|knows_power_strike_3|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_infantry_nco","Infantrie Regiment Erzherzog Rudolf Nr. 14","Colour Bearer",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_infantry_nco,itm_aus_infantry_nco,itm_austrian_infantry_pants,itm_austria_colour_leibfahne,itm_austrian_infantry_briquet],
   def_attrib_multiplayer|level(20),wpex(80,5,80,5,50,5),knows_common|knows_ironflesh_3|knows_power_strike_3|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_infantry_officer","Infantrie Regiment Erzherzog Rudolf Nr. 14","Officer",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_infantry_officer,itm_aus_infantry_officer,itm_austrian_officer_boots,itm_russian_officer_sword,itm_pistol_ammo,itm_russian_pistol,itm_officer_gloves,itm_spyglass],
   def_attrib_multiplayer|level(20),wpex(80,5,80,5,50,5),knows_common|knows_ironflesh_3|knows_power_strike_3|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_infantry_drum","Infantrie Regiment Erzherzog Rudolf Nr. 14","Drummer",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_infantry_drummer,itm_aus_infantry_ranker,itm_austrian_infantry_pants,itm_drummer_gloves,itm_drumstick_right,itm_austrian_infantry_briquet],
   def_attrib_multiplayer|level(20),wpex(80,5,80,5,50,5),knows_common|knows_ironflesh_3|knows_power_strike_3|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_infantry_flute","Infantrie Regiment Erzherzog Rudolf Nr. 14","Fifer",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_infantry_fifer,itm_aus_infantry_ranker,itm_austrian_infantry_pants,itm_flute,itm_austrian_infantry_briquet],
   def_attrib_multiplayer|level(20),wpex(80,5,80,5,50,5),knows_common|knows_ironflesh_3|knows_power_strike_3|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_infantry2","Infantrie Regiment Freiherr von Wacquant Nr. 62","Line Infantry",tf_guarantee_all,0,0,fac_austria,
   [itm_austrian_infantry2,itm_aus_infantry_ranker,itm_hungarian_pants,itm_bullets,itm_austrian_musket],
   def_attrib_multiplayer|level(20),wpex(50,5,130,5,150,5),knows_common|knows_ironflesh_3|knows_power_strike_3|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_infantry2_nco","Infantrie Regiment Freiherr von Wacquant Nr. 62","Colour Bearer",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_infantry2_nco,itm_aus_infantry_nco,itm_hungarian_pants,itm_austria_colour_leibfahne,itm_austrian_infantry_briquet],
   def_attrib_multiplayer|level(20),wpex(80,5,80,5,50,5),knows_common|knows_ironflesh_3|knows_power_strike_3|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_infantry2_officer","Infantrie Regiment Freiherr von Wacquant Nr. 62","Officer",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_infantry2_officer,itm_aus_infantry_officer,itm_hungarian_pants_officer,itm_russian_officer_sword,itm_pistol_ammo,itm_russian_pistol,itm_officer_gloves,itm_spyglass],
   def_attrib_multiplayer|level(20),wpex(80,5,80,5,50,5),knows_common|knows_ironflesh_3|knows_power_strike_3|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_infantry2_drum","Infantrie Regiment Freiherr von Wacquant Nr. 62","Drummer",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_infantry2_drummer,itm_aus_infantry_ranker,itm_hungarian_pants,itm_drummer_gloves,itm_drumstick_right,itm_austrian_infantry_briquet],
   def_attrib_multiplayer|level(20),wpex(80,5,80,5,50,5),knows_common|knows_ironflesh_3|knows_power_strike_3|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_infantry2_flute","Infantrie Regiment Freiherr von Wacquant Nr. 62","Fifer",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_infantry2_fifer,itm_aus_infantry_ranker,itm_hungarian_pants,itm_flute,itm_austrian_infantry_briquet],
   def_attrib_multiplayer|level(20),wpex(80,5,80,5,50,5),knows_common|knows_ironflesh_3|knows_power_strike_3|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_grenzer","Grenz Regiment Oguliner Nr. 3","Line/Light Infantry",tf_guarantee_all,0,0,fac_austria,
   [itm_austrian_grenzer,itm_aus_grenzer_ranker,itm_hungarian_pants,itm_austrian_musket,itm_russian_rifle_1805,itm_russian_gusarskiy_karabin,itm_bullets,itm_austrian_jaeger_bayonet_invis],
   def_attrib_multiplayer|level(20),wpex(50,5,105,5,170,5),knows_common|knows_ironflesh_2|knows_power_strike_1|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_grenzer_nco","Grenz Regiment Oguliner Nr. 3","Colour Bearer",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_grenzer_nco,itm_aus_infantry_nco,itm_hungarian_pants,itm_austria_colour_ordinarfahne,itm_austrian_jaeger_bayonet_invis],
   def_attrib_multiplayer|level(20),wpex(80,5,80,5,50,5),knows_common|knows_ironflesh_2|knows_power_strike_1|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_grenzer_officer","Grenz Regiment Oguliner Nr. 3","Officer",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_grenzer_officer,itm_aus_grenzer_officer,itm_hungarian_pants_officer,itm_russian_pistol,itm_pistol_ammo,itm_russian_officer_sword_jaeger,itm_officer_gloves,itm_spyglass],
   def_attrib_multiplayer|level(20),wpex(80,5,80,5,50,5),knows_common|knows_ironflesh_2|knows_power_strike_1|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_grenzer_drum","Grenz Regiment Oguliner Nr. 3","Drummer",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_grenzer_drummer,itm_aus_grenzer_ranker,itm_hungarian_pants,itm_drummer_gloves,itm_drumstick_right,itm_austrian_jaeger_bayonet_invis],
   def_attrib_multiplayer|level(20),wpex(80,5,80,5,50,5),knows_common|knows_ironflesh_2|knows_power_strike_1|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_grenzer_flute","Grenz Regiment Oguliner Nr. 3","Fifer",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_grenzer_fifer,itm_aus_grenzer_ranker,itm_hungarian_pants,itm_flute,itm_austrian_jaeger_bayonet_invis],
   def_attrib_multiplayer|level(20),wpex(80,5,80,5,50,5),knows_common|knows_ironflesh_2|knows_power_strike_1|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_grenadier","Grenadier Battalion Purcell","Foot Guard",tf_guarantee_all,0,0,fac_austria,
   [itm_austrian_grenadier,itm_austrian_grenadier_alt,itm_aus_grenadier_bearskin,itm_hungarian_pants,itm_bullets,itm_austrian_musket,itm_austrian_infantry_briquet,itm_officer_gloves],
   def_attrib_multiplayer|level(20),wpex(50,5,145,5,150,5),knows_common|knows_ironflesh_3|knows_power_strike_3|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_grenadier_nco","Grenadier Battalion Purcell","Colour Bearer",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_grenadier_nco,itm_aus_grenadier_bearskin,itm_hungarian_pants,itm_austria_colour_ordinarfahne,itm_austrian_infantry_briquet,itm_officer_gloves],
   def_attrib_multiplayer|level(20),wpex(80,5,80,5,50,5),knows_common|knows_ironflesh_3|knows_power_strike_3|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_grenadier_officer","Grenadier Battalion Purcell","Officer",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_grenadier_officer,itm_aus_grenadier_bearskin_officer,itm_hungarian_pants_officer,itm_russian_officer_sword,itm_pistol_ammo,itm_russian_pistol,itm_officer_gloves,itm_spyglass],
   def_attrib_multiplayer|level(20),wpex(80,5,80,5,50,5),knows_common|knows_ironflesh_3|knows_power_strike_3|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_grenadier_drum","Grenadier Battalion Purcell","Drummer",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_grenadier_drummer,itm_aus_grenadier_bearskin,itm_hungarian_pants,itm_drummer_gloves,itm_drumstick_right,itm_austrian_infantry_briquet],
   def_attrib_multiplayer|level(20),wpex(80,5,80,5,50,5),knows_common|knows_ironflesh_3|knows_power_strike_3|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_grenadier_flute","Grenadier Battalion Purcell","Fifer",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_grenadier_fifer,itm_aus_grenadier_bearskin,itm_hungarian_pants,itm_flute,itm_austrian_infantry_briquet,itm_officer_gloves],
   def_attrib_multiplayer|level(20),wpex(80,5,80,5,50,5),knows_common|knows_ironflesh_3|knows_power_strike_3|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_infantry_rifle","Jaeger Battalion 2","Rifleman",tf_guarantee_all,0,0,fac_austria,
   [itm_austrian_jaeger,itm_aus_tyrol_hat,itm_austrian_jaeger_pants,itm_russian_rifle_1805,itm_bullets,itm_austrian_jaeger_bayonet],
   def_attrib_multiplayer|level(20),wpex(50,5,90,5,206,5),knows_common|knows_ironflesh_2|knows_power_strike_1|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_infantry_rifle_nco","Jaeger Battalion 2","Sergeant",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_jaeger_nco,itm_aus_tyrol_hat,itm_austrian_jaeger_pants,itm_russian_rifle_1805,itm_bullets,itm_austrian_jaeger_bayonet],
   def_attrib_multiplayer|level(20),wpex(80,5,80,5,50,5),knows_common|knows_ironflesh_2|knows_power_strike_1|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_infantry_rifle_officer","Jaeger Battalion 2","Officer",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_jaeger_officer,itm_aus_tyrol_hat_officer,itm_austrian_jaeger_pants_officer,itm_russian_pistol,itm_pistol_ammo,itm_russian_officer_sword_jaeger,itm_officer_gloves,itm_spyglass],
   def_attrib_multiplayer|level(20),wpex(80,5,80,5,50,5),knows_common|knows_ironflesh_2|knows_power_strike_1|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
  ["austrian_infantry_rifle_horn","Jaeger Battalion 2","Hornist",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_jaeger_hornist,itm_aus_tyrol_hat,itm_austrian_jaeger_pants,itm_horn,itm_austrian_jaeger_bayonet],
  ["test_infantry","test infantry","Test Infantry",tf_guarantee_all,0,0,fac_austria,
   [itm_austrian_infantry,itm_aus_infantry_ranker,itm_austrian_infantry_pants,itm_bullets,itm_austrian_musket],
   def_attrib_multiplayer|level(20),wpex(50,5,130,5,150,5),knows_common|knows_ironflesh_3|knows_power_strike_3|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],


and here is my module_info -
Code

# Point export_dir to the folder you will be keeping your module
# Make sure you use forward slashes (/) and NOT backward slashes (\)

export_dir = "C:/Program Files (x86)/steam/steamapps/common/MountBlade Warband/Modules/The Boshin War"
#export_dir = "C:/Program Files (x86)/steam/steamapps/common/MountBlade Warband/Modules/Napoleonic Wars"

it worked before i started to modify the module files...


Offline Willhelm

  • Donator
  • *
  • Posts: 1850
    • View Profile
    • Blood&Iron
  • Nick: 32nd_Gdm_William
  • Side: Union
Re: Napoleonic Wars basic modding Tutorial.
« Reply #31 on: January 07, 2014, 11:40:04 pm »
For your module_info put a slash at the end of "The Boshin war" before the quote, like

export_dir = "C:/Program Files (x86)/steam/steamapps/common/MountBlade Warband/Modules/The Boshin War/"

Oh i can see the error now. You've deleted the unit stats on the Horn troop before the test soldier.

Code
  ["austrian_infantry_rifle_horn","Jaeger Battalion 2","Hornist",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_jaeger_hornist,itm_aus_tyrol_hat,itm_austrian_jaeger_pants,itm_horn,itm_austrian_jaeger_bayonet],
  ["test_infantry","test infantry","Test Infantry",tf_guarantee_all,0,0,fac_austria,
   [itm_austrian_infantry,itm_aus_infantry_ranker,itm_austrian_infantry_pants,itm_bullets,itm_austrian_musket],
   def_attrib_multiplayer|level(20),wpex(50,5,130,5,150,5),knows_common|knows_ironflesh_3|knows_power_strike_3|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],
« Last Edit: January 07, 2014, 11:44:24 pm by Willhelm »

Offline George385

  • Donator
  • **
  • Posts: 2601
  • nah yeah nah nah yeah nah
    • View Profile
  • Nick: George385
  • Side: Confederacy
Re: Napoleonic Wars basic modding Tutorial.
« Reply #32 on: January 08, 2014, 12:15:32 am »
For your module_info put a slash at the end of "The Boshin war" before the quote, like

export_dir = "C:/Program Files (x86)/steam/steamapps/common/MountBlade Warband/Modules/The Boshin War/"

Oh i can see the error now. You've deleted the unit stats on the Horn troop before the test soldier.

Code
  ["austrian_infantry_rifle_horn","Jaeger Battalion 2","Hornist",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_jaeger_hornist,itm_aus_tyrol_hat,itm_austrian_jaeger_pants,itm_horn,itm_austrian_jaeger_bayonet],
  ["test_infantry","test infantry","Test Infantry",tf_guarantee_all,0,0,fac_austria,
   [itm_austrian_infantry,itm_aus_infantry_ranker,itm_austrian_infantry_pants,itm_bullets,itm_austrian_musket],
   def_attrib_multiplayer|level(20),wpex(50,5,130,5,150,5),knows_common|knows_ironflesh_3|knows_power_strike_3|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],

i cant believe i missed that...

but now i get another error...

Code
Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_global_variables.py", line 12, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Traceback (most recent call last):
  File "process_map_icons.py", line 6, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 66, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_troops.py", line 4, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 6, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Exporting quest data...
Exporting info_page data...
Traceback (most recent call last):
  File "process_scripts.py", line 7, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_mission_tmps.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_game_menus.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Exporting postfx_params...

______________________________

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

Offline Willhelm

  • Donator
  • *
  • Posts: 1850
    • View Profile
    • Blood&Iron
  • Nick: 32nd_Gdm_William
  • Side: Union
Re: Napoleonic Wars basic modding Tutorial.
« Reply #33 on: January 08, 2014, 12:22:19 am »
It's the same as your first error, you've probably missed a comma or bracket or added an extra in the part you just fixed.

Offline Superbad

  • Ros the whore of Winterfell
  • Donator
  • *
  • Posts: 6066
  • Nothing gold can stay...
    • View Profile
  • Nick: SuperbadV
  • Side: Confederacy
Re: Napoleonic Wars basic modding Tutorial.
« Reply #34 on: January 08, 2014, 10:35:23 pm »
Great guide! Patiently waiting for the next part, man. :)


Offline Willhelm

  • Donator
  • *
  • Posts: 1850
    • View Profile
    • Blood&Iron
  • Nick: 32nd_Gdm_William
  • Side: Union
Re: Napoleonic Wars basic modding Tutorial.
« Reply #35 on: January 08, 2014, 10:44:07 pm »
Thanks, I'm super busy at work this week so it's gonna take me longer to get it out.

Offline Superbad

  • Ros the whore of Winterfell
  • Donator
  • *
  • Posts: 6066
  • Nothing gold can stay...
    • View Profile
  • Nick: SuperbadV
  • Side: Confederacy
Re: Napoleonic Wars basic modding Tutorial.
« Reply #36 on: January 09, 2014, 09:13:52 am »
Spoiler
For your module_info put a slash at the end of "The Boshin war" before the quote, like

export_dir = "C:/Program Files (x86)/steam/steamapps/common/MountBlade Warband/Modules/The Boshin War/"

Oh i can see the error now. You've deleted the unit stats on the Horn troop before the test soldier.

Code
  ["austrian_infantry_rifle_horn","Jaeger Battalion 2","Hornist",tf_guarantee_all,0,0,fac_austrian_ranks,
   [itm_austrian_jaeger_hornist,itm_aus_tyrol_hat,itm_austrian_jaeger_pants,itm_horn,itm_austrian_jaeger_bayonet],
  ["test_infantry","test infantry","Test Infantry",tf_guarantee_all,0,0,fac_austria,
   [itm_austrian_infantry,itm_aus_infantry_ranker,itm_austrian_infantry_pants,itm_bullets,itm_austrian_musket],
   def_attrib_multiplayer|level(20),wpex(50,5,130,5,150,5),knows_common|knows_ironflesh_3|knows_power_strike_3|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],

i cant believe i missed that...

but now i get another error...

Code
Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_global_variables.py", line 12, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Traceback (most recent call last):
  File "process_map_icons.py", line 6, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 66, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_troops.py", line 4, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 6, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Exporting quest data...
Exporting info_page data...
Traceback (most recent call last):
  File "process_scripts.py", line 7, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_mission_tmps.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_game_menus.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\process_operations.py
", line 14, in <module>
    from module_troops import *
  File "C:\Users\Labrie\Desktop\Mod\Sourcecode\mm dev - MS\module_troops.py", li
ne 1515

    ^
SyntaxError: invalid syntax
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .
[close]

I had this problem too. But after some focusing on my files I found out the problem.

Code
# Point export_dir to the folder you will be keeping your module
# Make sure you use forward slashes (/) and NOT backward slashes (\)

export_dir = "C:/Program Files (x86)/steam/steamapps/common/MountBlade Warband/Modules/The Boshin War/"
#export_dir = "C:/Program Files (x86)/steam/steamapps/common/MountBlade Warband/Modules/Napoleonic Wars/"


That should be the code to use.

Although.. my export (one with the #) is different. Mine is .../Modules/Native/


Offline George385

  • Donator
  • **
  • Posts: 2601
  • nah yeah nah nah yeah nah
    • View Profile
  • Nick: George385
  • Side: Confederacy
Re: Napoleonic Wars basic modding Tutorial.
« Reply #37 on: January 09, 2014, 09:26:15 am »
i fixed it, just had to delete that module system and set up a new one :P

Offline Slawtering

  • Second Lieutenant
  • *
  • Posts: 163
  • For Britannia!
    • View Profile
  • Nick: Slawtering
  • Side: Confederacy
Re: Napoleonic Wars basic modding Tutorial.
« Reply #38 on: January 09, 2014, 02:33:07 pm »
# Before something is a comment (it should be green if you use Notepad++). A comment is seen by the compiler as something that is not needed. Comments are exactly as what they say they are, comments. If you write a script and you put a comment at the end of it telling you how it works, you will remember in the future, or you could give the code to someone else so they know what to do.

Basicly you could reduce this:
Code
# Point export_dir to the folder you will be keeping your module
# Make sure you use forward slashes (/) and NOT backward slashes (\)

export_dir = "C:/Program Files (x86)/steam/steamapps/common/MountBlade Warband/Modules/The Boshin War/"
#export_dir = "C:/Program Files (x86)/steam/steamapps/common/MountBlade Warband/Modules/Napoleonic Wars/"

to this:
Code
export_dir = "C:/Program Files (x86)/steam/steamapps/common/MountBlade Warband/Modules/The Boshin War/"
And it won't change anything in your mod.

EDIT: I have two "How-to's" on how to model and texture something basic, if anyone wants me to upload it. Its for Maya and Photoshop but very easily converted to Maya/3ds Max and Photoshop/GIMP/Paint.net
« Last Edit: January 09, 2014, 02:36:15 pm by Slawtering »

Offline Willhelm

  • Donator
  • *
  • Posts: 1850
    • View Profile
    • Blood&Iron
  • Nick: 32nd_Gdm_William
  • Side: Union
Re: Napoleonic Wars basic modding Tutorial.
« Reply #39 on: January 09, 2014, 03:44:36 pm »
# Before something is a comment (it should be green if you use Notepad++). A comment is seen by the compiler as something that is not needed. Comments are exactly as what they say they are, comments. If you write a script and you put a comment at the end of it telling you how it works, you will remember in the future, or you could give the code to someone else so they know what to do.

Basicly you could reduce this:
Code
# Point export_dir to the folder you will be keeping your module
# Make sure you use forward slashes (/) and NOT backward slashes (\)

export_dir = "C:/Program Files (x86)/steam/steamapps/common/MountBlade Warband/Modules/The Boshin War/"
#export_dir = "C:/Program Files (x86)/steam/steamapps/common/MountBlade Warband/Modules/Napoleonic Wars/"

to this:
Code
export_dir = "C:/Program Files (x86)/steam/steamapps/common/MountBlade Warband/Modules/The Boshin War/"
And it won't change anything in your mod.

EDIT: I have two "How-to's" on how to model and texture something basic, if anyone wants me to upload it. Its for Maya and Photoshop but very easily converted to Maya/3ds Max and Photoshop/GIMP/Paint.net

Please do post them.

Offline Superbad

  • Ros the whore of Winterfell
  • Donator
  • *
  • Posts: 6066
  • Nothing gold can stay...
    • View Profile
  • Nick: SuperbadV
  • Side: Confederacy
Re: Napoleonic Wars basic modding Tutorial.
« Reply #40 on: January 10, 2014, 01:22:53 am »
Spoiler
# Before something is a comment (it should be green if you use Notepad++). A comment is seen by the compiler as something that is not needed. Comments are exactly as what they say they are, comments. If you write a script and you put a comment at the end of it telling you how it works, you will remember in the future, or you could give the code to someone else so they know what to do.

Basicly you could reduce this:
Code
# Point export_dir to the folder you will be keeping your module
# Make sure you use forward slashes (/) and NOT backward slashes (\)

export_dir = "C:/Program Files (x86)/steam/steamapps/common/MountBlade Warband/Modules/The Boshin War/"
#export_dir = "C:/Program Files (x86)/steam/steamapps/common/MountBlade Warband/Modules/Napoleonic Wars/"

to this:
Code
export_dir = "C:/Program Files (x86)/steam/steamapps/common/MountBlade Warband/Modules/The Boshin War/"
And it won't change anything in your mod.

EDIT: I have two "How-to's" on how to model and texture something basic, if anyone wants me to upload it. Its for Maya and Photoshop but very easily converted to Maya/3ds Max and Photoshop/GIMP/Paint.net
[close]

Hmm... that makes sense. But I keep it there cause if I don't I forget about it lol.


Offline George385

  • Donator
  • **
  • Posts: 2601
  • nah yeah nah nah yeah nah
    • View Profile
  • Nick: George385
  • Side: Confederacy
Re: Napoleonic Wars basic modding Tutorial.
« Reply #41 on: January 10, 2014, 03:55:49 am »
# Before something is a comment (it should be green if you use Notepad++). A comment is seen by the compiler as something that is not needed. Comments are exactly as what they say they are, comments. If you write a script and you put a comment at the end of it telling you how it works, you will remember in the future, or you could give the code to someone else so they know what to do.

Basicly you could reduce this:
Code
# Point export_dir to the folder you will be keeping your module
# Make sure you use forward slashes (/) and NOT backward slashes (\)

export_dir = "C:/Program Files (x86)/steam/steamapps/common/MountBlade Warband/Modules/The Boshin War/"
#export_dir = "C:/Program Files (x86)/steam/steamapps/common/MountBlade Warband/Modules/Napoleonic Wars/"

to this:
Code
export_dir = "C:/Program Files (x86)/steam/steamapps/common/MountBlade Warband/Modules/The Boshin War/"
And it won't change anything in your mod.

EDIT: I have two "How-to's" on how to model and texture something basic, if anyone wants me to upload it. Its for Maya and Photoshop but very easily converted to Maya/3ds Max and Photoshop/GIMP/Paint.net


are they for Boshin War stuff? if so, can you please PM me them?

Offline SeanBeansShako

  • Major
  • *
  • Posts: 3185
    • View Profile
  • Side: Union
Re: Napoleonic Wars basic modding Tutorial.
« Reply #42 on: January 11, 2014, 08:15:39 pm »
If you want, I can dig up and send you Atilla's BRF hat replacement guide to help you with the write up for some of the BRF stuff?

Offline Willhelm

  • Donator
  • *
  • Posts: 1850
    • View Profile
    • Blood&Iron
  • Nick: 32nd_Gdm_William
  • Side: Union
Re: Napoleonic Wars basic modding Tutorial.
« Reply #43 on: January 11, 2014, 11:01:44 pm »
His guide is complicated as hell.

I can sum up how to replace a hat very simply.


1. Find the hat you want to use to replace the other in openbrf
2.a. Right click its name and export it as a static mesh
2.b. If the hat is in the same file as what you want to replace, right click its name and press duplicate instead of exporting it.
3. Find the hat you want to replace
4. Click import at the top and import the hat you just exported, ignore this step if you duplicated.
5. Name that imported/duplicated hat the same as the one you want to replace
6. Delete the one you want to replace, or rename it as something random so the game code doesn't read it
7. Delete the Lods as well.

I will cover it in the next part as i go along when i get round to writing it, keep getting delayed.
« Last Edit: January 11, 2014, 11:03:52 pm by Willhelm »

Offline SeanBeansShako

  • Major
  • *
  • Posts: 3185
    • View Profile
  • Side: Union
Re: Napoleonic Wars basic modding Tutorial.
« Reply #44 on: January 25, 2014, 07:38:23 pm »
Any ETA on the next part of the guide?