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

Trainer editor crashes pkNX #47

Closed
BSoD38 opened this issue Jan 4, 2020 · 3 comments
Closed

Trainer editor crashes pkNX #47

BSoD38 opened this issue Jan 4, 2020 · 3 comments

Comments

@BSoD38
Copy link

BSoD38 commented Jan 4, 2020

Opening the trainer editor for Pokémon Sword simply crashes pkNX immediately.

Method Boolean pkNX.Structures.TrainerPoke.get_CanDynamax() could not be found.

Problem is present since commit 5521b72. Reverting to any commit older than this one fixes the issue.

System.Reflection.TargetInvocationException: Une exception a été levée par la cible d'un appel. ---> System.MissingMethodException: Méthode introuvable : 'Boolean pkNX.Structures.TrainerPoke.get_CanDynamax()'.
   à pkNX.WinForms.BTTE.PopulateFields(TrainerPoke pk)
   à pkNX.WinForms.BTTE.Setup() dans D:\dev\pknx\pkNX.WinForms\Subforms\BTTE.cs:ligne 270
   à pkNX.WinForms.BTTE..ctor(GameManager game, TrainerEditor editor) dans D:\dev\pknx\pkNX.WinForms\Subforms\BTTE.cs:ligne 66
   à pkNX.WinForms.Controls.EditorSWSH.EditTrainers() dans D:\dev\pknx\pkNX.WinForms\MainEditor\EditorSWSH.cs:ligne 50
   --- Fin de la trace de la pile d'exception interne ---
   à System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   à System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   à System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   à pkNX.WinForms.Controls.EditorBase.<>c__DisplayClass11_0.<GetControls>b__0(Object s, EventArgs e) dans D:\dev\pknx\pkNX.WinForms\MainEditor\EditorProvider.cs:ligne 37
   à System.Windows.Forms.Control.OnClick(EventArgs e)
   à System.Windows.Forms.Button.OnClick(EventArgs e)
   à System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   à System.Windows.Forms.Control.WndProc(Message& m)
   à System.Windows.Forms.ButtonBase.WndProc(Message& m)
   à System.Windows.Forms.Button.WndProc(Message& m)
   à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
@sora10pls
Copy link
Collaborator

Unable to replicate this myself
image

@kwsch
Copy link
Owner

kwsch commented Jan 5, 2020

Be sure you've rebuilt all of the projects; probably an older DLL messing with things.

@kwsch kwsch closed this as completed Jan 5, 2020
@BSoD38
Copy link
Author

BSoD38 commented Jan 6, 2020

Cleaning my solutions and regenerating everything seems to have fixed it. Strange issue.

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