A fix for the SRTT texture unpacker to support SRTTR

Reference: https://www.saintsrowmods.com/forum/threads/gibbed-tools.639/

Change log:
SR3UnpackTextures.cpp:

line 199:
original:
switch (TextureRecords.TextureEnum)
fixed:
switch (TextureRecords.TextureEnum - 16777216)

line 290:

original:
default:
std::cout << "ERROR - Unknown texture type." << std::endl;
fclose(DDSFILE_HANDLE);
return(1);
fixed:
default:
std::cout << "ERROR - Unknown texture type." << std::endl;
continue;

These changes enabled the compiled exe file to unpack textures from SRTTR.
Sorry for that I have uploaded a debug exe file, which requires full vc++ enviorment. I'll upload a release version this weekend.
 

Attachments

  • SR3UnpackTextures.exe
    58.5 KB · Views: 765
Last edited:
Does this work with the customize_player.vpp_pc? Because that was the only I save after my PC couldn't ran the game for not have the key hardware that is need for ran it months ago.
 
Wait. That works for that? I thought they mentioned they couldn't unpack textures...

Hmm, gonna try when it work again, because the fix looks way complicated and may kill my old laptop

It is already working again with my fix, though hard to use.
https://www.saintsrowmods.com/forum/threads/a-fix-for-menthe-sr-tools.18647/
I will push my fix to lucas when I have spare time.

You should:
1. unpack vpp_pc files with menthe sr tools to get texture packs.
2. unpack texture packs with this tool.
 
Despite having a full C++ Environment installed and trying it on multiple computers, every time I drag a file into the exe I get the error " "ucrtbased.dll" "VCRUNTIME140D.dll" "msvcp140d.DLL" was not found."
You need to unpack with cmd
 
Back
Top