Tutorial How to successfully pack and unpack .pak files

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

  1. GoldenstarArtist

    GoldenstarArtist Scruffy Nerf-Herder

    What am I doing wrong?


    "<C:\Program Files (x86)\Steam\steamapps\common\Starbound\win32\asset_packer.exe>" "<C:\Program Files (x86)\Steam\steamapps\common\Starbound\mods\newmod>" "<C:\Users\Goldenstar\Desktop\packed>newmod.pak"
     
  2. Errors4l

    Errors4l Existential Complex

    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.
  3. GoldenstarArtist

    GoldenstarArtist Scruffy Nerf-Herder

    omg thanks! Been beating myself in the head the last few days trying to get it to work!
     
    Errors4l likes this.
  4. 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.
  5. Errors4l

    Errors4l Existential Complex

    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%
     
  6. GlaceAiels

    GlaceAiels Space Spelunker

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

    Pinaz993 Void-Bound Voyager

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

    Errors4l Existential Complex

    Yup, though it works best with only one file or folder.
     
  9. 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.
     
  10. 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:
     
  11. MrVauxs

    MrVauxs Pangalactic Porcupine

    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
     
  12. Dolan

    Dolan Big Damn Hero

  13. MrVauxs

    MrVauxs Pangalactic Porcupine

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

    Dolan Big Damn Hero

    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 ?
     
  15. MrVauxs

    MrVauxs Pangalactic Porcupine

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

    MrVauxs Pangalactic Porcupine


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

    What happens
    Nothing happens
     
  17. 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.
     
  18. MrVauxs

    MrVauxs Pangalactic Porcupine

  19. 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?
     
  20. MrVauxs

    MrVauxs Pangalactic Porcupine

    Definitely don't work
     

Share This Page