A Lethal Company mod that saves/loads cruiser position, rotation, and condition, and lets you toggle the magnet remotely.
Install .NET SDK 10.0 or later.
Install PowerShell 7.
Install Visual Studio 2022.
Restore NuGet packages.
dotnet restore --locked-modeCreate BeplnEx profiles in ./profiles directory.
pwsh ./InitProfiles.ps1Open CruiserJumpPractice.sln in Visual Studio.
Launch HostAndGuest profile to debug. Or manually run Debug.ps1.
pwsh ./Debug.ps1- Language version: C# 13.0
- Target framework: .NET standard 2.1
dotnet formatTo update the lock file after modifying your package references, run:
dotnet restore --use-lock-fileThe repository uses GitHub Actions for CI.
The version of the actions are pinned with pinact.
# Pin
pinact run
# Update
pinact run --update# Debug build
DOTNET_CLI_UI_LANGUAGE=en dotnet build
# Release build
DOTNET_CLI_UI_LANGUAGE=en dotnet build --configuration Release- Replace version in
CruiserJumpPractice/CruiserJumpPractice.csprojas semver format, e.g.1.2.3. - Commit and push the changes.
- CI will create a GitHub Release automatically.
- Download the release artifact from the GitHub Release page.
- Upload the artifact to Thunderstore. NOTE: prerelease version is not supported, e.g.
1.2.3-beta.1.
- Open r2modman.
- Open
Config editor. - Open
BepInEx\config\BepInEx.cfgin the config list. - Set
Logging.Console.LogLevelstoAll. - Open
Settings > Import local mod. - Select the DLL file from
bin/Debug/netstandard2.1/. - Click
Start modded.
- Install BepInEx: https://docs.bepinex.dev/articles/user_guide/installation/index.html
- Launch
Lethal Company.exeand exit to generate the BepInEx config files. - Open
C:/Program Files (x86)/Steam/steamapps/common/Lethal Company/BepInEx/config/BepInEx.cfg. - Copy the DLL file into
C:/Program Files (x86)/Steam/steamapps/common/Lethal Company/BepInEx/plugins/frombin/Debug/netstandard2.1/. - Set
Logging.Console.Enabledtotrue. - Set
Logging.Console.LogLevelstoAll. - Launch
Lethal Company.exeagain.