SublimeKSP Updates

EvilDragon

KSP Wizard
Jan 14th 2020 - version 1.9.0
  • added support for Creator Tools GUI designer file format .nckp
    • use import_nckp(<path>) to load the .nckp file and parse it
    • <path> can be absolute or relative
    • you still need to load the performance view using load_performance_view("filename") command
    • error is raised if the path doesn't point to a valid .nckp file, or if make_perfview is found along with load_performance_view() in init callback
  • simplified arrayed UI control initialization (uses a for loop to fill the array with UI IDs instead of inlining get_ui_id() after every UI control declaration)
  • implemented issue #82 - added shorthand commands for setting UI control parameters for ui_text_edit and ui_value_edit
  • expanded set_waveform_properties() shorthand with additional properties
  • added two different shorthands for setting ui_wavetable properties, depending on them being used in 2D or 3D mode
  • added two snippet variants for while loop
  • fixed incorrect number of arguments for disable_logging() command
  • added support for get_engine_par_str_arr() command (we had support for setter already, but not the getter)

Update from Sublime Text's Package Control or from GitHub repository.

@creativeforge - can you please sticky this one too? :)
 
Last edited:
OP
EvilDragon

EvilDragon

KSP Wizard
It's just a slight improvement of already existing UI Arrays (see sKSP wiki). The difference is in how things look after compilation.

Previously, this line:
Code:
declare ui_switch Test[10]
would compile to:
Code:
declare %Test[10]
declare ui_switch $Test0
%Test[0] := get_ui_id($Test0)
declare ui_switch $Test1
%Test[1] := get_ui_id($Test1)
declare ui_switch $Test2
%Test[2] := get_ui_id($Test2)
declare ui_switch $Test3
%Test[3] := get_ui_id($Test3)
declare ui_switch $Test4
%Test[4] := get_ui_id($Test4)
declare ui_switch $Test5
%Test[5] := get_ui_id($Test5)
declare ui_switch $Test6
%Test[6] := get_ui_id($Test6)
declare ui_switch $Test7
%Test[7] := get_ui_id($Test7)
declare ui_switch $Test8
%Test[8] := get_ui_id($Test8)
declare ui_switch $Test9
%Test[9] := get_ui_id($Test9)
From 1.9.0 onward, it will look like this:
Code:
declare $preproc_i
declare %Test[10]
declare ui_switch $Test0
declare ui_switch $Test1
declare ui_switch $Test2
declare ui_switch $Test3
declare ui_switch $Test4
declare ui_switch $Test5
declare ui_switch $Test6
declare ui_switch $Test7
declare ui_switch $Test8
declare ui_switch $Test9
$preproc_i := 0
while ($preproc_i<=9)
%Test[$preproc_i] := get_ui_id($Test0)+$preproc_i
inc($preproc_i)
end while
...
This saves a ton of lines of compiled code when you get into larger UI arrays (or multidimensional ones).
 

FrancescoSabatini

New Member
Hi guys,

as Mario said now is possible to import the nckp format from Creator Tools and I wanted to add few more side notes on the integration I did:

- I'm the QA for the Kontakt Instruments team but I wanted to clarify that this is not an "official" NI participation but more an internally agreed initiative to hopefully push more of you to use our new tool.
- Mario have been beta testing my changes but you're very welcome to do the same, just whatever issue you may experience while using this new function please write to me directly or raise an issue on the github repo, and I'll try to sort it out asap.

Happy development to everybody ;)
 
Last edited: