Results 1 to 20 of 20

Thread: Unpacking only certain files?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Unpacking only certain files?

    can i do this? i just realized i only have 4gb left on my hard drive, and all i need is export_desc_buildings, export_descr_unit, and desc_sm_factions.

  2. #2

    Default Re: Unpacking only certain files?

    Yes it's possible for eg:-
    This will extract all .txt files from the packs to the c:\temp folder
    unpacker --source=..\packs\*.pack --destination=c:\temp\ --filter=*.txt

    Save the command in blue in a text file and then change the extension of that file into .bat and run it.

  3. #3

    Default Re: Unpacking only certain files?

    Quote Originally Posted by Ishan View Post
    Yes it's possible for eg:-
    This will extract all .txt files from the packs to the c:\temp folder
    unpacker --source=..\packs\*.pack --destination=c:\temp\ --filter=*.txt

    Save the command in blue in a text file and then change the extension of that file into .bat and run it.
    this is safe right?

  4. #4

    Default Re: Unpacking only certain files?

    Quote Originally Posted by Ishan View Post
    Yes it's possible for eg:-
    This will extract all .txt files from the packs to the c:\temp folder
    unpacker --source=..\packs\*.pack --destination=c:\temp\ --filter=*.txt

    Save the command in blue in a text file and then change the extension of that file into .bat and run it.
    i wasnt able to get this to work.

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

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Unpacking only certain files?

    It's worked too good for the last three years for it not to be safe.

  6. #6

    Default Re: Unpacking only certain files?

    Quote Originally Posted by irishron View Post
    It's worked too good for the last three years for it not to be safe.
    Thanks Sir Ron for confirming it.

  7. #7

    Default Re: Unpacking only certain files?

    It's a simple instruction make sure u have administrative rights and UAC turned off. For more info read the Read me file in the tools unpacker folder.

  8. #8

    Default Re: Unpacking only certain files?

    so what would i have to have in the .bat file to unpack
    desc_sm_factions
    export_desc_unit
    export_desc_buildings

    i tried
    unpacker --source=..\packs\*.pack --destination=c:\temp\ --filter=desc_sm_factions.txt
    but that did nothing.

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

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Unpacking only certain files?

    If you are using Win 7 or Vista, did you look in roaming/virtual store?

  10. #10

    Default Re: Unpacking only certain files?

    Quote Originally Posted by irishron View Post
    If you are using Win 7 or Vista, did you look in roaming/virtual store?

    Im using XP.

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

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Unpacking only certain files?

    Did the DOS show it being unpacked or just "died"?
    Did it put up any error message before disappearing?

  12. #12

    Default Re: Unpacking only certain files?

    Quote Originally Posted by irishron View Post
    Did the DOS show it being unpacked or just "died"?
    Did it put up any error message before disappearing?

    no just goes though all the Y/N questions, then disappears.

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

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Unpacking only certain files?

    I'll let someone else tackle this one. There has to be something in the syntax. I just unpack everything and just copy what I need to my mod to keep it clean.

  14. #14
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Unpacking only certain files?

    This is from the ReadMe file:

    Code:
    unpacker --source=..\packs\*.pack --destination=c:\packs\ --filter=*.txt
    Given that you have placed the bat file into the unpacker folder and changed the path to c:\temp then that is where your text files should be (including the data\text folder). Underneath my example to unpack the crusader campaign into c:\Unpack just as another example:

    Code:
    unpacker.exe --source=..\..\mods\crusades\packs\*.pack --destination=C:\Unpack --verbosity=1 --base_pack_path=mods/crusades/data/










  15. #15

    Default Re: Unpacking only certain files?

    unpacker.exe --source=..\packs\*.pack --destination=C:\packs\ --filter=*descr_sm_factions.txt
    I have that in a batch file, shouldnt that unpack descr_sm_factions? Or what did i type wrong?

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

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Unpacking only certain files?

    Delete * in front of the descr_sm_factions.txt and then try it.

  17. #17

    Default Re: Unpacking only certain files?

    Quote Originally Posted by irishron View Post
    Delete * in front of the descr_sm_factions.txt and then try it.

    Still not working. Anything else wrong with it maybe? Maybe i made a much simpler mistake then i thought.

  18. #18
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Unpacking only certain files?

    It should have ended up in the...\Medieval II Total War\data folder, else repeat as Irishron said.










  19. #19
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Unpacking only certain files?

    Simply use *.txt - I vaguely remember that you couldn't unpack individual files properly.
    Just use the sample I gave from the ReadMe file:
    unpacker --source=..\packs\*.pack --destination=c:\packs\ --filter=*.txt










  20. #20
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: Unpacking only certain files?

    If it goes through the Y/N prompts then exists, this means that the Unpacker completed successfully but didn't find any files in the packs which fitted the wildcards. This probably means that the paths people give you in their posts above differ from yours.


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

Posting Permissions

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