• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • GuildBankFrame is broken.

    Discussion in 'Honorbuddy Support' started by Killzone667, Dec 17, 2016.

    1. Killzone667

      Killzone667 Community Developer

      Joined:
      Sep 20, 2015
      Messages:
      87
      Likes Received:
      0
      Trophy Points:
      6
      there are no logs. It is lvl 1 guild banker. Just tried to run code from console:var a = new GuildBankFrame();Log(a.Money);

      In previous relises it worked well. Now it just closes GUildBankFrame and returns
      THIS:
      System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.OverflowException: Value was either too large or too small for an Int32.
      at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
      at System.String.System.IConvertible.ToInt32(IFormatProvider provider)
      at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
      at Styx.WoWInternals.Lua.ParseLuaValue[T](String val)
      at Styx.WoWInternals.Lua.GetReturnVal[T](String lua, UInt32 retVal)
      at Styx.CommonBot.Frames.GuildBankFrame.get_Money()
      at Driver.Run()
      --- End of inner exception stack trace ---
      at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
      at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
      at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
      at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
      at Honorbuddy.DevToolsWindow.CompileAndRun(String input)
      at Honorbuddy.DevToolsWindow.‏​‫‪**‪‏**‎‎*****.**‏‫‬‫‬​‬‬​‬‫‎​*‫*‎**​​‫​​*(Object )
       
    2. EchoTiger

      EchoTiger Official Profile and Singular Developer Staff Member Moderator

      Joined:
      Nov 28, 2012
      Messages:
      6,810
      Likes Received:
      631
      Trophy Points:
      113
      How much gold is in the bank?

      It looks to me that this property returns as a Int32 - which if you have more than 2147483647copper in your guild bank, it will cause an overflow exception.
      In gold, that would be of 214,748g 36s 47c.

      I've opened a ticket on the internal tracker to have the return switched to UInt64 instead.
      For now, you would probably be better off using Lua to return how much is in the bank.
       
    3. Killzone667

      Killzone667 Community Developer

      Joined:
      Sep 20, 2015
      Messages:
      87
      Likes Received:
      0
      Trophy Points:
      6
      Strange thing also happens. Once GuildBankFrame Is called it closes existing Frame in WOW Client.
      Features Like GuildBankFrame.WithdrawItemCoroutine() also broken.
       
      Last edited: Dec 17, 2016
    4. EchoTiger

      EchoTiger Official Profile and Singular Developer Staff Member Moderator

      Joined:
      Nov 28, 2012
      Messages:
      6,810
      Likes Received:
      631
      Trophy Points:
      113
      It closes the frame because it's initializing the constructor.
      If you look, it tells you that it will do this.

      Constructors
      GuildBankFrame
      Initializes a new instance of the GuildBankFrame class, and closes the guild bank frame if it is opened.



      What's your code for WithdrawItemCoroutine()?
       
    5. Killzone667

      Killzone667 Community Developer

      Joined:
      Sep 20, 2015
      Messages:
      87
      Likes Received:
      0
      Trophy Points:
      6
      public async Task WithdrawFromAllTabs()
      {
      var frame = new GuildBankFrame();
      StyxWoW.Sleep(5000);
      await frame.WithdrawItemCoroutine(1, 1);
      }
      I'm opening gb while its paused and in the end it still closes and writes to log:

      Exception was thrown in BotBase.Root.Tick
      Buddy.Coroutines.CoroutineUnhandledException: Exception was thrown by coroutine ---> Buddy.Coroutines.CoroutineUnhandledException: Exception was thrown by coroutine ---> Buddy.Coroutines.CoroutineUnhandledException: Exception was thrown by coroutine ---> System.InvalidOperationException: Cannot withdraw items when the bank frame is not visible.
      at Styx.CommonBot.Frames.GuildBankFrame.lA4))0I\[@s\*-y{(6rD%=r0nQ(.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 __CompileBatchNamespace4__.__CompiledBatchClass__.<WithdrawFromAllTabs>d__2.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 __CompileBatchNamespace4__.__CompiledBatchClass__.<<__ExpressionFunc__1>b__3_0>d.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.GetResult()
      at Honorbuddy.Quest_Behaviors.RunCode.<MainCoroutine>d__32.MoveNext() in C:\Honorbuddy\Quest Behaviors\RunCode.cs:line 223
      --- 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 CommonBehaviors.Actions.ActionRunCoroutine.nNdW9{\[anpc\\ V/VR_hqmpGN.Y>'iHGQty;\,Cm#;mn7~BHj- %.MoveNext()
      --- End of inner exception stack trace ---
      at Buddy.Coroutines.Coroutine.*‫*‬‬**‏‬‫‏*​*‬‫‎*‎*‏‫‪‏‫**(Boolean )
      at Buddy.Coroutines.Coroutine.*​‬**‎*‫*‬‪‪‪‏‬‫‪‫‪*‎**(Boolean )
      at Buddy.Coroutines.Coroutine.Resume()
      at CommonBehaviors.Actions.ActionRunCoroutine.Run(Object context)
      at Styx.TreeSharp.Action.RunAction(Object context)
      at Styx.TreeSharp.Action.1)K}AZ}2nZK-y\\!SH</8IB>z'.MoveNext()
      at Styx.TreeSharp.Composite.Tick(Object context)
      at Styx.TreeSharp.Decorator.#~mB9\&h@k?8j@ 2J<\[vFeV1u\&.MoveNext()
      at Styx.TreeSharp.Composite.Tick(Object context)
      at Bots.Quest.Actions.ForcedBehaviorExecutor.fdfhOE;Vh|2t?wFh\\fnQ\[6\,5\..MoveNext()
      at Styx.TreeSharp.Composite.Tick(Object context)
      at Styx.TreeSharp.PrioritySelector.?mM4C~|e x{@^eFO\&}gp\\$\,u.MoveNext()
      at Styx.TreeSharp.Composite.Tick(Object context)
      at Styx.Common.HookExecutor.Run(Object context)
      at Styx.TreeSharp.Action.RunAction(Object context)
      at Styx.TreeSharp.Action.1)K}AZ}2nZK-y\\!SH</8IB>z'.MoveNext()
      at Styx.TreeSharp.Composite.Tick(Object context)
      at Styx.TreeSharp.PrioritySelector.?mM4C~|e x{@^eFO\&}gp\\$\,u.MoveNext()
      at Styx.TreeSharp.Composite.Tick(Object context)
      at Styx.CommonBot.Coroutines.CoroutineCompositeExtensions.WhH<T ux yU:CNL~^|\.g(`eR#.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 e%Z(\*^4\*UE"{#boLu8tM?FMz$.y38?{U~`AI%X I@i\]sm\*\]\, '(._cc\*#:TnG03Eu=9-9{$DhOQF.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 CommonBehaviors.Actions.ActionRunCoroutine.nNdW9{\[anpc\\ V/VR_hqmpGN.Y>'iHGQty;\,Cm#;mn7~BHj- %.MoveNext()
      --- End of inner exception stack trace ---
      at Buddy.Coroutines.Coroutine.*‫*‬‬**‏‬‫‏*​*‬‫‎*‎*‏‫‪‏‫**(Boolean )
      at Buddy.Coroutines.Coroutine.*​‬**‎*‫*‬‪‪‪‏‬‫‪‫‪*‎**(Boolean )
      at Buddy.Coroutines.Coroutine.Resume()
      at CommonBehaviors.Actions.ActionRunCoroutine.Run(Object context)
      at Styx.TreeSharp.Action.RunAction(Object context)
      at Styx.TreeSharp.Action.1)K}AZ}2nZK-y\\!SH</8IB>z'.MoveNext()
      at Styx.TreeSharp.Composite.Tick(Object context)
      at Styx.TreeSharp.PrioritySelector.?mM4C~|e x{@^eFO\&}gp\\$\,u.MoveNext()
      at Styx.TreeSharp.Composite.Tick(Object context)
      at Styx.Common.HookExecutor.Run(Object context)
      at Styx.TreeSharp.Action.RunAction(Object context)
      at Styx.TreeSharp.Action.1)K}AZ}2nZK-y\\!SH</8IB>z'.MoveNext()
      at Styx.TreeSharp.Composite.Tick(Object context)
      at Styx.CommonBot.Coroutines.CoroutineCompositeExtensions.WhH<T ux yU:CNL~^|\.g(`eR#.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 e%Z(\*^4\*UE"{#boLu8tM?FMz$.y38?{U~`AI%X I@i\]sm\*\]\, '(.(rM5cG\,N;REW)(zE=le'-NN~".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 Styx.CommonBot.TreeRoot.>;)\[@#Y1JvdcPmL 536 I}y#!.fmDRH;Ex1KTz8k\& n1aAs^X>%.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 CommonBehaviors.Actions.ActionRunCoroutine.nNdW9{\[anpc\\ V/VR_hqmpGN.Y>'iHGQty;\,Cm#;mn7~BHj- %.MoveNext()
      --- End of inner exception stack trace ---
      at Buddy.Coroutines.Coroutine.*‫*‬‬**‏‬‫‏*​*‬‫‎*‎*‏‫‪‏‫**(Boolean )
      at Buddy.Coroutines.Coroutine.*​‬**‎*‫*‬‪‪‪‏‬‫‪‫‪*‎**(Boolean )
      at Buddy.Coroutines.Coroutine.Resume()
      at CommonBehaviors.Actions.ActionRunCoroutine.Run(Object context)
      at Styx.TreeSharp.Action.RunAction(Object context)
      at Styx.TreeSharp.Action.1)K}AZ}2nZK-y\\!SH</8IB>z'.MoveNext()
      at Styx.TreeSharp.Composite.Tick(Object context)
      at Styx.TreeSharp.PrioritySelector.?mM4C~|e x{@^eFO\&}gp\\$\,u.MoveNext()
      at Styx.TreeSharp.Composite.Tick(Object context)
      at Styx.Common.HookExecutor.Run(Object context)
      at Styx.TreeSharp.Action.RunAction(Object context)
      at Styx.TreeSharp.Action.1)K}AZ}2nZK-y\\!SH</8IB>z'.MoveNext()
      at Styx.TreeSharp.Composite.Tick(Object context)
      at Styx.CommonBot.TreeRoot.>;)\[@#Y1JvdcPmL 536 I}y#!.‎*‎‬‎‫‬‪**​‎***‪‬*‬‏​‫‏*‪‪*()
      at Styx.CommonBot.TreeRoot.​​****‏‬‏****‎*‫‏‪*‫‫***(Action , String , Boolean )
       

    Share This Page