API SaveSystemNotes

From Vendetta Lua
Jump to: navigation, search

SaveSystemNotes

Definition: SaveSystemNotes(string notes, int systemid) -> nil
Description:
save system notes to settings/<charactername>/system<systemid>notes.txt
Numbers longer then 14 digits shouldn't be used for systemid.

Arguments:
notes Notes to save. Normally a spickled version of an API Index#SystemNotes entry, but it accepts anything
sectorid systemid

Notes:
using numbers with more then 14 digits causes systemid to be saved in scientific notation ie. 1e+016
with first number rounded to 13 decimal places, which means that
using systemid of 123456789012345 or 123456789012346 causes the file to be named:
system1.2345678901235e+014notes.txt