Sims.Far 4.2.2

dotnet add package Sims.Far --version 4.2.2
                    
NuGet\Install-Package Sims.Far -Version 4.2.2
                    
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="Sims.Far" Version="4.2.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sims.Far" Version="4.2.2" />
                    
Directory.Packages.props
<PackageReference Include="Sims.Far" />
                    
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 Sims.Far --version 4.2.2
                    
#r "nuget: Sims.Far, 4.2.2"
                    
#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 Sims.Far@4.2.2
                    
#: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=Sims.Far&version=4.2.2
                    
Install as a Cake Addin
#tool nuget:?package=Sims.Far&version=4.2.2
                    
Install as a Cake Tool

Sims.Far

A library to extract and create The Sims 1 .far files.

Installation

You can install Sims.Far as a nupkg from nuget.org.

Usage

Extract everything from UIGraphics.far:

using Sims.Far;

static void Main(string[] args)
{
    var far = Far.Read(@"C:\Program Files (x86)\Maxis\The Sims\UIGraphics\UIGraphics.far");
    var outputFolder = "somedir";
    foreach (var file in far.Files)
    {
        var directories = Path.GetDirectoryName(file.Name);
        if (!string.IsNullOrWhiteSpace(directories))
        {
            var combined = Path.Join(outputFolder, directories);
            if (!Directory.Exists(combined))
            {
                Directory.CreateDirectory(combined);
            }
        }
        var outPath = Path.Join(outputFolder, file.Name);
        file.Extract(outPath);
    }
}

Create a new far file with some content and write it to newfar.far:

using Sims.Far;

static void Main(string[] args)
{
    var files = new List<FarFile> { new("Some file name", "Some content"u8.ToArray()) };
    var far = new Far(files);
    far.Write("newfar.far");
}

Credits

https://web.archive.org/web/20220410061532/https://simtech.sourceforge.net/tech/far.html

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 was computed.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.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 was computed. 
.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.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Sims.Far:

Repository Stars
FaithBeam/Sims-1-Complete-Collection-Widescreen-Patcher
Patches The Sims 1 to a custom resolution.
Version Downloads Last Updated
4.2.2 185 3/9/2025
4.2.0 138 3/8/2025
4.0.0 114 1/25/2025
3.2.2 475 10/29/2023
3.2.1 156 10/29/2023
3.2.0 154 10/29/2023
3.1.0 150 10/28/2023
3.0.0 1,073 8/7/2021
3.0.0-beta.15 265 8/4/2021
3.0.0-beta.14 234 8/4/2021
3.0.0-beta.13 204 8/4/2021
3.0.0-beta.12 232 8/1/2021
2.1.1 440 2/15/2021
2.1.0 484 2/13/2021
2.0.0 463 2/12/2021
1.1.0 494 11/27/2020
1.0.1 531 11/8/2020
1.0.0 528 11/8/2020
0.2.0 534 11/7/2020
0.1.0 622 6/29/2020