Thorgrim
Knight at Arms
MBDev is a little utility that is designed to help speed up your mod development when doing python scripting. It is not a stand alone tool, rather it is designed to be used in conjunction with your text editor of choice.
Download - MBDev 0.2
Requires .NET framework: Download
Version 0.2
- Autocomplete should now allow autocompletion of all operations, ids, constants etc defined in the header and ID files after typing the fourth character.
- Compile should now work correctly (both compile all and compile)
Compile will attempt to compile the minimum nuber of files required for those module files which have changed.
Version 0.1.7
- Highlighted variables auto display their value / declaration in the bottom info bar. This will display the whole declaration line, including comments etc, which is quite handy for operations etc.
- Fixed some tuple hint problems.
- Can now use enter for auto completion as well as tab
- Pressing up & down while the autocomplete box is open should jump lines a bit less often.
Version 0.1.5
- Fixed a number of bugs (such as one that may have cause MBDev not to open)
- Added most header variables (except operations) to the auto complete lists
- Added a tuple "hint" box at the bottom of the screen. This displays what value you should currently be entering. (Requires auto completion to be enabled)
- Started Adding Game Menus dialog. Cant do much with it yet except view the menus you have, what they link to, and double click names to jump to that entry.
Recommended companion editor: Notepad++
Some of the features:
Officially supported text editors: Notepad++, Notepad (yes, the standard windows notepad), Notepad2, Sciboo
A few useability points:
When you loose focus on the compiler window it will be minimised.
Clicking it after it auto minimises will expand it again, or if you minimize it yourself you will need to click the little Arrow.
You can freely adjust the compiler window location, for example to place it on the right side of the screen if you prefer.
You can reset the windows location in the options menu.
The "Bind to editor" Option may cause MBDev to not stay on top if you are using a non official editor, so if you are having this problem, or prefer MBDev to be on top of everything, uncheck this option.
The Editor I recommend using with MBDev is Notepad++. This Editor is the one I use, and so will probably be the most compatible with MBDev. Notepad, Notepad2, Sciboo have all been confirmed to work too.
Notepad++ has a ton of great features, such as:
The basic MBDev features should work with other editors if you have something else you prefer using. However auto completion etc most probably will not. If you have an editor you really want supported let me know.
If you wish to use something like IDLE or SPE you must type the whole command into the "Default Editor" field.
For example if you wish to use IDLE, use:
"C:\Python24\pythonw.exe" "C:\Python24\Lib\idlelib\idle.pyw" -n -e
Assuming you installed to the default location.
Thanks to Janus for the hosting, and to everyone who has helped test this in its various stages (In particular Winter, Highelfwarrior and Reaper)
Download - MBDev 0.2
Requires .NET framework: Download
Version 0.2
- Autocomplete should now allow autocompletion of all operations, ids, constants etc defined in the header and ID files after typing the fourth character.
- Compile should now work correctly (both compile all and compile)
Compile will attempt to compile the minimum nuber of files required for those module files which have changed.
Version 0.1.7
- Highlighted variables auto display their value / declaration in the bottom info bar. This will display the whole declaration line, including comments etc, which is quite handy for operations etc.
- Fixed some tuple hint problems.
- Can now use enter for auto completion as well as tab
- Pressing up & down while the autocomplete box is open should jump lines a bit less often.
Version 0.1.5
- Fixed a number of bugs (such as one that may have cause MBDev not to open)
- Added most header variables (except operations) to the auto complete lists
- Added a tuple "hint" box at the bottom of the screen. This displays what value you should currently be entering. (Requires auto completion to be enabled)
- Started Adding Game Menus dialog. Cant do much with it yet except view the menus you have, what they link to, and double click names to jump to that entry.
Recommended companion editor: Notepad++
Some of the features:
- Shortcut button to run Mount & Blade
- Shortcut button to compile your module (uses a "smart" compiler that only compiles the files that have changed)
- Drop down menu for quick file selection
- Tool to check for bracketing, and try-end_try errors: These tools can find and highlight the exact location of the error in many cases.
Considering try blocks are not checked by the default python compiler, this should be quite handy.
(Note that these tools may not work with all editors, however they should work with all officially supported ones)
These are also automatically run on the open file at compile time. - Shortcut to open BRFEdit with the BRF containing a highlighted mesh name (requires BRFEdit 0.7.2)
- Tool to jump to the declaration of a highlighted variable. Can also jump to declarations of items, menus etc within the other module files.
- Initial test version of "Auto complete", which allows auto completion of most entities defined in the ID files (items, menus, factions etc), and some header variables . You can press tab or double click the value to perform the auto completion, or press up and down to change the selection within the list.
Officially supported text editors: Notepad++, Notepad (yes, the standard windows notepad), Notepad2, Sciboo
A few useability points:
When you loose focus on the compiler window it will be minimised.
Clicking it after it auto minimises will expand it again, or if you minimize it yourself you will need to click the little Arrow.
You can freely adjust the compiler window location, for example to place it on the right side of the screen if you prefer.
You can reset the windows location in the options menu.
The "Bind to editor" Option may cause MBDev to not stay on top if you are using a non official editor, so if you are having this problem, or prefer MBDev to be on top of everything, uncheck this option.
The Editor I recommend using with MBDev is Notepad++. This Editor is the one I use, and so will probably be the most compatible with MBDev. Notepad, Notepad2, Sciboo have all been confirmed to work too.
Notepad++ has a ton of great features, such as:
- Tabs for having multiple files open
- Configurable Syntax highlighting.
- Block commenting/un-commenting.
- Can remember what you had open, and restore it to the exact state you were in last time.
- Has powerful find, bookmark etc tools
The basic MBDev features should work with other editors if you have something else you prefer using. However auto completion etc most probably will not. If you have an editor you really want supported let me know.
If you wish to use something like IDLE or SPE you must type the whole command into the "Default Editor" field.
For example if you wish to use IDLE, use:
"C:\Python24\pythonw.exe" "C:\Python24\Lib\idlelib\idle.pyw" -n -e
Assuming you installed to the default location.
Thanks to Janus for the hosting, and to everyone who has helped test this in its various stages (In particular Winter, Highelfwarrior and Reaper)
Last edited by a moderator: