I am driving myself nuts trying to figure out if my efforts to write data to a file are even working.. because i am not sure WHERE the file might be being generated.
I get no exceptions on compile...
I get the screen output fine....
I just don't know IF and WHERE the text file is being generated.
Code:
public void PaintWorld(WorldLayer layer)
{
foreach (MyMonster monster in MonstersToWatch)
{ var candidates = Hud.Game.Monsters.Where(m => (uint) m.SnoActor.Sno == monster.Sno && !monster.MaxHitpoints.Contains(m.MaxHealth));
if (candidates.Count() != 0)
{
foreach (IMonster candidate in candidates)
{
Hud.RunOnPlugin<PopupNotifications>(plugin =>
{
plugin.Show(monster.Name, monster.Title, monster.Duration, monster.Hint);
});
var MonData ="ID: " + monster.Name + "Name: " + monster.Title + "";
Hud.TextLog.Log(ConfigFileName, MonData, false, false);
//Hud.TextLog.Log(ConfigFileName, MonData, true, true);
monster.MaxHitpoints.Add(candidate.MaxHealth);
}
}
}
I'm trying to find files from other .cs files in turbohud that use the Hud.TextLog function ... but not helping..