More debug logging

This commit is contained in:
Chomp 2021-08-12 22:26:25 +01:00
parent c93cd634d6
commit b305dc16d6

View File

@ -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();