Modding Q&A [For Quick Questions and Answers]

Users who are viewing this thread

Status
Not open for further replies.
I'm using Windows 7 and I get this problem when I try to run the build_module.bat file as Admin:

python: can't open file 'process_init.py': [Errno 2] No such file or directory
python: can't open file 'process_global_variables.py': [Errno 2] No such file or
directory
python: can't open file 'process_strings.py': [Errno 2] No such file or director
y
python: can't open file 'process_skills.py': [Errno 2] No such file or directory

python: can't open file 'process_music.py': [Errno 2] No such file or directory
python: can't open file 'process_animations.py': [Errno 2] No such file or direc
tory
python: can't open file 'process_meshes.py': [Errno 2] No such file or directory

python: can't open file 'process_sounds.py': [Errno 2] No such file or directory

python: can't open file 'process_skins.py': [Errno 2] No such file or directory
python: can't open file 'process_map_icons.py': [Errno 2] No such file or direct
ory
python: can't open file 'process_factions.py': [Errno 2] No such file or directo
ry
python: can't open file 'process_items.py': [Errno 2] No such file or directory
python: can't open file 'process_scenes.py': [Errno 2] No such file or directory

python: can't open file 'process_troops.py': [Errno 2] No such file or directory

python: can't open file 'process_particle_sys.py': [Errno 2] No such file or dir
ectory
python: can't open file 'process_scene_props.py': [Errno 2] No such file or dire
ctory
python: can't open file 'process_tableau_materials.py': [Errno 2] No such file o
r directory
python: can't open file 'process_presentations.py': [Errno 2] No such file or di
rectory
python: can't open file 'process_party_tmps.py': [Errno 2] No such file or direc
tory
python: can't open file 'process_parties.py': [Errno 2] No such file or director
y
python: can't open file 'process_quests.py': [Errno 2] No such file or directory

python: can't open file 'process_scripts.py': [Errno 2] No such file or director
y
python: can't open file 'process_mission_tmps.py': [Errno 2] No such file or dir
ectory
python: can't open file 'process_game_menus.py': [Errno 2] No such file or direc
tory
python: can't open file 'process_simple_triggers.py': [Errno 2] No such file or
directory
python: can't open file 'process_dialogs.py': [Errno 2] No such file or director
y
python: can't open file 'process_global_variables_unused.py': [Errno 2] No such
file or directory
Could Not Find C:\Windows\system32\*.pyc

______________________________

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

If I run it normally it will say: (too much to type so I just made an image)

http://img707.imageshack.us/img707/1563/errorbg.jpg


Before you ask yes I'm using / slashes Here's what I have in the Module_info.py file

export_dir = "C:/Program Files/Mount&Blade/Modules/A Work In Progress/"


 
You're welcome.
I myself using XP, but since you managed python works for your Windows 7 System, may be you can help ones use windows 7 too in http://forums.taleworlds.com/index.php/topic,35044.0.html.
 
When i try to run the build_module thing it just says something like

'python' was not recognized as a intern or extern command, a program or a batchfile
and repeats........
and repeats ........
and so on.....

_______________________________________

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

what does that mean?? :?:

thanks in advance :smile:
 
Did you try this? 

http://forums.taleworlds.com/index.php/topic,35044.0.html

I believe someone reccomended that a few posts up. 
 
Go to your module system folder, right click on "Build_module" and click "Edit"

Then paste this over the already existing text.  Save it, exit, and try again.

@echo off
set OLDPATH=%PATH%
set PATH="C:\Python26";%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_tableau_materials.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
 
Can anyone here help with making a map?  I followed exactly the steps of the "Thorgrims Map Tutorial" that is stickied on this board, but when I went to import the maps nothing happened.
 
COGlory said:
Go to your module system folder, right click on "Build_module" and click "Edit"

Then paste this over the already existing text.  Save it, exit, and try again.

@echo off
set OLDPATH=%PATH%
set PATH="C:\Python26";%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_tableau_materials.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

Thank you very much now its working!!!!!!!!!!!!!!!!!!
 
Lumos said:

WTF??? This always appears when I try to close the game.
This appears again. Any help?
With the help of the Italian Forum and Google Translator, I found out it was because of the HDR mod.

And I don't want to make a new topic, so about that:
I want to spawn some chests. How can that be done? They have to be lots of chest with different inventories. In one scene.

Well, I made a new topic.
 
Sorry to double-post, but...

How can I "round" a value?
I mean, I get a center's prosperity and divide it by 10. Then I store the result, but I need this result to be a non-floating integer. Examples:
Center has 44 prosperity.
Script gets this, divides and result is 4.4.
I need the result to be 4.
Center has 47 prosperity.
Script gets this, divides and result is 4.7.
I need the result to be 5.
How do I do that?
 
Status
Not open for further replies.
Back
Top Bottom