Skip to content

Commit

Permalink
[CKPE]
Browse files Browse the repository at this point in the history
FO4:
- Remove limit response text
  • Loading branch information
Perchik71 committed Dec 8, 2024
1 parent ecc8cfa commit 4a6eae5
Show file tree
Hide file tree
Showing 11 changed files with 135 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Creation Kit Platform Extended Core/Core/EngineFO4Patches.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -117,6 +118,7 @@ namespace CreationKitPlatformExtended
new Patches::RunNetworkDisablePatch(),
new Patches::CrashConditionItemGetCrimePatch(),
new Patches::DontMatchFormsPatch(),
new Patches::ResponseIgnoreMaxPatch(),

new Patches::MainWindow(),
new Patches::ObjectWindow(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@
<ClCompile Include="Patches\FO4\PreVis.cpp" />
<ClCompile Include="Patches\FO4\RemoveUselessMessagesF4.cpp" />
<ClCompile Include="Patches\FO4\ReplaceBSPointerHandleAndManagerF4.cpp" />
<ClCompile Include="Patches\FO4\ResponseIgnoreMaxF4.cpp" />
<ClCompile Include="Patches\FO4\RunNetworkDisable.cpp" />
<ClCompile Include="Patches\FO4\SkipUpdateCheck.cpp" />
<ClCompile Include="Patches\FO4\SortCrashCombined.cpp" />
Expand Down Expand Up @@ -645,6 +646,7 @@
<ClInclude Include="Patches\FO4\PreVis.h" />
<ClInclude Include="Patches\FO4\RemoveUselessMessagesF4.h" />
<ClInclude Include="Patches\FO4\ReplaceBSPointerHandleAndManagerF4.h" />
<ClInclude Include="Patches\FO4\ResponseIgnoreMaxF4.h" />
<ClInclude Include="Patches\FO4\RunNetworkDisable.h" />
<ClInclude Include="Patches\FO4\SkipUpdateCheck.h" />
<ClInclude Include="Patches\FO4\SortCrashCombined.h" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,9 @@
<ClCompile Include="Patches\SSE\ResponseIgnoreMax.cpp">
<Filter>Patches\SSE</Filter>
</ClCompile>
<ClCompile Include="Patches\FO4\ResponseIgnoreMaxF4.cpp">
<Filter>Patches\FO4</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Filter Include="Version">
Expand Down Expand Up @@ -2164,6 +2167,9 @@
<ClInclude Include="Patches\SSE\ResponseIgnoreMax.h">
<Filter>Patches\SSE</Filter>
</ClInclude>
<ClInclude Include="Patches\FO4\ResponseIgnoreMaxF4.h">
<Filter>Patches\FO4</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="Version\resource_version.rc">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
// Copyright © 2023-2024 aka perchik71. All rights reserved.
// Contacts: <email:timencevaleksej@gmail.com>
// 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<String> 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;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Copyright © 2023-2024 aka perchik71. All rights reserved.
// Contacts: <email:timencevaleksej@gmail.com>
// 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<String> 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;
};
}
}
}
Binary file modified Creation Kit Platform Extended Core/Version/build_version.txt
Binary file not shown.
Binary file modified Creation Kit Platform Extended Core/Version/resource_version2.h
Binary file not shown.
Binary file not shown.
4 changes: 4 additions & 0 deletions Database/FO4/1_10_162_0/ResponseIgnoreMax.relb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Response Ignore Max
1
extended
B63276 0 <none>
Binary file not shown.
4 changes: 4 additions & 0 deletions Database/FO4/1_10_982_3/ResponseIgnoreMax.relb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Response Ignore Max
1
extended
B0AEE9 0 41B90002000085C0BAFF09000041B8C5000000488BCE440F45C84533F641FFC94C89742420FF15????????+25

0 comments on commit 4a6eae5

Please sign in to comment.