data_save - ryzom/ryzomcore GitHub Wiki


title: Data Save description: published: true date: 2023-03-14T04:02:19.765Z tags: editor: markdown dateCreated: 2023-03-14T04:02:19.765Z

dataSave

The dataSave function saves all previously written script data variables to a file. This must be done explicitly, otherwise modified variables are not saved.

This function is not actually implemented. It currently does nothing. {.is-danger}

Syntax

    ()dataSave(); // dataSave__

Example

    ()dataSave();

This code saves all previously written script data variables to a file.

Notes

This function is primarily necessary to save CPU because writing operations can take time. Additionally, it also ensures data integrity if a crash occurs between the writing of two related variables.

⚠️ **GitHub.com Fallback** ⚠️