Author Topic: build_module error  (Read 6918 times)

Skull

  • Magister equitum
  • Citizens
    Voting Member
  • Posts: 357
  • Karma: 5
  • It is easier to criticize than to correct our past
    • View Profile
    • Awards
build_module error
« on: November 02, 2013, 11:11:49 AM »
I doubt that anyone here will know how to help me with this,considering that not many people mod M&B around here anymore,but I guess it is worth giving the Exilian a try.  ::)

When I try to build my new module,this happens:


Code: [Select]
Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\process_operati
ons.py", line 13, in <module>
    from module_items import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\module_items.py
", line 1236

     ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_global_variables.py", line 12, in <module>
    from process_operations import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\process_operati
ons.py", line 13, in <module>
    from module_items import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\module_items.py
", line 1236

     ^
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\CS2\Downloads\modding Stuff\Module_system 1.158\process_operati
ons.py", line 13, in <module>
    from module_items import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\module_items.py
", line 1236

     ^
SyntaxError: invalid syntax
Exporting faction data...
Traceback (most recent call last):
  File "process_items.py", line 4, in <module>
    from module_items import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\module_items.py
", line 1236

     ^
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\CS2\Downloads\modding Stuff\Module_system 1.158\process_operati
ons.py", line 13, in <module>
    from module_items import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\module_items.py
", line 1236

     ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_troops.py", line 4, in <module>
    from module_troops import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\module_troops.p
y", line 965, in <module>
    ["kingdom_2_lord",  "Faction 2",  "Skull",  tf_hero, 0,reserved,
fac_kingdom_2,[itm_charger,    itm_courtly_outfit,      itm_leather_boots,
        itm_plate_boots,              itm_khergit_guard_armor, itm_gauntlets,
   itm_gladius,      itm_roman_cavalry_shield,      itm_vaegir_mask],    knight_
attrib_8,wp(300),knight_skills_8|knows_trainer_7, 0x0000000ec50001400a2269f919de
e11700000000001cc57d0000000000000000, vaegir_face_old_2],
NameError: name 'itm_gladius' is not defined
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\process_operati
ons.py", line 13, in <module>
    from module_items import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\module_items.py
", line 1236

     ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\process_operati
ons.py", line 13, in <module>
    from module_items import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\module_items.py
", line 1236

     ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\process_operati
ons.py", line 13, in <module>
    from module_items import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\module_items.py
", line 1236

     ^
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\CS2\Downloads\modding Stuff\Module_system 1.158\process_operati
ons.py", line 13, in <module>
    from module_items import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\module_items.py
", line 1236

     ^
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\CS2\Downloads\modding Stuff\Module_system 1.158\process_operati
ons.py", line 13, in <module>
    from module_items import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\module_items.py
", line 1236

     ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_mission_tmps.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\process_operati
ons.py", line 13, in <module>
    from module_items import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\module_items.py
", line 1236

     ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_game_menus.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\process_operati
ons.py", line 13, in <module>
    from module_items import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\module_items.py
", line 1236

     ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\process_operati
ons.py", line 13, in <module>
    from module_items import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\module_items.py
", line 1236

     ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\process_operati
ons.py", line 13, in <module>
    from module_items import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\module_items.py
", line 1236

     ^
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\CS2\Downloads\modding Stuff\Module_system 1.158\process_operati
ons.py", line 13, in <module>
    from module_items import *
  File "C:\Users\CS2\Downloads\modding Stuff\Module_system 1.158\module_items.py
", line 1236

     ^
SyntaxError: invalid syntax
Exporting postfx_params...

______________________________

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


The strangest thing is that I didn't even touch most of the module files that are listed here,and I am 100 % sure that the itm gladius is matching with the entry in module_items.   :-\
« Last Edit: November 02, 2013, 11:13:31 AM by Skull »
Skull, the one of poor grammar, the enemy of all Grammar Nazi and destroyer of all linguistic reasoning!

Jubal

  • Megadux
    Executive Officer
  • Posts: 35495
  • Karma: 140
  • Awards Awarded for oustanding services to Exilian!
    • View Profile
    • Awards
Re: build_module error
« Reply #1 on: November 02, 2013, 11:42:17 AM »
What is the exact code of line 1236?
The duke, the wanderer, the philosopher, the mariner, the warrior, the strategist, the storyteller, the wizard, the wayfarer...

Skull

  • Magister equitum
  • Citizens
    Voting Member
  • Posts: 357
  • Karma: 5
  • It is easier to criticize than to correct our past
    • View Profile
    • Awards
Re: build_module error
« Reply #2 on: November 02, 2013, 03:14:12 PM »
What is the exact code of line 1236?
I think it is the end of the file.

Code: [Select]
["items_end", "Items End", [("shield_round_a",0)], 0, 0, 1, 0, 0],
]

Notepad tells me that these are lines 1234 and 1235. Bellow is line 1236.  :-\
Skull, the one of poor grammar, the enemy of all Grammar Nazi and destroyer of all linguistic reasoning!

Jubal

  • Megadux
    Executive Officer
  • Posts: 35495
  • Karma: 140
  • Awards Awarded for oustanding services to Exilian!
    • View Profile
    • Awards
Re: build_module error
« Reply #3 on: November 02, 2013, 03:32:32 PM »
That means you've missed an opening or closing bracket or " mark out somewhere, or added an extra one, almost certainly (so it's looking at the end of the file for closing the bracket and can't find it). Double-check any entries you've edited recently for correct brackets and quotation marks.
The duke, the wanderer, the philosopher, the mariner, the warrior, the strategist, the storyteller, the wizard, the wayfarer...

Skull

  • Magister equitum
  • Citizens
    Voting Member
  • Posts: 357
  • Karma: 5
  • It is easier to criticize than to correct our past
    • View Profile
    • Awards
Re: build_module error
« Reply #4 on: November 02, 2013, 03:49:30 PM »
I don't think so,I just checked it again,and could not find anything.
Could there be something wrong with the brf files?
Also,note that,for some reason,the faction names won't change their names when I edit them in module_factions and in module_game_menus. Neither does the wellcome message that appears when you make a new character,or the music... :(
Skull, the one of poor grammar, the enemy of all Grammar Nazi and destroyer of all linguistic reasoning!

Jubal

  • Megadux
    Executive Officer
  • Posts: 35495
  • Karma: 140
  • Awards Awarded for oustanding services to Exilian!
    • View Profile
    • Awards
Re: build_module error
« Reply #5 on: November 02, 2013, 03:51:52 PM »
Isn't there a module_strings you need to edit any of those text items?

Could be a brf issue but I doubt it. Can you send me/attach to a post here the items file?
The duke, the wanderer, the philosopher, the mariner, the warrior, the strategist, the storyteller, the wizard, the wayfarer...

Skull

  • Magister equitum
  • Citizens
    Voting Member
  • Posts: 357
  • Karma: 5
  • It is easier to criticize than to correct our past
    • View Profile
    • Awards
Re: build_module error
« Reply #6 on: November 02, 2013, 04:05:43 PM »
Isn't there a module_strings you need to edit any of those text items?

Could be a brf issue but I doubt it. Can you send me/attach to a post here the items file?

...



Good lord,I am a idiot. Sorry...  :'(

OK,I shall upload it soon...
Skull, the one of poor grammar, the enemy of all Grammar Nazi and destroyer of all linguistic reasoning!

Skull

  • Magister equitum
  • Citizens
    Voting Member
  • Posts: 357
  • Karma: 5
  • It is easier to criticize than to correct our past
    • View Profile
    • Awards
Re: build_module error
« Reply #7 on: November 02, 2013, 04:42:00 PM »
Skull, the one of poor grammar, the enemy of all Grammar Nazi and destroyer of all linguistic reasoning!

Jubal

  • Megadux
    Executive Officer
  • Posts: 35495
  • Karma: 140
  • Awards Awarded for oustanding services to Exilian!
    • View Profile
    • Awards
Re: build_module error
« Reply #8 on: November 03, 2013, 01:51:18 AM »
Could you also give me a list of added/edited weapons so I don't have to check the whole thing?  :P
The duke, the wanderer, the philosopher, the mariner, the warrior, the strategist, the storyteller, the wizard, the wayfarer...

Skull

  • Magister equitum
  • Citizens
    Voting Member
  • Posts: 357
  • Karma: 5
  • It is easier to criticize than to correct our past
    • View Profile
    • Awards
Re: build_module error
« Reply #9 on: November 03, 2013, 10:27:35 AM »
I added Lorica Segmentata,Legion Cavalry Shield,a Gladius and Centurion Hamata.

I also made the Black Armour purchasable.
Skull, the one of poor grammar, the enemy of all Grammar Nazi and destroyer of all linguistic reasoning!

Jubal

  • Megadux
    Executive Officer
  • Posts: 35495
  • Karma: 140
  • Awards Awarded for oustanding services to Exilian!
    • View Profile
    • Awards
Re: build_module error
« Reply #10 on: November 03, 2013, 02:14:36 PM »
I can't see anything obvious; my best advice is to backup your module_items, revert to the original version temporarily (which should work for obvious reasons), then add each new item back in in turn and see which one triggers the fault.
The duke, the wanderer, the philosopher, the mariner, the warrior, the strategist, the storyteller, the wizard, the wayfarer...

Skull

  • Magister equitum
  • Citizens
    Voting Member
  • Posts: 357
  • Karma: 5
  • It is easier to criticize than to correct our past
    • View Profile
    • Awards
Re: build_module error
« Reply #11 on: November 09, 2013, 01:51:31 PM »
It works! Thanks Jubal! But now I have another problem,a much more bizarre and stupid one,but not dangerous,just annoying...  ::)

http://www.exilian.co.uk/forum/index.php?topic=2732.new#new

Also,note that,in M&B Warband,you cannot edit faction names in module_strings... You have to change the factions file.
« Last Edit: November 09, 2013, 02:16:33 PM by Skull »
Skull, the one of poor grammar, the enemy of all Grammar Nazi and destroyer of all linguistic reasoning!