Join also our Discord channel! Click here.

Search found 58 matches

by hhrhhr
Tue Mar 20, 2018 5:30 pm
Forum: Game Archive
Topic: Surviving Mars .hpk
Replies: 1
Views: 1158

Surviving Mars .hpk

hpk format: // header, 36 bytes char magick[4]; // "BPUL" uint unk1; // 36 (header size or data offset??) uint unk2[5]; // 1, -1, 0, 0, 1 uint entry_offset; // absolute uint entry_size; // entry_offset + entry_size = EOF // data char filedata[xxx]; // file desc struct dir_entry[xxx] { uint ptr; // e...
by hhrhhr
Tue Jul 07, 2015 12:24 am
Forum: Game Archive
Topic: The Witcher 3 Wild Hunt (*.cache*.bundle)
Replies: 54
Views: 21784

Re: The Witcher 3 Wild Hunt (*.cache*.bundle)

Alianin wrote:

Code: Select all

lua: unpack_textures.lua:109: '=' expected near 'skip'
Your Lua does not support goto statement.
by hhrhhr
Sun Jun 07, 2015 1:42 am
Forum: Game Archive
Topic: The Witcher 3 Wild Hunt (*.cache*.bundle)
Replies: 54
Views: 21784

Re: The Witcher 3 Wild Hunt (*.cache*.bundle)

NuclearTester wrote:Unfortunately, I don't know how to unpack/repack
1) viewtopic.php?p=106145#p106145
2) https://github.com/hhrhhr/Lua-utils-for-Witcher-3
3) lua unpack_textures.lua texture.cache output_dir
4) profit
by hhrhhr
Thu May 21, 2015 3:44 pm
Forum: Game Archive
Topic: The Witcher 3 Wild Hunt (*.cache*.bundle)
Replies: 54
Views: 21784

Re: The Witcher 3 Wild Hunt (*.cache*.bundle)

"unpacker" is quite simple, but the decoder - not yet. and yes, strings are not just xored.
by hhrhhr
Wed May 20, 2015 3:35 am
Forum: Game Archive
Topic: The Witcher 3 Wild Hunt (*.cache*.bundle)
Replies: 54
Views: 21784

Re: The Witcher 3 Wild Hunt (*.cache*.bundle)

just in case, to inform you that I have no crystal ball to guess the desire and the contents of incorrect files.
by hhrhhr
Wed May 20, 2015 2:04 am
Forum: Game Archive
Topic: The Witcher 3 Wild Hunt (*.cache*.bundle)
Replies: 54
Views: 21784

Re: The Witcher 3 Wild Hunt (*.cache*.bundle)

use "<I4" instead of "<L".

> I[n]: an unsigned int with n bytes (default is native size)
by hhrhhr
Tue May 19, 2015 11:01 pm
Forum: Game Archive
Topic: The Witcher 3 Wild Hunt (*.cache*.bundle)
Replies: 54
Views: 21784

Re: The Witcher 3 Wild Hunt (*.cache*.bundle)

I can only advise to try all conversion options from here (http://www.lua.org/manual/5.3/manual.html#6.4.2) with string "DXT1", for example, find inoperative and inform maintainer of lua package.
by hhrhhr
Tue May 19, 2015 10:08 pm
Forum: Game Archive
Topic: The Witcher 3 Wild Hunt (*.cache*.bundle)
Replies: 54
Views: 21784

Re: The Witcher 3 Wild Hunt (*.cache*.bundle)

"<L " means "native sized little endian unsigned long". maybe you are using a big endian or/and 16-bit platform?

let's try one byte:

Code: Select all

lua -e "print(string.unpack('B', '\xFF'))
255     2
by hhrhhr
Tue May 19, 2015 9:24 pm
Forum: Game Archive
Topic: The Witcher 3 Wild Hunt (*.cache*.bundle)
Replies: 54
Views: 21784

Re: The Witcher 3 Wild Hunt (*.cache*.bundle)

I think that you are using the wrong Lua. try to test:

Code: Select all

> lua -e "print(_VERSION)"
Lua 5.3
> lua -e "print(string.unpack('<L', '\xD2\x02\x96\x49'))"
1234567890      5
by hhrhhr
Tue May 19, 2015 8:50 pm
Forum: Game Archive
Topic: The Witcher 3 Wild Hunt (*.cache*.bundle)
Replies: 54
Views: 21784

Re: The Witcher 3 Wild Hunt (*.cache*.bundle)

String files came with the release of the game. Anyone has any info on how to approach the new w3strings format? I think that the files are very simple, but the contents is just xor-ed. look at any br.w3strings , inside there is almost clean text (UTF16 with some html tags). Getting an error when I...
by hhrhhr
Sat May 16, 2015 3:34 am
Forum: Game Archive
Topic: The Witcher 3 Wild Hunt (*.cache*.bundle)
Replies: 54
Views: 21784

Re: The Witcher 3 Wild Hunt (*.cache*.bundle)

almost all .xbm files contain only a small preview image. the rest textures are in content?\texture.cache . here are a couple of scripts to extract the data — https://github.com/hhrhhr/Lua-utils-for-Witcher-3 , needed Lua 5.3 and lua-zlib. some maps from game (extracted, merged from tiles, cropped a...
by hhrhhr
Sun Sep 22, 2013 1:35 pm
Forum: Compressed files and methods
Topic: Silent Hunter Online encrypted .xml
Replies: 3
Views: 1024

Re: Silent Hunter Online encrypted .xml

ok, this is a "aes-cbc" from As3 Crypto Library ("aes-128-cbc" for quickbms) with key "47c2c1a998d1e94d".
by hhrhhr
Sun Sep 22, 2013 5:43 am
Forum: Compressed files and methods
Topic: Silent Hunter Online encrypted .xml
Replies: 3
Views: 1024

Re: Silent Hunter Online encrypted .xml

"QuickBMS comtype scanner 2" does not give any readable results (with cutted "CENC" header) :(
by hhrhhr
Sun Sep 22, 2013 4:55 am
Forum: Compressed files and methods
Topic: Silent Hunter Online encrypted .xml
Replies: 3
Views: 1024

Silent Hunter Online encrypted .xml

samples:
Image

any ideas?