Skip to content

Easy setup and live-copy guide

Use scripts/bootstrap.py to check your local prerequisites, install Python tooling dependencies, and prepare an isolated multiplayer test copy without modifying your original game saves.

Two-track quick start

Choose the track that matches what you are working on:

Track 1: Offline contributor

No The Sims 3 installation, reference DLLs, or Sandboxie setup is required. From the repository root:

python scripts/bootstrap.py check
python scripts/bootstrap.py install-deps
dotnet build SimsOnline.Client/SimsOnline.Client.csproj
dotnet build DedicatedServer.Tests/SimsOnline.DedicatedServer.Tests.csproj
dotnet run --project DedicatedServer.Tests/SimsOnline.DedicatedServer.Tests.csproj -- --filter all
python scripts/dev.py check

To preview or validate the MkDocs site locally as well, pass --docs:

python scripts/bootstrap.py install-deps --docs
mkdocs serve

Track 2: Live multiplayer copy

Live multiplayer testing builds the in-game script mod and runs one host game alongside an isolated Sandboxie client game against a disposable copy of a .sims3 save.

  1. Run python scripts/bootstrap.py check and resolve any missing T0, T1, or T2 prerequisites listed in its remediation output (including 10/10 locally supplied refs/sims3/ DLLs and your isolated Sandboxie box).
  2. Preview the exact build, save-copy, and mod-install plan without touching disk:
python scripts/bootstrap.py live-copy --save "Sunset Valley.sims3" --dry-run
  1. Build both controllers and the mod, safely copy a disposable .sims3 save, and install the mod into both the host profile and the isolated client profile:
python scripts/bootstrap.py live-copy --save "Sunset Valley.sims3"

Pass --with-sidecar to also build and install SimLink.asi, or --dest-save <copy-name.sims3> to choose an explicit disposable save name.

  1. Set the printed checkpoint environment variables and run the printed 1-line smoke test (scripts/stackctl.py + scripts/scenarios.py), then shut down the stack with python scripts/stackctl.py down.

One-screen dependency table

Run python scripts/bootstrap.py check --json for machine-readable status, or python scripts/bootstrap.py check for per-item remediation lines.

Tier Dependency Role Install / setup command (Windows)
T0 .NET 8 SDK Build/test controllers, clients, and .NET suite winget install --id Microsoft.DotNet.SDK.8 -e
T1 Python 3.12+ Tooling CLI (dev.py, bootstrap.py, stackctl.py) winget install --id Python.Python.3.13 -e
T1 requirements-dev.txt ruff, pytest, and script dependencies python scripts/bootstrap.py install-deps
T1 requirements-docs.txt (optional) MkDocs Material local preview and strict build python scripts/bootstrap.py install-deps --docs
T1 PowerShell 7 (pwsh) Mod build/install scripts and .ps1 lint winget install --id Microsoft.PowerShell -e
T1 Cargo + sccache (optional) Experimental Rust crates and compiler caching winget install --id Rustlang.Rustup -e and winget install --id Mozilla.sccache -e
T1 CMake (optional) Native SimLink.asi sidecar build winget install --id Kitware.CMake -e
T2 .NET 2.0 & 4.0 csc.exe Legacy CLR 2 mod build & CLR 4 package builder dism /online /enable-feature /featurename:NetFx3 /all (plus winget install --id Microsoft.DotNet.Framework.DeveloperPack_4 -e if CLR 4 csc.exe is missing)
T2 Sandboxie-Plus (Start.exe) Isolate local client TS3W.exe profile on Windows winget install --id Sandboxie.Plus -e
T2 The Sims 3 + refs/sims3/ + s3pe Live execution, 10 local reference DLLs, .package builder Locally supplied by user (see below)

On Linux, install Python 3.12+, PowerShell 7, Rust, and CMake through your distribution or rustup, and create an isolated client Wine prefix with scripts/bootstrap-client-prefix.ps1 instead of Sandboxie.

Cleanroom boundaries and supplying refs/sims3/ locally

This repository follows a strict cleanroom policy. Do not commit, upload, or attach The Sims 3 executables, .package archives, save folders, or compiled game assemblies to issues or pull requests.

  • Offline work needs no game files: Track 1 builds and tests (DedicatedServer, SimsOnline.Client, SimsOnline.TestClient, DedicatedServer.Tests, Rust crates, and scripts/dev.py check) never read refs/sims3/ or launch TS3W.exe.
  • Mod compilation requires 10 local DLLs: Compiling the full script mod and its SimsOnlinePresentation assembly via scripts/make-mod.ps1 expects all 10 assemblies listed in refs/sims3/README.md (see also licensing and assets) under refs/sims3/: scripts_00.dll, scripts_01.dll, scripts_02.dll, gameplay_00.dll, gameplay_01.dll, gameplay_02.dll, gameplay_03.dll, simcore_00.dll, simcore_01.dll, and simcore_02.dll.
  • Supply only legally usable local copies or metadata stubs: Obtain those 10 assemblies locally from your own legally acquired installation (or API-only metadata stubs; see scripts/reference_assembly.py). Keep them strictly inside your local refs/sims3/ folder, which is gitignored and rejected by the repository's input guard if ever staged.
  • Custom game install path: If scripts/ts3_paths.py does not auto-detect your TS3W.exe, set SIMSONLINE_TS3_PATH in your shell before running check or live-copy:
$env:SIMSONLINE_TS3_PATH = "C:\Path\To\The Sims 3\Game\Bin\TS3W.exe"
  • Packaging dependencies: Packaging the .package archive via SimsOnlineServerHostMod/package-server-host-mod.ps1 also expects the s3pi.*.dll libraries under C:\Program Files\s3pe (or $WINEPREFIX/drive_c/Program Files/s3pe on Linux).

Isolated Sandboxie box and disposable save copy

Never run two TS3W.exe instances against one mutable Documents\Electronic Arts\The Sims 3 folder; scriptCache.package flushes, mod updates, and save checkpoints will collide.

  1. Create an isolated Sandboxie box (Windows):
  2. Install Sandboxie-Plus (winget install --id Sandboxie.Plus -e) and create a dedicated box named Client2Box (or set SIMSONLINE_SANDBOXIE_BOX / pass --box <name>).
  3. Give that box an isolated sandboxed profile directory at C:\Sandbox\<user>\<box>\drive\C\Sims\.sims3-client\drive_c\users\<user>\Documents\Electronic Arts\The Sims 3\ with its own Saves\ directory and Mods\Resource.cfg. Avoid DefaultBox if it inherits your real or OneDrive Documents folder.
  4. Override discovery with SIMSONLINE_CLIENT_SAVES_DIR or --client-profile if you place the isolated profile elsewhere.
  5. Copy a disposable .sims3 save safely:
  6. scripts/bootstrap.py live-copy copies the source .sims3 directory into a distinct disposable copy (<source>-live-copy.sims3 by default, or --dest-save <name>.sims3) and checks SHA-256 digests on every copied file.
  7. It refuses same-path copies, nested paths, existing destinations, non-.sims3 directories, empty saves, identical/nested host and client profiles, and running TS3W.exe processes so your original save is never altered or overwritten.
  8. Keep world checkpoints separate:
  9. Set SIMSONLINE_CHECKPOINT_SAVE to <disposable-save>-checkpoint.sims3 and SIMSONLINE_WORLD_FROM_SERVER=1 before starting the smoke test so join checkpoints write to their own folder.
  10. Check python scripts/fork_census.py before booting; running deliberately against a stock game without a local gameplay fork requires --no-fork-ok or SIMSONLINE_NO_FORK_OK=1 (see compatibility matrix).

Fast Rust prototyping

The C# .NET 8 DedicatedServer and SimsOnline.Client projects remain the active supported runtime for live sessions. Alongside the existing Rust workspace crates (rust/sim96_kernel_cleanroom/, rust/simlink_bridge/, rust/simlink_headless_server/), watch rust/sims3online_launcher/ for fast Rust launcher prototyping, and keep sccache installed when iterating on Rust builds ($env:RUSTC_WRAPPER = "sccache").

Common setup failures

Symptom Cause / fix
refs/sims3/*.dll reports < 10/10 Provide all 10 assemblies locally (including simcore_00.dll..simcore_02.dll for SimsOnlinePresentation) and re-run python scripts/bootstrap.py check.
live-copy refuses existing destination Pick a fresh --dest-save name or remove the old disposable copy; live-copy never overwrites saves.
live-copy refuses because TS3W.exe is running Stop the stack first with python scripts/stackctl.py down before installing mod or sidecar files.
FORK-MISSING on smoke boot Install a verified local fork or pass --no-fork-ok for deliberately stock smoke runs.

First live multiplayer session | Development setup | Testing | Prerequisites | Build from source | SimLink sidecar | Security