![autocompl.png](http://shcherbyna.my-board.org/_media/img/autocompl.png)
Ru-board: http://rusmnb.ru/index.php?topic=19691.0
Download: mb_warband_api_1.165_sublime3_plugin.zip
New in ver: 1.165.0
+ Support M&B module system v1.165
+ New plugin command: Command Palette ⇒ cb (MB Warband API: Clear Bytecode (*.pyc))
+ Plugin install:
Features:
+ Scripting speed +50
+ Operators auto complete
+ Auto set warband syntax when open module_system file
+ Syntax highlight
+ Highlighting of missed coma at the end of op-tuple
+ F1 help (en|ru):
- en-help by Lav & sub authors http://forums.taleworlds.com/index.php/topic,213060.0.html
+ Module system builder: (set the path to the module system folder: Preferences> Package Settings> MB Warband API> Settings - User)- F7 - build current file
- Ctrl+F7 - build full module system. For cleaning *.pyc-files after full_module_building (Ctrl+F7), copy del.py to module_system folder and edit build_module.bat:
OR just edit build_module.bat (-B = don't create bytecode):build_module.bat said:...
...
@del *.pyc
python del.py
...
...
build_module.bat said:...
@echo off
python -B process_init.py
python -B process_global_variables.py
python -B process_strings.py
python -B process_skills.py
...
...
Structure operator:
new_script
# "script_name"
# Description
# Input: none
# Output: none
("name",
[
|
]),
Block operators shortcuts:
tb
(try_begin),
|
(try_end),
tbe
(try_begin),
|
(else_try),
|
(try_end),
et
(else_try),
|
tfr
(try_for_range, ":unused", _begin, _end),
|
(try_end),
tfb
(try_for_range_backwards, ":unused", _begin, _end),
|
(try_end),
tfa
(try_for_agents, ":agent_no"),
|
(try_end),
tfp
(try_for_parties, ":party_no"),
|
(try_end),
(try_begin),
|
(try_end),
tbe
(try_begin),
|
(else_try),
|
(try_end),
et
(else_try),
|
tfr
(try_for_range, ":unused", _begin, _end),
|
(try_end),
tfb
(try_for_range_backwards, ":unused", _begin, _end),
|
(try_end),
tfa
(try_for_agents, ":agent_no"),
|
(try_end),
tfp
(try_for_parties, ":party_no"),
|
(try_end),
Install:
![plugin_install.png](http://shcherbyna.my-board.org/_media/img/coding/sublime/plugin_install.png)
1. Download, install Sublime Text 3 http://www.sublimetext.com/3
2.1. Auto download and install plugin via PacketControl: Preferences > PackageControl > PackageControl:Install Package > MB Warband API
or 2.2. manual unpack plugin to SublimeText3\Data\Packages\MB Warband API\..
3. Restart Sublime if need
4 To change the Help Language edit Preferences > Package Settings > MB Warband API > Settings - User
Plugin Activation:
* Plugin v1.158.1+ will auto activate when module file opened. Hand activation must be in case of creating new module file.
1. Open module_system file or create new one
2. Switch to MB Warband API syntax:
a) Tools > Command Pallete[Alt+~] => mb
b) or View > Syntax > MB Warband API
Keys & Commands:
[F1] - show module_system operator's help
[F7] - build current module_file
[Ctrl+F7] - build full module_system
[Alt + ~] - show Command Palette
Command Palette ⇒ cb (MB Warband API: Clear Bytecode (*.pyc)) - clear all *.pyc files in module_system folder
Last edited: