Module Not Building with Vanilla Native Copy

正在查看此主题的用户

Been following directions on trying to start building my first mod.  I have originally downloaded the latest python version, but downloaded 2.6.x after finding a post saying anything after 2.6 python isn't compatible.  I still have the latest python version, but replaced the PATH in my environment variables with 2.6 (I guess I should mention I'm using Windows 7 64-bit).

I uninstalled and reinstalled Warband to get a fresh Native file as I did some light tweaks in the txt files (like cattle following you, better wages and taxes, etc.); I did this after the initial errors, but the same errors are appearing after the fresh install.  Copied everything in the fresh Native file and put it in my mod's folder and redownloaded the latest module system just in case.

Set the module_info.py file's export_dir variable in the module folder to look at my mod's folder (and followed the format of changing the \'s to /'s as well as adding a / to the end of the mod's path) and put the flora_kinds, ground_specs, and skyboxes txt files in my mod's data folder.

I then run the bat file only to get these errors.  I have done nothing with the files, yet I'm getting errors?  Everything is vanilla native so I'm at a loss at this point.  Any help would be greatly appreciated.

P.S.

My mod still shows up and can be played with no problem (as it's just a copy of Native), but if I try to compile the module system with the module_info looking at my mod; it never builds correctly as shown below.

File "process_init.py", line 5
    print "Initializing..."
                          ^
SyntaxError: invalid syntax
  File "process_global_variables.py", line 23
    add_variable(varb, variable_list, variable_uses)
                                                  ^
TabError: inconsistent use of tabs and spaces in indentation
  File "process_strings.py", line 24
    print "Exporting strings..."
                              ^
SyntaxError: invalid syntax
  File "process_skills.py", line 30
    print "Exporting skills..."
                              ^
SyntaxError: invalid syntax
  File "process_music.py", line 21
    print "Exporting tracks..."
                              ^
SyntaxError: invalid syntax
  File "process_animations.py", line 58
    print "Exporting animations..."
                                  ^
SyntaxError: invalid syntax
  File "process_meshes.py", line 23
    print "Exporting meshes..."
                              ^
SyntaxError: invalid syntax
  File "process_sounds.py", line 49
    print "Exporting sounds..."
                              ^
SyntaxError: invalid syntax
  File "process_skins.py", line 104
    print "Exporting skins..."
                            ^
SyntaxError: invalid syntax
  File "process_map_icons.py", line 32
    print "Exporting map icons..."
                                ^
SyntaxError: invalid syntax
  File "process_factions.py", line 27
    print "ERROR faction not found: "+ rel_name
                                    ^
SyntaxError: invalid syntax
  File "process_items.py", line 60
    print "Exporting item data..."
                                ^
SyntaxError: invalid syntax
  File "process_scenes.py", line 12
    print "Exporting scene data..."
                                  ^
SyntaxError: invalid syntax
  File "process_troops.py", line 104
    print "Exporting troops data"
                                ^
SyntaxError: invalid syntax
  File "process_particle_sys.py", line 60
    print "Exporting particle data..."
                                    ^
SyntaxError: invalid syntax
  File "process_scene_props.py", line 26
    print "Exporting scene props..."
                                  ^
SyntaxError: invalid syntax
  File "process_tableau_materials.py", line 25
    print "Exporting tableau materials data..."
                                              ^
SyntaxError: invalid syntax
  File "process_presentations.py", line 27
    print "Exporting presentations..."
                                    ^
SyntaxError: invalid syntax
  File "process_party_tmps.py", line 28
    print "Error! NUMBER OF TEMPLATE MEMBERS EXCEEDS 6 " + party_template[0]
                                                      ^
SyntaxError: invalid syntax
  File "process_parties.py", line 28
    print "Error: Unable to find menu-id :" + menu_param
                                          ^
SyntaxError: invalid syntax
  File "process_quests.py", line 29
    print "Exporting quest data..."
                                  ^
SyntaxError: invalid syntax
  File "process_info_pages.py", line 25
    print "Exporting info_page data..."
                                      ^
SyntaxError: invalid syntax
  File "process_scripts.py", line 34
    print "Exporting scripts..."
                              ^
SyntaxError: invalid syntax
  File "process_mission_tmps.py", line 29
    print "ERROR: Too many item_overrides!"
                                          ^
SyntaxError: invalid syntax
  File "process_game_menus.py", line 41
    print "Exporting game menus data..."
                                      ^
SyntaxError: invalid syntax
  File "process_simple_triggers.py", line 19
    print "exporting simple triggers..."
                                      ^
SyntaxError: invalid syntax
  File "process_dialogs.py", line 95
    print sentence[ipt_token_pos]
                ^
SyntaxError: invalid syntax
  File "process_global_variables_unused.py", line 6
    print "Checking global variable usages..."
                                            ^
SyntaxError: invalid syntax
  File "process_postfx.py", line 26
    print "Exporting postfx_params..."
                                    ^
SyntaxError: invalid syntax
Could Not Find C:\Users\Matt\Desktop\My Mod\Module_system 1.153\*.pyc #Side Note: lol, wtf, the bat file doesn't recognize itself???

______________________________

Script processing has ended.
Press any key to exit. . .
 
I don't know much but, the problem seems to be about python itself. My suggestions:
- Try python 2.7 (2.7x)
- Be sure that you wrote the variable path correctly.
- Try deleting the other python's variable path.
 
Hmmm; seems Python 3.x was the problem.  I thought since I deleted it from the environment variables and put 2.6.x instead; that would have resolved that particular issue as I was curious about future Python scripting for another project unrelated towards modding, and wanted the latest version still.  Thanks for alerting me that I still needed to remove it completely.  I'm curious though, is this a "normal" output when you run the module?  I see that there is still a couple of errors listed.  Again, this is a copy of Native with nothing done to it; so I'm still at a loss why it's still throwing a fit here and there.

Initializing...
Compiling all global variables...
Traceback (most recent call last):
  File "process_global_variables.py", line 105, in <module>
    compile_all_global_vars(variables, variable_uses,triggers, dialogs, game_men
us, mission_templates, scripts, simple_triggers)
NameError: name 'scripts' is not defined
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...
Traceback (most recent call last):
  File "process_items.py", line 72, in <module>
    write_items(variables,variable_uses,tag_uses,quick_strings)
  File "process_items.py", line 55, in write_items
    save_simple_triggers(ofile,trigger_list, variable_list,variable_uses,tag_use
s,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 471, in save_simple_triggers
    save_statement_block(ofile,0,1,trigger[1]  , variable_list, variable_uses,ta
g_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 449, in save_statement_block
    save_statement(ofile,opcode,no_variables,statement,variable_list,variable_us
es,local_vars, local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 400, in save_statement
    operand = process_param(statement[i + 1],variable_list,variable_uses,local_v
ars_list,local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 380, in process_param
    result = get_identifier_value(param.lower(), tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 109, in get_identifier_value
    (tag_type, id_no) = get_id_value(tag_str,id_str,tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 66, in get_id_value
    id_no = find_object(scripts,identifier)
NameError: global name 'scripts' is not defined
Exporting scene data...
Exporting troops data
Exporting particle data...
Exporting scene props...
Traceback (most recent call last):
  File "process_scene_props.py", line 32, in <module>
    save_scene_props(variables,variable_uses,tag_uses,quick_strings)
  File "process_scene_props.py", line 15, in save_scene_props
    save_simple_triggers(ofile,scene_prop[4]  , variable_list,variable_uses,tag_
uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 471, in save_simple_triggers
    save_statement_block(ofile,0,1,trigger[1]  , variable_list, variable_uses,ta
g_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 449, in save_statement_block
    save_statement(ofile,opcode,no_variables,statement,variable_list,variable_us
es,local_vars, local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 400, in save_statement
    operand = process_param(statement[i + 1],variable_list,variable_uses,local_v
ars_list,local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 380, in process_param
    result = get_identifier_value(param.lower(), tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 109, in get_identifier_value
    (tag_type, id_no) = get_id_value(tag_str,id_str,tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 66, in get_id_value
    id_no = find_object(scripts,identifier)
NameError: global name 'scripts' is not defined
Exporting tableau materials data...
Traceback (most recent call last):
  File "process_tableau_materials.py", line 31, in <module>
    save_tableau_materials(variables,variable_uses,tag_uses,quick_strings)
  File "process_tableau_materials.py", line 15, in save_tableau_materials
    save_statement_block(ofile, 0, 1, tableau[9], variable_list, variable_uses,
tag_uses, quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 449, in save_statement_block
    save_statement(ofile,opcode,no_variables,statement,variable_list,variable_us
es,local_vars, local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 400, in save_statement
    operand = process_param(statement[i + 1],variable_list,variable_uses,local_v
ars_list,local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 380, in process_param
    result = get_identifier_value(param.lower(), tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 109, in get_identifier_value
    (tag_type, id_no) = get_id_value(tag_str,id_str,tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 66, in get_id_value
    id_no = find_object(scripts,identifier)
NameError: global name 'scripts' is not defined
Exporting presentations...
Traceback (most recent call last):
  File "process_presentations.py", line 33, in <module>
    save_presentations(variables,variable_uses,tag_uses,quick_strings)
  File "process_presentations.py", line 16, in save_presentations
    save_simple_triggers(ofile,presentation[3], variable_list,variable_uses,tag_
uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 471, in save_simple_triggers
    save_statement_block(ofile,0,1,trigger[1]  , variable_list, variable_uses,ta
g_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 449, in save_statement_block
    save_statement(ofile,opcode,no_variables,statement,variable_list,variable_us
es,local_vars, local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 400, in save_statement
    operand = process_param(statement[i + 1],variable_list,variable_uses,local_v
ars_list,local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 380, in process_param
    result = get_identifier_value(param.lower(), tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 109, in get_identifier_value
    (tag_type, id_no) = get_id_value(tag_str,id_str,tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 66, in get_id_value
    id_no = find_object(scripts,identifier)
NameError: global name 'scripts' is not defined
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting info_page data...
Exporting scripts...
Traceback (most recent call last):
  File "process_scripts.py", line 35, in <module>
    save_python_header()
  File "process_scripts.py", line 28, in save_python_header
    for i_script in xrange(len(scripts)):
NameError: global name 'scripts' is not defined
Exporting mission_template data...
Traceback (most recent call last):
  File "process_mission_tmps.py", line 64, in <module>
    save_mission_templates(variables,variable_uses,tag_uses,quick_strings)
  File "process_mission_tmps.py", line 48, in save_mission_templates
    save_triggers(file,convert_to_identifier(mission_template[mission_template_n
ame_pos]), mission_template[mission_template_triggers_pos],variables,variable_us
es,tag_uses,quick_strings)
  File "process_mission_tmps.py", line 23, in save_triggers
    save_statement_block(file, 0, 1, trigger[trigger_consequences_pos], variable
_list,variable_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 449, in save_statement_block
    save_statement(ofile,opcode,no_variables,statement,variable_list,variable_us
es,local_vars, local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 400, in save_statement
    operand = process_param(statement[i + 1],variable_list,variable_uses,local_v
ars_list,local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 380, in process_param
    result = get_identifier_value(param.lower(), tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 109, in get_identifier_value
    (tag_type, id_no) = get_id_value(tag_str,id_str,tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 66, in get_id_value
    id_no = find_object(scripts,identifier)
NameError: global name 'scripts' is not defined
Exporting game menus data...
Traceback (most recent call last):
  File "process_game_menus.py", line 47, in <module>
    save_game_menus(variables,variable_uses,tag_uses,quick_strings)
  File "process_game_menus.py", line 31, in save_game_menus
    save_game_menu_item(ofile,variable_list,variable_uses,menu_item,tag_uses,qui
ck_strings)
  File "process_game_menus.py", line 14, in save_game_menu_item
    save_statement_block(ofile,0, 1, menu_item[3], variable_list, variable_uses,
tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 449, in save_statement_block
    save_statement(ofile,opcode,no_variables,statement,variable_list,variable_us
es,local_vars, local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 400, in save_statement
    operand = process_param(statement[i + 1],variable_list,variable_uses,local_v
ars_list,local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 380, in process_param
    result = get_identifier_value(param.lower(), tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 109, in get_identifier_value
    (tag_type, id_no) = get_id_value(tag_str,id_str,tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 66, in get_id_value
    id_no = find_object(scripts,identifier)
NameError: global name 'scripts' is not defined
exporting simple triggers...
Traceback (most recent call last):
  File "process_simple_triggers.py", line 24, in <module>
    save_simple_triggers(variables,variable_uses,simple_triggers,tag_uses,quick_
strings)
  File "process_simple_triggers.py", line 14, in save_simple_triggers
    save_statement_block(file,0, 1, simple_trigger[1]  , variable_list,variable_
uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 449, in save_statement_block
    save_statement(ofile,opcode,no_variables,statement,variable_list,variable_us
es,local_vars, local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 400, in save_statement
    operand = process_param(statement[i + 1],variable_list,variable_uses,local_v
ars_list,local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 380, in process_param
    result = get_identifier_value(param.lower(), tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 109, in get_identifier_value
    (tag_type, id_no) = get_id_value(tag_str,id_str,tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 66, in get_id_value
    id_no = find_object(scripts,identifier)
NameError: global name 'scripts' is not defined
exporting triggers...
Traceback (most recent call last):
  File "process_dialogs.py", line 199, in <module>
    save_triggers(variables,variable_uses,triggers,tag_uses,quick_strings)
  File "process_dialogs.py", line 54, in save_triggers
    save_statement_block(file,0,1,trigger[trigger_consequences_pos], variable_li
st, variable_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 449, in save_statement_block
    save_statement(ofile,opcode,no_variables,statement,variable_list,variable_us
es,local_vars, local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 400, in save_statement
    operand = process_param(statement[i + 1],variable_list,variable_uses,local_v
ars_list,local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 380, in process_param
    result = get_identifier_value(param.lower(), tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 109, in get_identifier_value
    (tag_type, id_no) = get_id_value(tag_str,id_str,tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 66, in get_id_value
    id_no = find_object(scripts,identifier)
NameError: global name 'scripts' is not defined
Checking global variable usages...
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .
 
By no means is that normal. You have done something wrong with module_scripts.py it seems, try again with a fresh module system.

this is a 'normal' build

插入代码块:
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...
Exporting mission_template data...
Exporting game menus data...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
Imported 21 global variables for saved-game compatability that are not used.
Exporting postfx_params...

______________________________

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


 
Re-downloaded yet another copy of the module system.....SUCCESS!! No errors reported.  Thank you everyone for your help.  Can't wait to start cracking on my first mod.
 
Just for the future, when posting the errors from the compiler, use spoilers.

The White Falcon 说:
Hmmm; seems Python 3.x was the problem.  I thought since I deleted it from the environment variables and put 2.6.x instead; that would have resolved that particular issue as I was curious about future Python scripting for another project unrelated towards modding, and wanted the latest version still.  Thanks for alerting me that I still needed to remove it completely.  I'm curious though, is this a "normal" output when you run the module?  I see that there is still a couple of errors listed.  Again, this is a copy of Native with nothing done to it; so I'm still at a loss why it's still throwing a fit here and there.

Initializing...
Compiling all global variables...
Traceback (most recent call last):
  File "process_global_variables.py", line 105, in <module>
    compile_all_global_vars(variables, variable_uses,triggers, dialogs, game_men
us, mission_templates, scripts, simple_triggers)
NameError: name 'scripts' is not defined
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...
Traceback (most recent call last):
  File "process_items.py", line 72, in <module>
    write_items(variables,variable_uses,tag_uses,quick_strings)
  File "process_items.py", line 55, in write_items
    save_simple_triggers(ofile,trigger_list, variable_list,variable_uses,tag_use
s,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 471, in save_simple_triggers
    save_statement_block(ofile,0,1,trigger[1]  , variable_list, variable_uses,ta
g_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 449, in save_statement_block
    save_statement(ofile,opcode,no_variables,statement,variable_list,variable_us
es,local_vars, local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 400, in save_statement
    operand = process_param(statement[i + 1],variable_list,variable_uses,local_v
ars_list,local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 380, in process_param
    result = get_identifier_value(param.lower(), tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 109, in get_identifier_value
    (tag_type, id_no) = get_id_value(tag_str,id_str,tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 66, in get_id_value
    id_no = find_object(scripts,identifier)
NameError: global name 'scripts' is not defined
Exporting scene data...
Exporting troops data
Exporting particle data...
Exporting scene props...
Traceback (most recent call last):
  File "process_scene_props.py", line 32, in <module>
    save_scene_props(variables,variable_uses,tag_uses,quick_strings)
  File "process_scene_props.py", line 15, in save_scene_props
    save_simple_triggers(ofile,scene_prop[4]  , variable_list,variable_uses,tag_
uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 471, in save_simple_triggers
    save_statement_block(ofile,0,1,trigger[1]  , variable_list, variable_uses,ta
g_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 449, in save_statement_block
    save_statement(ofile,opcode,no_variables,statement,variable_list,variable_us
es,local_vars, local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 400, in save_statement
    operand = process_param(statement[i + 1],variable_list,variable_uses,local_v
ars_list,local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 380, in process_param
    result = get_identifier_value(param.lower(), tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 109, in get_identifier_value
    (tag_type, id_no) = get_id_value(tag_str,id_str,tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 66, in get_id_value
    id_no = find_object(scripts,identifier)
NameError: global name 'scripts' is not defined
Exporting tableau materials data...
Traceback (most recent call last):
  File "process_tableau_materials.py", line 31, in <module>
    save_tableau_materials(variables,variable_uses,tag_uses,quick_strings)
  File "process_tableau_materials.py", line 15, in save_tableau_materials
    save_statement_block(ofile, 0, 1, tableau[9], variable_list, variable_uses,
tag_uses, quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 449, in save_statement_block
    save_statement(ofile,opcode,no_variables,statement,variable_list,variable_us
es,local_vars, local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 400, in save_statement
    operand = process_param(statement[i + 1],variable_list,variable_uses,local_v
ars_list,local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 380, in process_param
    result = get_identifier_value(param.lower(), tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 109, in get_identifier_value
    (tag_type, id_no) = get_id_value(tag_str,id_str,tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 66, in get_id_value
    id_no = find_object(scripts,identifier)
NameError: global name 'scripts' is not defined
Exporting presentations...
Traceback (most recent call last):
  File "process_presentations.py", line 33, in <module>
    save_presentations(variables,variable_uses,tag_uses,quick_strings)
  File "process_presentations.py", line 16, in save_presentations
    save_simple_triggers(ofile,presentation[3], variable_list,variable_uses,tag_
uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 471, in save_simple_triggers
    save_statement_block(ofile,0,1,trigger[1]  , variable_list, variable_uses,ta
g_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 449, in save_statement_block
    save_statement(ofile,opcode,no_variables,statement,variable_list,variable_us
es,local_vars, local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 400, in save_statement
    operand = process_param(statement[i + 1],variable_list,variable_uses,local_v
ars_list,local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 380, in process_param
    result = get_identifier_value(param.lower(), tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 109, in get_identifier_value
    (tag_type, id_no) = get_id_value(tag_str,id_str,tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 66, in get_id_value
    id_no = find_object(scripts,identifier)
NameError: global name 'scripts' is not defined
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting info_page data...
Exporting scripts...
Traceback (most recent call last):
  File "process_scripts.py", line 35, in <module>
    save_python_header()
  File "process_scripts.py", line 28, in save_python_header
    for i_script in xrange(len(scripts)):
NameError: global name 'scripts' is not defined
Exporting mission_template data...
Traceback (most recent call last):
  File "process_mission_tmps.py", line 64, in <module>
    save_mission_templates(variables,variable_uses,tag_uses,quick_strings)
  File "process_mission_tmps.py", line 48, in save_mission_templates
    save_triggers(file,convert_to_identifier(mission_template[mission_template_n
ame_pos]), mission_template[mission_template_triggers_pos],variables,variable_us
es,tag_uses,quick_strings)
  File "process_mission_tmps.py", line 23, in save_triggers
    save_statement_block(file, 0, 1, trigger[trigger_consequences_pos], variable
_list,variable_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 449, in save_statement_block
    save_statement(ofile,opcode,no_variables,statement,variable_list,variable_us
es,local_vars, local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 400, in save_statement
    operand = process_param(statement[i + 1],variable_list,variable_uses,local_v
ars_list,local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 380, in process_param
    result = get_identifier_value(param.lower(), tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 109, in get_identifier_value
    (tag_type, id_no) = get_id_value(tag_str,id_str,tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 66, in get_id_value
    id_no = find_object(scripts,identifier)
NameError: global name 'scripts' is not defined
Exporting game menus data...
Traceback (most recent call last):
  File "process_game_menus.py", line 47, in <module>
    save_game_menus(variables,variable_uses,tag_uses,quick_strings)
  File "process_game_menus.py", line 31, in save_game_menus
    save_game_menu_item(ofile,variable_list,variable_uses,menu_item,tag_uses,qui
ck_strings)
  File "process_game_menus.py", line 14, in save_game_menu_item
    save_statement_block(ofile,0, 1, menu_item[3], variable_list, variable_uses,
tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 449, in save_statement_block
    save_statement(ofile,opcode,no_variables,statement,variable_list,variable_us
es,local_vars, local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 400, in save_statement
    operand = process_param(statement[i + 1],variable_list,variable_uses,local_v
ars_list,local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 380, in process_param
    result = get_identifier_value(param.lower(), tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 109, in get_identifier_value
    (tag_type, id_no) = get_id_value(tag_str,id_str,tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 66, in get_id_value
    id_no = find_object(scripts,identifier)
NameError: global name 'scripts' is not defined
exporting simple triggers...
Traceback (most recent call last):
  File "process_simple_triggers.py", line 24, in <module>
    save_simple_triggers(variables,variable_uses,simple_triggers,tag_uses,quick_
strings)
  File "process_simple_triggers.py", line 14, in save_simple_triggers
    save_statement_block(file,0, 1, simple_trigger[1]  , variable_list,variable_
uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 449, in save_statement_block
    save_statement(ofile,opcode,no_variables,statement,variable_list,variable_us
es,local_vars, local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 400, in save_statement
    operand = process_param(statement[i + 1],variable_list,variable_uses,local_v
ars_list,local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 380, in process_param
    result = get_identifier_value(param.lower(), tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 109, in get_identifier_value
    (tag_type, id_no) = get_id_value(tag_str,id_str,tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 66, in get_id_value
    id_no = find_object(scripts,identifier)
NameError: global name 'scripts' is not defined
exporting triggers...
Traceback (most recent call last):
  File "process_dialogs.py", line 199, in <module>
    save_triggers(variables,variable_uses,triggers,tag_uses,quick_strings)
  File "process_dialogs.py", line 54, in save_triggers
    save_statement_block(file,0,1,trigger[trigger_consequences_pos], variable_li
st, variable_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 449, in save_statement_block
    save_statement(ofile,opcode,no_variables,statement,variable_list,variable_us
es,local_vars, local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 400, in save_statement
    operand = process_param(statement[i + 1],variable_list,variable_uses,local_v
ars_list,local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 380, in process_param
    result = get_identifier_value(param.lower(), tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 109, in get_identifier_value
    (tag_type, id_no) = get_id_value(tag_str,id_str,tag_uses)
  File "C:\Users\Matt\Desktop\My Mod\Module_system 1.153\process_operations.py",
line 66, in get_id_value
    id_no = find_object(scripts,identifier)
NameError: global name 'scripts' is not defined
Checking global variable usages...
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .
 
后退
顶部 底部