^~oO<=HOW TO MOD TUTORIAL =>Oo~^

Users who are viewing this thread

Gambino

(i hope this gets sticky , because it is a full fast tutorial fixes everything from the stuff needed to start modding to fixing the python not recognized error, if you have this tutorial, you dont need any other tutorial)
This is a tutorial that teaches set up  modding , there are two ways you can use.


There are two types to make a mod .



FIRST TYPE (NOT RECOMMENDED): TEXT EDITING : If you want to make a small mod project for yourself such as add new items or troops, you should use text editor, it is very simple and anyone can use it.


Morgh's Warband/WFaS Editor : http://mountandblade.micron.de/wrapper/edit_download.htm
TweakMB : http://www.mbrepository.com/file.php?id=1751

After you download it, open the editor and insert your mod's file in the editor and then you can edit what you want, it is very simple and nice.





2 SECOND TYPE (RECOMMENDED): If you want to make a big mod, change features, add scripts and codes and triggers, then you should use module system.

to use module system you need :


Python : http://www.python.org/ftp/python2.7.3/python-2.7.3.msi
Notepad++: http://download.tuxfamily.org/notepadplus/6.1.5/npp.6.1.5.Installer.exe

and you need to download the module system itself.

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

After you download and install the two on top and download the module system, you are almost done.

Now open the folder where you installed Mount&Blade or Mount&Blade : Warband or Mount&Blade : With Fire and Sword.

for most people this is the path ( you should check for your path, its probably a bit different )



C:/Program Files/Mount&Blade Warband

OR

C:/Program Files (x86)/Mount&Blade Warband

OR

C:/Program Files/Steam/steamapps/common/mountblade warband

OR

C:/Program Files (x86)/Steam/steamapps/common/mountblade warband


OK, Now open the Modules file inside the folder where you installed Warband, and you will find "Native" which is the default mod for the game, copy it and paste it in the same place, you will find a file called "Native - Copy" or "Native(1)", change it for example to : new mod.


Now go back to the file of the Module System, that you downloaded before, unzip it using winrar or some program and then open it,MAKE SURE YOU OPEN MODULE SYSTEM FILE, NOT MODULE DATA, you will find a big bunch of files ! NEVER TOUCH ANY OF THEM!


now you see the files :

some are header_something :- dont mess with them
some are ID_something  :- dont play with them
some are process_something :- dont mess with them
some are module_something :- those are what you will be editing while modding

!DO NOT DOUBLE CLICK ON ANY FILES!


now RIGHT CLICK on a file called "module_info" and click "Edit with Notepad++"

you will find like this :


Code:
# Point export_dir to the folder you will be keeping your module
# Make sure you use forward slashes (/) and NOT backward slashes (\)

#export_dir = "c:/MiB-OiM/MiB-New World/MiB-New World/Build/Modules/Ogniem i Mieczem/"
#export_dir = "c:/MiB-OiM/Mount&Blade/SBL-OiM/build_dlc/Modules/Ogniem i Mieczem/"
export_dir = "E:/Develop/MBWarbandWFaS/WOTS/Modules/Ogniem i Mieczem/"

now erase EVERYTHING BETWEEN THE " and the " in ALL THE EXPORT_DIR LINES!

after you erase everything, you should write your path of the COPY OF THE NATIVE THAT YOU MADE BEFORE IN THIS TUTORIAL, in our case, this is the path : ( ON YOUR COMPUTER IT MIGHT BE DIFFERENT THOUGH )


Code:
# Point export_dir to the folder you will be keeping your module
# Make sure you use forward slashes (/) and NOT backward slashes (\)

#export_dir = "C:/Program Files/Mount&Blade Warband/Modules/new mod/"
#export_dir = "C:/Program Files/Mount&Blade Warband/Modules/new mod/"
export_dir = "C:/Program Files/Mount&Blade Warband/Modules/new mod/"

make sure you put  / after your mod file name!


OK now 1 step left, you are almost done!


FIND A FILE CALLED : build_module  IN THE MODULE SYSTEM!

right click on it and click edit !

you will find like this :

Code:
@echo off
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_info_pages.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
python process_postfx.py
@del *.pyc
echo.
echo ______________________________
echo.
echo Script processing has ended.
echo Press any key to exit. . .
pause>nul


ERASE THIS CODE COMPLETELY AND REPLACE IT WITH THIS :


Code:
@echo off
process_init.py
process_global_variables.py
process_strings.py
process_skills.py
process_music.py
process_animations.py
process_meshes.py
process_sounds.py
process_skins.py
process_map_icons.py
process_factions.py
process_items.py
process_scenes.py
process_troops.py
process_particle_sys.py
process_scene_props.py
process_tableau_materials.py
process_presentations.py
process_party_tmps.py
process_parties.py
process_quests.py
process_info_pages.py
process_scripts.py
process_mission_tmps.py
process_game_menus.py
process_simple_triggers.py
process_dialogs.py
process_global_variables_unused.py
process_postfx.py
@del *.pyc
echo.
echo ______________________________
echo.
echo Script processing has ended.
echo Press any key to exit. . .
pause>nul

NOW CLOSE AND SAVE (THIS STEP WAS TO FIX PYTHON NOT RECOGNIZED ERROR IN A SIMPLE WAY)


NOW YOU FINISHED! YOU HAVE EVERYTHING SET UP TO START MAKING YOUR OWN MOD!


Now , you can see tutorials of what you can do to add new items/ add factions/add features and OSPs/change many aspects of the game! AND DONT FORGET,DONT DOUBLE CLICK PYTHON FILES!RIGHT CLICK THEM AND CLICK "Edit with Notepad++"AND after editing the module system to add new items /factions/features etc. you should double click the file "build_module" to make your changes saved!






 
Gambino said:
now erase EVERYTHING BETWEEN THE " and the " in ALL THE EXPORT_DIR LINES![/color]
For God's sake, understand, everyone, that you do NOT need to change all lines, but only the one that is not commented.
I swear to God I will write a proper tutorial. EDIT: I did.

Gambino said:
you will find like this :[/color]
Code:
@echo off
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_info_pages.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
python process_postfx.py
@del *.pyc
echo.
echo ______________________________
echo.
echo Script processing has ended.
echo Press any key to exit. . .
pause>nul

ERASE THIS CODE COMPLETELY AND REPLACE IT WITH THIS :

Code:
@echo off
process_init.py
process_global_variables.py
process_strings.py
process_skills.py
process_music.py
process_animations.py
process_meshes.py
process_sounds.py
process_skins.py
process_map_icons.py
process_factions.py
process_items.py
process_scenes.py
process_troops.py
process_particle_sys.py
process_scene_props.py
process_tableau_materials.py
process_presentations.py
process_party_tmps.py
process_parties.py
process_quests.py
process_info_pages.py
process_scripts.py
process_mission_tmps.py
process_game_menus.py
process_simple_triggers.py
process_dialogs.py
process_global_variables_unused.py
process_postfx.py
@del *.pyc
echo.
echo ______________________________
echo.
echo Script processing has ended.
echo Press any key to exit. . .
pause>nul
Hm. Care to elaborate why you do this, given that I've never, in all of my years of modding M&B, heard of it. This seems to make no sense unless you can't setup your PATH environmental variable and your Python folder is in your ModSys folder. (Or something. Not sure because I've never needed to do it.)
 
Lumos said:
Gambino said:
now erase EVERYTHING BETWEEN THE " and the " in ALL THE EXPORT_DIR LINES![/color]
For God's sake, understand, everyone, that you do NOT need to change all lines, but only the one that is not commented.
I swear to God I will write a proper tutorial.

Gambino said:
you will find like this :[/color]
Code:
@echo off
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_info_pages.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
python process_postfx.py
@del *.pyc
echo.
echo ______________________________
echo.
echo Script processing has ended.
echo Press any key to exit. . .
pause>nul

ERASE THIS CODE COMPLETELY AND REPLACE IT WITH THIS :

Code:
@echo off
process_init.py
process_global_variables.py
process_strings.py
process_skills.py
process_music.py
process_animations.py
process_meshes.py
process_sounds.py
process_skins.py
process_map_icons.py
process_factions.py
process_items.py
process_scenes.py
process_troops.py
process_particle_sys.py
process_scene_props.py
process_tableau_materials.py
process_presentations.py
process_party_tmps.py
process_parties.py
process_quests.py
process_info_pages.py
process_scripts.py
process_mission_tmps.py
process_game_menus.py
process_simple_triggers.py
process_dialogs.py
process_global_variables_unused.py
process_postfx.py
@del *.pyc
echo.
echo ______________________________
echo.
echo Script processing has ended.
echo Press any key to exit. . .
pause>nul
Hm. Care to elaborate why you do this, given that I've never, in all of my years of modding M&B, heard of it. This seems to make no sense unless you can't setup your PATH environmental variable and your Python folder is in your ModSys folder. (Or something. Not sure because I've never needed to do it.)


FIRSTLY, I know that you should change only one line, but changing all does well..


SECONDLY, This is an alternative way to solve the python error, it works . if you do it, you dont need to set the variables and pathes and all that nonsense!
 
Gambino said:
FIRSTLY, I know that you should change only one line, but changing all does well..
Ah, but don't you think that misinforming users who don't know what a comment is is a bad thing to do?
Gambino said:
SECONDLY, This is an alternative way to solve the python error, it works . if you do it, you dont need to set the variables and pathes and all that nonsense!
Very good then. But it's not the "official" way, and you shouldn't spread it as one. It may be a fix, but it's obviously not recommended. If it were, people wouldn't be saying "Set your PATH".
 
Lumos said:
Gambino said:
FIRSTLY, I know that you should change only one line, but changing all does well..
Ah, but don't you think that misinforming users who don't know what a comment is is a bad thing to do?
Gambino said:
SECONDLY, This is an alternative way to solve the python error, it works . if you do it, you dont need to set the variables and pathes and all that nonsense!
Very good then. But it's not the "official" way, and you shouldn't spread it as one. It may be a fix, but it's obviously not recommended. If it were, people wouldn't be saying "Set your PATH".

hmm, this way, ive read it before from a grandmaster knight somewhere on the forum, works from pretty some time, so  guess its good enough :smile:

thanks for the compliment, sir_arvondor.
 
@Gambino: Seems to me that we ran into each other on the Wolfpack Siege server Sunday.Forgive me if i was a bit tactless,a had my hands full with that Tabs character,he kept trying to kill me,even though we were on the same team. :roll:


P.S. I see you're "Squire"Gambino,with over 460 posts already,how the f*ck did you manage that? I come here just about every day,usually more than once a day,yet i've only got 205 posts,and just made "Sergeant" last week.
 
sir_arvondor said:
@Gambino: Seems to me that we ran into each other on the Wolfpack Siege server Sunday.Forgive me if i was a bit tactless,a had my hands full with that Tabs character,he kept trying to kill me,even though we were on the same team. :roll:

outoftopic: but yes, we did! i wondered why werent you replying but now i know, and totally true, the server was filled with TK'ers that time for some reason or other!
 
sir_arvondor said:
P.S. I see you're "Squire"Gambino,with over 460 posts already,how the f*ck did you manage that? I come here just about every day,usually more than once a day,yet i've only got 205 posts,and just made "Sergeant" last week.

Ranks dont depend on posts, but on time spent online. To discourage spam and all that.
 
really?I didnt know that! but I spend alot of time on some tutorials because im doing a multiplay mod. :mrgreen:
 
Duh said:
sir_arvondor said:
P.S. I see you're "Squire"Gambino,with over 460 posts already,how the f*ck did you manage that? I come here just about every day,usually more than once a day,yet i've only got 205 posts,and just made "Sergeant" last week.

Ranks dont depend on posts, but on time spent online. To discourage spam and all that.
I know how the ranks work,i was just wondering what it was that kept him so busy.
 
sir_arvondor said:
Duh said:
sir_arvondor said:
P.S. I see you're "Squire"Gambino,with over 460 posts already,how the f*ck did you manage that? I come here just about every day,usually more than once a day,yet i've only got 205 posts,and just made "Sergeant" last week.

Ranks dont depend on posts, but on time spent online. To discourage spam and all that.
I know how the ranks work,i was just wondering what it was that kept him so busy.

and now im even more promoted  :mrgreen:
 
Back
Top Bottom