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: 202
Joined: Wed Apr 07, 2010 7:38 pm
Has thanked: 35 times
Been thanked: 7 times

Shadows: Heretic Kingdoms [.pak]

Post by lostprophet »

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 | Previous translations: http://lostprophet.hu
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1823
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1058 times

Re: Shadows: Heretic Kingdoms [.pak]

Post by Ekey »

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: 202
Joined: Wed Apr 07, 2010 7:38 pm
Has thanked: 35 times
Been thanked: 7 times

Re: Shadows: Heretic Kingdoms [.pak]

Post by lostprophet »

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 | Previous translations: http://lostprophet.hu
merlinsvk
ultra-veteran
ultra-veteran
Posts: 411
Joined: Mon Oct 27, 2008 12:11 am
Location: Slovakia
Has thanked: 35 times
Been thanked: 121 times

Re: Shadows: Heretic Kingdoms [.pak]

Post by merlinsvk »

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: 202
Joined: Wed Apr 07, 2010 7:38 pm
Has thanked: 35 times
Been thanked: 7 times

Re: Shadows: Heretic Kingdoms [.pak]

Post by lostprophet »

Thank you, works perfectly :)
Hungarian translator | Previous translations: http://lostprophet.hu
Devilot
ultra-veteran
ultra-veteran
Posts: 443
Joined: Tue Sep 07, 2010 10:12 am
Has thanked: 159 times
Been thanked: 49 times

Re: Shadows: Heretic Kingdoms [.pak]

Post by Devilot »

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: 443
Joined: Tue Sep 07, 2010 10:12 am
Has thanked: 159 times
Been thanked: 49 times

Re: Shadows: Heretic Kingdoms [.pak]

Post by Devilot »

took the liberty of quoting you :)
Slappy
ultra-n00b
Posts: 9
Joined: Tue Jul 17, 2012 10:28 am
Has thanked: 4 times

Re: Shadows: Heretic Kingdoms [.pak]

Post by Slappy »

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: 411
Joined: Mon Oct 27, 2008 12:11 am
Location: Slovakia
Has thanked: 35 times
Been thanked: 121 times

Re: Shadows: Heretic Kingdoms [.pak]

Post by merlinsvk »

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 »

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: 411
Joined: Mon Oct 27, 2008 12:11 am
Location: Slovakia
Has thanked: 35 times
Been thanked: 121 times

Re: Shadows: Heretic Kingdoms [.pak]

Post by merlinsvk »

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 »

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.
hexaae
advanced
Posts: 43
Joined: Thu May 19, 2016 11:23 pm
Location: Italy
Has thanked: 7 times
Been thanked: 5 times

Re: Shadows: Heretic Kingdoms [.pak]

Post by hexaae »

Slappy wrote: 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!):
New version = Shadows Awakening?
Post Reply