The dataSave native AI script function is intended to save all previously written script data variables to a file.
This function is a no-op. The implementation is commented out and the function does nothing when called. Script data variables are instead persisted automatically through the Backup Service (Bsi) system when the AI service detects that variables have changed (
_Dirtyflag). You do not need to call this function.
()dataSave()
Script data variables set via dataSetVar are automatically persisted:
dataSetVar sets a dirty flag in CAIScriptDataManagerai_script_data/<ais_name>_pdr.bin in the shard save directoryThere is no need to explicitly trigger a save.
Source: ryzom/server/src/ai_service/nf_static.cpp (dataSave__), ryzom/server/src/ai_service/ai_script_data_manager.cpp