libNOM.io
0.11.0
dotnet add package libNOM.io --version 0.11.0
NuGet\Install-Package libNOM.io -Version 0.11.0
<PackageReference Include="libNOM.io" Version="0.11.0" />
paket add libNOM.io --version 0.11.0
#r "nuget: libNOM.io, 0.11.0"
// Install libNOM.io as a Cake Addin #addin nuget:?package=libNOM.io&version=0.11.0 // Install libNOM.io as a Cake Tool #tool nuget:?package=libNOM.io&version=0.11.0
libNOM.io
Introduction
The libNOM
label is a collection of .NET class libraries originally developed
and used in NomNom, the most complete savegame
editor for No Man's Sky.
libNOM.io
can be used to read and write save files for all supported platforms
as well as performing related actions.
Getting Started
Currently save format 2001
(Foundation 1.10 to Prisms 3.53) and 2002
(Frontiers 3.60 and up) as well as the extension in Waypoint 4.00 are supported.
The original format 2000
that was used in the vanilla game is not supported. If
you are interested in it, have a look at the nms-savetool by MetaIdea.
The lowest officially supported game version is Beyond 2.11 to enable support
for homebrew users on PlayStation 4 which could not update further at some point.
You can use older saves nonetheless, but the game version cannot be determined and
it will be marked as IsOld
.
Each platform has anchor file patterns to check whether it is worth to look further into the selected directory. This must be in or one level below the selected one.
- Apple
- Notes: Currently only available via Steam (see below).
- GOG.com (Windows PC)
- Location: %AppData%\HelloGames\NMS\DefaultUser
- File Patterns: save*.hg
- PlayStation 4
- File Patterns: memory.dat, savedata*.hg
- Notes: There are a few options to do this. The only one that does not require homebrew is SaveWizard. Two other tools that are confirmed working are Save Mounter and Apollo but require homebrew. Results of other tools may or may not work but the code is as generic as possible.
- PlayStation 5
- Notes: This version of the game is not supported due to restrictions on the console itself. By playing the PlayStation 4 version on it, you can still save edit with a few additional steps.
- Steam (PC)
- Location
- Windows: %AppData%\HelloGames\NMS\st_<SteamID>
- SteamDeck: ~/.local/share/Steam/steamapps/compatdata/275850/pfx/drive_c/users/steamuser/Application Data/HelloGames/NMS/st_<SteamID>
- macOS: ~/Library/Application Support/HelloGames/NMS/st_<SteamID>
- File Patterns: save*.hg
- Notes: If you use a cloud gaming service like GeForce NOW you can still use it by starting the game to trigger synchronization from/to the cloud.
- Location
- Microsoft Store (Windows PC)
- Location: %LocalAppData%\Packages\HelloGames.NoMansSky_bs190hzg1sesy\SystemAppData\wgs\<XboxID>_29070100B936489ABCE8B9AF3980429C
- File Patterns: containers.index
- Notes: Reloading of modified saves while the game is running does not work.
- Nintendo Switch
- Xbox One/Series X|S
- Notes: Not directly supported but can easily achieved with cloud sync via the Microsoft Store. The synchronization is triggered short after you close the game (no need to load a save). This also works for Xbox Cloud Gaming.
Usage
Here you'll find an example usage.
var path = "...";
var settings = new PlatformSettings { LoadingStrategy = LoadingStrategyEnum.Current };
var collection = new PlatformCollection(); // detects all available PC platforms on a machine
var platform = collection.AnalyzePath(path, settings); // get platform in path and add to collection
var collection = new PlatformCollection(path); // additionally analyzes path
var platform = collection.Get(path); // get a previously detected platform with this path
var account = platform.GetAccountContainer(); // always loaded if exists
var save = platform.GetContainer(0); // Slot1Auto // loaded by default if LoadingStrategyEnum.Full
platform.Load(save); // needs to be loaded before you can modify its JSON
// Get the entire object or parts of it to modify on your own or get and set values directly.
// The getter and setter except multiple expressions but only the first valid one will be returned.
JsonObject jsonObject = save.GetJsonObject();
JToken? jsonToken = save.GetJsonToken("JSONPath1");
IEnumerable<JToken> jsonTokens = save.GetJsonTokens("JSONPath1");
int? jsonObject = save.GetJsonValue<int>("PlayerStateData.UniverseAddress.GalacticAddress.VoxelZ");
int? jsonObject = save.GetJsonValue<int>(new[] { 2, 0, 1, 2 }); // as above but with indices
save.SetJsonValue(1, "PlayerStateData.UniverseAddress.GalacticAddress.PlanetIndex");
save.SetJsonValue(1, new[] { 2, 0, 1, 4 }); // save as above
platform.Write(container);
Projects using libNOM.io
- NomNom (2022-03-14)
- NMS Companion (2022-05-01)
License
This project is licensed under the GNU GPLv3 license - see the LICENSE file for details.
Authors
- Christian Engelhardt (zencq) - GitHub
Credits
Thanks to the following people for their help in one way or another.
- u/Gumsk - Working out how to properly move a save from one platform to another
- MetaIdea - Decrypt and encrypt Steam saves
- u/MegaGold_Fighter - Storm21 - Helping and verifying to make PlayStation support possible
- Moo - Helping and verifying to make Microsoft Store support possible
Dependencies
- .NET Community Toolkit - Diagnostics and high performance helper
- K4os.Compression.LZ4 - Compression and decompression
- LazyCache - Caching when a file is updated in the background
- libNOM.map - Obfuscation and deobfuscation
- Newtonsoft.Json - Handle JSON objects
- SpookilySharp - Creating SpookyHash
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- CommunityToolkit.Diagnostics (>= 8.2.2)
- CommunityToolkit.HighPerformance (>= 8.2.2)
- IndexRange (>= 1.0.3)
- K4os.Compression.LZ4 (>= 1.3.8)
- LazyCache (>= 2.4.0)
- libNOM.map (>= 0.13.0)
- Newtonsoft.Json (>= 13.0.3)
- SpookilySharp (>= 1.2.0)
- System.Memory (>= 4.5.5)
-
.NETStandard 2.1
- CommunityToolkit.Diagnostics (>= 8.2.2)
- CommunityToolkit.HighPerformance (>= 8.2.2)
- K4os.Compression.LZ4 (>= 1.3.8)
- LazyCache (>= 2.4.0)
- libNOM.map (>= 0.13.0)
- Newtonsoft.Json (>= 13.0.3)
- SpookilySharp (>= 1.2.0)
-
net6.0
- CommunityToolkit.Diagnostics (>= 8.2.2)
- CommunityToolkit.HighPerformance (>= 8.2.2)
- K4os.Compression.LZ4 (>= 1.3.8)
- LazyCache (>= 2.4.0)
- libNOM.map (>= 0.13.0)
- Newtonsoft.Json (>= 13.0.3)
- SpookilySharp (>= 1.2.0)
-
net7.0
- CommunityToolkit.Diagnostics (>= 8.2.2)
- CommunityToolkit.HighPerformance (>= 8.2.2)
- K4os.Compression.LZ4 (>= 1.3.8)
- LazyCache (>= 2.4.0)
- libNOM.map (>= 0.13.0)
- Newtonsoft.Json (>= 13.0.3)
- SpookilySharp (>= 1.2.0)
-
net8.0
- CommunityToolkit.Diagnostics (>= 8.2.2)
- CommunityToolkit.HighPerformance (>= 8.2.2)
- K4os.Compression.LZ4 (>= 1.3.8)
- LazyCache (>= 2.4.0)
- libNOM.map (>= 0.13.0)
- Newtonsoft.Json (>= 13.0.3)
- SpookilySharp (>= 1.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.