Normal M&B Module System for version 1.010

正在查看此主题的用户

COGlory 说:
Python is not compatible with Windows 7, last I heard.

Not true, I'm making my own mod and have been using python ever since I got windows 7 in January.
 
You guys do know that anything more recent than Python 2.6.* doesn't support MnB anymore, right?

And yes, I'm running Windows 7, and Python 2.6 is working just fine.
 
I am using Windows 7, Python 2.6, and I got it working.

I had problems with Permissions denied when running build_module.bat normally.

Running the build_module.bat file as an Administrator will give you new errors, like files not existing. This is because by running as administrator, python is looking for the .py files in the system32 folder.

What you have to do, is open up the build_module.bat file. You will see things like

python process_init.py
python process_global_variables.py
python process_strings.py
.
.
.

Edit it to make python look for the .py files in the absolute path.

python "D:\path-to-the-py-folder\process_init.py"
python "D:\path-to-the-py-folder\process_global_variables.py"
python "D:\path-to-the-py-folder\process_strings.py"
 
So... how does this work? I get a bunch of files. Do I just edit them using some sort of program and stick them somewhere in the games folders?
 
Soyuz 说:
Ethaninja 说:
So... how does this work? I get a bunch of files. Do I just edit them using some sort of program and stick them somewhere in the games folders?

Have fun reading:
What is the Module System? - Getting Started

Haha man thats pretty confusing for me. How come you have to use Python? Why couldn't they just make the game with some txt files that you could frig around with? (Mind you, I have no idea how mods work)
 
Ethaninja 说:
Haha man thats pretty confusing for me. How come you have to use Python? Why couldn't they just make the game with some txt files that you could frig around with? (Mind you, I have no idea how mods work)

Module System is set of python files that if it's compiled (by running the bat file),  it will produce txt files of the MnB's module.
 
Im just wonderin how to download the mods cuz none of mine work, and if you have to extract where to...  :mad:
 
@syntty

Looking at the output you seem to be using 64bit Windows, is the module system certified to run under a 64bit environment (?).  I'm new to m&b modding (actually waiting for the warband module system to be released before gettig into it).  Check for any references to c:\windows\system32 and try replacing with c:\windows\syswow64, syswow64 is the 32bit windows system folder oddly but that is Microsoft for you.

Sorry can't test as i only have 32bit XP.

 
is this for warband or M&B? if for WB it cant be it has 5 Factions?


Edit My bad did not notice the reply above
 
Ziller 说:
is this for warband or M&B? if for WB it cant be it has 5 Factions?


Edit My bad did not notice the reply above

Believe it or not, it took me three days and no end of grief to realize that it's for M&B, and not for Warband.
 
Iget this for everything from strings to skins:

插入代码块:
Exporting strings...
Traceback (most recent call last):
  File "C:\Users\isaacsher\Desktop\ModuleSystem\process_strings.py", line 26, in
 <module>
    save_strings(strings)
  File "C:\Users\isaacsher\Desktop\ModuleSystem\process_strings.py", line 9, in
save_strings
    ofile = open(export_dir + "strings.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files/Mount&Blade/Modu
les/MyNewMod/strings.txt'

then from map icons to triggers it gives:

插入代码块:
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:\Users\isaacsher\Desktop\ModuleSystem\process_map_icons.py", line 38,
in <module>
    save_map_icons(variables,variable_uses,tag_uses,quick_strings)
  File "C:\Users\isaacsher\Desktop\ModuleSystem\process_map_icons.py", line 9, i
n 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/MyNewMod/map_icons.txt'

so basically I think its not reading the .txt files in my mof folder even though they are there? I could be wrong though and I have no idea what to do. Help please?

EDIT: Wow...I just realized; my m&b directory is in program files (x86), compiling works perfectly now, about to test...

EDIT: Mission accomplished! Lol hope this helps anyone else out there with the same noob problem :razz:
 
dunde 说:
Yamchu 说:
Hey, i'm trying to add or edit some companions for SoD using the module system and now im wondering if this tool is totally unfit for editing an existing mod  :?:

Each time im running the build_module.bat, Sword of Damocles is reseted to native except the load sceens  :lol:

Can I make this work somehow?
if you only want to modify the companions, use troop editor.

Well couldn't you just edit the .txt files? Like I'm thinking if I add one of my items to the BRF of someone else's mod on my computer, then add the .txt line to item_kinds1.txt maybe that will work? And if it does, could you add companions in just about the same way? You could add one first in your own mod to make sure they work, then copy and paste all the .txt lines necessary to Sword of Damocles 
:mrgreen: its worth a try
 
后退
顶部 底部