Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game Crashes at Force Struggle #26

Closed
redsquadronk opened this issue Feb 27, 2013 · 4 comments
Closed

Game Crashes at Force Struggle #26

redsquadronk opened this issue Feb 27, 2013 · 4 comments

Comments

@redsquadronk
Copy link

Hello,

I've been having a lot of trouble getting the Star Wars LCG on OCTGN to work.

I've tried playing about 5 games with the all times but one it crashes when I right click then select "Resolve Force Struggle". It gives me this error:

System.NullReferenceException: Object reference not set to an instance of an object.
at Octgn.Play.Card.GetPicture(Boolean up) in c:\Program Files (x86)\Jenkins\workspace\OCTGN-Release\octgnFX\Octgn\Play\Card.cs:line 400
at Octgn.Play.Gui.CardControl.PropertyChangeHandler(Object sender, PropertyChangedEventArgs e) in c:\Program Files (x86)\Jenkins\workspace\OCTGN-Release\octgnFX\Octgn\Play\Gui\CardControl.xaml.cs:line 299
at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
at Octgn.Scripting.Engine.<>c__DisplayClass5.b__4() in c:\Program Files (x86)\Jenkins\workspace\OCTGN-Release\octgnFX\Octgn\Scripting\Engine.cs:line 261
at Octgn.Scripting.Engine.ProcessExecutionQueue() in c:\Program Files (x86)\Jenkins\workspace\OCTGN-Release\octgnFX\Octgn\Scripting\Engine.cs:line 199
at Octgn.Scripting.Engine.ExecuteOnGroup(String function, Group group, Point position) in c:\Program Files (x86)\Jenkins\workspace\OCTGN-Release\octgnFX\Octgn\Scripting\Engine.cs:line 134
at Octgn.Play.Gui.TableControl.GroupActionClicked(Object sender, RoutedEventArgs e) in c:\Program Files (x86)\Jenkins\workspace\OCTGN-Release\octgnFX\Octgn\Play\Gui\TableControl.xaml.cs:line 660
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run()
at Octgn.OctgnApp.Main() in c:\Program Files (x86)\Jenkins\workspace\OCTGN-Release\octgnFX\Octgn\obj\Release\App.g.cs:line 0

I'm running OTCGN on the bootcamp portion of my MacBook Pro, hopefully that doesn't have anything to do with it.

Please help! People won't play me anymore...
Neil

@db0
Copy link
Owner

db0 commented Feb 27, 2013

Can you replicate it by playing solo (i.e. start a game by yourself, load and setup a deck, go to force struggle and calculate). If not, can you replicate it by creating a second OCTGN account (you can use the same email) and connecting to yourself to try it out? If nobody else is having this issue, it does look like something might be causing this on your setup, so we need to try and trace this.

@BenMatteson
Copy link

looks like its not finding the picture that's supposed to associated with the card. I'm going to throw out a guess and ask if your tokens/markers def is up to date?
edit- might as well make sure everything is up to date while you're there actually.

@redsquadronk
Copy link
Author

Somehow I had missed downloading the tokens and markers altogether. It
makes A LOT more sense now and seems to run pretty smoothly! Thanks so much!

On Tue, Feb 26, 2013 at 10:22 PM, Ben notifications@github.com wrote:

looks like its not finding the picture that's supposed to associated with
the card. I'm going to throw out a guess and ask if your tokens/markers def
is up to date?


Reply to this email directly or view it on GitHubhttps://github.com//issues/26#issuecomment-14159085
.

@db0
Copy link
Owner

db0 commented Feb 27, 2013

Weird, usually missing markers & tokens doesn't crash the client but rather gives an error. Might be worth investigating why that happens.

I believe I store the ID of the force card in a shared variable, so OCTGN might be crashing when the player's client retrieves that ID, creates the card object out of it and tries to manipulate it?

@db0 db0 closed this as completed Feb 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants