1. Hey Guest! Our new game Wargroove has released! Check out the forums or wiki for more information!
    Dismiss Notice

Tutorial How to successfully pack and unpack .pak files

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

  1. SpazDiesFirst360.0

    SpazDiesFirst360.0 Phantasmal Quasar

    Maybe you closed it out by accident? Only thing that makes sense.

    What are you trying to open it with? Notepad++ will say it's too big, Powershell will ignore you, basically cannot be opened. The only way to unpack it is to set up a batch file like this;
    Code:
    "C:\Program Files (x86)\Steam\steamapps\common\Starbound\win32\asset_unpacker.exe" "C:\Program Fies (x86)\Steam\steamapps\common\Starbound\assets\packed.pak" "C:\Program Files(x86)\Steam\steamapps\common\Starbound\unpackedAssets"
     
  2. 777Dan777

    777Dan777 Scruffy Nerf-Herder

    Use this to restore the normal command thingy on shift + right click. I can't remember where I got it, though.
     

    Attached Files:

  3. Jonnie the Novakid

    Jonnie the Novakid Space Hobo

    It didnt work. Ive completely reinstalled it. I know that because my mods and the storage folder are gone. But it didnt work :(
     
  4. Dracoxpe

    Dracoxpe Yeah, You!

    batch files work too, thats what i usually do
     
  5. Xerus

    Xerus Aquatic Astronaut

  6. mikeloeven

    mikeloeven Big Damn Hero

    Is there an archive utility that can edit pak files simply the way you edit a zip file using 7-zip drag and drop two and from a simple GUI
     
  7. TripleKings

    TripleKings Void-Bound Voyager

    I was forced to use Windows Powershell. How did you all use cmd?
     
  8. NanoPi

    NanoPi Scruffy Nerf-Herder

    I have used one of these methods at one time or another:
    • not using windows 10 at the time of posting. (previous posts)
    • using windows 10 before an update that removed command prompt from file menu of explorer.
    • customize windows 10 explorer via registry to add cmd to right-click or shift-right-click menu.
    • make shortcut/batch in desired folder to start cmd.
    • type cmd into explorer's address bar.
    • pinned cmd to taskbar, default cwd is %userprofile%, navigate to desired folder by cd command
    • open powershell and type cmd. (cmd runs within powershell window)
    • open powershell and type start cmd. (cmd opens in a new window)
    • open powershell(admin) and type cmd.
    • open powershell(admin) and type start cmd.
     
    Hiuki likes this.
  9. NexusTheBrony

    NexusTheBrony Spaceman Spiff

    Assuming ur using Windows 10, Start > Settings > Personalization > Taskbar > "Replace Command Prompt with Windows PowerShell in the menu when I right-click the start button or press Windows key+x" > Off
     
  10. Didy

    Didy Void-Bound Voyager

    Windows:
    Open CMD >
    Drag asset_unpacker in the CMD window via Drag'n'Drop >
    Insert a space and " >
    Drag mod.pak in the CMD window via Drag'n'Drop >
    Insert a space and " >
    Drag mod.pak a second time in the CMD window via Drag'n'Drop >
    Delete the .pak and insert for this " >
    Push enter.

    Code:
    "...\Starbound\win32\asset_unpacker.exe" "...\Starbound\mods\mod.pak" "...\Starbound\mods\mod"
    Code:
    "...\Starbound\win32\asset_packer.exe" "...\Starbound\mods\mod" "...\Starbound\mods\mod.pak"
    macOS:
    Open Terminal >
    Drag asset_unpacker in the Terminal window via Drag'n'Drop >
    Drag mod.pak in the Terminal window via Drag'n'Drop >
    Drag mod.pak a second time in the Terminal window via Drag'n'Drop >
    Delete the .pak >
    Push enter.

    Code:
    .../Starbound/osx/asset_unpacker .../Starbound/mods/mod.pak .../Starbound/mods/mod
    Code:
    .../Starbound/osx/asset_packer .../Starbound/mods/mod .../Starbound/mods/mod.pak
    USE DRAG'N'DROP FOR WINDOWS CMD AND MACOS TERMINAL, THE EASIEST WAY!!
     
    Vartoc likes this.
  11. Nikwinner

    Nikwinner Space Hobo

    What directory are files unpacked in???
     
  12. NexusTheBrony

    NexusTheBrony Spaceman Spiff

    whatever directory you put them in. look at the previous posts. the last post (Didy's post) shows them being unpacked into Starbound/mods under the name mod
     
  13. xavierpunkreno

    xavierpunkreno Void-Bound Voyager

    So uhhh..is there a way to unpack an oooold modpak file? I know this method works on pak but I'm lost as far as modpak.
     
  14. NexusTheBrony

    NexusTheBrony Spaceman Spiff

    u require the unpacker of the version the modpak file was made in. if u hav it, it is possible. due to certain legal reasons, this can't be redistributed, so if u don't hav it, u won't hav it
     
  15. XENTY KING

    XENTY KING Void-Bound Voyager

    hey i start the unpacker program but nothing happens, it only creates a asssetsunpacker.exe
     
  16. NexusTheBrony

    NexusTheBrony Spaceman Spiff

    simply starting the program is not enough. Here's a batch file I made to launch the unpacker properly

    Code:
    del ..\assets\Unpacked
    If EXIST ..\assets\packed.pak del ..\assets\packed.pak.no
    rename ..\assets\packed.pak.no packed.pak
    asset_unpacker.exe ..\assets\packed.pak ..\assets\Unpacked
    rename ..\assets\packed.pak packed.pak.no
    pause
    this batch code should be in a <name>.bat file and at the top directory of Starbound. The following things may occur and are intended:

    • fail to detect packed.pak (game has not updated or been validated)
    • fail to delete Unpacked (first time unpacking or Unpacked has been manually deleted)
    • fail to rename packed.pak.no to packed.pak (game has updated and the second line succeeds in deleting packed.pak.no)
    The only unintended failure, which will be true failure, is if neither packed.pak nor packed.pak.no exist. unpacking the assets this way does still run the game as if it was never unpacked, despite packed.pak technically never existing.
     
    Last edited: Jul 6, 2018
  17. Corraidhín

    Corraidhín Supernova

    Out of curiosity... can I use powershell? no matter what I try, command prompt does not seem to show for me, and powershell is what I get when using shift+right click.
     
  18. NexusTheBrony

    NexusTheBrony Spaceman Spiff

    use powershell and enter the command "cmd". powershell is now Command Prompt (temporarily)
     
  19. Corraidhín

    Corraidhín Supernova

    thank you very much! I will give this a go
     
  20. Corraidhín

    Corraidhín Supernova

    Even though I am 100% sure that I write the pak.file's path and the unpack path correctly, it still asks for these. What I am trying looks something like F:\Program\steamapps\common\Starbound\win32\Asset_unpacker.exe F:\Program\steamapps\common\Starbound\Pak-folder\pack.pak and it still demands for those paths
     

Share This Page