MB Warband API
Sublime Text 3 Syntax Plugin
Details
Installs
- Total 129
- Win 116
- Mac 9
- Linux 4
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- bitbucket.org
MB Warband API (Sublime Text 3 Syntax Plugin)
- en-board: http://forums.taleworlds.com/index.php/topic,320675.0.html
- ru-board: http://rusmnb.ru/index.php?topic=19691.0
- home: http://shcherbyna.my-board.org/en/game_dev/mb_warband/mb_warband_api_sublime_plugin
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))
Features:
- scripting speed +50
- operators auto complete
- syntax highlight
- highlighting of missed coma at the end of tuple
- F1 help (en|ru): en-help by Lav & sub authors http://forums.taleworlds.com/index.php/topic,213060.0.html
- module system builder: F7 - build current file; Ctrl+F7 - build full module system (set the path to the module system folder: Preferences> Package Settings> MB Warband API> Settings - User)
- auto set warband syntax when module system file open
- For cleaning *.pyc-files after full_module_building (Ctrl+F7), copy del.py to module_system folder and edit build_module.bat:
...
...
@del *.pyc
python del.py
...
...
or just edit build_module.bat (-B = don't create bytecode):
@echo off
python -B process_init.py
python -B process_global_variables.py
python -B process_strings.py
python -B process_skills.py
...
...
Block operators shortcuts:
#!python
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),
Structure operator:
#!python
new_script
# 'script_name'
# Description
# Input: none
# Output: none
('name',
[
|
]),
Install:
1. Download, install Sublime Text 3 http://www.sublimetext.com/3
2.1. Install plugin via Package Control: Preferences > PackageControl > Package Control:Install Package > MB Warband API
2.2. OR 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
Hot 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