The Forum is up for sale: XeNTaX Forum looking for new owner
painkiller .pak files
-
Thrasher91604
- ultra-n00b
- Posts: 7
- Joined: Wed Jun 30, 2004 3:19 am
n00b needs help
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!
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!
-
Thrasher91604
- ultra-n00b
- Posts: 7
- Joined: Wed Jun 30, 2004 3:19 am
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!
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!
-
Thrasher91604
- ultra-n00b
- Posts: 7
- Joined: Wed Jun 30, 2004 3:19 am
-
Thrasher91604
- ultra-n00b
- Posts: 7
- Joined: Wed Jun 30, 2004 3:19 am
-
Thrasher91604
- ultra-n00b
- Posts: 7
- Joined: Wed Jun 30, 2004 3:19 am
and ...
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.
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
No longer get the bass.dll error at init
Still get the same error when trying to replace the file in the archive
Still get the same error when trying to replace the file in the archive
-
Thrasher91604
- ultra-n00b
- Posts: 7
- Joined: Wed Jun 30, 2004 3:19 am
-
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:
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?
- 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?
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.
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.
