Spoffy / EcoDiscordPlugin

A plugin that interfaces Eco Global Survival's chat with Discord

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[2.0] ERROR: Error occurred while attempting to initialize the chat logger

TheKye opened this issue · comments

commented

[08:33:58.632] [11] [ Info] [Eco] [DiscordLink] ERROR: Error occured while attempting to initialize the chat logger using path "C:\Users\admin\Desktop\Eco Server\Mods\DiscordLink\Chatlog.txt". Error message: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\admin\Desktop\Eco Server\Mods\DiscordLink\Chatlog.txt'. at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle) at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.StreamWriter.ValidateArgsAndOpenPath(String path, Boolean append, Encoding encoding, Int32 bufferSize) at System.IO.StreamWriter..ctor(String path, Boolean append) at Eco.Plugins.DiscordLink.DiscordLink.StartChatlog()

This was most likely caused by the DiscordLink directory not existing, as the release zip-files have the version number in them.

I've made a fix and it will be included in an upcoming release.