- KONTAKT 7.x / 6.x / 5.x
- Syntax check and script copy to clipboard
- Outline view
- Obfuscate and Optimize a Script (BETA)
- Syntax highlighting
- Autocomplete
- Snippet
- Hover
- Go to Definition
- Find symbols and find references in script
- Syntax validation
- Rename Identifiers
- Syntax parser
- Java 1.8 (or higher)
If F7
key pressed and your script has no problem, your script will copy to clip board.
or run from command palette.
- You need to ready for "Syntax validation" function.
- If
Shift+F7
pressed, run obfuscator.
-
Syntax Analysis
-
Semantic Analysis
- Validate array size at declared
- Validate argument for all KSP command, UI initializer
- Validate unused variable / user function
etc.
Default is "disabled".
You can change setting at Preferences -> Settings (Part of "KONTAKT Script Processor (KSP)" ).
OUT OF WARRANTY because it is BETA version.
Run from command palet
- Open a Script file
- Set language mode to 'ksp'
- Open command palette and type 'ksp'
- Select Obfuscator
or Run from context menu in editor.
- Expand constant variable / literal
e.g.
[Before]
declare const $MAX := 100
declare $i
declare @s
$i := $MAX * 10
@a := "MAX is" & $MAX & ". $MAX is always 100"
[After]
declare $_geug
declare @_sxhd
$_geug := 1000
@_sxhd := "MAX is 100. $MAX is always 100"
-
Rename
- variable name
- user function
-
Shrink
- user variable if unused anywhere
- user function if unused anywhere
-
inline user function
Default is disabled. If you try, turn on vscode preference "ksp.obfuscator.inline.function"
- You need to install Java 1.8 (or higher).
[NOTE] Although the parser will attempt as much error detection as possible, if the grammar of the your script content deviates from the KSP specification, it will not function properly.
- Tweak / bug fix if needed
R-Koubou
- Twitter: @rkoubou_jp
- GitHub: https://github.com/r-koubou/
KONTAKT is registered trademarks of Native Instruments GmbH.