From b305dc16d634abdd177b8c75c560ed8069ca2bb1 Mon Sep 17 00:00:00 2001 From: Chomp Date: Thu, 12 Aug 2021 22:26:25 +0100 Subject: [PATCH] More debug logging --- Generator/Program.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Generator/Program.cs b/Generator/Program.cs index 8ca1c8f..9953aa6 100644 --- a/Generator/Program.cs +++ b/Generator/Program.cs @@ -6,7 +6,7 @@ namespace Generator { static void Main(string[] args) { - string[] botTypes = {"assault", "marksman", "pmcbot", "bossbully", "bosskilla" }; + string[] botTypes = { "assault", "marksman", "pmcbot", "bossbully", "bosskilla" }; // Read raw bot dumps from live and turn into c# objects var workingPath = Directory.GetCurrentDirectory(); @@ -14,6 +14,13 @@ namespace Generator var botParser = new BotParser(workingPath, dumpPath, botTypes); var parsedBots = botParser.Parse(); + if (parsedBots.Count == 0) + { + Helpers.LoggingHelpers.LogToConsole("no bots found, unable to continue"); + Helpers.LoggingHelpers.LogToConsole("Check your dumps are in 'Generator\\bin\\Debug\\netcoreapp3.1\\dumps' and start with 'resp.' NOT 'req'"); + return; + } + // Generate the base bot class and add basic details (health/body part hp etc) var baseBotGenerator = new BaseBotGenerator(parsedBots); var baseBots = baseBotGenerator.AddBaseDetails();