Page 1 of 6 123456 LastLast
Results 1 to 20 of 109

Thread: How to unpack something specific from the .pack files

  1. #1

    Default How to unpack something specific from the .pack files

    Specific Unpacking
    Hello everyone i recently saw that a lot of users really like to to just extract some files that they need to mod rathar then unpack the whole game so i thought it would be helpful to make a small tututial over it.

    Anyways here are simple steps on how to do that:-

    • First create a New Text Document.txt file in the unpacker folder of your game and paste this command inside it:-
      Code:
      unpacker --source=..\..\packs\*.pack --destination=c:\packs\ --filter=*.txt
      ^The red part is just an example and will vary with what you need. In this example it will extract all the .txt files that in game .pack files.
    • After pasting this line just save the document and change it's extension to .bat file.
    • Now double click the newly created .bat file for execution and enter "y" for yes 3 times or simply "yyy" without quotes to begin the extraction.
    • After that your extracted files will be inside C:\packs\.... folder and it's relevant sub directories inside it.
    • So similarly for eg. you can extract all the .tga or .dds files like this:-
      Code:
      unpacker --source=..\..\packs\*.pack --destination=c:\packs\ --filter=*.tga
      Code:
      unpacker --source=..\..\packs\*.pack --destination=c:\packs\ --filter=*.dds


    So lets say you want some specific files not just alll the relevant extensions types like say:-
    descr_sm_factions.txt or say export_descr_unit.txt

    So just remove the *(the things highlighted in red above^) in the part and put the actual file name and save and run the .bat file:-
    Code:
    unpacker --source=..\..\packs\*.pack --destination=c:\packs\ --filter=descr_sm_factions.txt
    Code:
    unpacker --source=..\..\packs\*.pack --destination=c:\packs\ --filter=export_descr_unit.txt
    And you will get the files there.

    For every code you can put them in a single .bat file and it will go about 2 times in a single run if having 2 files. For 4 files it will run 4 times that enter "y" 12 times.

    We can't extract entire folders though only extensions or a single or multiple files by providing their accurate names.
    For getting exact names in your unpacker folder there is one .bat file(list_contents.bat) that will produce a .txt file inside it that contains all the file names.

    So this is pretty much about it also i have attached a .rar file containing a few .bat files that will extract the following:-
    • All text files
    • All .bin files
    • All .tga files
    • All .dds files
    • All .xml files
    • All .mesh files
    • All .texture files

    For Kingdoms Expansion
    For specific unpacking Kingdoms one needs to change the filepath for their .pack file and nothing else:-
    For Crusades
    Code:
    unpacker.exe --source=..\..\mods\crusades\packs\*.pack --destination=..\..\ --verbosity=1 --base_pack_path=mods/crusades/data/
    For example it's EDU can be extracted from this command:-
    Code:
    unpacker.exe --source=..\..\mods\crusades\packs\*.pack --destination=c:\packs\ --filter=export_descr_unit.txt

    For Teutonic
    Code:
    unpacker.exe --source=..\..\mods\teutonic\packs\*.pack --destination=..\..\ --verbosity=1 --base_pack_path=mods/teutonic/data/
    For example it's EDU can be extracted from this command:-
    Code:
    unpacker.exe --source=..\..\mods\teutonic\packs\*.pack --destination=c:\packs\ --filter=export_descr_unit.txt

    For Britannia
    Code:
    unpacker.exe --source=..\..\mods\british_isles\packs\*.pack --destination=..\..\ --verbosity=1 --base_pack_path=mods/british_isles/data/
    For example it's EDU can be extracted from this command:-
    Code:
    unpacker.exe --source=..\..\mods\british_isles\packs\*.pack --destination=c:\packs\ --filter=export_descr_unit.txt

    For Americas
    Code:
    unpacker.exe --source=..\..\mods\americas\packs\*.pack --destination=..\..\ --verbosity=1 --base_pack_path=mods/americas/data/
    For example it's EDU can be extracted from this command:-
    Code:
    unpacker.exe --source=..\..\mods\americas\packs\*.pack --destination=c:\packs\ --filter=export_descr_unit.txt


    Hope this helps.

    Unpacking(Steam Issue)
    There seems to be some issue for steam users while specific or unpack all the data from the .pack files.
    This issue was resolved by RubiconDecision, how to:-
    • Right click on the game within the Steam library.
    • Go to properties.
    • Click on local files.
    • Click on verify integrity of game cache.
    • It will take a little while. If there are errors then it deletes the local content, and re-downloads it from scratch.

    Last edited by Ishan; April 25, 2011 at 05:30 AM. Reason: update

  2. #2
    Ascarona's Avatar Praeses
    Join Date
    Dec 2008
    Location
    Sexytown
    Posts
    9,156

    Default Re: How to unpack something specific from the .pack files

    Hey man thanks for these tutorials, they're real handy for a starting modder like me.
    Last edited by Squid; November 21, 2010 at 03:43 PM.
    “Never forget what you are, for surely the world will not. Make it your strength. Then it can never be your weakness. Armour yourself in it, and it will never be used to hurt you.”

  3. #3
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,741
    Blog Entries
    3

    Default Re: How to unpack something specific from the .pack files

    Damn you Ishan!! I'd posted yesterday, or maybe the day before that I was going to write a tutorial about this!! Nicely done!!
    Last edited by Squid; November 21, 2010 at 03:42 PM.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  4. #4

    Default Re: How to unpack something specific from the .pack files

    Quote Originally Posted by Ascarona View Post
    Hey man thanks for these tutorials, they're real handy for a starting modder like me.
    Glad to help bro.
    Quote Originally Posted by Sqυιd View Post
    Damn you Ishan!! I'd posted yesterday, or maybe the day before that I was going to write a tutorial about this!! Nicely done!!
    Hehe, I know but i got the same notion from here a few days back.
    And thanks Squid.
    Last edited by Squid; November 21, 2010 at 03:42 PM.

  5. #5

    Default Re: How to unpack something specific from the .pack files

    Cheers Ishan, just to clarify when I say want to extract The dismounted norman knight tga file I would use this?
    unpacker --source=..\..\packs\*.pack --destination=c:\packs\ --filter=#dismounted_norman_knights.tga
    But when I then click on the .bat file there is nowhere where I can type yyy, its just continuous reams of text?
    In Rod We Trust

  6. #6

    Default Re: How to unpack something specific from the .pack files

    Quote Originally Posted by EmperorRasputin View Post
    Cheers Ishan, just to clarify when I say want to extract The dismounted norman knight tga file I would use this?
    unpacker --source=..\..\packs\*.pack --destination=c:\packs\ --filter=#dismounted_norman_knights.tga
    But when I then click on the .bat file there is nowhere where I can type yyy, its just continuous reams of text?
    Yes that's the way to do it if the filename is correct it will be extracted otherwise simply put *.tga and it will give you all the .tga files there are in the game.
    y means yes it's a confirmation it will ask you three times you either type y 3 times or a single yyy to avoid annoyance.

  7. #7
    Mr. Bundy's Avatar Decanus
    Join Date
    Sep 2010
    Location
    Chicago, suburb.
    Posts
    533

    Default Re: How to unpack something specific from the .pack files

    when i run the document, it runs as said, and finishes, but there are no files.


    EDIT: oh wait found it, sorry

    and thanks for the tutorial
    Last edited by Mr. Bundy; January 23, 2011 at 04:04 AM.

  8. #8
    aljonzc's Avatar Civis
    Join Date
    Nov 2009
    Location
    Cebu City
    Posts
    103

    Default Re: How to unpack something specific from the .pack files

    Hey it didn't w0rk f0r me... I f0ll0w your nstructi0ns but the unpack_all ( just f0r Example ) it just said no files found ok...
    And there's n0 c:packs folder in my computer... I w0nder f this doesn't w0rk n win7..

    ----------------------------
    Nothing is true, Everything permitted
    Last edited by aljonzc; April 12, 2011 at 12:31 PM.

  9. #9

    Default Re: How to unpack something specific from the .pack files

    I have windows 7 this works & i'm not so sure what's the problem in your case. Do you get any sort of error?

  10. #10
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: How to unpack something specific from the .pack files

    Did you unhide all files and folders in Folder Options and search your users folder?

  11. #11

    Default Re: How to unpack something specific from the .pack files

    Thanks for attaching a screenshot, says it can't find the pack files and it looks like you got the unpacker in the main directory not sure that's the reason for it.

  12. #12
    aljonzc's Avatar Civis
    Join Date
    Nov 2009
    Location
    Cebu City
    Posts
    103

    Default Re: How to unpack something specific from the .pack files

    ( I have windows 7 this works & i'm not so sure what's the problem in your case. Do you get any sort of error? )



    No, theres no error its just didn't w0rk...

  13. #13

    Default Re: How to unpack something specific from the .pack files

    I said that unpacker in not in the right location it should be in tools\unpacker folder, put it there and then run it.

  14. #14
    aljonzc's Avatar Civis
    Join Date
    Nov 2009
    Location
    Cebu City
    Posts
    103

    Default

    Quote Originally Posted by irishron View Post
    Did you unhide all files and folders in Folder Options and search your users folder?
    Yes I unhide all files and folders in Folder Options and theres no c:packs

    Quote Originally Posted by Ishan View Post
    I said that unpacker in not in the right location it should be in tools\unpacker folder, put it there and then run it.
    I already run it in tools folder but still it doesn't work..
    Last edited by Ishan; April 12, 2011 at 07:45 PM. Reason: Double Post

  15. #15

    Default Re: How to unpack something specific from the .pack files

    See that file in Caps .dll one, copy paste that file (from the main directory of the game) in the unpacker folder as it's required for the unpacker.exe to run.

  16. #16
    aljonzc's Avatar Civis
    Join Date
    Nov 2009
    Location
    Cebu City
    Posts
    103

    Default Re: How to unpack something specific from the .pack files

    Quote Originally Posted by Ishan View Post
    See that file in Caps .dll one, copy paste that file (from the main directory of the game) in the unpacker folder as it's required for the unpacker.exe to run.
    now it run but C:packs folder is no where to be found?

    after the xtracti0n I view its Dstinati0n but theres no xtracted files...
    Last edited by aljonzc; April 12, 2011 at 08:31 PM.

  17. #17

    Default Re: How to unpack something specific from the .pack files

    Atleast it unpacked so we are getting there.
    If the folder is not created there then i think windows is playing with you check the Virtual store folder found in C:\Users\Your user account name\AppData\Local\VirtualStore

    or else do a search for .dds files in your computer.

  18. #18
    aljonzc's Avatar Civis
    Join Date
    Nov 2009
    Location
    Cebu City
    Posts
    103

    Default Re: How to unpack something specific from the .pack files

    Quote Originally Posted by Ishan View Post
    Atleast it unpacked so we are getting there.
    If the folder is not created there then i think windows is playing with you check the Virtual store folder found in C:\Users\Your user account name\AppData\Local\VirtualStore

    or else do a search for .dds files in your computer.
    YEAH!!!!!!!!! I found it in virtual store!!!! Tnx a l0t br0h!

    Mabuhay! Ishan!

  19. #19

    Default Re: How to unpack something specific from the .pack files

    Congrats & Glad to help bro.

  20. #20
    aljonzc's Avatar Civis
    Join Date
    Nov 2009
    Location
    Cebu City
    Posts
    103

    Default Re: How to unpack something specific from the .pack files

    yaiks! an0ther pr0bs, After I edit s0me files, Evry tym a go to battlefield it encountered errors..

    I wonder f th0se edited files needed to repack??

    And f so, how can I repack files???
    ( I'm new in modification )

Page 1 of 6 123456 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •