Compare commits
3 Commits
7b24aa0767
...
b3bc5a68b7
Author | SHA1 | Date | |
---|---|---|---|
b3bc5a68b7 | |||
08ece8c74b | |||
9bdf9a2640 |
Binary file not shown.
@ -139738,9 +139738,6 @@
|
|||||||
<property name="KillMove" type="1" status="1">
|
<property name="KillMove" type="1" status="1">
|
||||||
<object formID="00100f19" alias="65535" unused="0x0000" />
|
<object formID="00100f19" alias="65535" unused="0x0000" />
|
||||||
</property>
|
</property>
|
||||||
<property name="Levelsystem" type="1" status="1">
|
|
||||||
<object formID="00010aa2" alias="65535" unused="0x0000" />
|
|
||||||
</property>
|
|
||||||
<property name="MQ05PrologueFunctions" type="1" status="1">
|
<property name="MQ05PrologueFunctions" type="1" status="1">
|
||||||
<object formID="00033a5b" alias="65535" unused="0x0000" />
|
<object formID="00033a5b" alias="65535" unused="0x0000" />
|
||||||
</property>
|
</property>
|
||||||
|
BIN
SKSE/Plugins/EnderalSE.dll
(Stored with Git LFS)
BIN
SKSE/Plugins/EnderalSE.dll
(Stored with Git LFS)
Binary file not shown.
BIN
Skyrim.esm
BIN
Skyrim.esm
Binary file not shown.
BIN
scripts/EnderalUpgradeAlias.pex
Normal file
BIN
scripts/EnderalUpgradeAlias.pex
Normal file
Binary file not shown.
Binary file not shown.
@ -10,27 +10,6 @@ inline bool DataFileExists(std::string filename, int maxSize = 1000000)
|
|||||||
return std::filesystem::exists(path) && std::filesystem::file_size(path) > maxSize;
|
return std::filesystem::exists(path) && std::filesystem::file_size(path) > maxSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void CheckBlacklist()
|
|
||||||
{
|
|
||||||
const auto dataHandler = RE::TESDataHandler::GetSingleton();
|
|
||||||
|
|
||||||
if (!dataHandler) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string filenames[1] = {
|
|
||||||
"Enderal_FS_More_Affinities.esp",
|
|
||||||
};
|
|
||||||
|
|
||||||
for (short i = 0; i < 1; i++) {
|
|
||||||
if (dataHandler->LookupLoadedModByName(filenames[i])) {
|
|
||||||
aModNames.insert(filenames[i]);
|
|
||||||
RE::DebugMessageBox(std::format("{} is incompatible with Enderal SE.\nCheck console for the list of flagged mods.", filenames[i]).c_str());
|
|
||||||
RE::ConsoleLog::GetSingleton()->Print(std::format("{} is incompatible", filenames[i]).c_str());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
inline void NotifyInvalidForm(const RE::TESForm* form)
|
inline void NotifyInvalidForm(const RE::TESForm* form)
|
||||||
{
|
{
|
||||||
if (!form) {
|
if (!form) {
|
||||||
|
@ -54,7 +54,6 @@ inline void CheckIncompatibleMods()
|
|||||||
RE::ConsoleLog::GetSingleton()->Print("Loaded SureAI's Enderal: Forgotten Stories | Special Edition v2.0.x by Eddoursul and contributors");
|
RE::ConsoleLog::GetSingleton()->Print("Loaded SureAI's Enderal: Forgotten Stories | Special Edition v2.0.x by Eddoursul and contributors");
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckBlacklist();
|
|
||||||
CheckWorldspaces();
|
CheckWorldspaces();
|
||||||
CheckUnconvertedMap();
|
CheckUnconvertedMap();
|
||||||
CheckSkyrimCells();
|
CheckSkyrimCells();
|
||||||
@ -67,8 +66,6 @@ inline void CheckIncompatibleMods()
|
|||||||
|
|
||||||
inline bool PapyrusGlobalFunctionExists(const char* scriptName, const char* funcName)
|
inline bool PapyrusGlobalFunctionExists(const char* scriptName, const char* funcName)
|
||||||
{
|
{
|
||||||
logger::info("Real - GetGlobalFunctionNames of {}", scriptName);
|
|
||||||
std::vector<std::string> functionNames;
|
|
||||||
RE::BSTSmartPointer<RE::BSScript::ObjectTypeInfo> typeInfoPtr;
|
RE::BSTSmartPointer<RE::BSScript::ObjectTypeInfo> typeInfoPtr;
|
||||||
RE::BSScript::Internal::VirtualMachine::GetSingleton()->GetScriptObjectType(RE::BSFixedString(scriptName), typeInfoPtr);
|
RE::BSScript::Internal::VirtualMachine::GetSingleton()->GetScriptObjectType(RE::BSFixedString(scriptName), typeInfoPtr);
|
||||||
auto functionCount = typeInfoPtr->GetNumGlobalFuncs();
|
auto functionCount = typeInfoPtr->GetNumGlobalFuncs();
|
||||||
|
24
source/scripts/EnderalUpgradeAlias.psc
Normal file
24
source/scripts/EnderalUpgradeAlias.psc
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
Scriptname EnderalUpgradeAlias extends ReferenceAlias Hidden
|
||||||
|
{This script handles game version upgrades, DO NOT MODIFY.}
|
||||||
|
|
||||||
|
Float Property CURRENT_PATCH_VERSION = 2.1 AutoReadOnly
|
||||||
|
float fPatchVersion
|
||||||
|
|
||||||
|
Event OnInit()
|
||||||
|
|
||||||
|
; MQP01
|
||||||
|
if (Game.GetForm(0x46F1A) as Quest).GetStageDone(10)
|
||||||
|
Debug.MessageBox("A savegame was loaded which was made before the release of Enderal SE 2.1. In this save, several new features won't be available and there is a chance that you'll encounter grave bugs. Please, start a new game.")
|
||||||
|
;Game.QuitToMainMenu()
|
||||||
|
endif
|
||||||
|
|
||||||
|
EndEvent
|
||||||
|
|
||||||
|
Event OnPlayerLoadGame()
|
||||||
|
|
||||||
|
if fPatchVersion < CURRENT_PATCH_VERSION
|
||||||
|
;
|
||||||
|
fPatchVersion = CURRENT_PATCH_VERSION
|
||||||
|
endif
|
||||||
|
|
||||||
|
EndEvent
|
@ -1,8 +1,6 @@
|
|||||||
Scriptname _00E_PlayerSetUpScript extends ObjectReference
|
Scriptname _00E_PlayerSetUpScript extends ObjectReference
|
||||||
{Initializes all the necessary Quests, maintains the player, contains various OnPlayerLoadGame() failsafes. This script is important for proper updating, do not overwrite it.}
|
{Initializes all the necessary Quests, maintains the player, contains various OnPlayerLoadGame() failsafes. This script is important for proper updating, do not overwrite it.}
|
||||||
|
|
||||||
Float Property CURRENT_PATCH_VERSION = 2.13 AutoReadOnly
|
|
||||||
|
|
||||||
int function _GetScriptVersion() Global
|
int function _GetScriptVersion() Global
|
||||||
return 1
|
return 1
|
||||||
endFunction
|
endFunction
|
||||||
@ -26,10 +24,6 @@ Event OnInit()
|
|||||||
|
|
||||||
_00E_Func_CheckSKSE.Run()
|
_00E_Func_CheckSKSE.Run()
|
||||||
_00E_Func_CheckEnderalDLL.Run()
|
_00E_Func_CheckEnderalDLL.Run()
|
||||||
|
|
||||||
If fPatchVersion == 0.00
|
|
||||||
fPatchVersion = CURRENT_PATCH_VERSION
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
GoToState("RealPlayer")
|
GoToState("RealPlayer")
|
||||||
PlayerREF.SetActorValue("speedMult", 95)
|
PlayerREF.SetActorValue("speedMult", 95)
|
||||||
@ -45,11 +39,6 @@ Event OnInit()
|
|||||||
kQuest.Start()
|
kQuest.Start()
|
||||||
endwhile
|
endwhile
|
||||||
|
|
||||||
If Game.GetModByName("Enderal_FS_More_Affinities.esp") != 255
|
|
||||||
Game.QuitToMainMenu()
|
|
||||||
Debug.MessageBox("Enderal_FS_More_Affinities.esp is outdated and does not work with Enderal SE. Please, uninstall or update the mod.")
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
EndEvent
|
EndEvent
|
||||||
|
|
||||||
Event OnPlayerLoadGame()
|
Event OnPlayerLoadGame()
|
||||||
@ -151,18 +140,7 @@ function CheckForgottenStories()
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
Function Maintenance()
|
Function Maintenance()
|
||||||
|
|
||||||
if fPatchVersion <= 2.13
|
|
||||||
Debug.MessageBox("A savegame was loaded which was made before the release of Enderal SE. In this save, several new features won't be available and there is a chance that you'll encounter grave bugs. Please, start a new game.")
|
|
||||||
;Game.QuitToMainMenu()
|
|
||||||
;return
|
|
||||||
endif
|
|
||||||
|
|
||||||
if fPatchVersion < CURRENT_PATCH_VERSION
|
|
||||||
;
|
|
||||||
fPatchVersion = CURRENT_PATCH_VERSION
|
|
||||||
endif
|
|
||||||
|
|
||||||
; changes to the actor value healrate will not persist in consecutive saves
|
; changes to the actor value healrate will not persist in consecutive saves
|
||||||
; every time a save gets loaded the healrate needs to be set to 0, otherwise it will go back again to default at 0.7
|
; every time a save gets loaded the healrate needs to be set to 0, otherwise it will go back again to default at 0.7
|
||||||
; this is called before active magic effects of potions or spells are applied to the player which could also alter the value
|
; this is called before active magic effects of potions or spells are applied to the player which could also alter the value
|
||||||
@ -195,8 +173,6 @@ EndFunction
|
|||||||
; PROPERTIES
|
; PROPERTIES
|
||||||
;=====================================================================================
|
;=====================================================================================
|
||||||
|
|
||||||
float fPatchVersion
|
|
||||||
|
|
||||||
_00E_MQ05Prologue_Functions Property MQ05PrologueFunctions Auto
|
_00E_MQ05Prologue_Functions Property MQ05PrologueFunctions Auto
|
||||||
|
|
||||||
Actor Property PlayerREF Auto
|
Actor Property PlayerREF Auto
|
||||||
@ -207,5 +183,3 @@ GlobalVariable Property KillMove Auto
|
|||||||
|
|
||||||
Perk Property _00E_Class_Keeper_P05_C_Conditioning Auto
|
Perk Property _00E_Class_Keeper_P05_C_Conditioning Auto
|
||||||
Perk Property _00E_Class_Vagrant_P05_B_Lightweight Auto
|
Perk Property _00E_Class_Vagrant_P05_B_Lightweight Auto
|
||||||
|
|
||||||
_00E_QuestFunctions Property Levelsystem Auto
|
|
||||||
|
Loading…
Reference in New Issue
Block a user