build_module error

Started by Skull, November 02, 2013, 11:11:49 AM

Previous topic - Next topic

Skull

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:


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.   :-\
Quote from: The Khan on October 02, 2013, 11:36:33 AM
Skull, the one of poor grammar, the enemy of all Grammar Nazi and destroyer of all linguistic reasoning!

Jubal

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

Quote from: Jubal on November 02, 2013, 11:42:17 AM
What is the exact code of line 1236?
I think it is the end of the file.

["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.  :-\
Quote from: The Khan on October 02, 2013, 11:36:33 AM
Skull, the one of poor grammar, the enemy of all Grammar Nazi and destroyer of all linguistic reasoning!

Jubal

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

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... :(
Quote from: The Khan on October 02, 2013, 11:36:33 AM
Skull, the one of poor grammar, the enemy of all Grammar Nazi and destroyer of all linguistic reasoning!

Jubal

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

Quote from: Jubal 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?

...



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

OK,I shall upload it soon...
Quote from: The Khan on October 02, 2013, 11:36:33 AM
Skull, the one of poor grammar, the enemy of all Grammar Nazi and destroyer of all linguistic reasoning!

Skull

Quote from: The Khan on October 02, 2013, 11:36:33 AM
Skull, the one of poor grammar, the enemy of all Grammar Nazi and destroyer of all linguistic reasoning!

Jubal

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

I added Lorica Segmentata,Legion Cavalry Shield,a Gladius and Centurion Hamata.

I also made the Black Armour purchasable.
Quote from: The Khan on October 02, 2013, 11:36:33 AM
Skull, the one of poor grammar, the enemy of all Grammar Nazi and destroyer of all linguistic reasoning!

Jubal

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

#11
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.
Quote from: The Khan on October 02, 2013, 11:36:33 AM
Skull, the one of poor grammar, the enemy of all Grammar Nazi and destroyer of all linguistic reasoning!