Page 1 of 1

Importing Players From Another League

PostPosted: Tue Dec 24, 2019 12:43 pm
by Robmeister89
Code: Select all
DDSPF Error Log
-------------
Date: 12/24/2019 10:39:21 AM
Source: Draft Day Sports - Pro Football 2019
Message: Object reference not set to an instance of an object.
Stack Trace:    at #=qHE0rsQccT7O7t8NN6o4oyGMyGTcrTLP8bjMASPw_XZs5bAMSPL3j_YagsoZsQPxM..ctor(Player #=qdIq5MadtOv0HW1vbTJqh2Q==)
   at #=qwd_5_7DY6kR49uoJew9JIeyGugmY5o6rIf6$adskLp8=.#=qtGNddP4HQ9MeUx9f1ptLVDOZOGp9GVnF2Gap7KvVJs4=(Object #=qecdscr4dlmc1UV6bBr8QUw==, EventArgs #=qUtiYQURg_zFPMrZCX_vjLg==)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Label.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
-----------------------------------------------------------------


I get this error when trying to view player cards of certain players I'm importing from another league. If you can tell me whats missing I can add it (or whatever needs to be done) to the players file.

I'm importing 8 players and it only hits the error on 2 or 3 of them. I fixed the contracts to ensure they're not at 0 (one was and threw a different error).

Re: Importing Players From Another League

PostPosted: Tue Dec 24, 2019 1:17 pm
by brooks_piggott
It's probably flags or traits. I think you set them to None?

Re: Importing Players From Another League

PostPosted: Sat Dec 28, 2019 11:31 am
by Robmeister89
Flags and traits are both set to none for all 8 players. Still got an error when viewing a player's Analysis screen on the player card. I can send you the csv (or json) file if necessary.

Re: Importing Players From Another League

PostPosted: Sat Dec 28, 2019 1:04 pm
by brooks_piggott
I didn't catch that you were looking at the analysis panel. That panel may have issues for imported players (specifically defenders) that have not played in a game yet. I added some code for the next patch (no eta) but for now I would avoid that tab until after they've played in a game.

Re: Importing Players From Another League

PostPosted: Sun Jan 05, 2020 8:21 pm
by Robmeister89
Brooks_Piggott wrote:I didn't catch that you were looking at the analysis panel. That panel may have issues for imported players (specifically defenders) that have not played in a game yet. I added some code for the next patch (no eta) but for now I would avoid that tab until after they've played in a game.

An update to PF19?

Re: Importing Players From Another League

PostPosted: Mon Jan 06, 2020 11:53 am
by brooks_piggott
No, this would be patched in PF20.

Re: Importing Players From Another League

PostPosted: Thu Jan 09, 2020 2:53 pm
by Robmeister89
Brooks_Piggott wrote:No, this would be patched in PF20.

Oh I see. It just seemed like that comment was directed towards me and since we're playing on PF19 I just assumed. Well, at least it'll be fixed in future games.