Skip to content

aoirint/CruiserJumpPractice

Repository files navigation

CruiserJumpPractice

A Lethal Company mod that saves/loads cruiser position, rotation, and condition, and lets you toggle the magnet remotely.

Development

Install .NET SDK 10.0 or later.

Install PowerShell 7.

Install Visual Studio 2022.

Restore NuGet packages.

dotnet restore --locked-mode

Create BeplnEx profiles in ./profiles directory.

pwsh ./InitProfiles.ps1

Open CruiserJumpPractice.sln in Visual Studio.

Launch HostAndGuest profile to debug. Or manually run Debug.ps1.

pwsh ./Debug.ps1

Code format

dotnet format

Package management

To update the lock file after modifying your package references, run:

dotnet restore --use-lock-file

GitHub Actions management

The repository uses GitHub Actions for CI.

The version of the actions are pinned with pinact.

# Pin
pinact run

# Update
pinact run --update

Build

# Debug build
DOTNET_CLI_UI_LANGUAGE=en dotnet build

# Release build
DOTNET_CLI_UI_LANGUAGE=en dotnet build --configuration Release

Release

  1. Replace version in CruiserJumpPractice/CruiserJumpPractice.csproj as semver format, e.g. 1.2.3.
  2. Commit and push the changes.
  3. CI will create a GitHub Release automatically.
  4. Download the release artifact from the GitHub Release page.
  5. Upload the artifact to Thunderstore. NOTE: prerelease version is not supported, e.g. 1.2.3-beta.1.

Debugging

r2modman

  1. Open r2modman.
  2. Open Config editor.
  3. Open BepInEx\config\BepInEx.cfg in the config list.
  4. Set Logging.Console.LogLevels to All.
  5. Open Settings > Import local mod.
  6. Select the DLL file from bin/Debug/netstandard2.1/.
  7. Click Start modded.

Manual

  1. Install BepInEx: https://docs.bepinex.dev/articles/user_guide/installation/index.html
  2. Launch Lethal Company.exe and exit to generate the BepInEx config files.
  3. Open C:/Program Files (x86)/Steam/steamapps/common/Lethal Company/BepInEx/config/BepInEx.cfg.
  4. Copy the DLL file into C:/Program Files (x86)/Steam/steamapps/common/Lethal Company/BepInEx/plugins/ from bin/Debug/netstandard2.1/.
  5. Set Logging.Console.Enabled to true.
  6. Set Logging.Console.LogLevels to All.
  7. Launch Lethal Company.exe again.

About

[v73+] A Lethal Company mod that saves/loads cruiser position, rotation, and condition, and lets you toggle the magnet remotely.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published