matyamod / Console-Swizzler

C library to swizzle DDS textures for console games
https://matyamod.github.io/Console-Swizzler/
MIT License
1 stars 0 forks source link

Alpha Releases #1

Open matyamod opened 1 month ago

matyamod commented 1 month ago

I'll put links to alpha versions here. You can drop a dds file on *_swizzle.bat or *_unswizzle.bat to swizzle DDS textures.

Use *_unswizzle.bat to get images from assets. And use *_swizzle.bat to make assets from images.

matyamod commented 1 month ago

My first attempt for the ps4 swizzling. swizzler-cli-8af3ef5-x64-release.zip

Note that it only supports DDS files that have BC1~BC7 textures for now.

matyamod commented 1 month ago

Supported most of the uncompressed DXGI formats. swizzler-cli-5110d1e-x64-release.zip

matyamod commented 1 month ago

swizzler-cli-38ad911-x64-debug.zip

You can use _switch_swizzle.bat and _switch_unswizzle.bat for the new platform.

matyamod commented 1 month ago

This is a little bit stable version. Switch swizzling still have some problems but there should be no crashes at least.

swizzler-cli-5b99837-x64-debug.zip

zerlkung commented 1 month ago

This is a little bit stable version. Switch swizzling still have some problems but there should be no crashes at least.

  • Added debug assertions to prevent crashes.
  • Added unit tests.
  • Some tiny fixes to pass the tests.

swizzler-cli-5b99837-x64-debug.zip

Finally can reimport with UE4-DDS-Tools you is make the world easy. Thank you for your help.

YorhaX2P commented 1 month ago

Is this referring to Unreal Engine 4?

I tried using this for swizzle or unswizzle from PC to PS4 for .dds and injecting with UE4 DDS Tools to .uasset, and this Tekken 7 HUD shows up weirder in-game..

Screenshot: https://i.imgur.com/FeP583z.png

matyamod commented 1 month ago

@YorhaX2P Thanks for the report. It should work with UE assets but idk if your assets use swizzling or not. How do the original textures look like? Are they swizzled? Can you reproduce the original textures when doing both of unswizzling and swizzling?

YorhaX2P commented 1 month ago

@YorhaX2P Thanks for the report. It should work with UE assets but idk if your assets use swizzling or not. How do the original textures look like? Are they swizzled? Can you reproduce the original textures when doing both of unswizzling and swizzling?

Can we talk on the Discord server? it would be easier to discuss than here. I can invite you if you want.

For my server we have a tester who are trying to fix texture PS4 issue from porting PC mods at UE4

On PS4 is completely swizzled as the original PAK.

Screenshot PS4: https://i.ibb.co/dL0VdhF/image.png

Screenshot PC: https://i.ibb.co/DMd7YHm/image.png

Tekken 7 on PS4 is B8G8R8A8 Tekken 7 on PC is BC3

matyamod commented 1 month ago

Can we talk on the Discord server?

I'm in the ps4 modding server. https://discord.com/invite/twpSyYp

You can search matyamodding who has the same icon as my git account.

YorhaX2P commented 1 month ago

Oh I know that man one who made RE Engine and Skyrim. Unfortunately they don’t talk about UE4 discussion, i’ll be focusing with my own server at UE4 discussion more to make mods playable on PS4 and Switch modding community only than a Skyrim and RE Engine with just a PS4 community.

I’ve DM you on discord

matyamod commented 1 month ago

swizzler-cli-v0.4.0-rc-x64-debug.zip

I think this version supports most of the ps4 and switch textures.

If you update src/unreal/utexture.py with https://github.com/matyalatte/UE4-DDS-Tools/commit/37cc4dba35c2c784dcb2342f09a653cb2efecd33, you can extract ps4 (or switch) textures without data loss. Then, you can unswizzle and swizzle them with the latest version of swizzler-cli.

But note that UE4 DDS Tools still has an issue about injection (https://github.com/matyalatte/UE4-DDS-Tools/issues/40). You will get the problem that YorhaX2P reported.