Jump to content

Photo

PAC Extractor 2.0 (now with -all option)


  • Please log in to reply
14 replies to this topic

#1
legomoe

legomoe

    Regular

  • Silver Members
  • PipPipPip
  • 53 posts
I recently found a couple of bugs in my old PAC Tools, so I've gone and re-written a new version of my PAC Extractor program.

You may ask why I haven't re-written the PAC builder program. Well, the answer is that I have discovered that Alpha Team will read files directly from the program's folder (all files must be in the same folder as the .exe). This is great for modding possibilities, since if a modified version of a file exists in the 'LEGO Alpha Team' folder, the game will read it INSTEAD of the one in the .pac archives. It also means that to mod the game, no .pac builder is required (I also can't figure out how to properly rebuild a .pac file, so that's your real reason ;) )

Anyway, here's a link to the file:

Please Login or Register to see this Hidden Content



It can also extract ALL of the games .pac files at once. Just extract 'PACExtracter2.exe' to your 'LEGO Alpha Team' folder and run it with '-all'. Example: "PACExtracter2.exe -all" (without the quotes)
NOTE: When using '-all', It will extract each pack file into a folder of the same name. If you modify any of these files, you'll need to move them into the same folder as the 'LEGOATeam.exe' file to make the game load them.

EDIT: As requested by le717, here is a utility for rebuilding .pac archives.

Please Login or Register to see this Hidden Content



To use it, extract the exe to your hard drive and run it from the command line. You'll have to pass it 2 parameters: the path to an existing copy of the .pac file you want to rebuild, and the path to the folder that contains all the extracted files. The program should bundle all the extracted files back into the .pac file.

NOTE: If the program fails for some reason, it might corrupt the .pac file it's working with, so make sure to BACK UP your .pac files before trying to rebuild them.
  • jamesster, le717, arsene4 and 2 others thanked this

#2
jamesster

jamesster

  • Forum Moderators
  • PipPipPipPipPip
  • 2,755 posts
brb, reskinning Dash into the Infomaniac

#3
legomoe

legomoe

    Regular

  • Silver Members
  • PipPipPip
  • 53 posts

brb, reskinning Dash into the Infomaniac

This should be good... :)

Actually, someone should make a LEGO Island mod for Alpha Team. Reskin all the characters, replace the sound and the music, etc..
Didn't someone on the forum here say they were trying to crack the Nif 7.0 model format that Alpha Team uses? That would be totally Mod-tastic!

EDIT: Speaking of modding, ever wonder what would happen if the game continued after bad stuff happens to the team members?
Spoiler

Edited by legomoe, 10 August 2012 - 03:52 PM.


#4
Le Vee

Didn't someone on the forum here say they were trying to crack the Nif 7.0 model format that Alpha Team uses? That would be totally Mod-tastic!


Sparky said he was, and I was (supposed) to be collabing with me. I've got nothing as of yet, haven't had time to check it out, and IDK about him.

#5
jamesster

jamesster

  • Forum Moderators
  • PipPipPipPipPip
  • 2,755 posts
Been a tad busy, I'll do the Infomaniac skin sometime tomorrow.

EDIT: Speaking of modding, ever wonder what would happen if the game continued after bad stuff happens to the team members?

Spoiler


... The heck did you do? xD

#6
legomoe

legomoe

    Regular

  • Silver Members
  • PipPipPip
  • 53 posts
I modified the MM.PUZ file, I just added the extra team members from CREDITS.PUZ, and then changed the object types from team members to zombies. All the .PUZ files are text-based, so editing them like this is a sinch!

Sparky said he was, and I was (supposed) to be collabing with me. I've got nothing as of yet, haven't had time to check it out, and IDK about him.

Actually, since the .PUZ files are so easy to edit, if we could figure out how to load the Nif files, I would love to try and make a 3D map editor for Alpha Team.
It's a stretch, but if we could figure out how to re-import Nif files back into the game, we might even be able to make our own totally custom levels!!!

#7
johnfilmsia

johnfilmsia

    Newbie

  • Members
  • Pip
  • 1 posts
Wow haha I just today happened to load up Alpha Team and open up the .pac files for the heck of it. I look it up today and find you've just posted exactly what I needed! What a weird coincidence... :o Thanks so much!

#8
legomoe

legomoe

    Regular

  • Silver Members
  • PipPipPip
  • 53 posts

Wow haha I just today happened to load up Alpha Team and open up the .pac files for the heck of it. I look it up today and find you've just posted exactly what I needed! What a weird coincidence... :o Thanks so much!

You're welcome! I'm always happy when people use my tools!

And while we wait for Jamesster to bring the Infomaniac to Alpha Team, the Infomaniac can still remotely connect via TeeVee:
Spoiler

  • jamesster and le717 thanked this

#9
Le Vee

And while we wait for Jamesster to bring the Infomaniac to Alpha Team, the Infomaniac can still remotely connect via TeeVee:
-snip-


That is the best mod I've seen. :P

It's a stretch, but if we could figure out how to re-import Nif files back into the game, we might even be able to make our own totally custom levels!!!


It's not too much of stretch, that is, if everything else can be modded. My rule of thumb for game modding, if you can import it, you can usually be able to export it. I'm sure those FINs can be imported, and exporting them is the reverse of importing. Now if all the other files support modding of the levels IDK, but if they do, this sounds like an easy game to mod.

Now for my question about the PAC Extractor:

Sadly, the AT Japanese Demo doesn't support running without the PACs. And that demo is all I have access to, so I have to rebuild the PACs for modding. I do know you said

I also can't figure out how to properly rebuild a .pac file, so that's your real reason ;)


But would it be possible to take the Builder code from V1 and modify it to work like V2? V1 requiers a filelist.txt, and one was not created when I used the -all option in V2, and even if one was, it wouldn't work in V1. And while I can use command line, typing the paths to the exe, the file list, and the extracted files can at best be frustating, and if something was wrong, I have to redo the entire thing. You could also make it like JMMB's Python JAM Extractor, where you can drag the folders onto the EXE and it will create an PAC. A Builder would really help is needed in my modding research for the reason stated at the beginning. ;)

#10
Le Vee

Alright legomoe (or is it just moe. I can hear Wall-E saying "Moe!" right now... :P), I have some more info about the your PAC builder that better explains why a new one is needed.

FileList.txt is created by V1 of your extractor, but not by V2. V1 of your builder has to have FileList.txt, and since there is no V2, I have to use V1 of your tools. FlisList/txt has some numeriac string at the end of each file, and I did think it was the file size expressed in bytes, it's not.

I will tell you what I'm doing, but I'm going to mask the contents because I haven't testing anything.

I have two modded files, A and B. I need to inster them into Pacman.pac, becuase that is where they go. When I added A and B into the vanilla, unmodded files (The Others) and recompressed it into Pacman1.pac. But A and B were not compressed, as stated by the tool itself. I edited FileList.txt to remove the numbers after the names of A and B, and tried to compress again. This time, only The Others were compressed,not A and B, and all Others listed after A and B were not compressed either.

I moved A and B to the bottom of FileList, and tried it again. This time. A was compressed, but not B. I had to extract the pac (called Pacman3.pac), edit FileList, add B into the folder, and compress again (Pacman4.pac). When I loaded the game with this pac, The Others were all active, but A and B were not.

I'm thinking A and B did not activate because I had to edit FileList, and by not understanding why FileLast had those numbers and removing then, I broke the pac.

That's why I think you should make V2 of your Builder. Besides, having a buikder is good. Just becuase it runs without the PACs doesn't mean one shouldn't be created. We don't know of any AT copies that act like Racers 2001, but they just might be real, and those people who ownded that copy couldn't mod, becuase a builder was never created. Maybe JMMB, the great JAM Extractor creator, could download the Japanese Demo and take a whack at the PACs...

#11
legomoe

legomoe

    Regular

  • Silver Members
  • PipPipPip
  • 53 posts

Alright legomoe (or is it just moe. I can hear Wall-E saying "Moe!" right now... :P), I have some more info about the your PAC builder that better explains why a new one is needed.

FileList.txt is created by V1 of your extractor, but not by V2. V1 of your builder has to have FileList.txt, and since there is no V2, I have to use V1 of your tools. FlisList/txt has some numeriac string at the end of each file, and I did think it was the file size expressed in bytes, it's not.

I will tell you what I'm doing, but I'm going to mask the contents because I haven't testing anything.

I have two modded files, A and B. I need to inster them into Pacman.pac, becuase that is where they go. When I added A and B into the vanilla, unmodded files (The Others) and recompressed it into Pacman1.pac. But A and B were not compressed, as stated by the tool itself. I edited FileList.txt to remove the numbers after the names of A and B, and tried to compress again. This time, only The Others were compressed,not A and B, and all Others listed after A and B were not compressed either.

I moved A and B to the bottom of FileList, and tried it again. This time. A was compressed, but not B. I had to extract the pac (called Pacman3.pac), edit FileList, add B into the folder, and compress again (Pacman4.pac). When I loaded the game with this pac, The Others were all active, but A and B were not.

I'm thinking A and B did not activate because I had to edit FileList, and by not understanding why FileLast had those numbers and removing then, I broke the pac.

That's why I think you should make V2 of your Builder. Besides, having a buikder is good. Just becuase it runs without the PACs doesn't mean one shouldn't be created. We don't know of any AT copies that act like Racers 2001, but they just might be real, and those people who ownded that copy couldn't mod, becuase a builder was never created. Maybe JMMB, the great JAM Extractor creator, could download the Japanese Demo and take a whack at the PACs...


Don't worry, I understant why you need a PAC builder.

The reason that V1 created 'FileList.txt' was because those numbers that appear after each file name are found in ech .pac file, and I have no clue what they mean. the game will also crash when trying to load a .pac file if those numbers arn't right. Do with V1 I cheated and when you extract a .pac file, it writes all those 'magic' numbers to the list file, then when you rebuild the .pac file it puts all those numbers back in their place, and the game loads without a problem.

I don't have much time right now, but I'll see if I can get around to making a PAC builder that will be compatible with the V2 extractor!

EDIT: I've created a program to rebuild .pac archives. Here's the link:

Please Login or Register to see this Hidden Content


I've edited my first post with instructions on how to use it. Make sure you read them.

Edited by legomoe, 17 August 2012 - 08:13 AM.

  • le717 thanked this

#12
Sharkly

Many thanks to you, my friend! Great tool, the -all option is a lifesaver.

#13
ramehedi

ramehedi

    Newbie

  • Members
  • Pip
  • 1 posts

I recently found a couple of bugs in my old PAC Tools, so I've gone and re-written a new version of my PAC Extractor program.

You may ask why I haven't re-written the PAC builder program. Well, the answer is that I have discovered that Alpha Team will read files directly from the program's folder (all files must be in the same folder as the .exe). This is great for modding possibilities, since if a modified version of a file exists in the 'LEGO Alpha Team' folder, the game will read it INSTEAD of the one in the .pac archives. It also means that to mod the game, no .pac builder is required (I also can't figure out how to properly rebuild a .pac file, so that's your real reason e345633.png )

Anyway, here's a link to the file:

Please Login or Register to see this Hidden Content



It can also extract ALL of the games .pac files at once. Just extract 'PACExtracter2.exe' to your 'LEGO Alpha Team' folder and run it with '-all'. Example: "PACExtracter2.exe -all" (without the quotes)
NOTE: When using '-all', It will extract each pack file into a folder of the same name. If you modify any of these files, you'll need to move them into the same folder as the 'LEGOATeam.exe' file to make the game load them.

EDIT: As requested by le717, here is a utility for rebuilding .pac archives.

Please Login or Register to see this Hidden Content



To use it, extract the exe to your hard drive and run it from the command line. You'll have to pass it 2 parameters: the path to an existing copy of the .pac file you want to rebuild, and the path to the folder that contains all the extracted files. The program should bundle all the extracted files back into the .pac file.

NOTE: If the program fails for some reason, it might corrupt the .pac file it's working with, so make sure to BACK UP your .pac files before trying to rebuild them.

 

Alright legomoe (or is it just moe. I can hear Wall-E saying "Moe!" right now... e342175.png), I have some more info about the your PAC builder that better explains why a new one is needed.

FileList.txt is created by V1 of your extractor, but not by V2. V1 of your builder has to have FileList.txt, and since there is no V2, I have to use V1 of your tools. FlisList/txt has some numeriac string at the end of each file, and I did think it was the file size expressed in bytes, it's not.

I will tell you what I'm doing, but I'm going to mask the contents because I haven't testing anything.

I have two modded files, A and B. I need to inster them into Pacman.pac, becuase that is where they go. When I added A and B into the vanilla, unmodded files (The Others) and recompressed it into Pacman1.pac. But A and B were not compressed, as stated by the tool itself. I edited FileList.txt to remove the numbers after the names of A and B, and tried to compress again. This time, only The Others were compressed,not A and B, and all Others listed after A and B were not compressed either.

I moved A and B to the bottom of FileList, and tried it again. This time. A was compressed, but not B. I had to extract the pac (called Pacman3.pac), edit FileList, add B into the folder, and compress again (Pacman4.pac). When I loaded the game with this pac, The Others were all active, but A and B were not.

I'm thinking A and B did not activate because I had to edit FileList, and by not understanding why FileLast had those numbers and removing then, I broke the pac.

That's why I think you should make V2 of your Builder. Besides, having a buikder is good. Just becuase it runs without the PACs doesn't mean one shouldn't be created. We don't know of any AT copies that act like Racers 2001, but they just might be real, and those people who ownded that copy couldn't mod, becuase a builder was never created. Maybe JMMB, the great JAM Extractor creator, could download the Japanese Demo and take a whack at the PACs...


Don't worry, I understant why you need a PAC builder.

The reason that V1 created 'FileList.txt' was because those numbers that appear after each file name are found in ech .pac file, and I have no clue what they mean. the game will also crash when trying to load a .pac file if those numbers arn't right. Do with V1 I cheated and when you extract a .pac file, it writes all those 'magic' numbers to the list file, then when you rebuild the .pac file it puts all those numbers back in their place, and the game loads without a problem.

I don't have much time right now, but I'll see if I can get around to making a PAC builder that will be compatible with the V2 extractor!

EDIT: I've created a program to rebuild .pac archives. Here's the link:

Please Login or Register to see this Hidden Content


I've edited my first post with instructions on how to use it. Make sure you read them.

I don't understand how to Extrac the .pac file :( can u help me?



#14
TheDoctor

[ unnecessary quote nonsense]
I don't understand how to Extrac the .pac file :( can u help me?

Did you read the README file included with the download that had a Usage section?

Spoiler


#15
Le Vee


I have discovered that Alpha Team will read files directly from the program's folder (all files must be in the same folder as the .exe). This is great for modding possibilities, since if a modified version of a file exists in the 'LEGO Alpha Team' folder, the game will read it INSTEAD of the one in the .pac archives.

 

Does this mean each folder corresponding the the .pac name must be present in the same folder as the exe, or all the extracted files have to be dumped in the root? I tried the latter, but the game kept crashing. Maybe I was doing it wrong...


  • Knux567 thanked this