Got it working, thanks
sphere said:[
OK I'm going to try to list down my steps (no path messing) again in as simple terms as possible
[list type=decimal]
[*]Download and install python 2.7 (see earlier post for links). If you aren't sure whether you mess up your python installation, uninstall and reinstall. DON'T associate .py files with any text editor e.g. when you try to edit it by double clicking it. DON'T.
[*]Dowload (if you haven't) and unzip the module system (mb_warband_module_system_1127.zip). It should sit in a directory called (Module_system 1.127).
[*]Make a copy of Native (or whatever mod you are planning to change) in the Module folder of your MnB installation (e.g. C:\games\Mount&Blade Warband\Modules). Let's assume it's called "Native_Custom"
[*]Move the "Module_system 1.127" folder into "Native_Custom
[*]Now go to the moved "Module_system 1.127" directory and copy "build_module.bat" to "my_build_module.bat" (optional, just to back up original file)
[*]open the "my_build_module.bat" in editor(right click on the file in explorer and choose "edit").
[*]delete all the "python " (note the space) for all lines starting with it. E.g. instead of "python process_init.py", the resultant line will become just "process_init.py", then save the file and exit editor
[*]Now open module_info.py in editor (DON'T double click on the py file, open Notepad first then use File->Open to open the file manually if you don't have any shell shortcuts). Change the line "export_dir=????" to "export_dir="../" , save the file and exit the editor
[*]Now double click on your new "my_build_module.bat" in explorer
[/list]
You should be able to see some "Initializing..." etc, which shows that the module python scripts are being executed.
Congratulations, you've got your modules system working... (I hope)
Jai said:i think it had to do with my W&B was in Programs (x86) file i moved it to just programs and now it worked
when i had changed the infor in the module_info.py file i had put programs (x86) as the directory but some reason it didnt work
however like i said i moved the W&B file to just programs and now it works
Jai said:ok so i did all of these steps one by one and this is the problem i get
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_skills.py", line 15, in save_skills
ofile = open(export_dir + "skills.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/skills.txt'
Exporting tracks...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_music.py", line 23, in <module>
save_tracks()
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_music.py", line 15, in save_tracks
file = open(export_dir + "music.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/music.txt'
Exporting animations...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_animations.py", line 61, in <module>
write_actions(animations,len(action_codes),action_codes,"actions.txt")
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_animations.py", line 24, in write_actions
file = open(export_dir + file_name,"w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/actions.txt'
Exporting meshes...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_meshes.py", line 25, in <module>
save_meshes()
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_meshes.py", line 9, in save_meshes
ofile = open(export_dir + "meshes.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/meshes.txt'
Exporting sounds...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_sounds.py", line 51, in <module>
write_sounds(sound_samples, sounds)
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_sounds.py", line 13, in write_sounds
ofile = open(export_dir + "sounds.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/sounds.txt'
Exporting skins...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_skins.py", line 105, in <module>
export_skins(skins)
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_skins.py", line 45, in export_skins
ofile = open(export_dir + "skins.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/skins.txt'
Exporting map icons...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_map_icons.py", line 38, in <module>
save_map_icons(variables,variable_uses,tag_uses,quick_strings)
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_map_icons.py", line 9, in save_map_icons
ofile = open(export_dir + "map_icons.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/map_icons.txt'
Exporting faction data...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_factions.py", line 70, in <module>
save_factions(relations)
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_factions.py", line 34, in save_factions
file = open(export_dir + "factions.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/factions.txt'
Exporting item data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_items.py", line 72, in <module>
write_items(variables,variable_uses,tag_uses,quick_strings)
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_items.py", line 19, in write_items
ofile = open(itemkinds_file_name,"w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/item_kinds1.txt'
Exporting scene data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_scenes.py", line 77, in <module>
save_scenes(variables,variable_uses,tag_uses)
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_scenes.py", line 46, in save_scenes
ofile = open(export_dir + "scenes.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/scenes.txt'
Exporting troops data
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_troops.py", line 107, in <module>
save_troops()
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_troops.py", line 13, in save_troops
file = open(export_dir + "troops.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/troops.txt'
Exporting particle data...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_particle_sys.py", line 61, in <module>
save_particle_systems()
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_particle_sys.py", line 29, in save_particle_systems
ofile = open(export_dir + "particle_systems.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/particle_systems.txt'
Exporting scene props...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_scene_props.py", line 32, in <module>
save_scene_props(variables,variable_uses,tag_uses,quick_strings)
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_scene_props.py", line 10, in save_scene_props
ofile = open(export_dir + "scene_props.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/scene_props.txt'
Exporting tableau materials data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_tableau_materials.py", line 31, in <module>
save_tableau_materials(variables,variable_uses,tag_uses,quick_strings)
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_tableau_materials.py", line 11, in save_tableau_materials
ofile = open(export_dir + "tableau_materials.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/tableau_materials.txt'
Exporting presentations...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_presentations.py", line 33, in <module>
save_presentations(variables,variable_uses,tag_uses,quick_strings)
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_presentations.py", line 11, in save_presentations
ofile = open(export_dir + "presentations.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/presentations.txt'
Exporting party_template data...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_party_tmps.py", line 46, in <module>
save_party_templates()
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_party_tmps.py", line 20, in save_party_templates
file = open(export_dir + "party_templates.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/party_templates.txt'
Exporting parties
Creating new tag_uses.txt file...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_parties.py", line 69, in <module>
save_parties(parties)
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_parties.py", line 12, in save_parties
file = open(export_dir + "parties.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/parties.txt'
Exporting quest data...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_quests.py", line 30, in <module>
save_quests()
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_quests.py", line 9, in save_quests
ofile = open(export_dir + "quests.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/quests.txt'
Exporting info_page data...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_info_pages.py", line 26, in <module>
save_info_pages()
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_info_pages.py", line 9, in save_info_pages
ofile = open(export_dir + "info_pages.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/info_pages.txt'
Exporting scripts...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_scripts.py", line 40, in <module>
save_scripts(variables,variable_uses,scripts,tag_uses,quick_strings)
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_scripts.py", line 10, in save_scripts
file = open(export_dir + "scripts.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/scripts.txt'
Exporting mission_template data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_mission_tmps.py", line 64, in <module>
save_mission_templates(variables,variable_uses,tag_uses,quick_strings)
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_mission_tmps.py", line 38, in save_mission_templates
file = open(export_dir + "mission_templates.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/mission_templates.txt'
Exporting game menus data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_game_menus.py", line 47, in <module>
save_game_menus(variables,variable_uses,tag_uses,quick_strings)
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_game_menus.py", line 22, in save_game_menus
ofile = open(export_dir + "menus.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/menus.txt'
exporting simple triggers...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_simple_triggers.py", line 24, in <module>
save_simple_triggers(variables,variable_uses,simple_triggers,tag_uses,quick_
strings)
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_simple_triggers.py", line 8, in save_simple_triggers
file = open(export_dir + "simple_triggers.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/simple_triggers.txt'
exporting triggers...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_dialogs.py", line 193, in <module>
save_triggers(variables,variable_uses,triggers,tag_uses,quick_strings)
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_dialogs.py", line 47, in save_triggers
file = open(export_dir + "triggers.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/triggers.txt'
Checking global variable usages...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Exporting postfx_params...
Traceback (most recent call last):
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_postfx.py", line 27, in <module>
write_postfx_params(postfx_params)
File "C:\Program Files (x86)\Mount&Blade Warband\Modules\Native _Custom\Module
_system 1.127\process_postfx.py", line 13, in write_postfx_params
ofile = open(export_dir + "postfx.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/Native_custom/postfx.txt'
______________________________
Script processing has ended.
Press any key to exit. . .
sphere said:OK I'm going to try to list down my steps (no path messing) again in as simple terms as possible
[list type=decimal]
[*]Download and install python 2.7 (see earlier post for links). If you aren't sure whether you mess up your python installation, uninstall and reinstall. DON'T associate .py files with any text editor e.g. when you try to edit it by double clicking it. DON'T.
[*]Dowload (if you haven't) and unzip the module system (mb_warband_module_system_1127.zip). It should sit in a directory called (Module_system 1.127).
[*]Make a copy of Native (or whatever mod you are planning to change) in the Module folder of your MnB installation (e.g. C:\games\Mount&Blade Warband\Modules). Let's assume it's called "Native_Custom"
[*]Move the "Module_system 1.127" folder into "Native_Custom
[*]Now go to the moved "Module_system 1.127" directory and copy "build_module.bat" to "my_build_module.bat" (optional, just to back up original file)
[*]open the "my_build_module.bat" in editor(right click on the file in explorer and choose "edit").
[*]delete all the "python " (note the space) for all lines starting with it. E.g. instead of "python process_init.py", the resultant line will become just "process_init.py", then save the file and exit editor
[*]Now open module_info.py in editor (DON'T double click on the py file, open Notepad first then use File->Open to open the file manually if you don't have any shell shortcuts). Change the line "export_dir=????" to "export_dir="../" , save the file and exit the editor
[*]Now double click on your new "my_build_module.bat" in explorer
[/list]
You should be able to see some "Initializing..." etc, which shows that the module python scripts are being executed.
Congratulations, you've got your modules system working... (I hope)
C:\Python25\python process_init.py
C:\Python25\python process_global_variables.py
C:\Python25\python process_strings.py
C:\Python25\python process_skills.py
C:\Python25\python process_music.py
C:\Python25\python process_animations.py
C:\Python25\python process_meshes.py
C:\Python25\python process_sounds.py
C:\Python25\python process_skins.py
C:\Python25\python process_map_icons.py
C:\Python25\python process_factions.py
C:\Python25\python process_items.py
C:\Python25\python process_scenes.py
C:\Python25\python process_troops.py
C:\Python25\python process_particle_sys.py
C:\Python25\python process_scene_props.py
C:\Python25\python process_presentations.py
C:\Python25\python process_party_tmps.py
C:\Python25\python process_parties.py
C:\Python25\python process_quests.py
C:\Python25\python process_scripts.py
C:\Python25\python process_mission_tmps.py
C:\Python25\python process_game_menus.py
C:\Python25\python process_simple_triggers.py
C:\Python25\python process_dialogs.py
C:\Python25\python process_global_variables_unused.py
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/simple_triggers.txt'
The export directory is set in modules_info.pyTrillian said:I have Python 2.6 and I'm having this problem:
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/simple_triggers.txt'
I saw another person was having the same issue, but the answer was apparently to go into the modules_ files and change the export directory, but there are no lines in these files dealing with export. At least not in the same way.
It looks like it's dealt with in the process_ files, but I don't know what I'm supposed to do with those to get this working.