Load/Save Commands
137
KSP Reference Manual
on async_complete
15.6. save_array()
save_array( iable>, )
Saves an array to an external
file, i.e. an .nka file
The array to be saved
0
: A dialog window pops up, allowing you to save the .nka file. Can only be used in UI,
pgs and
persistence_changed
callbacks.
1
: The array is directly loaded from the "Data" folder.
For user instruments, the "Data" folder is located beside the resource container.
For library instruments, the "Data" folder is located here:
OS X:
/Library/Application Support//
Win:
C:\User\\AppData\Local\\
Can be used in UI, pgs, and
persistence_changed
callbacks.
Remarks
• It is also possible to save string arrays into .nka files.
• The exported .nka file consists of the name of the array followed its values.
• When using mode 0 the callback continues even if the loading dialog is still open.
See Also
$NI_ASYNC_ID
$NI_ASYNC_EXIT_STATUS
on async_complete
load_array()
Do'stlaringiz bilan baham: |