Modding Help Extracting and editing .modpak files

Discussion in 'Starbound Modding' started by Tokoshoran, Feb 28, 2014.

Thread Status:
Not open for further replies.
  1. Tokoshoran

    Tokoshoran Pangalactic Porcupine

    I'm trying to tweak things around for a closed group server, but need to fix a file located inside a .modpak file. Although I can find what I need to edit via wordpad, if I try to actually save an edited .modpak it will corrupt it, preventing starbound from launching.

    Does anybody know how to extract it for editing, or even to edit it directly without corrupting it?
     
  2. Goddish

    Goddish Aquatic Astronaut

    SteamApps\common\Starbound\win32\unpack_assets.bat has an example of how to use asset_unpacker.exe on .pak files (Open it with a text editor)
     
  3. Tokoshoran

    Tokoshoran Pangalactic Porcupine

    That would help a lot more if I could read it, but it's all garbled up in a text editor.
     
  4. Goddish

    Goddish Aquatic Astronaut

    @Echo off
    echo Unpacking ..\assets\packed.pak into ..\assets\unpacked\
    echo This may take a long time.
    start /wait /min .\asset_unpacker.exe ..\assets\packed.pak ..\assets\unpacked
    echo Done.
    pause
     
  5. Tokoshoran

    Tokoshoran Pangalactic Porcupine

    Okay, sorry to double post, but I've found it out after a bit of personal research (also, I noticed you changed it to .bat when posting this), and figured out how to do it.

    Code:
    cd /D D:\
    If you have installed Starbound into a seperate drive, like I did, you wanna do this. the /D has to be a D, but the D:\ can be replaced by whatever drive letter it's under.

    Once you achieve that, it's a simple matter of using cd WITHOUT /D to navigate into your Starbound/Mods folder. If you get lost along the way, the "dir" command will tell you what's in the current folder.
    Once there, the following code is what I used:
    Code:
    ..\win32\asset_unpacker.exe "[mod folder]\[modname].modpak" "[new folder name]
    The contents will be extracted to whatever you listed as the desired folder name, after which it's easy to edit them.
    Once finished editing, you can then use the following code:
    Code:
    ..\win32\asset_packer.exe "[new folder name]" "[mod folder]\[modname.modpak]
    Of course, this is using the same variables as the unpack code, so just swap around where the differing parts are. To be safe, you might want to delete the old .modpak first, I'm not sure if it's necessary or not though.
     
  6. PanicOregon281

    PanicOregon281 Void-Bound Voyager


    dude not everyone uses steam -.-
     
  7. Its a steam game... Good job.

    And you bumped this thread to say THAT?
     
    Last edited: Oct 4, 2014
  8. Pentarctagon

    Pentarctagon Over 9000!!!

    Doing just:
    Code:
    d:
    also works the same as:
    Code:
    cd /D D:\
     
  9. PanicOregon281

    PanicOregon281 Void-Bound Voyager

    wow just because some people don't use steam because they don't chose to your just going to be a ass to them well there goes more of my respect for the world -.-
     
  10. Pentarctagon

    Pentarctagon Over 9000!!!

    More along the lines of "they didn't pay for it".
     
  11. PanicOregon281

    PanicOregon281 Void-Bound Voyager

    • USER WAS TEMP BANNED FOR THIS POST. Reason: Flaming. Expires: 3 Days
    your the dumbest motherfucker i have met i never sad all of them pirate the game dipstick just because a site is third party site does not mean it's for pirating you idiot a third party site is along the line of amazon wallmart.com and other sites like that
    you need to get your head out of your ass like really dude the longer you have your head in your ass the dumber your going to get
     
  12. Pentarctagon

    Pentarctagon Over 9000!!!

    You call me dumb, yet use no punctuation. The irony...
     
    Naga-Boss and LadyKianna like this.
  13. PanicOregon281

    PanicOregon281 Void-Bound Voyager

    dude it's like 12:00 something where i live i'm sure you just woke up and all but i have not been to sleep yet so of course i missed all of the punctuation and frankly i have noticed there is not really a need for it because everyone understands everything i'm saying when i don't use it so what is the point in even having it if there is no need for it
     
  14. Pentarctagon

    Pentarctagon Over 9000!!!

    Because it makes it easier for everyone else to read it?
     
  15. Wow, guys. Sometimes you gotta know when to just stop.
    [​IMG]
    Closing this thread :coffee:
     
Thread Status:
Not open for further replies.

Share This Page