Post tutorial Report RSS How to de-compress the .pak files [not finished, need testing]

This is a tutorial on how to de-compress the .pak files of the game (since workshop.exe is worthless). I hope this will allow us to expand our modding potential on this game. Based on a conversation I had with mister ggrigg43, the .pak files are huffman-coded. However they are not password protected (I found that myself). After an a research I did...

Posted by on - Intermediate Starting a mod

ANY OF YOU READING THIS ARTICLE, AND TRYING THIS METHOD, PLEASE REPORT BACK FOR ME YOUR RESULTS AT THE COMMENTS, SO WE CAN TALK ABOUT THINGS YOU ENCOUNTERED.


I hope this will allow us to expand our modding potential on this game.

Based on a conversation I had with mister ggrigg43, the .pak files are huffman-coded. However they are not password protected (I found that myself).

Our modding potential on this game s very limited, limited to only mapping. This is because the only tool we have is the Workshop.exe. Workshop.exe is however a broken programme, unfinished and neglected. Studying is code, I found out that it was meant for full-cover modding, not just mapping, but for unknown reasons the creators of the game removed it's modding features, leaving only the mapping ones. Leftovers of such code, suggest that the .pak files are ACTUALLY EDITABLE (with the proper tool), which means they are not password protected. That doesnt not make things any easier for us, I am afraid...

After a research I did I found out this : Forum.xentax.com This article suggest a way to unpack the .pak files.

I tested out it myself. Because the instructions on the link above are not so clear, I will tell you what to do :

1. Download this Forums.civfanatics.com

2. Install it.

3. Open the exe.

4. Press "File" -> "New"

5. Browse to your joint task force directory that contains the .pak files.

6. There will be two collumns. The left one that will contain the directory of the pak files and another at the right, a blank, greyed-out collumn. At the middle, press the "New PAK File"

7. The greyed-out collumn will now become available. In the left collunm select the "jtf.pak" and press the "Add >>"

8. Under the left collumn, there is a space "Output folder". Change that.

9. After that go to "PAK" and press "Build"

Now here comes a problem. The title of this article says "Not finished, pending for test" Here is why :

When I do that ("PAK" -> "Build"), a warning comes up saying "Out of memory". I dont really know what causes this error, and that's why I have yet to test this tutorial.

But if this error doesnt happen to you, you continue the steps.

10. After that press again "PAK" and then press "Unpack...". If the error didnt happen to you, a file will have been created in the directory you had chose at step 8. That file will have a .FPK extension an it's name will probably be "Pak0" ("Pak0.FPK"). After clicknng "Unpack...", browse till you find the Pak0.FPK.

11. Select it, and then another browser will come up. Select the directory you want the FPK file to be unpacked to.

12. If you manage to follow all these steps, the FPK file will be unpacked, along with the pak file we compressed in it, automaticly.

This brings us up to the conclusion, that the .fpk files of Sid Meier's Civilization have the same compression method/algorithm/form with the .pak files of JTF.

I have yet to find out why or how... Not that it matters, but curiosity flows inside me

Anyway this is IMPORTANT:

ANY OF YOU READING THIS ARTICLE, AND TRYING THIS METHOD, PLEASE REPORT BACK YOUR RESULTS AT THE COMMENTS FOR ME, SO WE CAN TALK ABOUT THINGS YOU ENCOUNTERED.

THANK YOU.




Post comment Comments
Megalolpronoob
Megalolpronoob - - 208 comments

Hello! I tested it right now, so I have the same proble - Out of memory. Maybe this PakBuilder is outdated?

Reply Good karma Bad karma+2 votes
Megalolpronoob
Megalolpronoob - - 208 comments

BUT LOOK! YEEES, I build a half of Pak file and then press Unpack this FPK and yeees! It works! I unpacked some files!

Reply Good karma Bad karma+2 votes
Megalolpronoob
Megalolpronoob - - 208 comments

Oh, I was wrong, this program upacked files that was in JTF folder. Why? It's strange.

Reply Good karma Bad karma+2 votes
GreekDubbingsMaker Author
GreekDubbingsMaker - - 64 comments

What ? You got me confused with all these comments ...

Reply Good karma+2 votes
Megalolpronoob
Megalolpronoob - - 208 comments

So, I did all steps. I creat new folder just with JTF02.pak (17 mb)
Then I build and unpack FPK file without errors but... When I unpacked it, there was the same JTF02.Pak file and I can't open it.

Reply Good karma Bad karma+2 votes
GreekDubbingsMaker Author
GreekDubbingsMaker - - 64 comments

This shouldn't have happend as I tested it out myself. Though the fact that you also get the same error worries me... but since we found out that the pak. files have the same form as the .fpk files of Sid Meier's Civ. this opens up space for more possible ways to open the .pak files. Since this method failed, I am now considering a new one, that I will post soon

Reply Good karma+3 votes
Megalolpronoob
Megalolpronoob - - 208 comments

Ok! We'll wait!

Reply Good karma Bad karma+2 votes
Yurand2000
Yurand2000 - - 3 comments

Hello guys and I've tryed to do the same but without results. I have done some other tests and I get out of memory even if i compress only a tiny .ini file, so what's the problem here?

Thanks, Yurand2000

Reply Good karma Bad karma+2 votes
GreekDubbingsMaker Author
GreekDubbingsMaker - - 64 comments

Well I dont really know... the program must be broken so there is little hope it will work

Reply Good karma+2 votes
Yurand2000
Yurand2000 - - 3 comments

Hello again. After understanding on the internet how does the huffman coding works, if you guys are still interested in modding JTF, I'll try to make a decompiler using the huffman coding.

Reply Good karma Bad karma+4 votes
GreekDubbingsMaker Author
GreekDubbingsMaker - - 64 comments

If you could, that would be something brilliant!!!
Here's my email www.bombers@gmail.com if you need something

Reply Good karma+2 votes
Megalolpronoob
Megalolpronoob - - 208 comments

Nice man, hope You ll make it!

Reply Good karma Bad karma+2 votes
AFM-RAYAN
AFM-RAYAN - - 224 comments

Please everyone can upload file Workshop.exe
Thanks

Reply Good karma Bad karma+1 vote
AFM-RAYAN
AFM-RAYAN - - 224 comments

Please everyone can upload file Workshop.exe
Mansoori54@gmail.com
Thanks

Reply Good karma Bad karma+1 vote
Lukyz
Lukyz - - 9 comments

After all the years no one was able to find out how to unpack those files?
That's really a shame.

Reply Good karma Bad karma+2 votes
***Geroj***
***Geroj*** - - 2,161 comments

looks like no. Co ta tak zaujala tato praveka rtska?

Reply Good karma Bad karma+2 votes
Megalolpronoob
Megalolpronoob - - 208 comments

Hi! I just try it out again and I have no error! But this programm didn't unpack *.pak files, just copied all files from JTF folder... eh(

Reply Good karma Bad karma+2 votes
BaronOfNoobs
BaronOfNoobs - - 1 comments

Hey there! i wonder if anyone opened those damm files, i tried your method and i got out of memory as well, i wonder if its because its an old program and its incompatible with windows 10 or something. I also tried other methods including : renaming the format to zip, using gfcscape(it says invalid format signature) and i also tried to use pakexplorer but it also didn't revealed what was there. Is there anyone today that is trying to decompile the pak files?

Reply Good karma Bad karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: