AvatarCreatures
Load custom avatars for players in your lobby.
模組介紹 作者原文
AvatarCreatures
A Lethal Company mod that lets you load custom avatars for players in your lobby.
You only see other people's avatars not your own. If you know how to hide the default hands please open an issue in my GitHub repo.
Each player must have the AssetBundle for each player to see them properly:
- Use the Unity plugin to generate an AssetBundle for your own avatar in your steamapps/common/Lethal Company/Avatars folder
- Share this AssetBundle with your friends (eg. 12345678912345678.assetbundle) and make sure everyone's AssetBundle is in the same "Avatars" folder
- Run the mod and you should see them
Forked from DarnHyena's LethalCreatures mod
3rd person mods
This mod is not compatible with 3rd person mods.
You _can_ look at a broken version of yourself with 3rd person mods and enabling setting AlwaysRenderLocalPlayerModel and restarting the game.
Development
Unity plugin
- Open Unity project
- Copy everything in UnityPlugin to Assets folder inside Unity project
Mod
- Open solution in Visual Studio 2022
- Change.csproj references:
LC_API => C:/Users//AppData/Roaming Mod Manager/DataFolder/LethalCompany/profiles/Default/BepInEx/plugins/2018-LC_API/LC_API.dll
Assembly-CSharp/everything else => steamapps/common/Lethal Company/Lethal Company_Data/Managed.dll
- Restore NuGet packages
- Build project
- Copy LethalCreatures/bin/Debug/netstandard2.1/CreatureModels.dll to C:/Users//AppData/Roaming Mod Manager/DataFolder/LethalCompany/profiles/Default/BepInEx/plugins/PeanutBuddha-AvatarCreature/CreatureModels.dll
- (optionally) From Unity use official plugin "AssetBundle Browser" to create a new bundle named "core" with these files (the mod uses another mod to load them from their own assetbundle):
- UnityAssets/CritterControl.controller
- UnityAssets/CtritterIdle.anim
- Launch game
Publish
NOTE: Include unity plugin with the mod to make it easier for people.
Unity plugin
- In Unity project export PeanutTools/AvatarCreatureGenerator inclusive as PeanutTools_AvatarCreatureGenerator_X.X.X.unitypackage
- Copy into mod folder C:/Users//AppData/Roaming Mod Manager/DataFolder/LethalCompany/profiles/Default/BepInEx/plugins/PeanutBuddha-AvatarCreature
Mod
- Ensure the manifest file is up to date
- Run./packageup.ps1 to copy everything into the plugin directory
- Compress the plugin directory into PeanutBuddha-AvatarCreature-X.X.X.zip
- Release
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: