74oshua / RoombaMines

A mod for Lethal Company that makes mines move like Roombas. Must be installed on client and server!
1 stars 1 forks source link

1.1.0 doesn't seem to work with r2modman #1

Closed guifisilva closed 10 months ago

guifisilva commented 10 months ago

This is what appears on the BepInEx log:

[Error  : Unity Log] DirectoryNotFoundException: Could not find a part of the path "C:\Steam\steamapps\common\Lethal Company\BepInEx\config\roomba_names.txt".
Stack trace:
System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) (at <787acc3c9a4c471ba7d971300105af24>:IL_0164)
System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) (at <787acc3c9a4c471ba7d971300105af24>:IL_0000)
(wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions)
System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) (at <787acc3c9a4c471ba7d971300105af24>:IL_0055)
System.IO.StreamWriter..ctor (System.String path) (at <787acc3c9a4c471ba7d971300105af24>:IL_0008)
(wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string)
RoombaMines.Plugin.Awake () (at <f0a8fa030802427aa3e7821fccae3df1>:IL_0113)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.Rendering.HighDefinition.HDRenderPipelineAsset:OnEnable()

Reverting to 1.0.0 makes it work again.

A RoombaMines.cfg file is created in the profile config folder, but no roomba_names.txt file is present.

74oshua commented 10 months ago

Weird... to confirm, RoombaMines.cfg is correctly appears at C:\Steam\steamapps\common\Lethal Company\BepInEx\config\ on your system, and not in any other directory?

guifisilva commented 10 months ago

No, it appears in my r2modman profile folder, which isn't in the game directory at all.

...\LethalCompany\profiles\Default\BepInEx\config

74oshua commented 10 months ago

Ah, that'd do it. I'll have a fix to maximize compatibility with v1.1.1, please let me know if that fixes the issue.

74oshua commented 10 months ago

@guifisilva 1.1.1 is up

guifisilva commented 10 months ago

Just tested with friends, seems to be working now. Thanks!