Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WriteOnce problem #24

Open
chucklu opened this issue Sep 11, 2019 · 0 comments
Open

WriteOnce problem #24

chucklu opened this issue Sep 11, 2019 · 0 comments

Comments

@chucklu
Copy link
Collaborator

chucklu commented Sep 11, 2019

2019-09-11 22:30:41.733+08:00 [11] ERROR Triton.Common.LogUtilities.Logger - [Tick] Exception during execution:
Buddy.Coroutines.CoroutineUnhandledException: Exception was thrown by coroutine ---> System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: Value not set
at SilverFish.Helpers.WriteOnce1.get_Value() in C:\Users\clu\Desktop\Hearthbuddy\Routines\DefaultRoutine\SilverFish\Helpers\WriteOnce.cs:line 24 at SilverFish.Helpers.WriteOnce1.op_Implicit(WriteOnce1 value) in C:\Users\clu\Desktop\Hearthbuddy\Routines\DefaultRoutine\SilverFish\Helpers\WriteOnce.cs:line 43 at HREngine.Bots.PenaltyManager.getDamagePenality(Card card, Minion target, Playfield p) in C:\Users\clu\Desktop\Hearthbuddy\Routines\DefaultRoutine\SilverFish\ai\PenaltyManager.cs:line 1163 at HREngine.Bots.PenaltyManager.getPlayCardPenality(Card card, Minion target, Playfield p) in C:\Users\clu\Desktop\Hearthbuddy\Routines\DefaultRoutine\SilverFish\ai\PenaltyManager.cs:line 328 at HREngine.Bots.Movegenerator.GetMoveList(Playfield p, Boolean usePenalityManager, Boolean useCutingTargets, Boolean own) in C:\Users\clu\Desktop\Hearthbuddy\Routines\DefaultRoutine\SilverFish\ai\Movegenerator.cs:line 238 at HREngine.Bots.MiniSimulator.startEnemyTurnSimThread(List1 source, Int32 startIndex, Int32 endIndex) in C:\Users\clu\Desktop\Hearthbuddy\Routines\DefaultRoutine\SilverFish\ai\MiniSimulator.cs:line 287
at HREngine.Bots.MiniSimulator.<>c__DisplayClass39_0.b__0(Tuple2 range) in C:\Users\clu\Desktop\Hearthbuddy\Routines\DefaultRoutine\SilverFish\ai\MiniSimulator.cs:line 142 at System.Threading.Tasks.Parallel.<>c__DisplayClass42_02.b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.b__0(Object )
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner1 source, ParallelOptions parallelOptions, Action1 simpleBody, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](Partitioner1 source, Action1 body)
at HREngine.Bots.MiniSimulator.DoAllMoves(Playfield playf) in C:\Users\clu\Desktop\Hearthbuddy\Routines\DefaultRoutine\SilverFish\ai\MiniSimulator.cs:line 139
at HREngine.Bots.Ai.doallmoves(Boolean test, Boolean isLethalCheck) in C:\Users\clu\Desktop\Hearthbuddy\Routines\DefaultRoutine\SilverFish\ai\Ai.cs:line 124
at HREngine.Bots.Ai.dosomethingclever(Behavior bbase) in C:\Users\clu\Desktop\Hearthbuddy\Routines\DefaultRoutine\SilverFish\ai\Ai.cs:line 273
at HREngine.Bots.SilverFishBot.updateEverything(Behavior botbase, Int32 numcal, Boolean& sleepRetry) in C:\Users\clu\Desktop\Hearthbuddy\Routines\DefaultRoutine\SilverFish\SilverFishBot.cs:line 365
at HREngine.Bots.DefaultRoutine.d__45.MoveNext() in C:\Users\clu\Desktop\Hearthbuddy\Routines\DefaultRoutine\DefaultRoutine.cs:line 727
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at HREngine.Bots.DefaultRoutine.d__39.MoveNext() in C:\Users\clu\Desktop\Hearthbuddy\Routines\DefaultRoutine\DefaultRoutine.cs:line 439
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Triton.Bot.Logic.Bots.DefaultBot.DefaultBot.Struct76.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Triton.Bot.Logic.Bots.DefaultBot.DefaultBot.Struct78.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Triton.Bot.Logic.Bots.DefaultBot.DefaultBot.Struct71.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Triton.Bot.Logic.Bots.DefaultBot.DefaultBot.Struct60.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Buddy.Coroutines.Coroutine.Class66.Struct18.MoveNext()
--- End of inner exception stack trace ---
at Buddy.Coroutines.Coroutine.method_2(Boolean bool_2)
at Buddy.Coroutines.Coroutine.method_0(Boolean bool_2)
at Buddy.Coroutines.Coroutine.Resume()
at Triton.Bot.Logic.Bots.DefaultBot.DefaultBot.Tick()
at Triton.Bot.BotManager.smethod_1(IBot ibot_1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant