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

0 Members and 1 Guest are viewing this topic.

Offline AlekoTheGreek

  • Donator
  • *
  • Posts: 1786
  • Alex, born in the year of the false spring
    • View Profile
  • Nick: 16th AlekoTheGreek
  • Side: Neutral
Re: Napoleonic Wars basic modding Tutorial.
« Reply #15 on: January 03, 2014, 03:21:13 pm »
thank you very much sir! (i was messing around with txt files)

Offline Incognitoandahalf

  • First Sergeant
  • *
  • Posts: 129
  • DA Cavalry Corp Fuehrer
    • View Profile
  • Nick: Incognitoandahalf
  • Side: Confederacy
Re: Napoleonic Wars basic modding Tutorial.
« Reply #16 on: January 04, 2014, 06:17:47 am »
Could you explain exactly what the blood and iron code means some parts I still dont understand it all.

Spoiler
trp_british_highlander_nco 42nd_Regiment_of_Foot_(Black_Watch) Sergeant 0 133169152 0 0 17 0 0
  234 0 496 0 401 0 79 0 146 0 183 0 181 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0
  15 15 15 15 20
 100 170 170 5 105 5 30
2586 131072 0 64 208896 0
  34359738369 1315051091194281984 1835136 0 50465891015 7916447985573822463 2031036 0
[close]

Thanks ;D

Offline Willhelm

  • Donator
  • *
  • Posts: 1850
    • View Profile
    • Blood&Iron
  • Nick: 32nd_Gdm_William
  • Side: Union
Re: Napoleonic Wars basic modding Tutorial.
« Reply #17 on: January 04, 2014, 01:29:28 pm »
Could you explain exactly what the blood and iron code means some parts I still dont understand it all.

Spoiler
trp_british_highlander_nco 42nd_Regiment_of_Foot_(Black_Watch) Sergeant 0 133169152 0 0 17 0 0
  234 0 496 0 401 0 79 0 146 0 183 0 181 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0
  15 15 15 15 20
 100 170 170 5 105 5 30
2586 131072 0 64 208896 0
  34359738369 1315051091194281984 1835136 0 50465891015 7916447985573822463 2031036 0
[close]

Thanks ;D

Well that is in the text files, and as i say in the tutorial it is much better and easier to use the module system. I couldn't explain the text files beyond that "100 170 170 5 105 5" is the weapon skills.

Offline George385

  • Donator
  • **
  • Posts: 2601
  • nah yeah nah nah yeah nah
    • View Profile
  • Nick: George385
  • Side: Confederacy
Re: Napoleonic Wars basic modding Tutorial.
« Reply #18 on: January 07, 2014, 03:10:13 am »
its not working for me :(

i get this error-

Spoiler
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
SyntaxError: invalid syntax
Exporting postfx_params...

______________________________

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

i have followed every step very carefully and correct.

Offline Gokiller

  • Almost Pride of Ni
  • Major General
  • **
  • Posts: 3913
  • Bydand in the chat lads!
    • View Profile
  • Side: Neutral
Re: Napoleonic Wars basic modding Tutorial.
« Reply #19 on: January 07, 2014, 09:41:52 am »
Go to line 1511 in your module_troops.py and see if you did something wrong. (missing , ) ] etc)
Or compare with the tutorial untill you found the mistake in that line.
« Last Edit: January 07, 2014, 09:49:35 am by Gokiller »

Offline Willhelm

  • Donator
  • *
  • Posts: 1850
    • View Profile
    • Blood&Iron
  • Nick: 32nd_Gdm_William
  • Side: Union
Re: Napoleonic Wars basic modding Tutorial.
« Reply #20 on: January 07, 2014, 10:01:49 am »
its not working for me :(

i get this error-

Spoiler
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
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 1511

    ^
SyntaxError: invalid syntax
Exporting postfx_params...

______________________________

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

i have followed every step very carefully and correct.

1511 is right at the end of module_troops which usually comes up when you miss of an ] or [ so check very carefully around where you have edited.

Offline George385

  • Donator
  • **
  • Posts: 2601
  • nah yeah nah nah yeah nah
    • View Profile
  • Nick: George385
  • Side: Confederacy
Re: Napoleonic Wars basic modding Tutorial.
« Reply #21 on: January 07, 2014, 10:08:44 am »
there is a blank line for line 1511...

all ive edited is the things in this tutorial, up to where you see if the test soldier is in-game, nothing else.


Offline BSM 'Shut up' Williams

  • First Lieutenant
  • *
  • Posts: 2819
  • Bóg, Honor, Ojczyzna!
    • View Profile
    • My Twitter
  • Nick: Jean Grande
  • Side: Union
Re: Napoleonic Wars basic modding Tutorial.
« Reply #22 on: January 07, 2014, 05:14:32 pm »
Forward slash? Not backward like you have.

Steam Profile Signature
[close]

Offline Willhelm

  • Donator
  • *
  • Posts: 1850
    • View Profile
    • Blood&Iron
  • Nick: 32nd_Gdm_William
  • Side: Union
Re: Napoleonic Wars basic modding Tutorial.
« Reply #23 on: January 07, 2014, 10:26:38 pm »
there is a blank line for line 1511...

all ive edited is the things in this tutorial, up to where you see if the test soldier is in-game, nothing else.

Yes, there's no use trying to make excuses that it isn't you and no one will think you're an idiot because everyone does these mistakes, the build_module is telling you that there is an error in module_troops after you've edited it, you have more than likely removed a comma or bracket, syntax error messages never happen for no reason. If you want you can post the whole code around the test soldier you made.

Offline George385

  • Donator
  • **
  • Posts: 2601
  • nah yeah nah nah yeah nah
    • View Profile
  • Nick: George385
  • Side: Confederacy
Re: Napoleonic Wars basic modding Tutorial.
« Reply #24 on: January 07, 2014, 10:40:17 pm »
okay, this is copied and pasted from the module_troops.
Spoiler
["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],
[close]

ive checked through the lines 3 or 4 times, i dont know whats wrong.

Offline Willhelm

  • Donator
  • *
  • Posts: 1850
    • View Profile
    • Blood&Iron
  • Nick: 32nd_Gdm_William
  • Side: Union
Re: Napoleonic Wars basic modding Tutorial.
« Reply #25 on: January 07, 2014, 11:08:37 pm »
Quote
["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],

You've got an extra single quote mark which I've highlighted red.

Offline George385

  • Donator
  • **
  • Posts: 2601
  • nah yeah nah nah yeah nah
    • View Profile
  • Nick: George385
  • Side: Confederacy
Re: Napoleonic Wars basic modding Tutorial.
« Reply #26 on: January 07, 2014, 11:10:58 pm »
Quote
["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],

You've got an extra single quote mark which I've highlighted red.

now i have removed that, i get this.

Spoiler
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 1
    Fimport random
                 ^
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 1
    Fimport random
                 ^
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 1
    Fimport random
                 ^
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 1
    Fimport random
                 ^
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 1
    Fimport random
                 ^
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 1
    Fimport random
                 ^
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 1
    Fimport random
                 ^
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 1
    Fimport random
                 ^
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 1
    Fimport random
                 ^
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 1
    Fimport random
                 ^
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 1
    Fimport random
                 ^
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 1
    Fimport random
                 ^
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 1
    Fimport random
                 ^
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 1
    Fimport random
                 ^
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 1
    Fimport random
                 ^
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 1
    Fimport random
                 ^
SyntaxError: invalid syntax
Exporting postfx_params...

______________________________

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

Offline Willhelm

  • Donator
  • *
  • Posts: 1850
    • View Profile
    • Blood&Iron
  • Nick: 32nd_Gdm_William
  • Side: Union
Re: Napoleonic Wars basic modding Tutorial.
« Reply #27 on: January 07, 2014, 11:13:53 pm »
Post from the end of the russian troops into a few austrian troops, and use the insert code button instead of quote. Another syntax error means another simple type mistake.

Also post your module_info code.
« Last Edit: January 07, 2014, 11:17:04 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 #28 on: January 07, 2014, 11:18:28 pm »
this is from the last Russian troop into 5 Austrian troops.


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],


Offline Willhelm

  • Donator
  • *
  • Posts: 1850
    • View Profile
    • Blood&Iron
  • Nick: 32nd_Gdm_William
  • Side: Union
Re: Napoleonic Wars basic modding Tutorial.
« Reply #29 on: January 07, 2014, 11:20:15 pm »
this is from the last Russian troop into 5 Austrian troops.


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],

There's no test soldier in there, i meant down to that sorry. And could you post your module_info code?