Shadows: Heretic Kingdoms [.pak]

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
User avatar
lostprophet
mega-veteran
mega-veteran
Posts: 197
Joined: Wed Apr 07, 2010 7:38 pm
Has thanked: 35 times
Been thanked: 5 times

Shadows: Heretic Kingdoms [.pak]

Post by lostprophet » Sat Jun 14, 2014 11:41 pm

Does anyone know how to edit this .pak file? I suspect it contains the text files of the game.
I can't even find info on it as what engine the game uses.
http://www57.zippyshare.com/v/68212829/file.html

Any help is greatly appreciated.
Hungarian translator and member of Indies4indies.com | Previous translations: http://lostprophet.hu

Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1638
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 62 times
Been thanked: 817 times

Re: Shadows: Heretic Kingdoms [.pak]

Post by Ekey » Sat Jun 14, 2014 11:55 pm

Seems encrypted

Edited: just xored zip

Code: Select all

filexor "\x29\x61\x53\x33"
get SIZE asize
log "decrypted_file.dat" 0 SIZE 

User avatar
lostprophet
mega-veteran
mega-veteran
Posts: 197
Joined: Wed Apr 07, 2010 7:38 pm
Has thanked: 35 times
Been thanked: 5 times

Re: Shadows: Heretic Kingdoms [.pak]

Post by lostprophet » Sun Jun 15, 2014 7:58 am

Ekey wrote:Seems encrypted

Edited: just xored zip

Code: Select all

filexor "\x29\x61\x53\x33"
get SIZE asize
log "decrypted_file.dat" 0 SIZE 
So I should use aluigi's xor to decrypt and then just unzip with eg. 7-zip?

Like this?
xor.exe scripts.pak scripts2.pak \x29\x61\x53\x33
Hungarian translator and member of Indies4indies.com | Previous translations: http://lostprophet.hu

merlinsvk
ultra-veteran
ultra-veteran
Posts: 409
Joined: Mon Oct 27, 2008 12:11 am
Location: Slovakia
Has thanked: 35 times
Been thanked: 114 times

Re: Shadows: Heretic Kingdoms [.pak]

Post by merlinsvk » Sun Jun 15, 2014 12:57 pm

Use Aluigi's QuickBMS.

I made similar script. Can be used to pak -> zip and vice versa.

Code: Select all

getdstring SIGN 2
filexor "\x29\x61\x53\x33"
get SIZE asize
get NAME basename

if SIGN == "PK"
 string NAME += ".pak_new"
elif SIGN == "y*"
 string NAME += ".zip"
else
 cleanexit
endif

log NAME 0 SIZE

User avatar
lostprophet
mega-veteran
mega-veteran
Posts: 197
Joined: Wed Apr 07, 2010 7:38 pm
Has thanked: 35 times
Been thanked: 5 times

Re: Shadows: Heretic Kingdoms [.pak]

Post by lostprophet » Sun Jun 15, 2014 7:09 pm

Thank you, works perfectly :)
Hungarian translator and member of Indies4indies.com | Previous translations: http://lostprophet.hu

Devilot
ultra-veteran
ultra-veteran
Posts: 383
Joined: Tue Sep 07, 2010 10:12 am
Has thanked: 138 times
Been thanked: 40 times

Re: Shadows: Heretic Kingdoms [.pak]

Post by Devilot » Fri Aug 29, 2014 1:13 pm

merlinsvk wrote:Use Aluigi's QuickBMS.

I made similar script. Can be used to pak -> zip and vice versa.

Code: Select all

getdstring SIGN 2
filexor "\x29\x61\x53\x33"
get SIZE asize
get NAME basename

if SIGN == "PK"
 string NAME += ".pak_new"
elif SIGN == "y*"
 string NAME += ".zip"
else
 cleanexit
endif

log NAME 0 SIZE
works, even as a repack. made my very first mod, and I think the first mod for the game, with this :D

Devilot
ultra-veteran
ultra-veteran
Posts: 383
Joined: Tue Sep 07, 2010 10:12 am
Has thanked: 138 times
Been thanked: 40 times

Re: Shadows: Heretic Kingdoms [.pak]

Post by Devilot » Mon Sep 08, 2014 4:56 pm

took the liberty of quoting you :)

Slappy
ultra-n00b
Posts: 5
Joined: Tue Jul 17, 2012 10:28 am
Has thanked: 3 times

Re: Shadows: Heretic Kingdoms [.pak]

Post by Slappy » Sun Jun 19, 2016 7:39 am

Devilot wrote:took the liberty of quoting you :)
Hey guys.

Did something change?

In new version of game I cannot open the unpacked .zip files (with xor x29x61x53x33 from above)?

Am I doing something wrong? Here is file from new game (.zip extension is only so I can upload the file, this is .pak file!):
You do not have the required permissions to view the files attached to this post.

merlinsvk
ultra-veteran
ultra-veteran
Posts: 409
Joined: Mon Oct 27, 2008 12:11 am
Location: Slovakia
Has thanked: 35 times
Been thanked: 114 times

Re: Shadows: Heretic Kingdoms [.pak]

Post by merlinsvk » Sun Jun 19, 2016 10:09 am

New XOR key:

Code: Select all

\x33\x29\x61\x53

duysharp1998
ultra-n00b
Posts: 2
Joined: Sat Jul 09, 2016 11:37 am

Re: Shadows: Heretic Kingdoms [.pak]

Post by duysharp1998 » Sat Jul 09, 2016 12:24 pm

merlinsvk wrote:New XOR key:

Code: Select all

\x33\x29\x61\x53
Thanks for the useful code :D . I've unpacked the scripts.pak and edited some details. But i don't know how to pack it the script folder into .pak :|
any ideas ?

merlinsvk
ultra-veteran
ultra-veteran
Posts: 409
Joined: Mon Oct 27, 2008 12:11 am
Location: Slovakia
Has thanked: 35 times
Been thanked: 114 times

Re: Shadows: Heretic Kingdoms [.pak]

Post by merlinsvk » Sat Jul 09, 2016 8:57 pm

You used BMS script for decrypt .pak to .zip.
Then you extracted that zip file.

Pack all extracted files into new zip, and use the same BMS script on it.

duysharp1998
ultra-n00b
Posts: 2
Joined: Sat Jul 09, 2016 11:37 am

Re: Shadows: Heretic Kingdoms [.pak]

Post by duysharp1998 » Mon Jul 11, 2016 1:32 pm

merlinsvk wrote:You used BMS script for decrypt .pak to .zip.
Then you extracted that zip file.

Pack all extracted files into new zip, and use the same BMS script on it.
ty :D it's work.

Post Reply