Poll: Mapadder2
Spam this to TW forge too
It's a nice tool
It's too complicated
I don't get it to work
I didn't take a backup...
I use linux too
yay, new poll
You should also add it to mbrepository
I tested and txt mode works perfectly
[Show Results]
Note: This is a public poll, other users will be able to see what you voted for.
Post Reply 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Nireco Offline

Posts: 580
Joined: Dec 2010
Reputation: 26
Post: #1
white zhg symbol Mapadder2

As I feel that there might be other people out there interested in a tool for adding maps into modules, I decided to share my own tool for that purpose. I might add something to it, but I currently don't have any plans to continue it's development. Mostly because I don't see any too obvious flaws. Be free to ask, comment, etc.

Because of using linux myself, I haven't tested how it works under windows. If you test and find the solution non-trivial, please post it here so that other people can get it to work.

You can also answer to poll (or at least should be able to (at least if you have registered here))

readme.txt Wrote:#############
# Mapadder2 #

This is a tool for adding maps into Mount&Blade Warband modules. The tool was first intended to add the map code into module system python files. Possibility to add maps into already compiled modules was added. The feature to add maps into already compiled modules is not fully tested, but according to some short tests it should work.

Be sure to take backups of the modules which you modify with this tool, just in case something goes wrong.

To get more info about how to use the program, run it with option -h

Mapadder2 is a tool to add map into Mount&Blade warband module
Copyright © 2011 Nireco

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

help accessible by running "python mapadder2.py -h Wrote:mapadder version 2.1
This is a mapadder tool for adding maps into Mount&Blade Warband modules.

python mapadder.py [-r | -t | -p modulesystempath] <mapinfo>

<mapinfo> can be:
.mapadd file containing map descriptions
.mappack file containing more <mapinfo> locations
a folder containing .mapadd and/or .mappack files

-r: raw output mode
prints the required module system code into stdout.

-t: txt mode
modifies already compiled module to contain the given maps.

-p modulesystempath: mspath
Defines the path of module system when running in the normal mode.
Defines the path of the module in txt mode.
Does nothing in raw output mode

-h: help
Prints this help and exits

-l: license
Prints license and exits


adding maps into module system files when mapadder2.py and mapinfo
target (themapinfo.addmap) are in the module system folder:
python mapadder2.py themapinfo.addmap -p .

Using raw form for people refusing to use this tool
python mapadder2.py themapinfo.addmap -r

Adding maps into already compiled module when mapadder2.py and mapinfo
target are in subdirectory in Mount&Blade Warband main directory.
python mapadder2.py themapinfo.addmap -t -p ../Modules/Native

adding two mapinfo files at the same time
python mapadder2.py tmi1.addmap tmi2.addmap -p .

adding maps into module system files when mapadder2.py and mapinfo
targets have their own directories next to the module system directory.
python mapadder2.py ../maps/mapinfo.addmap -p "../Module_system 1.134_exp"

Edit: The file can be only downloaded from here if you are registered on this site.

Attached File(s)
.zip  mapadder2.1.zip (Size: 20.31 KB / Downloads: 1)

[Image: WPw9N.png]
(This post was last modified: 17.04.2011 23:11 by Nireco.)
15.04.2011 21:30
Find all posts by this user Quote this message in a reply
Post Reply 

Forum Jump:

User(s) browsing this thread: 1 Guest(s)