Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Quake Champions

Featured Replies

  • Author
  • Localization

z65536, posted Wed Oct 17, 2018 5:23 pm (39663)


I'm creating python script that can convert .pct files.

.pct header structure
Code:
6 byte : Unknown
4 byte : String 'TCIP'
6 byte : Unknown
4 byte : Width
4 byte : Height
4 byte : Number of frames?
4 byte : Number of images?
6 byte : Unknown
1 byte : Texture format
9 byte : Unknown
4 byte : Number of addresses
6 byte : Unknown

4 byte : Data address offset
4 byte : Data size

2 byte : Unknown
4 byte : Size of data section

Data section

2 byte : Unknown
4 byte : File size

List of texture format
Code:
0x34 = DXGI_FORMAT_BC7_UNORM
0x33 = DXGI_FORMAT_BC7_UNORM_SRGB
0x31 = DXGI_FORMAT_BC6H_UF16
0x26 = DXGI_FORMAT_R16G16B16A16_SNORM
0x25 = DXGI_FORMAT_BC4_UNORM
0x24 = DXGI_FORMAT_BC5_UNORM
0x16 = DXGI_FORMAT_B8G8R8X8_UNORM_SRGB?
0x11 = DXGI_FORMAT_BC3_UNORM_SRGB?
0xc = DXGI_FORMAT_BC1_UNORM
0x3 = DXGI_FORMAT_R8_UNORM?
0x0 = DXGI_FORMAT_B8G8R8A8_UNORM_SRGB?
  • Replies 97
  • Views 16
  • Created
  • Last Reply

Top Posters In This Topic

  • Author
  • Localization

h3x3r, posted Wed Oct 17, 2018 6:04 pm (39666)


Here are compressions which i got from PCT.
Code:
HEX = 03 = ??
HEX = 11 = CUBEMAP
HEX = 0C = BC1 UNORM/sRGB
HEX = 16 = ?? RGBA8 UNORM/sRGB ??
HEX = 24 = ATI2
HEX = 25 = ATI1
HEX = 31 = ?? HDR ??
HEX = 33 = BC7 UNORM/sRGB
HEX = 34 = BC7 UNORM/sRGB

And thanks for seed key.
  • Author
  • Localization

Rhoken, posted Sat Oct 20, 2018 6:09 pm (39751)


z65536 wrote:
PCT converter alpha is here.

Usage
Download Rawtex. https://zenhax.com/viewtopic.php?t=7099
Put pctcnv.exe in the same folder as RawtexCmd.exe.
Run command:
pctcnv.exe



CMD say me: "error: invalid argument" when i try to run pctcnv.exe in this way:

"cd /d d:
D:\>cd D:\Desktop\quickbms\Nuova cartella\[textures]\characters
D:\Desktop\quickbms\Nuova cartella\[textures]\characters> pctcnv.exe
error: invalid argument"

I have put pctcnv.exe in the same folder with RawTexCmd.exe but if i run also this exe doesn't show anything (so i presume i need to run in CMD)
If i write after pctcnv.exe the path folder with the name of the .pct file says me "syntax error"

I am missing something?
  • Author
  • Localization

Psychotic Care Bear, posted Sun Oct 21, 2018 1:33 am (39757)


if you ran it without the pathtofolder argument I could see why you get the invalid argument error

when I made a .bat file to run it, it also didn't seem to like spaces in the path to folder

I dunno if you tried specifying a specific pct file, but it only does whole folders

imo, just copy the folder you want to convert to the folder with pctcnv.exe and rawtexcmd.exe, make a .bat file with the following text:
pctcnv.exe nameofyourfoldertoconvert
  • Author
  • Localization

h3x3r, posted Sun Oct 21, 2018 9:39 am (39762)


Just create txt and put to it:
pctcnv.exe [textures] and save as bat file.

Now copy that bat file and also pctcnv.exe, Rawtex.exe, RawtexCmd.exe and texconv.exe to the same folder where you have unpacked your game files and run bat file.
I did it this way and it works flawless.
  • Author
  • Localization

Rhoken, posted Sun Oct 21, 2018 3:23 pm (39768)


h3x3r wrote:
Just create txt and put to it:
pctcnv.exe [textures] and save as bat file.

Now copy that bat file and also pctcnv.exe, Rawtex.exe, RawtexCmd.exe and texconv.exe to the same folder where you have unpacked your game files and run bat file.
I did it this way and it works flawless.



Maybe i am an fool and i do all wrong again, but i create a .bat file with the string you say me, i put in the folder with the other executable, but if i open this bat i see for some seconds a cmd window and he close automatically. Of course i insert the bat file in the "textures" folder with other programs..

Is write like this the right bat file?

Image
  • Author
  • Localization

Psychotic Care Bear, posted Sun Oct 21, 2018 5:12 pm (39771)


Image

this pic shows what I did and locations, in my example the folder I want to convert is QCChampFiles(2018-10-11), so I have to run:
pctcnv.exe QCChampFiles(2018-10-11)

this will output the *.dds for each *.pct file in that directory, for you to open in whatever program you want, I used visual studio since every other program I tried gave me rainbow noise, lol
  • Author
  • Localization

Rhoken, posted Sun Oct 21, 2018 5:55 pm (39773)


Psychotic Care Bear wrote:
Image

this pic shows what I did and locations, in my example the folder I want to convert is QCChampFiles(2018-10-11), so I have to run:
pctcnv.exe QCChampFiles(2018-10-11)

this will output the *.dds for each *.pct file in that directory, for you to open in whatever program you want, I used visual studio since every other program I tried gave me rainbow noise, lol



Now seems to work, thanks

but dds texture seems to be corrupted: in photoshop with dds plugin is all black, with DXTBmp doesn't load anything, DDSViewer crash when i try to load one... or seems they have a obnoxious proprietary "color palette" (like the models)...
  • Author
  • Localization

Psychotic Care Bear, posted Sun Oct 21, 2018 7:03 pm (39777)


Rhoken wrote:

but dds texture seems to be corrupted: in photoshop with dds plugin is all black, with DXTBmp doesn't load anything, DDSViewer crash when i try to load one... or seems they have a obnoxious proprietary "color palette" (like the models)...


I had the same issue, that's why I used Visual Studio, which I already had installed, its probably your viewer doesn't support later versions of dds or something stupid like that

OR

you could use Paint.net download link along with this filetype plugin, follow the instructions in the plugin zip readme to install

NOTE: to load them you must rename the dds files to dds2 files for the time being

OR

for Photoshop use this
  • Author
  • Localization

z65536, posted Mon Oct 22, 2018 1:35 am (39779)


Script updated

Changed to convert the file of the current and sub folder by double click.
Fixed to be able to convert specific files.
Fixed detection of necessary files.

pctcnv.zip

  • Author
  • Localization

Rhoken, posted Mon Oct 22, 2018 9:43 am (39782)


Psychotic Care Bear wrote:
Rhoken wrote:

but dds texture seems to be corrupted: in photoshop with dds plugin is all black, with DXTBmp doesn't load anything, DDSViewer crash when i try to load one... or seems they have a obnoxious proprietary "color palette" (like the models)...


I had the same issue, that's why I used Visual Studio, which I already had installed, its probably your viewer doesn't support later versions of dds or something stupid like that

OR

you could use Paint.net download link along with this filetype plugin, follow the instructions in the plugin zip readme to install

NOTE: to load them you must rename the dds files to dds2 files for the time being

OR

for Photoshop use this
u

Works with Intel texture plugin
  • Author
  • Localization

z65536, posted Mon Oct 22, 2018 9:56 am (39783)


Rhoken wrote:
Psychotic Care Bear wrote:
Rhoken wrote:

but dds texture seems to be corrupted: in photoshop with dds plugin is all black, with DXTBmp doesn't load anything, DDSViewer crash when i try to load one... or seems they have a obnoxious proprietary "color palette" (like the models)...


I had the same issue, that's why I used Visual Studio, which I already had installed, its probably your viewer doesn't support later versions of dds or something stupid like that

OR

you could use Paint.net download link along with this filetype plugin, follow the instructions in the plugin zip readme to install

NOTE: to load them you must rename the dds files to dds2 files for the time being

OR

for Photoshop use this
u

Works with Intel texture plugin


Why are you converting dds files?
This script outputs png files.
  • Author
  • Localization

Psychotic Care Bear, posted Mon Oct 22, 2018 12:18 pm (39785)


z65536 wrote:
Why are you converting dds files?
This script outputs png files.


probably because in the original posting for the script you said we only needed RawTexCmd.exe, I only got png files when I placed texconv.exe there too
  • Author
  • Localization

z65536, posted Mon Oct 22, 2018 1:04 pm (39787)


Psychotic Care Bear wrote:
probably because in the original posting for the script you said we only needed RawTexCmd.exe, I only got png files when I placed texconv.exe there too


Rawtex page says "It needs microsoft's texconv to work."
  • Author
  • Localization

exhawk, posted Fri Nov 02, 2018 3:56 am (40037)


Do you have the constant for quake champions pts?
  • Author
  • Localization

Rev3n4nt, posted Fri Nov 02, 2018 6:57 pm (40058)


Rev3n4nt wrote:
I used unpacker script, and got all files out.
Models are seems to be *.TPL files(at least static ones).
Textures are *.PCT
from Xentax forum:
Quote:
GRiNDERKILLER wrote:
About TPL files they have a string S3DRESOURCE means SABER 3D RESOURCE. MESH maybe?... I tried H2O but no luck. Since i still don't know where starts VTBlock and which size has.

Quote:
GRiNDERKILLER wrote:
PCT are only textures. TCIP header means PICTURE. Btw textures are easily convertable by Rawtex. You must just set start offset of raw data sometimes guess compression. But mostly they are BC7 - RGB/sRGB

I used Ninja Ripper for extracting weapon models & textures before - back then UV's were ripped fine, now they're mess. Since size is same(tris&vertex) in new version, I upload old ripped model with textures for comparison and maybe help to recognize new format.
http://www.mediafire.com/file/2fg1bci3hi6dr6m/qc_rge_ripp.zip/file
If anybody figure out how to read\convert models and textures files into common models and textures format with keeping UV's for models - I upload models and textures for that as well.
http://www.mediafire.com/file/t88wuha6ps44qcg/qc_rge_textures.zip/file
http://www.mediafire.com/file/c3e9vfxrs9elc6p/qc_rge_tpl.zip/file


I uploaded models, so somebody can compare 2 models(old & new format) and find how to use original QC model format.
After updates, all models for weapons and champions are broken UV. The only way now is to find right format for models that can be extracted by QuickBMS.
Did somebody tried to find that out? And can be that helpful in someway at all, for comparioson and finding how QC model format works?
  • Author
  • Localization

dig2rsc, posted Sat Nov 03, 2018 7:52 pm (40082)


thank you for script, i extract shared.pak\[sound], but with what tool convert "bank" files?
  • Author
  • Localization

peterzhenhh, posted Sat Nov 10, 2018 4:51 am (40249)


for OFFSET = 0
goto OFFSET
findloc OFFSET string "FSB5"
goto OFFSET
getdstring FSB_SIGN 4 # FSOUND_FSB_HEADER_FSB5 (fsb.h)
get version long
get numsamples long
get shdrsize long
get namesize long
get datasize long
xmath SIZE "0x3c shdrsize namesize datasize"
log "" OFFSET SIZE
next OFFSET SIZE


I copied them from http://forum.xentax.com/viewtopic.php?f=17&t=15904
  • Author
  • Localization

aluigi, posted Sat Nov 10, 2018 2:23 pm (40258)


@peterzhenhh
I have a complete script that automatically dumps all the FSB archives from an input file:
http://aluigi.org/bms/dump_fsbs.bms

Yeah the name "dump FSBs" isn't helpful for finding it on the QuickBMS page, but I didn't know what other keywords to use in the name :D
Keywords are welcome
  • Author
  • Localization

exhawk, posted Sun Nov 18, 2018 11:32 am (40470)


script doesn't work after the last update
Image
  • Author
  • Localization

aluigi, posted Sun Nov 18, 2018 4:39 pm (40476)


Upload one of the new archives just to check if it's a small change or something bigger.
  • Author
  • Localization

Rev3n4nt, posted Mon Nov 19, 2018 8:53 pm (40509)


I extracted all QC archives. Converted all *.pct into images, works well.
Since we have *.hkx probably for animation & *.TPL probably model format,
does anybody havean idea how to convert models with UV?
Because point of extracting archives mainly in models with UV.
For textures and models without UV we can use Ninja Ripper as before.
  • Author
  • Localization

aluigi, posted Mon Nov 19, 2018 8:57 pm (40511)


Do you have other new PAK archives?
Maybe one very small and one containing audio data.

What I have noticed is that there is no compression and encryption, just like if it's a totally new format, data is readable (text, raw graphics and so on).
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.