Skip to content

Commit

Permalink
small adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
cheatfreak47 committed Jul 26, 2024
1 parent ae6924c commit 9ccace3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
7 changes: 3 additions & 4 deletions NMS-Decompressinator.bat
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,15 @@ echo NMS Decompressinator v2.0.0 by CheatFreak
echo -----------------------------------------
echo it uses....
echo psarc by Sony Computer Entertainment LLC
echo From PS3 SDK 4.50
echo NMSResign Fork by CheatFreak.
echo (From PS3 SDK 4.50)
echo NMSResign Fork by CheatFreak
echo (Original NMSResign by emoose/stk25.)
echo -----------------------------------------
echo Note:
echo It may seem at some points like it has
echo stopped and isn't continuing...
echo Don't worry, it's fine. Just patiently
echo wait for it to finish. It takes time.
echo Please do not interrupt the process.
echo -----------------------------------------
echo Beginning in...
timeout /t 1 > NUL
Expand Down Expand Up @@ -136,4 +135,4 @@ echo See ya next time...
echo Press any key to exit.
pause > NUL
endlocal
exit
exit
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,28 @@

A batch script that uses [PSARC](https://www.psdevwiki.com/ps3/PlayStation_archive_(PSARC)#PSARC) (Sony PlayStation SDK Tool) and [NMSResign](https://github.com/cheatfreak47/NMSResign) to automatically process the game `.pak` files by unpacking them and repacking with compression disabled to improve game performance by eliminating CPU spikes caused by on-the-fly `.pak` decompression **without** running the game fully unpacked, which introduces longer loading times due to the file system strain caused by the game needing to open handles to thousands of files.

The amount of improvement this has on performance is variable from PC to PC, but it should make a small difference even on high end machines. If nothing else, it addresses that commonly experienced lag spike when leaving the atmosphere of a planet, and other similar smaller lag spikes that occur during gameplay situations where data is loading, and should generally improve the loading times when loading into a save file, warping from system to system, or using teleporters.
The amount of improvement this has on performance is variable from PC to PC, but it should make a small difference even on high end machines. If nothing else, it addresses that commonly experienced lag spike when leaving the atmosphere of a planet, and other similar smaller lag spikes that occur during gameplay situations where data is loading, and should generally improve the loading times when loading into a save file, warping from system to system, or using teleporters.

Full technical explanation can be found [here](https://nomansskyretro.com/wiki/Decompressinator).
Obviously this performance boost comes at the cost of storage space. Uncompressing the files will roughly triple the amount of required storage space. As of No Man's Sky Worlds Part 1, assuming you delete the backup of the compressed files afterwards or ran with the `-no-backup` argument, the game takes up **~44.8GB** of storage total.

A more full technical explanation can be found [here](https://nomansskyretro.com/wiki/Decompressinator).

#### Features:
- Works on all No Man's Sky versions.
- Tries to be smart about running again after No Man's Sky updates by checking file timestamps. (Can be bypassed using `-force`)
- Backs up the base game files in a sub folder in case things go wrong. (Can be bypassed by using `-no-backup`)
- Doesn't conflict with any mods.
- Tries to be smart about running again after No Man's Sky updates or branch switches by checking file timestamps. (Can be bypassed using `-force`.)
- Backs up the base game files in a sub folder in case things go wrong. (Can be bypassed by using `-no-backup`, which also slightly reduces the required free space footprint during runtime by a bit.)
- Disables the "File Tampering" warning by using NMSResign to generate `BankSignatures.bin`.

#### Usage:
1. Download and Extract the [latest release.](https://github.com/cheatfreak47/NMSDecompressinator/releases/latest)
1. Copy `NMS-Decompressinator.bat`, `psarc.exe`, and `NMSResign.exe` over to your `No Man's Sky\GAMEDATA\PCBANKS` folder.
1. Ensure you have sufficient free space. As of No Man's Sky Worlds Part 1, the uncompressed `.pak` files will consume **44.7GB** of storage.
1. Run the `NMS-Decompressinator.bat`.
1. Wait patiently. This takes quite a while to run. You will see a completion message when it is done.
1. Test the game and make sure it works.
1. (Optional) Delete `PackedFileBackup` to reclaim the free space.
1. (Optional) Delete `PackedFileBackup` folder to reclaim the storage space that the original packed files take up.

After updates or changing beta branches, you may see a "File Tampering" warning upon starting up No Man's Sky. You can simply run the script again after updates or changing beta branches to unpack the updated files and get rid of the Tamper warning.

Subsequent runs of the script should also be faster, as it tries to skip files that haven't been updated by checking file timestamps. This behavior can be bypassed using the `-force` argument.

0 comments on commit 9ccace3

Please sign in to comment.