Correct Versioning

Post » Tue May 13, 2014 7:46 am

I'm currently looking for a good way to recognize updated versions.

For now i got this:

float _CurrentVersion float Property Version = 1.0 AutoReadOnly hidden float Property CurrentVersion    float function get()        return _CurrentVersion    endFunction     function set(float value)        _CurrentVersion = value    endFunctionendProperty Event OnPlayerLoadGame()if (CurrentVersion < Version)    ;/ Perform Update    Here    /;    CurrentVersion = VersionendifEndEvent Event OnInit()    CurrentVersion = VersionEndEvent

The script is placed on a PlayerAlias inside of a Quest.

It seems to work quite fine, but any suggestions for improvements are appreciated :)

User avatar
Alisia Lisha
 
Posts: 3480
Joined: Tue Dec 05, 2006 8:52 pm

Return to V - Skyrim