• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [Error] Hearthbuddy stopped working (Silverfish / Silver.exe).

    Discussion in 'Hearthbuddy Forum' started by GreatTroggzor, Jan 22, 2015.

    Thread Status:
    Not open for further replies.
    1. GreatTroggzor

      GreatTroggzor New Member

      Joined:
      Jan 22, 2015
      Messages:
      2
      Likes Received:
      0
      Trophy Points:
      0
      Hi!

      First of all thank you for making this awesome software. Saves so much time, and the AI is great :)

      I've bought the Hearthbuddy a few days ago, and since I'm a computer nerd myself, just started to play around with the values from DefaultRoutine.cs. I understand the concept of the Silverfish algorithm, but I couldn't keep the values very high (Working on a old laptop). So I searched for alternatives, realizing that I needed silver.exe as an external process.

      This thread: https://www.thebuddyforum.com/hearthbuddy-forum/hearthbuddy-guides/196570-customized-routines.html pretty much gave me everything I wanted.

      Downloaded the silver.exe and changed it to my setup. Because silver.exe comes with the standard values:

      ---------------------------------------------------------------------------------------------------------------------------------------------------
      init Silverfish
      read carddb.txt
      cant find _combo.txt
      cant find _combo.txt (if you dont created your own combos, ignore this message)
      cant find _mulligan.txt
      cant find _mulligan.txt (if you dont created your own mulliganfile, ignore this
      message)
      current alpha is 0.5
      set enemy-face-hp to: 15
      set maxwide to: 3000
      calculate the second turn of the 0 best boards
      write log to single file
      teststuff
      simulating board
      cant find test.txt
      cant find test.txt
      wait for board...
      ---------------------------------------------------------------------------------------------------------------------------------------------------

      Changed the source code for the maxwide parameters etc since they are hard coded:

      ---------------------------------------------------------------------------------------------------------------------------------------------------
      init Silverfish
      read carddb.txt
      cant find _combo.txt
      cant find _combo.txt (if you dont created your own combos, ignore this message)
      cant find _mulligan.txt
      cant find _mulligan.txt (if you dont created your own mulliganfile, ignore this
      message)
      current alpha is 0.5
      set enemy-face-hp to: 30
      set maxwide to: 5000
      calculate the second turn of the 200 best boards
      simulates the enemy turn on your second turn
      playing arround secrets is True
      write log to single file
      teststuff
      simulating board
      cant find test.txt
      cant find test.txt
      wait for board...
      ---------------------------------------------------------------------------------------------------------------------------------------------------

      I just press start in Hearthbuddy and fingers crossed. Worked great! But sometimes the user interaction between Hearthbuddy and Hearthstone stops, which leads to Hearthbuddy not doing anything in the respective turn, consequentially I loose the game If I'm not ready to take it over.

      In the Hearthbuddy log I have the following error:

      [GameplayScene_MAIN_ACTION_Friendly] Waiting to be in this state longer: 00:00:02.9405158.
      calculating stuff... 11:48:25.2793
      write to action file: <EoF>
      write to action file: <EoF>
      calculating ended! 11:48:42.5579
      play action
      [Tick] Exception during execution:Buddy.Coroutines.CoroutineUnhandledException: Exception was thrown by coroutine ---> System.InvalidOperationException: !IsInsideHook
      at Triton.Game.PerCachedValue`1.get_Value()
      at Triton.Game.TritonHs.get_GameState()
      at Triton.Game.TritonHs.GetCards(CardZone zone, Boolean localPlayer)
      at HREngine.Bots.DefaultRoutine.getallHandCards() in c:\Program Files (x86)\Hearthbuddy\Routines\DefaultRoutine\DefaultRoutine.cs:line 1213
      at HREngine.Bots.DefaultRoutine.getCardWithNumber(Int32 number) in c:\Program Files (x86)\Hearthbuddy\Routines\DefaultRoutine\DefaultRoutine.cs:line 1185
      at HREngine.Bots.DefaultRoutine.<OurTurnLogic>d__1c.MoveNext() in c:\Program Files (x86)\Hearthbuddy\Routines\DefaultRoutine\DefaultRoutine.cs:line 786
      --- 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:\Program Files (x86)\Hearthbuddy\Routines\DefaultRoutine\DefaultRoutine.cs:line 488
      --- 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.„ˆ.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.†ˆ.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.ˆ.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.ˆ.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.’”.Ž›.MoveNext()
      --- End of inner exception stack trace ---
      at Buddy.Coroutines.Coroutine.›(Boolean ›)
      at Buddy.Coroutines.Coroutine.Resume(Boolean ›)
      at Buddy.Coroutines.Coroutine.Resume()
      at Triton.Bot.Logic.Bots.DefaultBot.DefaultBot.Tick()
      at Triton.Bot.BotManager.Tick(IBot )

      The bot coroutine has finished in a state of Faulted
      [Stop] Now requesting the BotThread to stop.
      [AutoStop] Stop
      [Stats] Stop

      I also added the the Log file as an attachment.

      I know the use of external process was not expected in this version, but I couldn't make the best use of this bot without it, because of the computer I'm currently working.

      Aditional information:
      Operating System: Windows 8.1 x64
      Processor: Intel(R) Core(TM) i5-3337U CPU @ 1.80GHz 1.80 GHz 64 bit
      RAM: 4.00 GB

      Please help anyway :) Thank you for your time!

      Best regards.
       

      Attached Files:

    2. Tony

      Tony "The Bee" Staff Member Moderator

      Joined:
      Jan 15, 2010
      Messages:
      128,834
      Likes Received:
      571
      Trophy Points:
      113
      use support issues section plz


      closed
       
    Thread Status:
    Not open for further replies.

    Share This Page