The Forum is up for sale: XeNTaX Forum looking for new owner

painkiller .pak files

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Thrasher91604
ultra-n00b
Posts: 7
Joined: Wed Jun 30, 2004 3:19 am

n00b needs help

Post by Thrasher91604 »

Hey this is a great tool!

I'm trying to import an edited LUA file back into a Painkiller saved game pak to get around a game bug.

I get an import error.

I edited the LUA file with notepad.

I also tried importing the file with PainFull and got the same error.

Any help would be much appreciated!
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 680 times
Contact:

Post by Mr.Mouse »

Hmm, what file is that (PAK) and what LUA file? Can you give some details on the error?
Thrasher91604
ultra-n00b
Posts: 7
Joined: Wed Jun 30, 2004 3:19 am

Post by Thrasher91604 »

There's a bug in painkiller I'm trying to workaround.

The file I was unpacking was a save game file.
It's found in a save game folder and has the name "Save.dat"
It unpacked fine, and has lots of LUA files.
The particular LUA file I edited and tried to import back into the .dat archive was called "Kont_Big_009.CItem"

I also got a MultiEx start up error saying it couldn't find the bass.dll.
I have the latest MultiEx (4.0).
I have painkiller with patch 1.2 installed.
I am using win2k OS with SP4.

The inport error message was "cm32: error - reason ..." The rest of the message doesn't display since I have large fonts enable for my desktop and the text doesn't fit in the pop up window.

But here's a copy of the error log below -
MODMAIN: Initializing MC
INITMC: Loading Splash
INITMC: Getting mc32.exe path info
INITMC: Checking existence of MultiExDC
INITMC: MC_MRF = C:\Program Files\MultiEx Commander/data\config\mc.mrf
INITMC: Loading Connect Form
INITMC: Loading Options Form
INITMC: Getting Options
INITMC: Checking Debug Mode
INITMC: Checking Online Start
.]-WebUpdate: user selected :3
.9:19:53 AM- Main : Opening MRF file
INITMC: OpenMRF
INITMC: Mex_FindPlugins Starting
.-Main : Mex_FindPlugins
.-Main : Mex_FindPlugins->Searching
.-Main : Mex_FindPlugins->PGN at C:\Program Files\MultiEx Commander\data\plugins\pak\Painkiller.dll for Painkiller
.-Main : Mex_FindPlugins->PGN at C:\Program Files\MultiEx Commander\data\plugins\wad\Sacrifice.dll for Sacrifice
MAINMOD: Checking registry entry
MAINMOD: Loading Main Form
.- Main : Loading
.- Main : Creating Panels
.- Main : Setting Variables
.- Main : Preparing Datafile List Columns
.- Main : Setting Additional Variables
.- Main : Loading SupportForm
.- Main : Setting FileFilter
.- Main : Enabling All
.- Main : Creating New Instance
.- Main : Showing Program
.53.File not found: bass.dll
MAINMOD: Processing any command line pars
MAINMOD: Possible pars found: C:\DOCUME~1\mbennett\Desktop\Save.pak
MAINMOD: Possible Archive Filename found: C:\DOCUME~1\mbennett\Desktop\Save.pak
MAINMOD: Loading StartUp Form
MAINMOD: Opening Archive C:\DOCUME~1\mbennett\Desktop\Save.pak as 9/16
.-Main : RunAnalysis Started
.- Main : RunAnalysisProcess: Format=PGN
.-Main : RunAnalysis->Attempting to connect to Plugin
.-Main : RunAnalysis->Registering attempt of C:\Program Files\MultiEx Commander\data\plugins\pak\Painkiller.dll
.-Main : RunAnalysis->Progid to connect to Painkiller.archive
.- Main : PlugIn Called: Painkiller PAK Files Extractor version 1.4, type (2), importation(1), varsreturned(5), restypespec(0), cancreate(1)
.Main : RunAnalysisProcess: Starting ProcessListFilePGN
.Main: ProcessListFile: Analyzing Content
MAINMOD: Unloading Splash
.!!!!Import>>ERROR :

Thanks for the quick reply!
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 680 times
Contact:

Post by Mr.Mouse »

Please attach that save.dat here, if you will, so i can open it.

I tried another save.dat, and everything worked fine, replacing and stuff.

Also, I sneakily uploaded a new setup, to include bass.dll and another version of the Painkiller dll. Please install that too.
Thrasher91604
ultra-n00b
Posts: 7
Joined: Wed Jun 30, 2004 3:19 am

Post by Thrasher91604 »

The save.dat is attached below
Thrasher91604
ultra-n00b
Posts: 7
Joined: Wed Jun 30, 2004 3:19 am

Post by Thrasher91604 »

Attach didn't work, trying again with fake extension (it's original name is "save.dat")
You do not have the required permissions to view the files attached to this post.
Thrasher91604
ultra-n00b
Posts: 7
Joined: Wed Jun 30, 2004 3:19 am

and ...

Post by Thrasher91604 »

Here's another tidbit of info that may help explain the error.

I had to exchange the save.dat extension to .pak to open it.
Thrasher91604
ultra-n00b
Posts: 7
Joined: Wed Jun 30, 2004 3:19 am

4.0b Version Results

Post by Thrasher91604 »

No longer get the bass.dll error at init :)

Still get the same error when trying to replace the file in the archive :(
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 680 times
Contact:

Post by Mr.Mouse »

I tried and it worked here.

I could replace it.

So, extraction works for you, it's only the replacing that doesn't?
Thrasher91604
ultra-n00b
Posts: 7
Joined: Wed Jun 30, 2004 3:19 am

Post by Thrasher91604 »

The editor let me replace it, but then when I try to create a new archive with the replaced file I get the aforementioned error. The file I tried to replace was "Kont_Big_009.CItem"

Is there a way to save the archive with the replaced file without having to create a new archive?
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 680 times
Contact:

Post by Mr.Mouse »

Well, what I do is this.

- Open the save.dat
- Switch to the Editor
- Either browse to the file in question (Kont_Big etc) and click the arrow to the right (whilst having selected Kont_Big etc in the save.dat) or double-click on the <not replaced> of Kont_Big etc to search for it.
- Now it is targeted for replacement, you can then click the large "Replace targets" button (second from the left) and then it should replace it.

It replaces immediately, you don't have to go to "Create new archive" or something. Your save.dat will contain the replacement when you have clicked the "Replace Targets" button.

Did you use the "Create Archive" option?
Guest

Post by Guest »

I get the same error both ways (by replacing or creating a new archive) :(
Linear
ultra-n00b
Posts: 1
Joined: Sat Dec 24, 2005 10:55 am

Post by Linear »

First of all , i would like to thank Mr.Mouse for this0 great tool !

Ok, now to the point - i'm pretty new to hacking file formats and i tried your tool. It all worked just fine, except with the first PainKiller demo ( the one with the burning city with zombies, the oriental palace etc.). I heard it it's just a pk zip archive and it uses modified identity header.
So my question is , how i would go about opening the first demo pak's , what i need to modify and how ? Is there a tool that does that, or i would have to modify the zip32 source and recompile , in order to make it recognize and extract that "new" archive format ?

Thanks in advance.
Post Reply