libNOM.io 0.12.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package libNOM.io --version 0.12.1                
NuGet\Install-Package libNOM.io -Version 0.12.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="libNOM.io" Version="0.12.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add libNOM.io --version 0.12.1                
#r "nuget: libNOM.io, 0.12.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install libNOM.io as a Cake Addin
#addin nuget:?package=libNOM.io&version=0.12.1

// Install libNOM.io as a Cake Tool
#tool nuget:?package=libNOM.io&version=0.12.1                

libNOM.io

Maintained GitHub Actions Workflow Status Maintainability

.NET | Standard 2.0 - 2.1 | 6 - 8 C# 12 GitHub Release NuGet Version

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 formats 2001 (Foundation 1.10 to Prisms 3.53), 2002 (Frontiers 3.60 to Adrift 4.72) including the extension made in Waypoint 4.00, and 2003 (Worlds Part I 5.00 and up) 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.
  • 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
    • File Patterns: manifest*.dat
    • Notes: To get your saves you need homebrew software on your Switch. EdiZon and JKSV are confirmed working. Results of other tools may or may not work but the code is as generic as possible.
  • 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

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

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.12.2 90 10/28/2024
0.12.1 185 9/8/2024
0.12.0 170 9/4/2024
0.11.0 140 8/6/2024
0.10.1 87 7/26/2024
0.10.0 102 7/22/2024
0.9.0 86 6/7/2024
0.8.0 127 4/5/2024
0.7.0 124 3/13/2024
0.6.0 170 9/11/2023