build_module.bat not working

正在查看此主题的用户

PaperJack

Recruit
build_module.bat does not work, it says

插入代码块:
  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_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_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
Impossibile trovare D:\Python3k\ModuleSystem\*.pyc

______________________________

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

What do I do ? I followed the tutorial to the letter.

ps. I have vista
 
I'm guessing you're using python 3.0? Get 2.6 or 2.5 instead.

Also, because you have vista you might have problems with the permission on the directory, so your changes won't show up because windows won't allow python to write directly to files in the program files directory. Either move MNB outside of the program files, which is the easiest option in the long run (just reinstall in say, C:\Mount&Blade) or set the permission for the directory correctly.
 
You must use Python 2.6
You must setup your paths, either in the bat file, or globally using system properties, to include the path for python.
You must change the output folder as specified in module_info.py
That folder path must use forward slashes, and end in a slash
The folder that your output is to go to must exist

If you've done all of the above, then I am confident that it will compile for you.

PS: Your original post is definitely a case of using Python 3.0, which, will NOT work.:wink:
 
how do i turn of the permission thing. its damn anyiong  :mad:
(im bad at spelling so please dont point that out) id appreciate some information on it
 
the permission thing in vista? It's called UAC and you can switch it off in the User Account part of the control panel.

But if you don't want to switch it off for your whole computer, it's easier to just install MNB outside of Program Files, that way you won't have the permissions problems anyway. Just anywhere in a non-system folder, like C:\Mount&Blade for instance.
 
后退
顶部 底部