Tutorial How to successfully pack and unpack .pak files

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

  1. Errors4l

    Errors4l Spaceman Spiff

    You'll want to remove the < and > symbols. They are merely used to show you what you have to replace with your own paths/values.
    In the last path you'll probably want to replace the last > with a \ instead. Make sure a folder named 'packed' exists on your desktop.
     
    Iris Blanche likes this.
  2. GoldenstarArtist

    GoldenstarArtist Cosmic Narwhal

    omg thanks! Been beating myself in the head the last few days trying to get it to work!
     
    Errors4l likes this.
  3. Pinaz993

    Pinaz993 Void-Bound Voyager

    I got tired of typing the file names into a CLI, so I made a PowerShell script that uses Windows built-in dialogs to ease the process. Windows users are welcome to download and use the script. It, along with an installation and use guide can, be found here.
     
    Errors4l likes this.
  4. Errors4l

    Errors4l Spaceman Spiff

    You could also use the ModPackerHelper or create simple batch files in the mods folder to support drag-n-drop.

    Packing (drag folder on bat):
    Code:
    "..\win32\asset_packer.exe" %1 %1.pak
    Unpacking (drag .pak on bat):
    Code:
    set str=%1
    set str=%str:~0,-4%
    "..\win32\asset_unpacker.exe" %1 %str%
     
  5. GlaceAiels

    GlaceAiels Void-Bound Voyager

    so we make the directory necessary for the mod we are making pack it then put it where?
     
  6. Pinaz993

    Pinaz993 Void-Bound Voyager

    Wait, so drag and drop passes the file path as an argument?
     
  7. Errors4l

    Errors4l Spaceman Spiff

    Yup, though it works best with only one file or folder.
     
  8. Titanium

    Titanium Existential Complex

    After some experimentation, as someone running OSX Yosemite, unpacking .pak files only seems to be an issue when the .pak and destination directories are inside the Steam Starbound folder. I think it has something to do with inscrutable privileges (that even "godmode" can't resolve) that I've had trouble with in the past with other games.
     
  9. Shadow Mario

    Shadow Mario Space Hobo

    I'm having error when paking file, the errors are 8:4 and 3 (sometimes)
    First i opened a command prompt on Starbound main folder, using Shift+Right Click, code i used:
     
  10. MrVauxs

    MrVauxs Giant Laser Beams

    i think i've doomed myself
    everything works but then i get an error
    probably beacuse i tried to open pak files with a WinRar and now it's the "only option" how to open pak files which locks me up in this case
    can someone help me?
    @Jonesy halp
     
  11. Dolan

    Dolan Pangalactic Porcupine

  12. MrVauxs

    MrVauxs Giant Laser Beams

    I had low expectation's for this program and i was right
    Again it uses command's which DON'T WORK
    For my problem
     
  13. Dolan

    Dolan Pangalactic Porcupine

    My tool only abstract command line for people not familiar but finally you will always have to use command line to use Starbound packer/unpacker.
    What is you main trouble in fact ? The winrar association with .pak files ?
     
  14. MrVauxs

    MrVauxs Giant Laser Beams

    shortly, yes
    at least that's the only reason logical to me
     
  15. MrVauxs

    MrVauxs Giant Laser Beams


    Przechwytywanie7.PNG
    Przechwytywanie2.PNG
    Przechwytywanie3.PNG
    Przechwytywanie5.PNG
    Przechwytywanie6.PNG
    Przechwytywanie7.PNG

    What happens
    Nothing happens
     
  16. IceLizard

    IceLizard Seal Broken

    This .pak file format wouldn't be the same thing as id softwares' pak file compression format to store the games assets, would it? Otherwise Pakscape might be an easier option to extract and add files to custom made .pak files.
     
  17. MrVauxs

    MrVauxs Giant Laser Beams

  18. IceLizard

    IceLizard Seal Broken

    Managed to extract the assets properly for windows using the command line instructions. Thanks SexualRhinosorus.

    @MrVauxs I'm not actually sure as to how to unassociate a program to a filetype ... Does using the command prompt by holding shift+right clicking in the Starbound directory and then typing the mentioned command by the OP definitely not work regardless?
     
  19. MrVauxs

    MrVauxs Giant Laser Beams

    Definitely don't work
     
  20. The | Suit

    The | Suit Agent S. Forum Moderator

    Asset packager has to match the version it was packed with.
    If the version of the pak file you are trying to unpack uses a different version then the package tool it won't work.
     

Share This Page