matyalatte / UE4-DDS-Tools

Texture modding tools for UE games
MIT License
67 stars 12 forks source link

UCAS support #23

Closed matyalatte closed 6 months ago

matyalatte commented 1 year ago

Related to https://github.com/matyalatte/UE4-DDS-Tools/issues/19 and https://github.com/matyalatte/UE4-DDS-Tools/issues/22.

Recent UE games store assets in .ucas files, not .pak Extraction tools (e.g. FModel) can extract the assets as .uasset but they are missing some attributes that the standard uasset files have. So, UE4 DDS Tools should be able to detect the ucas assets, and skip the missing attributes.

Mayki07 commented 7 months ago

Hi, can I ask if there is any progress with the UCAS problem?

matyalatte commented 6 months ago

My first attempt for ucas/utoc support was done at 7b7f563826547e1e76c31ff1ecb323bcc267587f and 938231b8935d651f7039eaed31af3a215200bd9d.

Tested with a template project. I replaced a normal map of a weapon with a black image, and repacked assets with UEcastoc. Then, the game app showed a player's weapon with broken normals.

Vanilla vanilla

With broken normals broken_normal

I also tested with resized textures and the force uncompressed option. They worked fine.

Mayki07 commented 6 months ago

Will it be possible to test this version?

matyalatte commented 6 months ago

I'll release a preview version this weekend, but you can use the dev branch if you want to. Here is the latest build. UE4-DDS-Tools-29f7af7-GUI.zip

You can also folk my repo and run the building workflow to make UE4-DDS-Tools-*.zip by yourself.

Tutorial for my workflow is here. Build-With-Github-Actions

Mayki07 commented 6 months ago

Hi, I have tried the DEV version of your tools, I have an asset with a texture exported from a UCAS file from UE 4.27 and it works fine there. Then I have an asset with texture from UE 5.2 and it fails to export. It always ends up with an error message see screen. The files for the test are attached.

DDS

T_PoliceStation_Posters_01_a

Test file: Robocop_Posters.zip

matyalatte commented 6 months ago

Thanks for the testing. Fixed the errors at 771b3533213df7206f8472994ada59ff3c0be3a0, and tested with UE4.27, 5.0, 5.2, 5.3 and 5.4. I'll test it with 5.1 later. (I'm downloading UE5.1 now.)

Here is the latest build. UE4-DDS-Tools-ac7b730-GUI.zip

It still fails to read your T_PoliceStation_Posters_01_a but the cause is another issue (#30.)

matyalatte commented 6 months ago

Tested with UE5.1. and a preview version was released as v0.6.0. I don't close this issue becuase there might still be some problems. I'll close it when releasing the next version.