A question

正在查看此主题的用户

@Buziah: I tried putting a / in the end, but that didn't seem to change anything.

@Earl of Swadia: I didn't even know that you were supposed to include the ". Thanks for the help  :grin:! I'll go try it out and see if it works. Again, thanks!

EDIT: It works! Thanks a lot Earl of Swadia!  :grin:
Now I just need to get on with the rest of the tutorial.
 
revknight 说:
I tried doing the editing the file but i just end up with this
  File "process_init.py", line 4
    print "Initializing..."
                          ^
SyntaxError: invalid syntax
  File "process_global_variables.py", line 25
    print "Error in trigger:"
                            ^
SyntaxError: invalid syntax
  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 47
    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 53
    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 102
    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_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_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 91
    print sentence[ipt_token_pos]
                ^
SyntaxError: invalid syntax
  File "process_global_variables_unused.py", line 6
    print "Checking global variable usages..."
                                            ^
SyntaxError: invalid syntax
Could Not Find G:\Mount&Blade\ModuleSystem\*.pyc

______________________________

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


I have the same error.Can anyone explain me clearly how is it fixed?
 
When I click on Build Module this is the last part of what it says.

SyntaxError: can't assign to literal
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 1, in <module>
    from module_info import *
  File "C:\Users\Name\Desktop\MB needed folder\mb_module_system_1010_0\ModuleS
ystem\module_info.py", line 6
    "export_dir" =  "C:/Users/Name/Desktop/MB needed folder/Modules/New sun/"
SyntaxError: can't assign to literal

______________________________

This is what the Modules_info says.

"Export_dir" = "C:/Users/Name/Desktop/MB needed folder/Modules/New sun/"

All but the = is green.

I need help.
 
Hey Guys,

for me it looks like this:

exportdir.jpg


and when i start the batch it shows this error message:

batchx.jpg




I am able to start Python over the "cmd"

i deleted the conversation.txt before the batch


anyone maybe see what i could have mistaken ?

greetz kabs



********EDIT**********

Problem solved!

Only use Python 27 not any version above :wink:

**********************
 
Please Help

Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "C:\Users\ADRIAN\Desktop\Module System\Module_system 1.165\process_operat
ions.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\ADRIAN\Desktop\Module System\Module_system 1.165\module_scripts
.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\ADRIAN\Desktop\Module System\Module_system 1.165\module_dialogs
.py", line 10745, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Exporting strings...
Traceback (most recent call last):
  File "process_strings.py", line 26, in <module>
    save_strings(strings)
  File "process_strings.py", line 9, in save_strings
    ofile = open(export_dir + "strings.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade - War
band/Modules/Tutorial Teststrings.txt'
Exporting skills...
Traceback (most recent call last):
  File "process_skills.py", line 32, in <module>
    save_skills()
  File "process_skills.py", line 15, in save_skills
    ofile = open(export_dir + "skills.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade - War
band/Modules/Tutorial Testskills.txt'
Exporting tracks...
Traceback (most recent call last):
  File "process_music.py", line 23, in <module>
    save_tracks()
  File "process_music.py", line 15, in save_tracks
    file = open(export_dir + "music.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade - War
band/Modules/Tutorial Testmusic.txt'
Exporting animations...
Traceback (most recent call last):
  File "process_animations.py", line 61, in <module>
    write_actions(animations,len(action_codes),action_codes,"actions.txt")
  File "process_animations.py", line 24, in write_actions
    file = open(export_dir + file_name,"w")
IOError: [Errno 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade - War
band/Modules/Tutorial Testactions.txt'
Exporting meshes...
Traceback (most recent call last):
  File "process_meshes.py", line 25, in <module>
    save_meshes()
  File "process_meshes.py", line 9, in save_meshes
    ofile = open(export_dir + "meshes.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade - War
band/Modules/Tutorial Testmeshes.txt'
Exporting sounds...
Traceback (most recent call last):
  File "process_sounds.py", line 51, in <module>
    write_sounds(sound_samples, sounds)
  File "process_sounds.py", line 13, in write_sounds
    ofile = open(export_dir + "sounds.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade - War
band/Modules/Tutorial Testsounds.txt'
Exporting skins...
Traceback (most recent call last):
  File "process_skins.py", line 105, in <module>
    export_skins(skins)
  File "process_skins.py", line 45, in export_skins
    ofile = open(export_dir + "skins.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade - War
band/Modules/Tutorial Testskins.txt'
Traceback (most recent call last):
  File "process_map_icons.py", line 6, in <module>
    from process_operations import *
  File "C:\Users\ADRIAN\Desktop\Module System\Module_system 1.165\process_operat
ions.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\ADRIAN\Desktop\Module System\Module_system 1.165\module_scripts
.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Exporting faction data...
Traceback (most recent call last):
  File "process_factions.py", line 70, in <module>
    save_factions(relations)
  File "process_factions.py", line 34, in save_factions
    file = open(export_dir + "factions.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade - War
band/Modules/Tutorial Testfactions.txt'
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 66, in <module>
    from process_operations import *
  File "C:\Users\ADRIAN\Desktop\Module System\Module_system 1.165\process_operat
ions.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\ADRIAN\Desktop\Module System\Module_system 1.165\module_scripts
.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\ADRIAN\Desktop\Module System\Module_system 1.165\process_operat
ions.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\ADRIAN\Desktop\Module System\Module_system 1.165\module_scripts
.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Exporting troops data
Traceback (most recent call last):
  File "process_troops.py", line 107, in <module>
    save_troops()
  File "process_troops.py", line 13, in save_troops
    file = open(export_dir + "troops.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade - War
band/Modules/Tutorial Testtroops.txt'
Exporting particle data...
Traceback (most recent call last):
  File "process_particle_sys.py", line 61, in <module>
    save_particle_systems()
  File "process_particle_sys.py", line 29, in save_particle_systems
    ofile = open(export_dir + "particle_systems.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade - War
band/Modules/Tutorial Testparticle_systems.txt'
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\Users\ADRIAN\Desktop\Module System\Module_system 1.165\process_operat
ions.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\ADRIAN\Desktop\Module System\Module_system 1.165\module_scripts
.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\ADRIAN\Desktop\Module System\Module_system 1.165\process_operat
ions.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\ADRIAN\Desktop\Module System\Module_system 1.165\module_scripts
.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\ADRIAN\Desktop\Module System\Module_system 1.165\module_present
ations.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_party_tmps.py", line 46, in <module>
    save_party_templates()
  File "process_party_tmps.py", line 20, in save_party_templates
    file = open(export_dir + "party_templates.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade - War
band/Modules/Tutorial Testparty_templates.txt'
Traceback (most recent call last):
  File "process_parties.py", line 4, in <module>
    from module_game_menus import *
  File "C:\Users\ADRIAN\Desktop\Module System\Module_system 1.165\module_game_me
nus.py", line 13574, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Exporting quest data...
Traceback (most recent call last):
  File "process_quests.py", line 30, in <module>
    save_quests()
  File "process_quests.py", line 9, in save_quests
    ofile = open(export_dir + "quests.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade - War
band/Modules/Tutorial Testquests.txt'
Exporting info_page data...
Traceback (most recent call last):
  File "process_info_pages.py", line 26, in <module>
    save_info_pages()
  File "process_info_pages.py", line 9, in save_info_pages
    ofile = open(export_dir + "info_pages.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade - War
band/Modules/Tutorial Testinfo_pages.txt'
Traceback (most recent call last):
  File "process_scripts.py", line 4, in <module>
    from module_scripts import *
  File "C:\Users\ADRIAN\Desktop\Module System\Module_system 1.165\module_scripts
.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\ADRIAN\Desktop\Module System\Module_system 1.165\process_operat
ions.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\ADRIAN\Desktop\Module System\Module_system 1.165\module_scripts
.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\ADRIAN\Desktop\Module System\Module_system 1.165\module_game_me
nus.py", line 13574, 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\ADRIAN\Desktop\Module System\Module_system 1.165\process_operat
ions.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\ADRIAN\Desktop\Module System\Module_system 1.165\module_scripts
.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\ADRIAN\Desktop\Module System\Module_system 1.165\module_dialogs
.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\ADRIAN\Desktop\Module System\Module_system 1.165\process_operat
ions.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\ADRIAN\Desktop\Module System\Module_system 1.165\module_scripts
.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Exporting postfx_params...
Traceback (most recent call last):
  File "process_postfx.py", line 27, in <module>
    write_postfx_params(postfx_params)
  File "process_postfx.py", line 13, in write_postfx_params
    ofile = open(export_dir + "postfx.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade - War
band/Modules/Tutorial Testpostfx.txt'

______________________________

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