CS2212-2012-G2 / SurvivorPool

CS2212 Project
Other
1 stars 0 forks source link

JSON: POTENTIALLY Not Saving Current Player Ult/Weekly Picks Upon Exit #84

Closed JonDemelo closed 12 years ago

JonDemelo commented 12 years ago

I set up a trigger that updates a panel's "state" based off of the loaded GameData within the each of the panel's constructors, and at one point encountered an issue where Player Ult choices weren't being dealt with properly in terms of persistence. After a slight change/fix the error disappeared, but please let me know if it reappears.

The error:

Create Season Fill Season with contestants and a few players start season go through the season about a week. exit the program reopen the program look at the player tab

Are any of the contestant choices "null"?

This will lead to Advance week breaking.

JonDemelo commented 12 years ago

Yup, as I thought, the bug is still there, and it's definately a JSON save or load issue. It occurs only if a contestant HAD a chosen Ult/Weekly pick PRE-CLOSE, and when the program reopens, their choice is now listed as NULL.

Nava2 commented 12 years ago

I can confirm this is an issue. Happened to me and buggered progress final week.

slyos commented 12 years ago

This seems like a similar issue to Issue #91 but the program does not have to be closed and opened again. It happens right after advance week.

Nava2 commented 12 years ago

Pretty sure this is fixed now. Can you confirm, @Demelode ?

Nava2 commented 12 years ago

Confirmed as still happening.

slyos commented 12 years ago

I can't confirm. All my players have ultimate picks. Are you sure that the contestant that was cast off, wasn't the player's ultimate pick?