Skip to content

Commit

Permalink
[CKPE]
Browse files Browse the repository at this point in the history
SSE, FO4:
- New option for compression dds, fixed #97
  • Loading branch information
Perchik71 committed Jan 15, 2025
1 parent a55fd2b commit f6a48b0
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Creation Kit Platform Extended Core/Patches/FaceGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,8 @@ namespace CreationKitPlatformExtended
lpRelocator->PatchNop(_RELDATA_RAV(1), 5);
_MESSAGE("Disabling export FaceGen .DDS files");
}
else
{
else if (_READ_OPTION_BOOL("FaceGen", "bAutoCompressionDDS", false))
lpRelocator->DetourCall(_RELDATA_RAV(1), (uintptr_t)&SkyrimSpecialEdition::CreateDiffuseCompressDDS);
}

// Don't produce TGA files
if (_READ_OPTION_BOOL("FaceGen", "bDisableExportTGA", false))
Expand Down Expand Up @@ -207,7 +205,7 @@ namespace CreationKitPlatformExtended
lpRelocator->PatchNop(_RELDATA_RAV(5), 5);
_MESSAGE("Disabling export FaceGen .DDS files");
}
else
else if (_READ_OPTION_BOOL("FaceGen", "bAutoCompressionDDS", false))
{
lpRelocator->DetourCall(_RELDATA_RAV(1), (uintptr_t)&Fallout4::CreateDiffuseCompressDDS);
lpRelocator->DetourCall(_RELDATA_RAV(3), (uintptr_t)&Fallout4::CreateNormalsCompressDDS);
Expand Down
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.
1 change: 1 addition & 0 deletions Stuffs/FO4/CreationKitPlatformExtended.ini
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ bSkipAnimationBuildData=false ; Skips animation data generation, significantly
fMipLODBias=-1.3 ; Force set mipmap level bias value (value must be [-3.0 : 3.0] where there is less than 0.0, the further away the 0 mipmap is).

[FaceGen]
bAutoCompressionDDS=true ; Texture compression during generation
bDisableExportDDS=false ; Prevent tint export as DDS
bDisableExportTGA=true ; Prevent tint export as TGA
bDisableExportNIF=false ; Prevent facegen geometry export
Expand Down
1 change: 1 addition & 0 deletions Stuffs/SSE/CreationKitPlatformExtended.ini
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ nCharset=1
fMipLODBias=-1.3 ; Force set mipmap level bias value (value must be [-3.0 : 3.0] where there is less than 0.0, the further away the 0 mipmap is).

[FaceGen]
bAutoCompressionDDS=true ; Texture compression during generation
bDisableAutoFaceGen=true ; Prevent facegen data from being created on plugin save
bDisableExportDDS=false ; Prevent tint export as DDS
bDisableExportTGA=true ; Prevent tint export as TGA
Expand Down

0 comments on commit f6a48b0

Please sign in to comment.