Added versions to some scripts

This commit is contained in:
Eddoursul 2024-02-29 23:28:19 +01:00
parent 60ddce5e36
commit 2026d7aab3
120 changed files with 303 additions and 26 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -81,7 +81,7 @@ inline void CheckScriptVersions()
const RE::BSFixedString scriptName; const RE::BSFixedString scriptName;
const RE::BSFixedString funcName = "_GetScriptVersion"; const RE::BSFixedString funcName = "_GetScriptVersion";
public: public:
ScriptVersionCallback(const RE::BSFixedString a_scriptName, int a_version) : ScriptVersionCallback(const RE::BSFixedString a_scriptName, short a_version) :
scriptName(a_scriptName), scriptName(a_scriptName),
expectedVersion(a_version) expectedVersion(a_version)
{ {
@ -109,24 +109,80 @@ inline void CheckScriptVersions()
void SetObject(const RE::BSTSmartPointer<RE::BSScript::Object>&) {} void SetObject(const RE::BSTSmartPointer<RE::BSScript::Object>&) {}
}; };
std::map<std::string, short> scripts;
scripts["_00E_PlayerSetUpScript"] = 1;
scripts["_00E_Phasmalist_NewApparitionAlias"] = 1;
scripts["_FS_Phasmalist_ControlQuest"] = 1;
scripts["_00E_Phasmalist_Workbench"] = 1;
scripts["_00E_Theriantrophist_PlayerAsWerewolf"] = 1;
scripts["_00E_Theriantrophist_AlchemyControl"] = 1;
scripts["_00E_PlayerhousingMaster"] = 1;
scripts["_00E_ContainerBonusControl"] = 1;
scripts["_00E_AffinityControl"] = 1;
scripts["_00E_EnderalMCM"] = 1;
scripts["_00E_SkillControl"] = 1;
scripts["_00E_VisionControl"] = 1;
scripts["_00E_EnderalControls"] = 1;
scripts["_00E_PeaceweedPlayerAliasScript"] = 1;
scripts["_00E_NQ_Bounty01_BoardScript"] = 1;
scripts["_00E_EPUpdateFunctions"] = 1;
scripts["_00E_GUI_ActorHealthBar"] = 1;
scripts["MineOreEnderal"] = 1;
scripts["_00e_fs_nqr05_functions"] = 1;
scripts["_00e_mq11a_functions"] = 1;
scripts["_00e_nq_g_07_functions"] = 1;
scripts["_00e_fs_nq02_functions"] = 1;
scripts["_00e_mq17_functions"] = 1;
scripts["_00e_mq16_functions"] = 1;
scripts["_00e_mq12b_functions"] = 1;
scripts["_00e_mq13c_functions"] = 1;
scripts["_00e_mq07a_functions"] = 1;
scripts["_00e_mq11c_functions"] = 1;
scripts["_00e_fs_nq01_functions"] = 1;
scripts["_00e_nqr01_functions"] = 1;
scripts["_00e_mq14_functions"] = 1;
scripts["_00e_mq06_functions"] = 1;
scripts["_00e_mq13a_functions"] = 1;
scripts["_00e_mq13b_functions"] = 1;
scripts["_00e_fs_nq07_functions"] = 1;
scripts["_00e_fs_nq02_functions2"] = 1;
scripts["_00e_fs_nq03_functions"] = 1;
scripts["_00e_mqp02_functions"] = 1;
scripts["_00e_mq12c_functions"] = 1;
scripts["_00e_mq02_functions"] = 1;
scripts["mq03_functions"] = 1;
scripts["_00e_mq05_functions"] = 1;
scripts["_00e_fs_nqr04_functions"] = 1;
scripts["_00e_cqc05_functions"] = 1;
scripts["_00e_fs_nqr03_functions"] = 1;
scripts["_00e_mq15_functions"] = 1;
scripts["_00e_fs_mq18c_functions"] = 1;
scripts["_00e_mqp01_functions"] = 1;
scripts["_00e_nq_g_06_functions"] = 1;
scripts["_00e_mq01_functions"] = 1;
scripts["_00e_fs_nqr02_functions"] = 1;
scripts["_00e_fs_nq05_functions"] = 1;
scripts["_00e_nq_g_05_functions"] = 1;
scripts["_00e_nq_g_03_functions"] = 1;
scripts["_00e_mqp03_functions"] = 1;
scripts["_00e_mq10a_functions"] = 1;
scripts["_00e_mq12a_functions"] = 1;
scripts["_00e_mq03_functions"] = 1;
scripts["_00e_nq_g_02_functions"] = 1;
scripts["_00e_cqj02_functions"] = 1;
scripts["_00e_cqc06_functions"] = 1;
scripts["_00e_fs_nq06_functions"] = 1;
scripts["_00e_cqj05_functions"] = 1;
scripts["_00e_mq18b_functions"] = 1;
scripts["_00e_nq06_functions"] = 1;
scripts["_00e_mq18a_functions"] = 1;
scripts["_00e_mq05prologue_functions"] = 1;
for (const auto& entry : scripts) {
RE::BSTSmartPointer<ScriptVersionCallback>{ RE::BSTSmartPointer<ScriptVersionCallback>{
new ScriptVersionCallback("_00E_PlayerSetUpScript", 1) new ScriptVersionCallback(entry.first, entry.second)
};
RE::BSTSmartPointer<ScriptVersionCallback>{
new ScriptVersionCallback("_00E_Phasmalist_NewApparitionAlias", 1)
};
RE::BSTSmartPointer<ScriptVersionCallback>{
new ScriptVersionCallback("_00E_Theriantrophist_PlayerAsWerewolf", 1)
};
RE::BSTSmartPointer<ScriptVersionCallback>{
new ScriptVersionCallback("_00E_Theriantrophist_AlchemyControl", 1)
};
RE::BSTSmartPointer<ScriptVersionCallback>{
new ScriptVersionCallback("_00E_PlayerhousingMaster", 1)
};
RE::BSTSmartPointer<ScriptVersionCallback>{
new ScriptVersionCallback("_00E_ContainerBonusControl", 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

@ -22,6 +22,10 @@ EndEvent
; FUNCTIONS ; FUNCTIONS
;===================================================================================== ;=====================================================================================
int function _GetScriptVersion() Global
return 1
endFunction
Int Function RegisterPerkTree(int index, FormList perkTree, Message affinityName_Male, Message affinityName_Female) Int Function RegisterPerkTree(int index, FormList perkTree, Message affinityName_Male, Message affinityName_Female)
PerkTree_Trees[index] = perkTree PerkTree_Trees[index] = perkTree
PerkTree_AffinityNames_Male[index] = affinityName_Male PerkTree_AffinityNames_Male[index] = affinityName_Male

View File

@ -1,5 +1,9 @@
Scriptname _00E_EnderalControls extends Quest Hidden Scriptname _00E_EnderalControls extends Quest Hidden
int function _GetScriptVersion() Global
return 1
endFunction
_00E_SkillControl Property SkillControl Auto _00E_SkillControl Property SkillControl Auto
_00E_FadeToBlackControl Property FadeToBlackControl Auto _00E_FadeToBlackControl Property FadeToBlackControl Auto

View File

@ -2,6 +2,10 @@ Scriptname _00E_SkillControl extends Quest Hidden
import Utility import Utility
int function _GetScriptVersion() Global
return 1
endFunction
Function _ReadSkillBook(String skillName, Int skillTopLimit, Form bookItem, Message msgSkillIncrease, GlobalVariable availablePoints, Message msgNoPoints) Function _ReadSkillBook(String skillName, Int skillTopLimit, Form bookItem, Message msgSkillIncrease, GlobalVariable availablePoints, Message msgNoPoints)
Message failMsg = None Message failMsg = None

View File

@ -2,6 +2,10 @@ Scriptname _00E_VisionControl extends Quest Hidden
import Utility import Utility
int function _GetScriptVersion() Global
return 1
endFunction
;/ Unused ;/ Unused
function EndVision(bool ScenePlaying, Scene RunningScene = None) function EndVision(bool ScenePlaying, Scene RunningScene = None)

View File

@ -1,5 +1,9 @@
Scriptname _00E_CQC05_Functions extends Quest Conditional Scriptname _00E_CQC05_Functions extends Quest Conditional
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; FUNCTIONS ; FUNCTIONS
;===================================================================================== ;=====================================================================================

View File

@ -1,5 +1,9 @@
Scriptname _00E_CQC06_Functions extends Quest Scriptname _00E_CQC06_Functions extends Quest
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; EVENTS ; EVENTS
;===================================================================================== ;=====================================================================================

View File

@ -1,5 +1,9 @@
Scriptname _00E_CQJ02_Functions extends Quest Conditional Scriptname _00E_CQJ02_Functions extends Quest Conditional
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; EVENTS ; EVENTS
;===================================================================================== ;=====================================================================================

View File

@ -1,5 +1,9 @@
Scriptname _00E_CQJ05_Functions extends Quest Scriptname _00E_CQJ05_Functions extends Quest
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; FUNCTIONS ; FUNCTIONS
;===================================================================================== ;=====================================================================================

View File

@ -15,6 +15,10 @@ int MagicItemsMadeCounter = 0
int IntimidationsCounter = 0 int IntimidationsCounter = 0
int QuestsCompletedCounter = 0 int QuestsCompletedCounter = 0
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; EVENTS ; EVENTS
;===================================================================================== ;=====================================================================================

View File

@ -1,5 +1,9 @@
Scriptname _00E_FS_MQ18c_Functions extends Quest Scriptname _00E_FS_MQ18c_Functions extends Quest
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; FUNCTIONS ; FUNCTIONS
;===================================================================================== ;=====================================================================================

View File

@ -1,5 +1,9 @@
Scriptname _00E_FS_NQ01_Functions extends Quest Conditional Scriptname _00E_FS_NQ01_Functions extends Quest Conditional
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; EVENTS ; EVENTS
;===================================================================================== ;=====================================================================================

View File

@ -4,6 +4,10 @@ Import _00E_PlayerFunctions
Import Utility Import Utility
Import Game Import Game
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; FUNCTIONS ; FUNCTIONS
;===================================================================================== ;=====================================================================================

View File

@ -4,6 +4,10 @@ Import _00E_PlayerFunctions
Import Utility Import Utility
Import Game Import Game
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; FUNCTIONS ; FUNCTIONS
;===================================================================================== ;=====================================================================================

View File

@ -4,6 +4,10 @@ Import _00E_PlayerFunctions
Import Utility Import Utility
Import Game Import Game
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; FUNCTIONS ; FUNCTIONS
;===================================================================================== ;=====================================================================================

View File

@ -3,6 +3,10 @@ Scriptname _00E_FS_NQ05_Functions extends Quest
Import Utility Import Utility
Import Game Import Game
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; FUNCTIONS ; FUNCTIONS
;===================================================================================== ;=====================================================================================

View File

@ -4,6 +4,10 @@ Import _00E_PlayerFunctions
Import Utility Import Utility
Import Game Import Game
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; FUNCTIONS ; FUNCTIONS
;===================================================================================== ;=====================================================================================

View File

@ -3,6 +3,10 @@ Scriptname _00E_FS_NQ07_Functions extends Quest
Import Utility Import Utility
Import Game Import Game
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; FUNCTIONS ; FUNCTIONS
;===================================================================================== ;=====================================================================================

View File

@ -1,8 +1,8 @@
Scriptname _00E_FS_NQR02_Functions extends Quest Scriptname _00E_FS_NQR02_Functions extends Quest
;===================================================================================== int function _GetScriptVersion() Global
; EVENTS return 1
;===================================================================================== endFunction
;===================================================================================== ;=====================================================================================
; FUNCTIONS ; FUNCTIONS

View File

@ -2,6 +2,10 @@ Scriptname _00E_FS_NQR03_Functions extends Quest
Import Utility Import Utility
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; EVENTS ; EVENTS
;===================================================================================== ;=====================================================================================

View File

@ -2,6 +2,10 @@ Scriptname _00E_FS_NQR04_Functions extends Quest
Import Utility Import Utility
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; EVENTS ; EVENTS
;===================================================================================== ;=====================================================================================

View File

@ -2,6 +2,10 @@ Scriptname _00E_FS_NQR05_Functions extends Quest Conditional
Import Utility Import Utility
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; EVENTS ; EVENTS
;===================================================================================== ;=====================================================================================

View File

@ -8,6 +8,10 @@ float _moveDuration = 1000.0
float _removeDuration = 15000.0 float _removeDuration = 15000.0
Form[] _currentlyDisplayedActors Form[] _currentlyDisplayedActors
int function _GetScriptVersion() Global
return 1
endFunction
string function GetWidgetSource() string function GetWidgetSource()
return "skyui/companionpanel.swf" return "skyui/companionpanel.swf"
endFunction endFunction

View File

@ -2,6 +2,10 @@ scriptName _00E_MQ01_Functions extends Quest Conditional
Import Utility Import Utility
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; FUNCTIONS ; FUNCTIONS
;===================================================================================== ;=====================================================================================

View File

@ -3,6 +3,10 @@ Scriptname _00E_MQ02_Functions extends Quest Conditional
Import Utility Import Utility
Import Game Import Game
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; FUNCTIONS ; FUNCTIONS
;===================================================================================== ;=====================================================================================

View File

@ -2,6 +2,10 @@ Scriptname _00E_MQ03_Functions extends Quest
Import Utility Import Utility
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; FUNCTIONS ; FUNCTIONS
;===================================================================================== ;=====================================================================================

View File

@ -2,6 +2,10 @@ Scriptname _00E_MQ05_Functions extends Quest Conditional
Import Utility Import Utility
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; FUNCTIONS ; FUNCTIONS
;===================================================================================== ;=====================================================================================

View File

@ -1,5 +1,9 @@
Scriptname _00E_MQ05Prologue_Functions extends Quest Scriptname _00E_MQ05Prologue_Functions extends Quest
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; FUNCTIONS ; FUNCTIONS
;===================================================================================== ;=====================================================================================

View File

@ -4,6 +4,10 @@ Import Utility
Import Game Import Game
Import Actor Import Actor
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; FUNCTIONS ; FUNCTIONS
;===================================================================================== ;=====================================================================================

View File

@ -3,9 +3,9 @@ Scriptname _00E_MQ07a_Functions extends Quest Conditional
Import Utility Import Utility
Import Debug Import Debug
;===================================================================================== int function _GetScriptVersion() Global
; EVENTS return 1
;===================================================================================== endFunction
;===================================================================================== ;=====================================================================================
; FUNCTIONS ; FUNCTIONS

View File

@ -2,6 +2,10 @@ Scriptname _00E_MQ10a_Functions extends Quest
Import Utility Import Utility
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; FUNCTIONS ; FUNCTIONS
;===================================================================================== ;=====================================================================================

View File

@ -5,6 +5,10 @@ Import Game
Import Debug Import Debug
Import _00E_PlayerFunctions Import _00E_PlayerFunctions
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; EVENTS ; EVENTS
;===================================================================================== ;=====================================================================================

View File

@ -3,6 +3,9 @@ Scriptname _00E_MQ11c_Functions extends Quest
import Utility import Utility
Import Math Import Math
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; STATES ; STATES

View File

@ -1,5 +1,9 @@
Scriptname _00E_MQ12a_Functions extends Quest Scriptname _00E_MQ12a_Functions extends Quest
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; EVENTS ; EVENTS
;===================================================================================== ;=====================================================================================

View File

@ -5,6 +5,10 @@ Import Utility
Int CurScriptVersion = 0 Int CurScriptVersion = 0
Int Property LATEST_SCRIPT_VERSION = 2 AutoReadOnly Int Property LATEST_SCRIPT_VERSION = 2 AutoReadOnly
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; FUNCTIONS ; FUNCTIONS
;===================================================================================== ;=====================================================================================

View File

@ -4,6 +4,10 @@ Import Utility
; This script is mainly used for handling the different "debris" stages of Ark after the siege ; This script is mainly used for handling the different "debris" stages of Ark after the siege
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; EVENTS ; EVENTS
;===================================================================================== ;=====================================================================================

View File

@ -2,6 +2,10 @@ Scriptname _00E_MQ13a_Functions extends Quest Conditional
Import Utility Import Utility
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; FUNCTIONS ; FUNCTIONS
;===================================================================================== ;=====================================================================================

View File

@ -2,6 +2,10 @@ Scriptname _00E_MQ13b_Functions extends Quest Conditional
Import Utility Import Utility
int function _GetScriptVersion() Global
return 1
endFunction
Event OnUpdate() Event OnUpdate()
MQ13b_SC01_Arrival_01.ForceStart() MQ13b_SC01_Arrival_01.ForceStart()

View File

@ -3,6 +3,10 @@ Scriptname _00E_MQ13c_Functions extends Quest Conditional
Import Utility Import Utility
Import Game Import Game
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; FUNCTIONS ; FUNCTIONS
;===================================================================================== ;=====================================================================================

View File

@ -2,6 +2,10 @@ Scriptname _00E_MQ14_Functions extends Quest Conditional
Import Utility Import Utility
int function _GetScriptVersion() Global
return 1
endFunction
;===================================================================================== ;=====================================================================================
; EVENTS ; EVENTS
;===================================================================================== ;=====================================================================================

Some files were not shown because too many files have changed in this diff Show More