Skip to content

Commit

Permalink
[CKPE]
Browse files Browse the repository at this point in the history
SSE:
- Ignore limit response text
  • Loading branch information
Perchik71 committed Dec 8, 2024
1 parent 0b8ece2 commit ecc8cfa
Show file tree
Hide file tree
Showing 13 changed files with 139 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Creation Kit Platform Extended Core/Core/EngineSSEPatches.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -203,6 +204,7 @@ namespace CreationKitPlatformExtended
new Patches::CrashMHDTMoreThan70Patch(),
new Patches::ChooseSoundFilePatch(),
new Patches::MiscMessagesPatch(),
new Patches::ResponseIgnoreMaxPatch(),

new Patches::MainWindow(),
new Patches::RenderWindow(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@
<ClCompile Include="Patches\SSE\RefLinkGeometryHangWorkaround.cpp" />
<ClCompile Include="Patches\SSE\RemoveUselessMessages.cpp" />
<ClCompile Include="Patches\SSE\ReplaceBSPointerHandleAndManager.cpp" />
<ClCompile Include="Patches\SSE\ResponseIgnoreMax.cpp" />
<ClCompile Include="Patches\SSE\ShowReloadShadersAlways.cpp" />
<ClCompile Include="Patches\SSE\SpellEnableCastingAndDeliveryAlways.cpp" />
<ClCompile Include="Patches\SSE\StableSortForPerks.cpp" />
Expand Down Expand Up @@ -754,6 +755,7 @@
<ClInclude Include="Patches\SSE\RefLinkGeometryHangWorkaround.h" />
<ClInclude Include="Patches\SSE\RemoveUselessMessages.h" />
<ClInclude Include="Patches\SSE\ReplaceBSPointerHandleAndManager.h" />
<ClInclude Include="Patches\SSE\ResponseIgnoreMax.h" />
<ClInclude Include="Patches\SSE\ShowReloadShadersAlways.h" />
<ClInclude Include="Patches\SSE\SpellEnableCastingAndDeliveryAlways.h" />
<ClInclude Include="Patches\SSE\StableSortForPerks.h" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,9 @@
<ClCompile Include="Patches\SF\AllowSaveESMandMasterESPSF.cpp">
<Filter>Patches\SF</Filter>
</ClCompile>
<ClCompile Include="Patches\SSE\ResponseIgnoreMax.cpp">
<Filter>Patches\SSE</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Filter Include="Version">
Expand Down Expand Up @@ -2158,6 +2161,9 @@
<ClInclude Include="Patches\SF\AllowSaveESMandMasterESPSF.h">
<Filter>Patches\SF</Filter>
</ClInclude>
<ClInclude Include="Patches\SSE\ResponseIgnoreMax.h">
<Filter>Patches\SSE</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 "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<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->Patch(_RELDATA_RAV(0), { 0xEB });

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 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<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 modified Database/SSE/1_5_73/CreationKitPlatformExtended_SSE_1_5_73.database
Binary file not shown.
4 changes: 4 additions & 0 deletions Database/SSE/1_5_73/ResponseIgnoreMax.relb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Response Ignore Max
1
extended
197AC31 0 74??488B05????????8B4008FFC88BC048C744242000000000448BC841B8C5000000BA77080000488B8C24????????FF15????????
Binary file not shown.
4 changes: 4 additions & 0 deletions Database/SSE/1_6_1130/ResponseIgnoreMax.relb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Response Ignore Max
1
extended
192E661 0 74??488B05????????8B4008FFC88BC048C744242000000000448BC841B8C5000000BA77080000488B8C24????????FF15????????
Binary file not shown.
4 changes: 4 additions & 0 deletions Database/SSE/1_6_1378_1/ResponseIgnoreMax.relb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Response Ignore Max
1
extended
195EE71 0 74??488B05????????8B4008FFC88BC048C744242000000000448BC841B8C5000000BA77080000488B8C24????????FF15????????

0 comments on commit ecc8cfa

Please sign in to comment.