Join also our Discord channel! Click here.

Search found 98 matches

by Sir Kane
Sat Mar 02, 2013 9:44 pm
Forum: Graphic file formats
Topic: how can I fix dds textures from God of War 3?
Replies: 4
Views: 1436

Re: how can I fix dds textures from God of War 3?

Looked at the R_GRUNT00 one, it's to small to contain 1024*2048 DXT5 with 11 mips, just the first mip would take 2,097,152 bytes.
by Sir Kane
Sat Mar 02, 2013 11:20 am
Forum: Game Archive
Topic: [REQ][PC]Crysis 3 .pak files
Replies: 75
Views: 53430

Re: [REQ][PC]Crysis 3 .pak files

Use this to reconstruct normal DDS files: http://sktest.aruarose.com/DDSUnsplit.7z.

As for the format, .dds.0 contains the header and smallest three mips, .dds.1 to .dds.n contain the remaining mips with increasing size.
by Sir Kane
Sat Feb 23, 2013 2:27 pm
Forum: Game Archive
Topic: [REQ][PC]Crysis 3 .pak files
Replies: 75
Views: 53430

Re: [REQ][PC]Crysis 3 .pak files

It's virtually impossible to re-encrypt, due to the use of assymetric cryptography on the twofish IV and keys and also the signing of the PAKs.
by Sir Kane
Sat Feb 23, 2013 2:23 pm
Forum: Graphic file formats
Topic: How do I read a "skewed" image?
Replies: 22
Views: 2428

Re: How do I read a "skewed" image?

When the image is an odd number of pixels wide (1, 3, 5, etc.), the image data is padded to an even number of pixels per row (so you get 2, 4, 6, etc. pixels of data per row). And say you have width 2, (2+3)/4*4 -> 5/4*4 -> 1*4 = 4. For width 4 you get (4+3)/4*4 = 4. For 5 you get (5+3)/4*4 = 2. Sim...
by Sir Kane
Fri Feb 22, 2013 9:56 pm
Forum: Graphic file formats
Topic: How do I read a "skewed" image?
Replies: 22
Views: 2428

Re: How do I read a "skewed" image?

Say your image is 11 pixels wide, the RGB data for each line actually contains 12 pixels then. The alpha data has an align of 4, so you need to (width+3)/4*4 for the actual amount of data per line. Best look at how I do it in FormatDecode_SplitRGB_A in the source. Get http://www.microsoft.com/en-us/...
by Sir Kane
Fri Feb 22, 2013 8:22 pm
Forum: Graphic file formats
Topic: How do I read a "skewed" image?
Replies: 22
Views: 2428

Re: How do I read a "skewed" image?

Getting closer, just gotta figure out if RLE images contain alpha data. http://sktest.aruarose.com/TgaImages.7z Converter (exe+source): http://sktest.aruarose.com/imageconvert.7z You got the skewing in that viewer of yours, because the RGB data width is aligned to 2 and alpha data is aligned to 4.
by Sir Kane
Fri Feb 22, 2013 7:21 pm
Forum: Graphic file formats
Topic: How do I read a "skewed" image?
Replies: 22
Views: 2428

Re: How do I read a "skewed" image?

What game is this actually from? And could you provide the exe/whatever? Format 4 seems to be RLE encoding of some kind, pic422 is 2*5 px in size, image data is 0xA for count, 3 bytes for color then 0 as end tag.
by Sir Kane
Fri Feb 22, 2013 1:41 pm
Forum: Graphic file formats
Topic: Working with RGB24 and RGB alpha masks for transparency
Replies: 6
Views: 1195

Re: Working with RGB24 and RGB alpha masks for transparency

Wrote a simple tool to convert the images to TGA, but not sure if output is correct. Could you upload/send some more samples and possibly a screenshot of them in game so I can compare?
http://sktest.aruarose.com/sample.tga
by Sir Kane
Fri Feb 22, 2013 12:34 am
Forum: Graphic file formats
Topic: Working with RGB24 and RGB alpha masks for transparency
Replies: 6
Views: 1195

Re: Working with RGB24 and RGB alpha masks for transparency

Header size seems to be 32 bytes, with width and height at 0xC (two ushorts). Followed by width*height*RGB, followed by width*height*A.
by Sir Kane
Sun Feb 03, 2013 2:24 pm
Forum: Game Archive
Topic: [REQ][PC]Crysis 3 .pak files
Replies: 75
Views: 53430

Re: [REQ][PC]Crysis 3 .pak files

Sorry, but I had to remove this.
by Sir Kane
Sat Feb 02, 2013 7:25 pm
Forum: Game Archive
Topic: [REQ][PC]Crysis 3 .pak files
Replies: 75
Views: 53430

Re: [REQ][PC]Crysis 3 .pak files

Sorry, but I had to remove this.
by Sir Kane
Sat Feb 02, 2013 4:11 pm
Forum: Game Archive
Topic: [REQ][PC]Crysis 3 .pak files
Replies: 75
Views: 53430

Re: [REQ][PC]Crysis 3 .pak files

Sorry, but I had to remove this.
by Sir Kane
Sat Feb 02, 2013 3:10 pm
Forum: Game Archive
Topic: [REQ][PC]Crysis 3 .pak files
Replies: 75
Views: 53430

Re: [REQ][PC]Crysis 3 .pak files

Sorry, but I had to remove this.
by Sir Kane
Fri Nov 16, 2012 7:02 pm
Forum: Code Talk
Topic: Algorithm for packing files into archive and fast access
Replies: 1
Views: 1838

Re: Algorithm for packing files into archive and fast access

Save file data at the start end the table at the end. Then maybe put CRC32 or some other hash values in the table and sort it by them. Then to locate a file, you hash the passed filename and do a binary search for it. Also need to normalize the path before hashing, so you get the correct hash.
by Sir Kane
Wed Sep 05, 2012 1:20 am
Forum: 3D/2D models
Topic: Kung Fu Strike: The Warriors Rise (*.a3d)
Replies: 13
Views: 1285

Re: Kung Fu Strike: The Warriors Rise (*.a3d)

The game is written in some .NET language. Use .NET reflector on it and you will find the complete spec for the model format.