ScientificMethod.Core 0.2.0

dotnet add package ScientificMethod.Core --version 0.2.0
                    
NuGet\Install-Package ScientificMethod.Core -Version 0.2.0
                    
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="ScientificMethod.Core" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ScientificMethod.Core" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="ScientificMethod.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ScientificMethod.Core --version 0.2.0
                    
#r "nuget: ScientificMethod.Core, 0.2.0"
                    
#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.
#:package ScientificMethod.Core@0.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ScientificMethod.Core&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=ScientificMethod.Core&version=0.2.0
                    
Install as a Cake Tool

ScientificMethod .NET libraries

.NET libraries for clean-room restorations of legally owned games, from the refurbished-dinosaurs-toolkit.

  • ScientificMethod.Core: dependency-free building blocks for importing, installing and checking content from the user's original, plus deterministic randomness, state comparison and display helpers.
  • ScientificMethod.LegacyFormats: bounded readers for file formats common in 1990s games.

Both packages are released together and always share a version.

dotnet add package ScientificMethod.Core
dotnet add package ScientificMethod.LegacyFormats

Every public type and member carries XML documentation, which IDEs show on hover. The build fails on an undocumented public member.

ScientificMethod.Core

Namespace Types Use
Assets AssetManifest, AssetFileSpec, AssetVerifier Check the user's original against expected paths, sizes and SHA-256 hashes.
Assets FileFingerprint SHA-256 of a file as lowercase hex.
Assets ImportDiskPlanner Free space an import needs, counting files it will replace.
Assets StagedAssetPack Build a content directory beside the live one and swap it in, restoring the old one on failure.
Assets InstalledContentWriter Write or copy one installed file atomically, skipping identical files.
Assets InstalledAssetManifest, InstalledAssetVerifier Record what an import installed, and check it at startup.
Assets InstalledContentUninstaller Remove only the files a manifest lists.
Determinism IRandomSource, MsvcRandom The legacy Microsoft C rand() sequence, with saveable state.
Diagnostics StartupFailure Log a failed start and show the player what to do.
Discovery KnownDirectorySourceLocator, CompositeSourceLocator Offer likely install directories of the original.
IO AtomicFile, SafePath Atomic writes, and paths from untrusted names that cannot leave their root.
Imaging IndexedPalette, IndexedPaletteDecoder 256-colour palettes, including 6-bit VGA values.
Imaging IndexedPngWriter Write 8-bit indexed pixels as a palette PNG.
Paths RestorationPaths Find imported content (portable or per-user) and the settings directory.
Persistence JsonSettingsStore<T> JSON settings with a backup copy and migration.
Presentation ViewportScaler, FixedWidthText Fit a fixed resolution into a window and map the mouse back; word-wrap fixed-width text.
Validation JsonStateDiffer List value differences between a reference capture of game state and a restoration's.

ScientificMethod.LegacyFormats

Types Reads
OriginalContentSource, ContentSourceKinds An installed directory, a .iso image or a cue/bin raw disc image behind one file listing and OpenRead. Open(path) picks the kind from the path; Open(path, kind), OpenDirectory, OpenIso9660 and OpenCueBin take it explicitly.
CueBinSheet, CueBinTrack A checked cue sheet for a single-file raw image: one BINARY file, a MODE1/2352 data track starting at 00:00:00, then audio tracks, with every index in order and the data track's end.
CueSheet, RawMode1Image, Iso9660 Cue/bin raw disc images and the ISO 9660 file system on their data track.
CddaWave A CD audio track of a raw image, written out as WAVE.
WavePcm16Reader 16-bit mono or stereo PCM WAVE files.
PcxDecoder, RawIndexedImageDecoder, IndexedImage 8-bit RLE PCX, and headerless indexed pixels, with RGBA conversion.
Rle8BitmapDecoder 8-bit BMP (BI_RLE8 or BI_RGB), rewritten as uncompressed BI_RGB.
SmackerMovieDecoder, SmackerMovieStream Smacker SMK2/SMK4 headers, frame tables and frame layouts, from memory or a stream.
SmackerVideoDecoder, SmackerAudioDecoder Smacker video into palette indices, and packed 8-bit mono audio.

Readers reject malformed input with InvalidDataException.

Build

From the repository root:

dotnet build packages/dotnet/ScientificMethod.slnx
dotnet test --project packages/dotnet/ScientificMethod.Core.Tests/ScientificMethod.Core.Tests.csproj
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ScientificMethod.Core:

Package Downloads
ScientificMethod.LegacyFormats

Bounded decoders for file formats commonly found in legacy games.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0 174 10/1/2026
0.1.0 131 10/1/2026