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.
- Run
python scripts/bootstrap.py checkand resolve any missing T0, T1, or T2 prerequisites listed in its remediation output (including10/10locally suppliedrefs/sims3/DLLs and your isolated Sandboxie box). - 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
- Build both controllers and the mod, safely copy a disposable
.sims3save, 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.
- 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 withpython 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, andscripts/dev.py check) never readrefs/sims3/or launchTS3W.exe. - Mod compilation requires 10 local DLLs: Compiling the full script mod and its
SimsOnlinePresentationassembly viascripts/make-mod.ps1expects all 10 assemblies listed inrefs/sims3/README.md(see also licensing and assets) underrefs/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, andsimcore_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 localrefs/sims3/folder, which is gitignored and rejected by the repository's input guard if ever staged. - Custom game install path: If
scripts/ts3_paths.pydoes not auto-detect yourTS3W.exe, setSIMSONLINE_TS3_PATHin your shell before runningcheckorlive-copy:
$env:SIMSONLINE_TS3_PATH = "C:\Path\To\The Sims 3\Game\Bin\TS3W.exe"
- Packaging dependencies: Packaging the
.packagearchive viaSimsOnlineServerHostMod/package-server-host-mod.ps1also expects thes3pi.*.dlllibraries underC:\Program Files\s3pe(or$WINEPREFIX/drive_c/Program Files/s3peon 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.
- Create an isolated Sandboxie box (Windows):
- Install Sandboxie-Plus (
winget install --id Sandboxie.Plus -e) and create a dedicated box namedClient2Box(or setSIMSONLINE_SANDBOXIE_BOX/ pass--box <name>). - 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 ownSaves\directory andMods\Resource.cfg. AvoidDefaultBoxif it inherits your real or OneDriveDocumentsfolder. - Override discovery with
SIMSONLINE_CLIENT_SAVES_DIRor--client-profileif you place the isolated profile elsewhere. - Copy a disposable
.sims3save safely: scripts/bootstrap.py live-copycopies the source.sims3directory into a distinct disposable copy (<source>-live-copy.sims3by default, or--dest-save <name>.sims3) and checks SHA-256 digests on every copied file.- It refuses same-path copies, nested paths, existing destinations, non-
.sims3directories, empty saves, identical/nested host and client profiles, and runningTS3W.exeprocesses so your original save is never altered or overwritten. - Keep world checkpoints separate:
- Set
SIMSONLINE_CHECKPOINT_SAVEto<disposable-save>-checkpoint.sims3andSIMSONLINE_WORLD_FROM_SERVER=1before starting the smoke test so join checkpoints write to their own folder. - Check
python scripts/fork_census.pybefore booting; running deliberately against a stock game without a local gameplay fork requires--no-fork-okorSIMSONLINE_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. |
Related pages¶
First live multiplayer session | Development setup | Testing | Prerequisites | Build from source | SimLink sidecar | Security