Skip to content

Latest commit

 

History

History
151 lines (105 loc) · 6.97 KB

README.md

File metadata and controls

151 lines (105 loc) · 6.97 KB

This PowerShell script installs a selection of mods for LethalCompany.

It also includes the installation of BepInEx, a game patcher / plugin framework for Unity.

You don't need to install anything on your Windows system to run this script.



How to use

Basic installation

To run ths script, follow these steps:

  1. Open a PowerShell console.

  2. Copy this one-liner command in the console:

    Set-ExecutionPolicy Bypass -Scope Process -Force; $Script = "$env:TEMP\LethalCompanyModder.ps1";rm $Script -Force -ErrorAction SilentlyContinue; iwr "https://raw.githubusercontent.com/fscorrupt/LethalCompanyModder/main/LethalCompanyModder.ps1" -OutFile $Script; & $Script
  3. Execute it.

It's as simple as that! 😄

Advanced installation

If needed, you can pass some parameters to the script:

& .\LethalCompanyModder.ps1 <parameters>

Install a curated preset of mods

Install mods from a preset maintained by us on GitHub:

& .\LethalCompanyModder.ps1 -Preset "Default"

Modify a preset of mods

Modify mods from a preset defined in script:

& .\LethalCompanyModder.ps1 -CustomModConfig

Install a preset of mods from file

Install mods from a preset defined in a file on your system:

& .\LethalCompanyModder.ps1 -Preset "MyPreset" -File "./path/to/mods.json"

Install for game host

Install mods, including those required only by the game host:

& .\LethalCompanyModder.ps1 -ServerHost

Upgrade

If you need to upgrade your mods, re-run the script with the Upgrade parameter. If BepInEx Folder is detected without the Upgrade Switch, it will automatically switch to Upgrade Mode.

& .\LethalCompanyModder.ps1 -Upgrade

Mods and dependencies will be re-installed with the latest version but keep the configuration.

BepInEx directory is backup-ed in the game directory as BepInEx_Backup.zip.

Clean installation

If you would like to re-install everything, run the script with the Force parameter.

& .\LethalCompanyModder.ps1 -Force

BepInEx directory is backup-ed in the game directory as BepInEx_Backup.zip.

Curated presets of mods

Default preset

This is the selection of mods to be installed when no curated or custom preset is specified by the user.

Check your files

If you would like to check your files after the installation, you can find them in the game directory.

The mods are located under the BepInEx\plugins directory.

Check