接下来有几个在修改过程中遇到的问题,还烦劳大佬们指点一下。
一、添加英雄皮肤相关问题
按照帖子
https://tieba.baidu.com/p/6714329731操作发现我的carddb里面没有HERO_0系列;
二、卡牌识别问题
(1)异画的幸运币我已经按照
https://tieba.baidu.com/p/7122040282的方法全部添加了,发现还是不会自动使用;
(2)现在的XD在手牌上有指向性卡牌时(无论法术还是战吼随从),就会报错并且会一直挂机,直至这一场对局结束,
一下是我找到的报错记录(以魂火为例)ERROR Logger (null) - [Tick] Exception during execution:
Buddy.Coroutines.CoroutineUnhandledException: Exception was thrown by coroutine ---> System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at HREngine.Bots.Playfield.minionGetDamageOrHeal(Minion m, Int32 dmgOrHeal, Boolean dontDmgLoss) in c:\HSBuddy\免费整合版\Routines\DefaultRoutine\Silverfish\ai\Playfield.cs:line 6931
at HREngine.Bots.Sim_VAN_EX1_308.onCardPlay(Playfield p, Boolean ownplay, Minion target, Int32 choice) in c:\HSBuddy\免费整合版\Routines\DefaultRoutine\Silverfish\cards\1646VAN经典\Sim_VAN_EX1_308.cs:line 14
at HREngine.Bots.Playfield.playACard(Handcard hc, Minion target, Int32 position, Int32 choice, Int32 penality) in c:\HSBuddy\免费整合版\Routines\DefaultRoutine\Silverfish\ai\Playfield.cs:line 3729
at HREngine.Bots.Playfield.doAction(Action aa) in c:\HSBuddy\免费整合版\Routines\DefaultRoutine\Silverfish\ai\Playfield.cs:line 3234
at HREngine.Bots.MiniSimulator.startEnemyTurnSimThread(List`1 source, Int32 startIndex, Int32 endIndex) in c:\HSBuddy\免费整合版\Routines\DefaultRoutine\Silverfish\ai\MiniSimulator.cs:line 261
at HREngine.Bots.MiniSimulator.<>c__DisplayClass4.<doallmoves>b__0(Tuple`2 range) in c:\HSBuddy\免费整合版\Routines\DefaultRoutine\Silverfish\ai\MiniSimulator.cs:line 134
at System.Threading.Tasks.Parallel.<>c__DisplayClass42_0`2.<PartitionerForEachWorker>b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.c
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](Partitioner`1 source, Action`1 body)
at HREngine.Bots.MiniSimulator.doallmoves(Playfield playf) in c:\HSBuddy\免费整合版\Routines\DefaultRoutine\Silverfish\ai\MiniSimulator.cs:line 131
at HREngine.Bots.Ai.doallmoves(Boolean test, Boolean isLethalCheck) in c:\HSBuddy\免费整合版\Routines\DefaultRoutine\Silverfish\ai\Ai.cs:line 120
at HREngine.Bots.Ai.dosomethingclever(Behavior bbase) in c:\HSBuddy\免费整合版\Routines\DefaultRoutine\Silverfish\ai\Ai.cs:line 254
at HREngine.Bots.Silverfish.updateEverything(Behavior botbase, Int32 numcal, Boolean& sleepRetry) in c:\HSBuddy\免费整合版\Routines\DefaultRoutine\silverfish_HB.cs:line 386
at HREngine.Bots.DefaultRoutine.<OurTurnLogic>d__21.MoveNext() in c:\HSBuddy\免费整合版\Routines\DefaultRoutine\DefaultRoutine.cs:line 735
--- 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.<Logic>d__3.MoveNext() in c:\HSBuddy\免费整合版\Routines\DefaultRoutine\DefaultRoutine.cs:line 443
--- 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.<method_37>d__65.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.<method_39>d__67.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.<method_32>d__60.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.<method_21>d__55.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.<>c__DisplayClass37_0.<<smethod_0>b__0>d.MoveNext()
--- End of inner exception stack trace ---
at Buddy.Coroutines.Coroutine.12(Boolean bool_2)
at Buddy.Coroutines.Coroutine.10(Boolean bool_2)
at Buddy.Coroutines.Coroutine.Resume()
at Triton.Bot.Logic.Bots.DefaultBot.DefaultBot.Tick()
at Triton.Bot.BotManager.21(IBot ibot_1)