GithubHelp home page GithubHelp logo

indaclouds / lethalcompanymodder Goto Github PK

View Code? Open in Web Editor NEW
18.0 3.0 1.0 67 KB

A PowerShell script to installs Lethal Company mods

License: MIT License

PowerShell 100.00%
lethal-company mods powershell-script

lethalcompanymodder's People

Contributors

indaclouds avatar voudoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

fscorrupt

lethalcompanymodder's Issues

Add Upgrade Parameter

Instead of erasing the entire BepInEx directory, only remove files located in the plugins and patchers directories and re-install them.

Only proceed to this action when the Upgrade parameter is passed.

"Get-ChildItem The network path was not found" Error

Thanks for the amazing script!
I ran into the error on my machine Get-ChildItem The network path was not found.
My Steam games are in a separate drive, nothing else I can think of.
My crewmates didn't get this error.

I'm no PowerShell dev, so I couldn't diagnose why, but I just added another param to manually add my game install:

[Parameter(
    HelpMessage = "Path to the 'Lethal Company' folder"
)]
[ValidateScript({ if (Test-Path -Path $_) { $true } else { throw "`"$_`" folder not found." } })]
[string] $SetDir

...

if ($SetDir.Length) {
    # Set game directory from command parameter
    Write-Host "Get directory `"$SetDir`""
    $GameDirectory = $SetDir
} else {
    # Search for directory where Lethal Company is installed
   ...
}
if (-not $GameDirectory) { Write-Error -Message "Lethal Company installation directory not found." }

Now the following script works for me:
& .\LethalCompanyModder.ps1 -SetDir "G:\SteamLibrary\steamapps\common\Lethal Company"

Add BepInExPatcher support

Add new BepInExPatcher type for mods.

This is for the BepInEx mods thats adds files to <game directory>\BepInEx\patchers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.