Added a few script version checks

This commit is contained in:
Eddoursul 2024-01-29 06:41:24 +01:00
parent be0053d572
commit 8ea3423be5
11 changed files with 28 additions and 8 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -111,9 +111,21 @@ inline void CheckScriptVersions()
RE::BSTSmartPointer<ScriptVersionCallback>{ RE::BSTSmartPointer<ScriptVersionCallback>{
new ScriptVersionCallback("_00E_PlayerSetUpScript", 1) new ScriptVersionCallback("_00E_PlayerSetUpScript", 1)
}; };
RE::BSTSmartPointer<ScriptVersionCallback>{
new ScriptVersionCallback("_00E_Phasmalist_NewApparitionAlias", 1)
};
RE::BSTSmartPointer<ScriptVersionCallback>{
new ScriptVersionCallback("_00E_Theriantrophist_PlayerAsWerewolf", 1)
};
RE::BSTSmartPointer<ScriptVersionCallback>{ RE::BSTSmartPointer<ScriptVersionCallback>{
new ScriptVersionCallback("_00E_Theriantrophist_AlchemyControl", 1) new ScriptVersionCallback("_00E_Theriantrophist_AlchemyControl", 1)
}; };
RE::BSTSmartPointer<ScriptVersionCallback>{
new ScriptVersionCallback("_00E_PlayerhousingMaster", 1)
};
RE::BSTSmartPointer<ScriptVersionCallback>{
new ScriptVersionCallback("_00E_ContainerController", 1)
};
} }
inline void LoadINI(std::map<std::string, bool>* settings, const char* iniPath) inline void LoadINI(std::map<std::string, bool>* settings, const char* iniPath)

View File

@ -1,16 +1,9 @@
Scriptname _00E_AffinityControl extends ReferenceAlias Hidden Conditional Scriptname _00E_AffinityControl extends ReferenceAlias Hidden Conditional
;
; ATTENTION ; ATTENTION
; this script contains a new affinity system that requires FS. Therefore, many elements in this script are redundant, as ; this script contains a new affinity system that requires FS. Therefore, many elements in this script are redundant, as
; one version is required for the new system and one is required so that the old system can be used when FS is not ; one version is required for the new system and one is required so that the old system can be used when FS is not
; available. If possible, the properties and functions are labeled with NEW or OLD in comments ; available. If possible, the properties and functions are labeled with NEW or OLD in comments
;
;
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; EVENTS ; EVENTS

View File

@ -1,6 +1,10 @@
Scriptname _00E_ContainerController extends ReferenceAlias Hidden Scriptname _00E_ContainerController extends ReferenceAlias Hidden
; This script sets up the sleight of hand loot of a chest upon activating it ; This script sets up the sleight of hand loot of a chest upon activating it
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; EVENTS ; EVENTS
;===================================================================================== ;=====================================================================================

View File

@ -100,6 +100,9 @@ Actor Property AliasFailsafeRef = None Auto Hidden
Bool bTeleportHealRate = False Bool bTeleportHealRate = False
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; SUMMON & SETUP ; SUMMON & SETUP

View File

@ -37,6 +37,10 @@ String Property CONTROL_SHEATH = "Ready Weapon" AutoReadOnly
; GLOBAL FUNCTIONS ; GLOBAL FUNCTIONS
;===================================================================================== ;=====================================================================================
int function _GetScriptVersion() Global
return 1
endFunction
_00E_PlayerhousingMaster Function GetMaster() Global _00E_PlayerhousingMaster Function GetMaster() Global
Return Game.GetFormFromFile(0x00043270, "Skyrim.esm") as _00E_PlayerhousingMaster Return Game.GetFormFromFile(0x00043270, "Skyrim.esm") as _00E_PlayerhousingMaster
EndFunction EndFunction

View File

@ -85,6 +85,10 @@ Float Property BoostFactorInfluenceOnArmor = 11 Autoreadonly Hidden
_00E_Theriantrophist_Chymikum[] RegisteredChymikums _00E_Theriantrophist_Chymikum[] RegisteredChymikums
bool Sneaking = false bool Sneaking = false
int function _GetScriptVersion() Global
return 1
endFunction
Function Transform(int duration) Function Transform(int duration)
bool bWasParalyzed bool bWasParalyzed