From ecc8cfa339d524e0798a061a44bf78bab712a749 Mon Sep 17 00:00:00 2001 From: Alexey Date: Sun, 8 Dec 2024 06:26:28 +0300 Subject: [PATCH] [CKPE] SSE: - Ignore limit response text --- .../Core/EngineSSEPatches.cpp | 2 + ...reation Kit Platform Extended Core.vcxproj | 2 + ...Kit Platform Extended Core.vcxproj.filters | 6 ++ .../Patches/SSE/ResponseIgnoreMax.cpp | 76 ++++++++++++++++++ .../Patches/SSE/ResponseIgnoreMax.h | 41 ++++++++++ .../Version/build_version.txt | Bin 12 -> 12 bytes .../Version/resource_version2.h | Bin 2004 -> 2004 bytes ...ionKitPlatformExtended_SSE_1_5_73.database | Bin 9750 -> 9923 bytes Database/SSE/1_5_73/ResponseIgnoreMax.relb | 4 + ...nKitPlatformExtended_SSE_1_6_1130.database | Bin 10034 -> 10207 bytes Database/SSE/1_6_1130/ResponseIgnoreMax.relb | 4 + ...itPlatformExtended_SSE_1_6_1378_1.database | Bin 47512 -> 47685 bytes .../SSE/1_6_1378_1/ResponseIgnoreMax.relb | 4 + 13 files changed, 139 insertions(+) create mode 100644 Creation Kit Platform Extended Core/Patches/SSE/ResponseIgnoreMax.cpp create mode 100644 Creation Kit Platform Extended Core/Patches/SSE/ResponseIgnoreMax.h create mode 100644 Database/SSE/1_5_73/ResponseIgnoreMax.relb create mode 100644 Database/SSE/1_6_1130/ResponseIgnoreMax.relb create mode 100644 Database/SSE/1_6_1378_1/ResponseIgnoreMax.relb diff --git a/Creation Kit Platform Extended Core/Core/EngineSSEPatches.cpp b/Creation Kit Platform Extended Core/Core/EngineSSEPatches.cpp index ddbc037..b4c8db3 100644 --- a/Creation Kit Platform Extended Core/Core/EngineSSEPatches.cpp +++ b/Creation Kit Platform Extended Core/Core/EngineSSEPatches.cpp @@ -94,6 +94,7 @@ #include "Patches/SSE/CrashMHDTMoreThan70.h" #include "Patches/SSE/ChooseSoundFile.h" #include "Patches/SSE/MiscMessages.h" +#include "Patches/SSE/ResponseIgnoreMax.h" #include "Patches/Windows/SSE/MainWindow.h" #include "Patches/Windows/SSE/RenderWindow.h" @@ -203,6 +204,7 @@ namespace CreationKitPlatformExtended new Patches::CrashMHDTMoreThan70Patch(), new Patches::ChooseSoundFilePatch(), new Patches::MiscMessagesPatch(), + new Patches::ResponseIgnoreMaxPatch(), new Patches::MainWindow(), new Patches::RenderWindow(), diff --git a/Creation Kit Platform Extended Core/Creation Kit Platform Extended Core.vcxproj b/Creation Kit Platform Extended Core/Creation Kit Platform Extended Core.vcxproj index 4c853e0..98579ac 100644 --- a/Creation Kit Platform Extended Core/Creation Kit Platform Extended Core.vcxproj +++ b/Creation Kit Platform Extended Core/Creation Kit Platform Extended Core.vcxproj @@ -355,6 +355,7 @@ + @@ -754,6 +755,7 @@ + diff --git a/Creation Kit Platform Extended Core/Creation Kit Platform Extended Core.vcxproj.filters b/Creation Kit Platform Extended Core/Creation Kit Platform Extended Core.vcxproj.filters index d00576c..5834c07 100644 --- a/Creation Kit Platform Extended Core/Creation Kit Platform Extended Core.vcxproj.filters +++ b/Creation Kit Platform Extended Core/Creation Kit Platform Extended Core.vcxproj.filters @@ -883,6 +883,9 @@ Patches\SF + + Patches\SSE + @@ -2158,6 +2161,9 @@ Patches\SF + + Patches\SSE + diff --git a/Creation Kit Platform Extended Core/Patches/SSE/ResponseIgnoreMax.cpp b/Creation Kit Platform Extended Core/Patches/SSE/ResponseIgnoreMax.cpp new file mode 100644 index 0000000..c36fa80 --- /dev/null +++ b/Creation Kit Platform Extended Core/Patches/SSE/ResponseIgnoreMax.cpp @@ -0,0 +1,76 @@ +// Copyright © 2023-2024 aka perchik71. All rights reserved. +// Contacts: +// License: https://www.gnu.org/licenses/gpl-3.0.html + +#include "Core/Engine.h" +#include "ResponseIgnoreMax.h" + +namespace CreationKitPlatformExtended +{ + namespace Patches + { + namespace SkyrimSpectialEdition + { + ResponseIgnoreMaxPatch::ResponseIgnoreMaxPatch() : Module(GlobalEnginePtr) + {} + + bool ResponseIgnoreMaxPatch::HasOption() const + { + return false; + } + + bool ResponseIgnoreMaxPatch::HasCanRuntimeDisabled() const + { + return false; + } + + const char* ResponseIgnoreMaxPatch::GetOptionName() const + { + return nullptr; + } + + const char* ResponseIgnoreMaxPatch::GetName() const + { + return "Response Ignore Max"; + } + + bool ResponseIgnoreMaxPatch::HasDependencies() const + { + return false; + } + + Array ResponseIgnoreMaxPatch::GetDependencies() const + { + return {}; + } + + bool ResponseIgnoreMaxPatch::QueryFromPlatform(EDITOR_EXECUTABLE_TYPE eEditorCurrentVersion, + const char* lpcstrPlatformRuntimeVersion) const + { + return eEditorCurrentVersion <= EDITOR_EXECUTABLE_TYPE::EDITOR_SKYRIM_SE_LAST; + } + + bool ResponseIgnoreMaxPatch::Activate(const Relocator* lpRelocator, + const RelocationDatabaseItem* lpRelocationDatabaseItem) + { + if (lpRelocationDatabaseItem->Version() == 1) + { + // + // Skip message setting blocking text input after 149 characters. + // + lpRelocator->Patch(_RELDATA_RAV(0), { 0xEB }); + + return true; + } + + return false; + } + + bool ResponseIgnoreMaxPatch::Shutdown(const Relocator* lpRelocator, + const RelocationDatabaseItem* lpRelocationDatabaseItem) + { + return false; + } + } + } +} \ No newline at end of file diff --git a/Creation Kit Platform Extended Core/Patches/SSE/ResponseIgnoreMax.h b/Creation Kit Platform Extended Core/Patches/SSE/ResponseIgnoreMax.h new file mode 100644 index 0000000..d4fdd22 --- /dev/null +++ b/Creation Kit Platform Extended Core/Patches/SSE/ResponseIgnoreMax.h @@ -0,0 +1,41 @@ +// Copyright © 2023-2024 aka perchik71. All rights reserved. +// Contacts: +// License: https://www.gnu.org/licenses/gpl-3.0.html + +#pragma once + +#include "Core/Module.h" +#include "Core/Relocator.h" +#include "Core/RelocationDatabase.h" + +namespace CreationKitPlatformExtended +{ + namespace Patches + { + namespace SkyrimSpectialEdition + { + using namespace CreationKitPlatformExtended::Core; + + class ResponseIgnoreMaxPatch : public Module + { + public: + ResponseIgnoreMaxPatch(); + + virtual bool HasOption() const; + virtual bool HasCanRuntimeDisabled() const; + virtual const char* GetOptionName() const; + virtual const char* GetName() const; + virtual bool HasDependencies() const; + virtual Array GetDependencies() const; + protected: + virtual bool QueryFromPlatform(EDITOR_EXECUTABLE_TYPE eEditorCurrentVersion, + const char* lpcstrPlatformRuntimeVersion) const; + virtual bool Activate(const Relocator* lpRelocator, const RelocationDatabaseItem* lpRelocationDatabaseItem); + virtual bool Shutdown(const Relocator* lpRelocator, const RelocationDatabaseItem* lpRelocationDatabaseItem); + private: + ResponseIgnoreMaxPatch(const ResponseIgnoreMaxPatch&) = default; + ResponseIgnoreMaxPatch& operator=(const ResponseIgnoreMaxPatch&) = default; + }; + } + } +} \ No newline at end of file diff --git a/Creation Kit Platform Extended Core/Version/build_version.txt b/Creation Kit Platform Extended Core/Version/build_version.txt index 7c12561d95cb6c994a66186899a01013964348e2..83f07e1b680c7918e70cfd59a359ce6dae698e8c 100644 GIT binary patch literal 12 TcmezW&yvA_!H9vEfr|kE92f$y literal 12 RcmezW&yv9a2zeQ}7yuj$0lOtHAHp{T=Umm>49gB?0D*r8YybcN diff --git a/Database/SSE/1_5_73/CreationKitPlatformExtended_SSE_1_5_73.database b/Database/SSE/1_5_73/CreationKitPlatformExtended_SSE_1_5_73.database index 7932c79a51eb000e30bd01ca7cde3e230c8cb118..ca32f1b6527053660154c46cc288e8e962eee95e 100644 GIT binary patch delta 176 zcmbQ{bJ%x+0%P$;#cT4Dy*PR5g&BfUiwpAeic=Ll)ARC+QWbm?D}sEST$mUb7+QcB z1Q>zXaLshaECzEEdwUZL3nv3pdnmAQGBGf)aC378iaHyZSU8)Tm>8KD8Nh&v2~ga^ o#L&sY*%Tt?822@8#9m0E2WYp8x;= delta 17 ZcmX@?JI!Z;0%Ore#cT4Lmng`y0RTXq26+Gg diff --git a/Database/SSE/1_5_73/ResponseIgnoreMax.relb b/Database/SSE/1_5_73/ResponseIgnoreMax.relb new file mode 100644 index 0000000..551d05d --- /dev/null +++ b/Database/SSE/1_5_73/ResponseIgnoreMax.relb @@ -0,0 +1,4 @@ +Response Ignore Max +1 +extended +197AC31 0 74??488B05????????8B4008FFC88BC048C744242000000000448BC841B8C5000000BA77080000488B8C24????????FF15???????? \ No newline at end of file diff --git a/Database/SSE/1_6_1130/CreationKitPlatformExtended_SSE_1_6_1130.database b/Database/SSE/1_6_1130/CreationKitPlatformExtended_SSE_1_6_1130.database index b9c5f34a66a0ce89ee3dbeec1433aa7e565b3ca3..ea06d0c1c09d69eae6c3fe4518c40ced8b6bea9c 100644 GIT binary patch delta 188 zcmdnwci(@40%Q3`#c2xlYZ)Mb5l9I$1f>=i