Packer and unpacker for Wanted guns (.pkf format)

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
User avatar
Savage
VIP member
VIP member
Posts: 560
Joined: Sun Apr 17, 2005 11:00 am
Has thanked: 16 times
Been thanked: 17 times

Packer and unpacker for Wanted guns (.pkf format)

Post by Savage » Tue Apr 26, 2005 11:10 pm

I think it's easy, i don't found compression.
I send a small file, like example.
All game it's this structure:
Data\Fonts\fonts.pkf
Sounds\Sounds.pkf etc....

Thanks in advance
You do not have the required permissions to view the files attached to this post.

User avatar
Savage
VIP member
VIP member
Posts: 560
Joined: Sun Apr 17, 2005 11:00 am
Has thanked: 16 times
Been thanked: 17 times

Post by Savage » Fri Apr 29, 2005 1:26 pm

Nobody know this? :roll:

User avatar
Mr.Mouse
Site Admin
Posts: 4051
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 421 times
Been thanked: 575 times
Contact:

Post by Mr.Mouse » Fri Apr 29, 2005 2:14 pm

Yes, and it's easy.

Code: Select all

[HEAD]
uint32		Number of files

[FILE-INFO]
string_256	Full path of original file (string of 256 characters)
string_256	Filename (string of 256 characters)
uint32		Absolute offset of file in archive
uint32		unknown (0) : perhaps compression yes/no (0 = no)
uint32 		Size of file in bytes (perhaps un/compressed size)
uint32		Size of file in bytes (perhaps un/compressed size)

[FILE-DATA]

User avatar
friendsofwatto
VVIP member
VVIP member
Posts: 535
Joined: Wed Jun 30, 2004 3:01 pm
Location: Australia
Been thanked: 13 times
Contact:

Post by friendsofwatto » Sat Apr 30, 2005 3:44 am

Alright, here is the script...

Code: Select all

ImpType Standard ;
Get FNum Long 0 ;
For n = 1 to FNum ;
SavePos JP 0 ;
Math JP += 256 ;
GoTo JP 0 ;
Get FN String 0 ;
Math JP += 256 ;
GoTo JP 0 ;
SavePos FOO 0 ;
Get FO Long 0 ;
Get Dummy Long 0 ;
SavePos FSO 0 ;
Get FS Long 0 ;
Get Dummy Long 0 ;
Log FN FO FS FOO FSO ;
Next n ;
Or just grab the attached compiled script. Use it by going to Tools-->Use Custom Script

Note that I havn't tested the script on any of the actual archives though, so it could be buggy.

WATTO
watto@watto.org
http://www.watto.org
You do not have the required permissions to view the files attached to this post.
Game Extractor - Read and write thousands of game archives!

User avatar
Savage
VIP member
VIP member
Posts: 560
Joined: Sun Apr 17, 2005 11:00 am
Has thanked: 16 times
Been thanked: 17 times

Post by Savage » Sat Apr 30, 2005 10:17 am

How i can test the compiled script?
If i open the Gamex and tools>Run script custom, open a windows to make a registration and can't continue.

It'a another way to test the script's? And of course soon i pay the 5$ for this great program :D

User avatar
Mr.Mouse
Site Admin
Posts: 4051
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 421 times
Been thanked: 575 times
Contact:

Post by Mr.Mouse » Sat Apr 30, 2005 10:26 am

There's a lot of blood, sweat and tears gone into the program....That's why such nice functionality is for Friends of MultiEx only. :wink:

mambox
mega-veteran
mega-veteran
Posts: 189
Joined: Wed Mar 24, 2004 2:06 pm
Has thanked: 5 times
Been thanked: 4 times

Post by mambox » Sun May 01, 2005 2:40 pm

and dont expect to find a crack for a such nice tool!

at least for now..i've seen cardware cracked times ago...

Post Reply