diff --git a/Creation Kit Platform Extended Core/Core/EngineFO4Patches.cpp b/Creation Kit Platform Extended Core/Core/EngineFO4Patches.cpp index 7b6b597..44522a6 100644 --- a/Creation Kit Platform Extended Core/Core/EngineFO4Patches.cpp +++ b/Creation Kit Platform Extended Core/Core/EngineFO4Patches.cpp @@ -52,6 +52,7 @@ #include "Patches/FO4/RunNetworkDisable.h" #include "Patches/FO4/CrashConditionItemGetCrime.h" #include "Patches/FO4/DontMatchForms.h" +#include "Patches/FO4/ResponseIgnoreMaxF4.h" #include "Patches/Windows/FO4/MainWindowF4.h" #include "Patches/Windows/FO4/ObjectWindowF4.h" @@ -117,6 +118,7 @@ namespace CreationKitPlatformExtended new Patches::RunNetworkDisablePatch(), new Patches::CrashConditionItemGetCrimePatch(), new Patches::DontMatchFormsPatch(), + new Patches::ResponseIgnoreMaxPatch(), new Patches::MainWindow(), new Patches::ObjectWindow(), 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 98579ac..ec8210e 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 @@ -245,6 +245,7 @@ + @@ -645,6 +646,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 5834c07..d452cee 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 @@ -886,6 +886,9 @@ Patches\SSE + + Patches\FO4 + @@ -2164,6 +2167,9 @@ Patches\SSE + + Patches\FO4 + diff --git a/Creation Kit Platform Extended Core/Patches/FO4/ResponseIgnoreMaxF4.cpp b/Creation Kit Platform Extended Core/Patches/FO4/ResponseIgnoreMaxF4.cpp new file mode 100644 index 0000000..d901b69 --- /dev/null +++ b/Creation Kit Platform Extended Core/Patches/FO4/ResponseIgnoreMaxF4.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 "ResponseIgnoreMaxF4.h" + +namespace CreationKitPlatformExtended +{ + namespace Patches + { + namespace Fallout4 + { + 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->PatchNop(_RELDATA_RAV(0), 5); + + 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/FO4/ResponseIgnoreMaxF4.h b/Creation Kit Platform Extended Core/Patches/FO4/ResponseIgnoreMaxF4.h new file mode 100644 index 0000000..00f1f00 --- /dev/null +++ b/Creation Kit Platform Extended Core/Patches/FO4/ResponseIgnoreMaxF4.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 Fallout4 + { + 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 83f07e1..f0a3f97 100644 Binary files a/Creation Kit Platform Extended Core/Version/build_version.txt and b/Creation Kit Platform Extended Core/Version/build_version.txt differ diff --git a/Creation Kit Platform Extended Core/Version/resource_version2.h b/Creation Kit Platform Extended Core/Version/resource_version2.h index d24762b..4a6d33e 100644 Binary files a/Creation Kit Platform Extended Core/Version/resource_version2.h and b/Creation Kit Platform Extended Core/Version/resource_version2.h differ diff --git a/Database/FO4/1_10_162_0/CreationKitPlatformExtended_FO4_1_10_162.database b/Database/FO4/1_10_162_0/CreationKitPlatformExtended_FO4_1_10_162.database index 93cd8e0..728c23d 100644 Binary files a/Database/FO4/1_10_162_0/CreationKitPlatformExtended_FO4_1_10_162.database and b/Database/FO4/1_10_162_0/CreationKitPlatformExtended_FO4_1_10_162.database differ diff --git a/Database/FO4/1_10_162_0/ResponseIgnoreMax.relb b/Database/FO4/1_10_162_0/ResponseIgnoreMax.relb new file mode 100644 index 0000000..1f7ea5c --- /dev/null +++ b/Database/FO4/1_10_162_0/ResponseIgnoreMax.relb @@ -0,0 +1,4 @@ +Response Ignore Max +1 +extended +B63276 0 \ No newline at end of file diff --git a/Database/FO4/1_10_982_3/CreationKitPlatformExtended_FO4_1_10_982_3.database b/Database/FO4/1_10_982_3/CreationKitPlatformExtended_FO4_1_10_982_3.database index e7fafc4..4a83def 100644 Binary files a/Database/FO4/1_10_982_3/CreationKitPlatformExtended_FO4_1_10_982_3.database and b/Database/FO4/1_10_982_3/CreationKitPlatformExtended_FO4_1_10_982_3.database differ diff --git a/Database/FO4/1_10_982_3/ResponseIgnoreMax.relb b/Database/FO4/1_10_982_3/ResponseIgnoreMax.relb new file mode 100644 index 0000000..3c45ed8 --- /dev/null +++ b/Database/FO4/1_10_982_3/ResponseIgnoreMax.relb @@ -0,0 +1,4 @@ +Response Ignore Max +1 +extended +B0AEE9 0 41B90002000085C0BAFF09000041B8C5000000488BCE440F45C84533F641FFC94C89742420FF15????????+25 \ No newline at end of file