OTAPI.USP 1.0.5

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

OTAPI Unified Server Process

OTAPI.USP is a secondary IL patch built on top of OTAPI, enabling multiple isolated Terraria server instances to run within a single process.

Unlike standard OTAPI builds, this package introduces a breaking change by redirecting access to static fields within the Terraria server to their instance-scoped equivalents. This change allows each server instance to operate in a fully isolated execution context—enabling true multi-server concurrency within a single host process.

Key Features

  • 🧩 Built on top of OTAPI (IL-patched TerrariaServer.exe)
  • ⚠️ Breaking change: static server state is redirected to instance-level context
  • 🧵 Supports multiple Terraria server instances running in parallel threads
  • 💡 Enables advanced hosting models (e.g., high-density server clusters, custom orchestration, dynamic scaling)

Compatibility

  • Terraria: 1.4.4.9
  • OTAPI: 3.2.6+9348ecf600322b8492d16a48bf9b1fd6eb7619a3

Important Notes

  • This package is not drop-in compatible with standard OTAPI mods.
  • Due to static field redirection, code that relies on traditional static access (e.g., Main.time, Netplay) must be adapted to use the appropriate instance context.
  • For mod development or integration, consult the API documentation or source examples on GitHub.

Licensing

This package follows the licensing terms of OTAPI and the original Terraria server executable. See COPYING.txt for details.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.5 12 8/11/2025
1.0.4 164 8/7/2025
1.0.3-ci.3 137 8/4/2025
1.0.2 92 7/27/2025
1.0.1 435 7/24/2025

Preliminary Terraria 1.4.4.9