A question

正在查看此主题的用户

Kuningas

Recruit
While trying to do all the things that the first moding tutorial says i still end up with this when i try to run module_build.bat

"python" is not an recognized as an internal or external command, operable program or batch file
Could not find C:\Program Files\Mount&Blademodule\ModuleSystem\*.pyc
____
Script processing has ended.
Press any key to exit....

I changed module_info file and changed the spot to my mod folder. In my opinion i did everything in that tutorial. I would be very grateful of help.
PS: Im using Vista <- :sad:
 
In the module_info file i have / slashes , still havent figured out what file is wrong/missing :S
 
build_module.bat

@echo off
set OLDPATH=%PATH%
set PATH="D:\Program Files\Python25";%PATH%

python process_init.py
python process_global_variables.py
python process_strings.py
python process_skills.py
python process_music.py
python process_animations.py
python process_meshes.py
python process_sounds.py
python process_skins.py
python process_map_icons.py
python process_factions.py
python process_items.py
python process_scenes.py
python process_troops.py
python process_particle_sys.py
python process_scene_props.py
python process_presentations.py
python process_party_tmps.py
python process_parties.py
python process_quests.py
python process_scripts.py
python process_mission_tmps.py
python process_game_menus.py
python process_simple_triggers.py
python process_dialogs.py
python process_global_variables_unused.py

set PATH=%OLDPATH%
@del *.pyc
echo.
echo ______________________________
echo.
echo Script processing has ended.
echo Press any key to exit. . .
pause>nul


Legend:
red - write yours python path, for example C:\PYTHON25\

Should work!  :wink:
 
Thank you very much, now i can start to learn how to mod :smile: Finally, you cane believe how grateful i am =)
 
This actually works. I presume that adds what the enviroment varable tampering is supposed to directly to the .bat?
 
I dont get it :sad:

can someone brake this down for me in a way my little brin can read that
to me that was just a bunch of words all mixed up  :???:
 
Darkwood 说:
build_module.bat

@echo off
set OLDPATH=%PATH%
set PATH="D:\Program Files\Python25";%PATH%

python process_init.py
python process_global_variables.py
python process_strings.py
python process_skills.py
python process_music.py
python process_animations.py
python process_meshes.py
python process_sounds.py
python process_skins.py
python process_map_icons.py
python process_factions.py
python process_items.py
python process_scenes.py
python process_troops.py
python process_particle_sys.py
python process_scene_props.py
python process_presentations.py
python process_party_tmps.py
python process_parties.py
python process_quests.py
python process_scripts.py
python process_mission_tmps.py
python process_game_menus.py
python process_simple_triggers.py
python process_dialogs.py
python process_global_variables_unused.py

set PATH=%OLDPATH%
@del *.pyc
echo.
echo ______________________________
echo.
echo Script processing has ended.
echo Press any key to exit. . .
pause>nul


Legend:
red - write yours python path, for example C:\PYTHON25\

Should work!  :wink:
HAH.
YES.
Finally it works. Anyone here want to start The Church of Darkwood with me?
 
Ok, I'm hoping I can get some clarification: my build_module.bat works perfectly till the end when it says it cannot find the:

Could not find C:\Program Files\Mount&Blademodule\ModuleSystem\*.pyc

Can anyone explain why this is coming up, while I have no other issues?
 
What does this mean? Can you explain what I should do? I am having the same problem, but on XP.
Darkwood 说:
build_module.bat

@echo off
set OLDPATH=%PATH%
set PATH="D:\Program Files\Python25";%PATH%

python process_init.py
python process_global_variables.py
python process_strings.py
python process_skills.py
python process_music.py
python process_animations.py
python process_meshes.py
python process_sounds.py
python process_skins.py
python process_map_icons.py
python process_factions.py
python process_items.py
python process_scenes.py
python process_troops.py
python process_particle_sys.py
python process_scene_props.py
python process_presentations.py
python process_party_tmps.py
python process_parties.py
python process_quests.py
python process_scripts.py
python process_mission_tmps.py
python process_game_menus.py
python process_simple_triggers.py
python process_dialogs.py
python process_global_variables_unused.py

set PATH=%OLDPATH%
@del *.pyc
echo.
echo ______________________________
echo.
echo Script processing has ended.
echo Press any key to exit. . .
pause>nul


Legend:
red - write yours python path, for example C:\PYTHON25\

Should work!  :wink:
 
Wow Darkwood how did you figure out to do this? thanks allot i tried allot of different steps until i found this post.
 
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. . .
 
YES GOT IT WOOO

if your using vista take it out of the directory and it somewhere like C:/Users/(yourname)/pictures.it worked for me
next on the agenda learn how to do basic modelling
 
Winslow 说:
Ok, I'm hoping I can get some clarification: my build_module.bat works perfectly till the end when it says it cannot find the:

Could not find C:\Program Files\Mount&Blademodule\ModuleSystem\*.pyc

Can anyone explain why this is coming up, while I have no other issues?
same here HELP PLEASE!
 
Hey guys, brand new member of the Forums here.

Lately I decided that I'd like to try and mod M&B, and when I discovered Thorgrim's Map Editor I was thrilled. I've never really delved in any programming, though I hoped that the Module System tutorials here on the board could help me with that.

And so I started with the first one, and everything went fine for a while. Then I came to the point where you're supposed to delete the Conversation.txt and then use the build.bat, but it doesn't work. When I use the build.bat, it doesn't build or compile or anything. I get this error message:

Traceback (most recent call last):
  File "process_init.py", line 1, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_global_variables.py", line 4, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_strings.py", line 3, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_skills.py", line 3, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_music.py", line 3, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_animations.py", line 3, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_meshes.py", line 3, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_sounds.py", line 2, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_skins.py", line 3, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_map_icons.py", line 2, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_factions.py", line 1, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 56, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_scenes.py", line 1, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_troops.py", line 3, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_particle_sys.py", line 1, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_scene_props.py", line 3, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_tableau_materials.py", line 4, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_presentations.py", line 3, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_party_tmps.py", line 1, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_parties.py", line 3, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_quests.py", line 3, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_scripts.py", line 3, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_mission_tmps.py", line 4, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_game_menus.py", line 4, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_simple_triggers.py", line 1, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_dialogs.py", line 4, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 1, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax

______________________________

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


Can anyone help me please?. I've tried switching the slashes from backward slashes (\) to forward slashes (/), but still nothing happens. I'm using XP, and I've changed my environmentvariable path to fit the directory of my Python.
I would greatly appreciate any help you can offer.
 
When you get something like that it means that you've done something wrong in editing the Python file, not in installing Python. Once you really start modding, you'll get these quite often if you make mistakes :grin:. Always look at the last thing it shows you because that's the root of the mistake:
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 1, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax
That would be the last thing on your list. Now the error is an invalid syntax. Perhaps you're missing the " at the start and " at the end of the export_dir? Or perhaps it doesn't understand ! in the file name. Give those two a go. If it still doesn't work, then I'm stuck for now. Anyone else got any ideas?
 
Winter Crow 说:
Hey guys, brand new member of the Forums here.

SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 1, in <module>
    from module_info import *
  File "C:\Documents and Settings\Ikaros\Dokumenter\Downloads\Mount and Blade\mb
_module_system_1010_0\ModuleSystem\module_info.py", line 6
    export_dir = C:/Programmer/Steam/steamapps/common/mount and blade/Modules/My
NewModule!
                  ^
SyntaxError: invalid syntax

______________________________
You need to put a / after mynewmodule! to fix that syntax I believe. If not then I have no idea.
 
Leto 说:
Winslow 说:
Ok, I'm hoping I can get some clarification: my build_module.bat works perfectly till the end when it says it cannot find the:

Could not find C:\Program Files\Mount&Blademodule\ModuleSystem\*.pyc

Can anyone explain why this is coming up, while I have no other issues?
same here HELP PLEASE!

This thread will show you how to set up Python under XP and Vista.  It involves a little bit of mucking around in the computer's environment variables, and is kind of complicated, but it's worth it.

http://forums.taleworlds.com/index.php/topic,5408.0.html
 
后退
顶部 底部