ScientificMethod.Core
0.1.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ScientificMethod.Core --version 0.1.0
NuGet\Install-Package ScientificMethod.Core -Version 0.1.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.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ScientificMethod.Core" Version="0.1.0" />
<PackageReference Include="ScientificMethod.Core" />
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.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ScientificMethod.Core, 0.1.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.1.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.1.0
#tool nuget:?package=ScientificMethod.Core&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 |
An installed directory or a .iso image behind one file listing and OpenRead. |
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 | Versions 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.