Please help Build module error

Users who are viewing this thread

Odysseus

Recruit
Okay, I'll make this as simple as possible. I've got export_dir set up just fine. This is my newest error code which I couldn't find a solution to online anywhere. I just reinstalled to get the same error again. NameError party_set_marshall line 19840. The line should be unedited as it comes in Native... idk what this is. Ill post below this first string the exact line specified to be clear.

Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\process_oper
ations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_scrip
ts.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Traceback (most recent call last):
  File "process_global_variables.py", line 6, in <module>
    from module_dialogs import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_dialo
gs.py", line 10745, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
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\Cat\Desktop\Work\Module System\Module_system 1.165\process_oper
ations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_scrip
ts.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
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\Cat\Desktop\Work\Module System\Module_system 1.165\process_oper
ations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_scrip
ts.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\process_oper
ations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_scrip
ts.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Exporting troops data
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\process_oper
ations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_scrip
ts.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\process_oper
ations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_scrip
ts.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Traceback (most recent call last):
  File "process_presentations.py", line 4, in <module>
    from module_presentations import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_prese
ntations.py", line 8614, in <module>
    (party_set_marshall, ":eek:ld_marshall", 0),
NameError: name 'party_set_marshall' is not defined
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 4, in <module>
    from module_game_menus import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_game_
menus.py", line 13565, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Exporting quest data...
Exporting info_page data...
Traceback (most recent call last):
  File "process_scripts.py", line 4, in <module>
    from module_scripts import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_scrip
ts.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Traceback (most recent call last):
  File "process_mission_tmps.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\process_oper
ations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_scrip
ts.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Traceback (most recent call last):
  File "process_game_menus.py", line 5, in <module>
    from module_game_menus import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_game_
menus.py", line 13565, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\process_oper
ations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_scrip
ts.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Traceback (most recent call last):
  File "process_dialogs.py", line 6, in <module>
    from module_dialogs import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_dialo
gs.py", line 10745, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\process_oper
ations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_scrip
ts.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Exporting postfx_params...

______________________________

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

Module-->scripts.py (Line 19840-19841)
(party_set_marshall, ":eek:ld_marshall_party", 0),
        (try_end), 
 
In module dialogs and scrpits, you use a party id which is not defined yet.

Code:
NameError: name 'party_set_marshall' is not defined

Many new modders get this error :grin: Just put a hashtag to the beginning of the codes' lines related to marshall. Or you can define the marshall.
 
Thanks a lot for the reply, but I'm very new to this coding stuff, and I can't figure out how to do that. I'm not sure the syntax of where to put #, or how to define the code. Would you show me an example pls?

          (party_set_marshall, ":eek:ld_marshall_party", 0),
        (try_end),
 
Odysseus said:
Thanks a lot for the reply, but I'm very new to this coding stuff, and I can't figure out how to do that. I'm not sure the syntax of where to put #, or how to define the code. Would you show me an example pls?

          (party_set_marshall, ":eek:ld_marshall_party", 0),
        (try_end),

For instance, if you want to disable the code above, put hashtags like that:

Code:
#         (party_set_marshall, ":old_marshall_party", 0),
#        (try_end),
 
That's not a good idea. It's far better to fix code than to delete it.



jacobhinds said:
You've done everything right, it's not your fault. Someone who was working on Viking Conquest decided now was a good time to rename a single vital file called header_operations.py, and change the word marshall to marshal for no good reason. This is extremely frustrating because it broke a lot of stuff even outside of viking conquest, and due to weird compiling errors I didn't realise what was going on until I'd reinstalled the module system twice.  :neutral:

If you're using notepad ++, search through all the files simultaneously and replace every instance of "party_set_marshall" with "party_set_marshal". It shouldn't take long as there aren't many of them.

But damn, what a pain in the butt.
 
jacobhinds said:
That's not a good idea. It's far better to fix code than to delete it.



jacobhinds said:
You've done everything right, it's not your fault. Someone who was working on Viking Conquest decided now was a good time to rename a single vital file called header_operations.py, and change the word marshall to marshal for no good reason. This is extremely frustrating because it broke a lot of stuff even outside of viking conquest, and due to weird compiling errors I didn't realise what was going on until I'd reinstalled the module system twice.  :neutral:

If you're using notepad ++, search through all the files simultaneously and replace every instance of "party_set_marshall" with "party_set_marshal". It shouldn't take long as there aren't many of them.

But damn, what a pain in the butt.

One of my friends just did the same thing but his game kept giving the same error. That's why I said that just put some hashtags to disable the codes. It is up to you, try what jacobhinds said and if it doesn't work, do what I say :smile:
 
Not every marshall, but every party_set_marshall. As Jacobhinds says, someone changed the opcode to party_set_marshal which means party_set_marshall no longer exists, hence why its not defined.
 
Ok, i tried last night disabling every instance with #, didn't complete it yet, much frustrate, yes? I'll try replacing every party_set_marhsall with ...marshal, Thank you everyone for your help, much appreciate, yes? Btw, what a fun introduction to script writing this is.    X>D
 
Update: Replaced every instance of marshall with marshal in scripts.py, and still got the same error:

Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\process_oper
ations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_scrip
ts.py", line 215, in <module>
    (faction_set_slot, ":faction_no", slot_faction_marshal, -1),
NameError: name 'slot_faction_marshal' is not defined
Traceback (most recent call last):
  File "process_global_variables.py", line 6, in <module>
    from module_dialogs import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_dialo
gs.py", line 14128, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
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\Cat\Desktop\Work\Module System\Module_system 1.165\process_oper
ations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_scrip
ts.py", line 215, in <module>
    (faction_set_slot, ":faction_no", slot_faction_marshal, -1),
NameError: name 'slot_faction_marshal' is not defined
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\Cat\Desktop\Work\Module System\Module_system 1.165\process_oper
ations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_scrip
ts.py", line 215, in <module>
    (faction_set_slot, ":faction_no", slot_faction_marshal, -1),
NameError: name 'slot_faction_marshal' is not defined
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\process_oper
ations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_scrip
ts.py", line 215, in <module>
    (faction_set_slot, ":faction_no", slot_faction_marshal, -1),
NameError: name 'slot_faction_marshal' is not defined
Exporting troops data
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\process_oper
ations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_scrip
ts.py", line 215, in <module>
    (faction_set_slot, ":faction_no", slot_faction_marshal, -1),
NameError: name 'slot_faction_marshal' is not defined
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\process_oper
ations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_scrip
ts.py", line 215, in <module>
    (faction_set_slot, ":faction_no", slot_faction_marshal, -1),
NameError: name 'slot_faction_marshal' is not defined
Traceback (most recent call last):
  File "process_presentations.py", line 4, in <module>
    from module_presentations import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_prese
ntations.py", line 8614, in <module>
    (party_set_marshall, ":eek:ld_marshall", 0),
NameError: name 'party_set_marshall' is not defined
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 4, in <module>
    from module_game_menus import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_game_
menus.py", line 13565, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Exporting quest data...
Exporting info_page data...
Traceback (most recent call last):
  File "process_scripts.py", line 4, in <module>
    from module_scripts import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_scrip
ts.py", line 215, in <module>
    (faction_set_slot, ":faction_no", slot_faction_marshal, -1),
NameError: name 'slot_faction_marshal' is not defined
Traceback (most recent call last):
  File "process_mission_tmps.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\process_oper
ations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_scrip
ts.py", line 215, in <module>
    (faction_set_slot, ":faction_no", slot_faction_marshal, -1),
NameError: name 'slot_faction_marshal' is not defined
Traceback (most recent call last):
  File "process_game_menus.py", line 5, in <module>
    from module_game_menus import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_game_
menus.py", line 13565, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\process_oper
ations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_scrip
ts.py", line 215, in <module>
    (faction_set_slot, ":faction_no", slot_faction_marshal, -1),
NameError: name 'slot_faction_marshal' is not defined
Traceback (most recent call last):
  File "process_dialogs.py", line 6, in <module>
    from module_dialogs import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_dialo
gs.py", line 14128, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\process_oper
ations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\Cat\Desktop\Work\Module System\Module_system 1.165\module_scrip
ts.py", line 215, in <module>
    (faction_set_slot, ":faction_no", slot_faction_marshal, -1),
NameError: name 'slot_faction_marshal' is not defined
Exporting postfx_params...

______________________________

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

How to define fac marshal?
 
Should be Last Post: I took jacobinds' advice, literally every single file in module system, Except Build Module, of course. I used find and replace on every single instance of Marshall, replaced with Marshal. Every single file within Mod Sys. I think it worked, there was one small error, which i don't think even matters? You tell me, final result?

Initializing...
Compiling all global variables...
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Exporting map icons...
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Exporting faction data...
Exporting item data...
Exporting scene data...
Exporting troops data
Exporting particle data...
Exporting scene props...
Exporting tableau materials data...
Exporting presentations...
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting info_page data...
Exporting scripts...
ERROR: Usage of unassigned local variable: :eek:ld_marshal_party
Exporting mission_template data...
Exporting game menus data...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .
Terminate batch job (Y/N)?
 
Looks like he set the variable as :eek:ld_marshal_party but left it referenced as :eek:ld_marshall_party. That why i said not to change every instance of marshall.. It would still work but overcomplicates things.

Again as jacobhinds said, change that variable back to :eek:ld_marshall_party. Just wanted to explain to you why.


Oh and NEVER comment out code if you dont know what it does. You could end up chasing your ass trying to find some random bugs...
 
jacobhinds said:
You should've only replaced party_set_marshall, not just marshall. Anyway it looks like you missed the place where old_marshal_party is assigned. It'd be easier for you to replace that instance of old_marshal_party with old_marshall_party. It should work.
Actually Taleworlds just released 1.166 module system and they have officially returned to old (party_set_marshall) syntax. So replacing party_set_marshall with party_set_marshal is a very bad idea.
 
Back
Top Bottom