GetSavedSaveSize

From GECK
Jump to: navigation, search


A function added by the SUP NVSE Plugin.

Description

Returns the size of last saved or quicksaved savegame.

Syntax

[help]
(fValue:float) GetSavedSaveSize iFileType:int

File types

0 - .FOS file;
1 - .NVSE file;

Example

set fValue to GetSavedSaveSize 0

Will return the size of last saved savegame in bytes.

Notes

  • To convert returned value to megabytes - multiply it by * 0.000001. You may use RoundAlt to get rid of float noise.
  • If you call this function before user saved a savegame in this gamesession it will return value of "-1".
  • You shouldn't use it on "SaveGame " event handler because the value will not be yet avaiable. Execute it a frame later.


See Also