Tutorial How to successfully pack and unpack .pak files

Discussion in 'Starbound Modding' started by SexualRhinoceros, Jan 26, 2014.

  1. Kayuko

    Kayuko Oxygen Tank

    Meow.bat content (my un/repack file):

    "C:\Program Files (x86)\Steam\steamapps\common\Starbound\win32\asset_unpacker.exe" "C:\Program Files (x86)\Steam\steamapps\common\Starbound\assets\packed.pak" "C:\Program Files (x86)\Steam\steamapps\common\Starbound\win64\assets" @pause

    However, thats more complicated then it needs to be.
    For manual unpacking:
    • Copy packed.pak to Starbound/win32
    • Create a file with the contents:

    asset_unpacker.exe packed.pak assets @pause

    • rename the file whateveryouwant.bat
    • Copy the bat in your starbound/win32 directory
    • Run it. Win.
     
  2. NanoPi

    NanoPi Scruffy Nerf-Herder

    double quote mark (") is missing at the start
     
    severedskullz likes this.
  3. That is incorrect. you need the correct path. The packed.pak is not in the Win32 directory.

    asset_unpacker.exe ..\packed.pak ..\UnpackedAssets
     
  4. Kayuko

    Kayuko Oxygen Tank

    Thats why I said copy it, I'm personally completely against modifying the original packed.pak or risking it, once that's crashed theres nothing to be done but reinstalling SB.
     
    NanoPi likes this.
  5. Completely missed that sorry. Unpacking does not modify the packed.pak in any way, so there is nothing wrong with unpacking it directly instead of copying another 900 megs worth of stuff.
     
  6. chrisgbk

    chrisgbk Subatomic Cosmonaut

    Varixai likes this.
  7. Dolan

    Dolan Pangalactic Porcupine

    If you like, you could use my ModPackHelper tool. It would be much easier to you.
    No command line to use, just put the last ModPackHelper_v0.9b.bat file into your Starbound\giraffe_storage\mods and launch it.
    Ask me if you are in trouble but I made my tool for people like you (not familiar with command lines).
     
    Mackinz and Kayuko like this.
  8. Piixel

    Piixel Void-Bound Voyager

    Hey i have a mac and the "Go" Directory didn't work also!
    I don't have the assets_unpacker file, any help?

    I just uninstalled the game and reinstalled it in hope of finding the files but no luck.
     
  9. Kayuko

    Kayuko Oxygen Tank

    Welp, so you looked everywhere? U sure?
    For me the files are located in win64 and win32, it should be the same for you since the starbound installation comes with all OS-folders.
     
  10. Piixel

    Piixel Void-Bound Voyager

    You're too good, got it cheers! ahaha silly me
     
    Kayuko likes this.
  11. Cuddlepuff

    Cuddlepuff Orbital Explorer

    What does the "butts" do?
     
  12. The MechE

    The MechE Existential Complex

    For those who see this tutorial in the future, please keep in mind that if you want to pack your mod, you have to name the .modinfo file "pak.modinfo"
     
  13. Mackinz

    Mackinz The Waste of Time

    Unless you use ModPackHelper (an extremely useful tool) which eliminates the need to manually pack your mods and does not care if you name your modinfo file anything other than pak.modinfo.
     
  14. Mackinz

    Mackinz The Waste of Time

    This a note for later:

     
  15. Azraile

    Azraile Ketchup Robot

    How do you do this in windows 8 ? >.>
     
  16. Mackinz

    Mackinz The Waste of Time

    Use ModPackHelper.
     
  17. SaintBrew

    SaintBrew Scruffy Nerf-Herder

    Really nice tutorial, thanks you.
     
  18. omegadrace

    omegadrace Cosmic Narwhal

    So with recent updates; I find I am unable to fully unpack the base packed.pak file. It completes successfully, yet skips files (usually things that I'm looking for) until maybe the fifth rerun.
     
  19. omegadrace

    omegadrace Cosmic Narwhal

    And this is the error I get if I attempt it manually, rather than using the .bat from the OP.

    Code:
    Exception caught: (IOExeption) Write wait error: 1450
      00472B26 asset_unpacker.exe
      00413D82 asset_unpacker.exe
      004191D2 asset_unpacker.exe
      00417AEC asset_unpacker.exe
      0041AC39 asset_unpacker.exe
      004ED324 asset_unpacker.exe
      00401D3E asset_unpacker.exe
      RegisterWaitForInputIdle
     
  20. EasierShawn

    EasierShawn Space Hobo

    I'm using a mac, I unpacked the file but failed to re-pack that? anyone can help upload_2015-6-26_5-22-3.png
     

Share This Page