mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
report the full path when loading any files which might help in troubleshooting files not found properly
This commit is contained in:
parent
46dd4bc35f
commit
3393e7e402
5 changed files with 10 additions and 7 deletions
|
|
@ -663,7 +663,7 @@ namespace MinecraftClient
|
|||
}
|
||||
else
|
||||
{
|
||||
LogToConsole("File not found: " + Settings.Alerts_MatchesFile);
|
||||
LogToConsole("File not found: " + System.IO.Path.GetFullPath(file));
|
||||
return new string[0];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ namespace MinecraftClient.ChatBots
|
|||
if (System.IO.File.Exists(Settings.AutoRelog_KickMessagesFile))
|
||||
{
|
||||
if (Settings.DebugMessages)
|
||||
LogToConsole("Loading messages from file: " + Settings.AutoRelog_KickMessagesFile);
|
||||
LogToConsole("Loading messages from file: " + System.IO.Path.GetFullPath(Settings.AutoRelog_KickMessagesFile));
|
||||
|
||||
dictionary = System.IO.File.ReadAllLines(Settings.AutoRelog_KickMessagesFile);
|
||||
|
||||
|
|
@ -49,7 +49,7 @@ namespace MinecraftClient.ChatBots
|
|||
}
|
||||
else
|
||||
{
|
||||
LogToConsole("File not found: " + Settings.AutoRelog_KickMessagesFile);
|
||||
LogToConsole("File not found: " + System.IO.Path.GetFullPath(Settings.AutoRelog_KickMessagesFile));
|
||||
|
||||
if (Settings.DebugMessages)
|
||||
LogToConsole(" Current directory was: " + System.IO.Directory.GetCurrentDirectory());
|
||||
|
|
|
|||
|
|
@ -132,6 +132,9 @@ namespace MinecraftClient.ChatBots
|
|||
bool ownersOnly = false;
|
||||
respondRules = new List<RespondRule>();
|
||||
|
||||
if (Settings.DebugMessages)
|
||||
LogToConsole("Loading matches from file: " + System.IO.Path.GetFullPath(matchesFile));
|
||||
|
||||
foreach (string lineRAW in File.ReadAllLines(matchesFile))
|
||||
{
|
||||
string line = lineRAW.Split('#')[0].Trim();
|
||||
|
|
@ -175,7 +178,7 @@ namespace MinecraftClient.ChatBots
|
|||
}
|
||||
else
|
||||
{
|
||||
LogToConsole("File not found: '" + matchesFile + "'");
|
||||
LogToConsole("File not found: '" + System.IO.Path.GetFullPath(matchesFile) + "'");
|
||||
UnloadBot(); //No need to keep the bot active
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ namespace MinecraftClient.ChatBots
|
|||
}
|
||||
else
|
||||
{
|
||||
LogToConsole("File not found: '" + file + "'");
|
||||
LogToConsole("File not found: '" + System.IO.Path.GetFullPath(file) + "'");
|
||||
|
||||
if (owner != null)
|
||||
SendPrivateMessage(owner, "File not found: '" + file + "'");
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ namespace MinecraftClient.ChatBots
|
|||
if (System.IO.File.Exists(tasksfile))
|
||||
{
|
||||
if (Settings.DebugMessages)
|
||||
LogToConsole("Loading tasks from '" + tasksfile + "'");
|
||||
LogToConsole("Loading tasks from '" + System.IO.Path.GetFullPath(tasksfile) + "'");
|
||||
TaskDesc current_task = null;
|
||||
String[] lines = System.IO.File.ReadAllLines(tasksfile);
|
||||
foreach (string lineRAW in lines)
|
||||
|
|
@ -87,7 +87,7 @@ namespace MinecraftClient.ChatBots
|
|||
}
|
||||
else
|
||||
{
|
||||
LogToConsole("File not found: '" + tasksfile + "'");
|
||||
LogToConsole("File not found: '" + System.IO.Path.GetFullPath(tasksfile) + "'");
|
||||
UnloadBot(); //No need to keep the bot active
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue