Skip to content

pyio.save_values

daniel-flassig edited this page May 7, 2020 · 8 revisions

Saves or stores a lua table to a local storage dedicated to this plugin. The values can be loaded again by load_values.

pytha.save_values(name, values) 
Parameter Type Description
name string Name under which the values will be stored (see remarks)
values {...} The table containing the values (see remarks)

Return value

Type Description
boolean true for success, false for failure

Remarks:

The name must be a valid file name on the local system: it must not contain "/" or "" as well as some other special characters. Stick to "A-Z", "a-z", "0-9" and "-", "_" and keep it short to be on the safe side.

All key-value pairs are saved, where key and value are either a number or a string and where value may also be a sub-table. The same rules apply to sub-tables. The nesting-depth of tables is limited.

See also:

pyio, load_values

Clone this wiki locally