.158 bugs at Sark cellar, runs back and forth if cellar not present... .155 works like a charm though![]()
.158 bugs at Sark cellar, runs back and forth if cellar not present... .155 works like a charm though![]()
public static IOrderedEnumerable<DiaItem> Gold
{
get
{
return
ZetaDia.Actors.GetActorsOfType<DiaItem>().Where(
i =>
i.CommonData.Gold > 0 && ItemManager.EvaluateItem(i.CommonData, ItemManager.RuleType.PickUp)).
OrderBy(i => i.Distance);
}
}
public static IEnumerable<DiaItem> Loots
{
get
{
return
ZetaDia.Actors.GetActorsOfType<DiaItem>().Where(
i =>
i.CommonData.Gold == 0 && ItemManager.EvaluateItem(i.CommonData, ItemManager.RuleType.PickUp));
}
}
public static IOrderedEnumerable<DiaUnit> Units
{
get
{
return
ZetaDia.Actors.GetActorsOfType<DiaUnit>().Where(
x =>
x != null && x.MonsterInfo.MonsterType != MonsterType.Team && x.SummonedByACDId != ZetaDia.Me.CommonData.DynamicId &&
x.MonsterInfo.MonsterType != MonsterType.Helper && x.MonsterInfo.MonsterType != MonsterType.Ally &&
x.ACDGuid != -1 && !x.IsDead).OrderBy(x => x.Distance);
}
}
public static bool IsCleared
{
get { return Objects.Gold.FirstOrDefault() == null && Objects.Loots.FirstOrDefault() == null && Objects.Units.FirstOrDefault() == null; }
}
[17:25:05.251 D] System.ArgumentNullException: Value cannot be null.
Parameter name: path2
at System.IO.Path.Combine(String path1, String path2)
at Zeta.CommonBot.ItemManager.get_CurrentRuleSet()
at Zeta.CommonBot.ItemManager.EvaluateItem(ACDItem item, RuleType type)
at Zeta.CommonBot.ItemManager.ShouldPickUpItem(ACDItem item)
at Zeta.CommonBot.DefaultLootTargetingProvider.IsValidItem(DiaObject object)
at Zeta.CommonBot.DefaultLootTargetingProvider..(DiaObject item)
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Zeta.CommonBot.DefaultLootTargetingProvider.GetObjectsByWeight()
at Zeta.CommonBot.Targeting.Pulse()
at Zeta.CommonBot.Logic.BrainBehavior.()
Post a log. That happened for me aswell in .159 but not .160.Keeps Re.Loading the profile over and over and over and over again. On all my 3 toons.
After .160 I'm getting some errors with my plugin.
So seems like you broke something?![]()
any info about 160?
How do I do that?Attach VS to DB then turn on all exceptions and check where it get's thrown
I managed to attach it - but nothing happens in VS when the exception occurs. So what do I do next?How do I do that?
EDIT: nvm think I found it
Yeah I'm attached, but nothing really happens when I get the error.
finally ?Reloads the profile instead of resetting the caches now when joining games. ( should fix the "cellar" problem )