/approach exception

3 replies [Last post]
Posts: 1030

Posting it here because I'm not sure if this is caused by a code change in SVO or not but whenever I do a /approach [name] command, it doesn't do anything and the exception gets swallowed. Here's the Output:

Output wrote:
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
---- DEBUG ASSERTION FAILED ----
---- Assert Short Message ----
`NetGore.ExceptionSwallower` swallowed unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.JScript.JScriptException: Object required
at Microsoft.JScript.Convert.ToObject(Object value, VsaEngine engine)
at Messages.GetSafe(Object p, Int32 i)
at Messages.CommandTellInvalidUser(Object p)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
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 System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)
at NetGore.Scripting.AssemblyClassInvoker.Invoke(String method, Object[] args) in D:\Saturn Valley\Repositories\SVO_NET\NetGore\NetGore\Scripting\AssemblyClassInvoker.cs:line 55
at NetGore.Scripting.AssemblyClassInvoker.InvokeAsString(String method, Object[] args) in D:\Saturn Valley\Repositories\SVO_NET\NetGore\NetGore\Scripting\AssemblyClassInvoker.cs:line 68
at NetGore.IO.MessageCollectionBase`1.GetMessage(T id, String[] args) in D:\Saturn Valley\Repositories\SVO_NET\NetGore\NetGore\IO\MessageCollectionBase.cs:line 290
at DemoGame.BitStreamExtensions.ReadGameMessage(BitStream bitStream, GameMessageCollection gameMessages) in D:\Saturn Valley\Repositories\SVO_NET\NetGore\DemoGame\IO\BitStreamExtensions.cs:line 69
at DemoGame.Client.ClientPacketHandler.RecvSendMessage(IIPSocket conn, BitStream r) in D:\Saturn Valley\Repositories\SVO_NET\NetGore\DemoGame.Client\Networking\ClientPacketHandler.cs:line 605
at NetGore.Network.MessageProcessorManager.InvokeProcessor(IIPSocket socket, IMessageProcessor processor, BitStream reader) in D:\Saturn Valley\Repositories\SVO_NET\NetGore\NetGore\Network\MessageProcessor\MessageProcessorManager.cs:line 177
at NetGore.Network.StatMessageProcessorManager.InvokeProcessor(IIPSocket socket, IMessageProcessor processor, BitStream reader) in D:\Saturn Valley\Repositories\SVO_NET\NetGore\NetGore\Network\MessageProcessor\Stats\StatMessageProcessorManager.cs:line 45
at NetGore.Network.MessageProcessorManager.Process(IIPSocket socket, BitStream data) in D:\Saturn Valley\Repositories\SVO_NET\NetGore\NetGore\Network\MessageProcessor\MessageProcessorManager.cs:line 300
at DemoGame.Client.ClientSockets.OnReceiveData(IIPSocket sender, BitStream data) in D:\Saturn Valley\Repositories\SVO_NET\NetGore\DemoGame.Client\Networking\ClientSockets.cs:line 125
at NetGore.Network.ClientSocketManager.Heartbeat() in D:\Saturn Valley\Repositories\SVO_NET\NetGore\NetGore\Network\Sockets\SocketManager\ClientSocketManager.cs:line 288
at DemoGame.Client.DemoGame.HandleUpdate(TickCount currentTime) in D:\Saturn Valley\Repositories\SVO_NET\NetGore\DemoGame.Client\DemoGame.cs:line 308
at NetGore.Graphics.GameBase.HandleFrame() in D:\Saturn Valley\Repositories\SVO_NET\NetGore\NetGore\Graphics\Game Container\GameBase.cs:line 751
at DemoGame.Client.GameForm.HandleFrame() in D:\Saturn Valley\Repositories\SVO_NET\NetGore\DemoGame.Client\GameForm.cs:line 59
---- Assert Long Message ----

at ExceptionSwallower.SwallowHandler(Exception ex) D:\Saturn Valley\Repositories\SVO_NET\NetGore\NetGore\Core\ExceptionSwallower.cs(103)
at ExceptionSwallower.Swallow(Exception ex) D:\Saturn Valley\Repositories\SVO_NET\NetGore\NetGore\Core\ExceptionSwallower.cs(88)
at GameForm.HandleFrame() D:\Saturn Valley\Repositories\SVO_NET\NetGore\DemoGame.Client\GameForm.cs(65)
at GameForm.WndProc(Message& m) D:\Saturn Valley\Repositories\SVO_NET\NetGore\DemoGame.Client\GameForm.cs(137)
at ControlNativeWindow.OnMessage(Message& m)
at ControlNativeWindow.WndProc(Message& m)
at NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Application.Run(Form mainForm)
at DemoGame.RunCustomWindowedDisplayHandleLoop(Object displayContainer) D:\Saturn Valley\Repositories\SVO_NET\NetGore\DemoGame.Client\DemoGame.cs(373)
at GameBase.Run() D:\Saturn Valley\Repositories\SVO_NET\NetGore\NetGore\Graphics\Game Container\GameBase.cs(788)
at Program.Main(String[] args) D:\Saturn Valley\Repositories\SVO_NET\NetGore\DemoGame.Client\Program.cs(68)
at AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at HostProc.RunUsersAssembly()
at ThreadHelper.ThreadStart_Context(Object state)
at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at ThreadHelper.ThreadStart()


Posts: 1691

Should be fixed now.

Posts: 1030

What was wrong anyway because it doesn't happen every time.

Posts: 1691

The GameMessage being used expected a parameter in the language file, but one was not provided in the code.