游戏狂人
 
- 贡献度
- 157
- 金元
- 11095
- 积分
- 1738
- 精华
- 0
- 注册时间
- 2009-10-2
|
本帖最后由 rock1109 于 2018-8-1 17:48 编辑
原帖地址:https://www.reddit.com/r/NoMansS ... npak_unmbin_rembin/
Quick instructions on how to un-PAK, un-MBIN, re-MBIN, and re-PAK files.
I couldn't find this stuff written down anywhere, so here it is. Note that you can easily put these commands into a batch file so that you don't have to keep typing stuff into prompts when you're working on a mod.
Setup:
Get MBINCompiler.
Get PSARC Decompile Tool.
Look for the PAK archives that contain the files you want to change. You can look at this list of PAK contents and just try some, or you can look at the files that an existing mod changes.
To extract a PAK:
Put psarc.exe into the same folder as the PAK to make things easier for yourself.
Open a command prompt in that folder by holding down Shift while right-clicking inside the folder, and then selecting Open command window here.
Enter this: psarc extract [PATH/TO/FILE.PAK no brackets]. You can drag the PAK file into the command window to automatically paste its name into the command.
PSARC will extract the contents of the PAK to the current folder.
To turn an MBIN into an editable EXML:
Open a command prompt at the folder where MBINCompiler.exe is located.
Enter this: MBINCompiler [PATH/TO/FILE.MBIN no brackets].
If the MBIN has been mapped, it will create an EXML version in the same folder as the MBIN. You can edit this with a text editor like Notepad.
To turn a EXML back into an MBIN:
Open a command prompt at the folder where MBINCompiler.exe is located.
Enter this: MBINCompiler [PATH/TO/FILE.EXML no brackets].
The EXML will be turned back into an MBIN.
To pack one MBIN into a PAK:
Open a command prompt at the folder where psarc.exe is located.
Enter this: psarc create [PATH/TO/FILE.MBIN no brackets] -o output.pak
A PAK file called output.pak will be created containing the MBIN file with its path. You can double-check this by typing psarc list output.pak.
To pack multiple files into a PAK:
Make a text file called list.txt (for example) where you list the local paths to each file you want to include. For example:
/Level1/base.mbin
/Level1/Level2/test.mbin
/Level1/Level2/tex.dds
Open a command prompt at the folder where psarc.exe is located.
Enter this: psarc create --inputfile=[PATH/TO/list.txt no brackets] -o output.pak
All of the files in list.txt will be packed into output.pak. |
|