What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Problem with Buddy.PublicQuest.IsObjectiveActive

Zytan

Member
Joined
Jun 12, 2012
Messages
84
Reaction score
0
Hello,

I am playing around creating profile for infestation instance and I came a cross a problem.

There is a quest "Seal Hull Breaches" which has % of completition after each time you close a breach.

I am using:

Code:
	<If Condition="Buddy.PublicQuest.IsObjectiveActive('Seal Hull Breaches')">		
				<While Condition="Buddy.PublicQuest.GetObjectiveProgress('Seal Hull Breaches') == 0">
					<If Condition="CreatureExists(36844,-123.2654,-509.8651,105.1524,5)">
						<Echo Message="###VET INFESTATION### Haul breach 1 sealed!" />
						<Interact CreatureId="36844" MapId="1232" X="-123.2654" Y="-509.8651" Z="105.1524" RunOnce="true" />			
					</If>
				</While>
       </If>

When quest starts above code returns '0' which is file. If you check in DevTool, there is a quest for it displayed and it has current count:0
After you close one breach quest disapears from DevTools and above code returns an exception:

Code:
Exception during execution of profile tag <While Condition="1 == 1" /> (Line #4)System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   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 Buddy.Wildstar.Game.GameLua.GetReturnValue[T](String lua, Int32 index)
   at Buddy.PublicQuest.GetObjectiveProgress(String objectiveDescription) in c:\Wildbuddy 1.1.697.56\Plugins\QuestHelper\PublicQuest.cs:line 52
   at Microsoft.Scripting.Interpreter.FuncCallInstruction`2.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   at Microsoft.Scripting.Interpreter.DynamicInstruction`4.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
   at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
   at _Scripting_(Object[] )
   at Buddy.Wildstar.Engine.Profiles.WhileTag.<ProfileTagLogic>d__21.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.Wildstar.Engine.Profiles.IfTag.<ProfileTagLogic>d__15.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.Wildstar.Engine.Profiles.WhileTag.<ProfileTagLogic>d__21.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.ProfileBot.ProfileBot.<CoroutineImplementation>d__17.MoveNext()


Is this a bug in WildBuddy/QuestHelper and any idea how to go around it?


Thank you!

EDIT: Further tests show that return function works only with numbers 0 / 50 / 100
 
Last edited:
100 views and not one reply? Surely i am not the only one making profile ...
 
Even with new version error still persist.
 
Last edited:
Back
Top