35 lines
1.3 KiB
Markdown
35 lines
1.3 KiB
Markdown
# LMod
|
|
|
|
## Setup
|
|
|
|
Download modding framework [BepInEx](https://github.com/BepInEx/BepInEx)
|
|
Extract and paste its content into the root of the game. Start the game once to generate necessary files.
|
|
For debuging purposes edit BepInEx/config
|
|
|
|
```bash
|
|
[Logging.Console]
|
|
|
|
## Enables showing a console for log output.
|
|
# Setting type: Boolean
|
|
# Default value: false
|
|
Enabled = true
|
|
```
|
|
Download [ILSpy](https://github.com/icsharpcode/ILSpy) for decompiling the game.
|
|
Optionaly install [UnityExplorer](https://github.com/sinai-dev/UnityExplorer) in order to live debug and change variables in runtime.
|
|
|
|
Adjust in [MyFirstMod.csproj](MyFirstMod/MyFirstMod.csproj) lines to point to your game installation.
|
|
|
|
```bash
|
|
<ItemGroup>
|
|
<Reference Include="Assembly-CSharp">
|
|
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Lethal Company\Lethal Company_Data\Managed\Assembly-CSharp.dll</HintPath>
|
|
<Publicize>"true"</Publicize>
|
|
</Reference>
|
|
<Reference Include="UnityEngine">
|
|
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Lethal Company\Lethal Company_Data\Managed\UnityEngine.dll</HintPath>
|
|
<Publicize>"true"</Publicize>
|
|
</Reference>
|
|
</ItemGroup>
|
|
```
|
|
|
|
After building put the resulting .dll into BepInEx\plugins and start the game |