worldofbalance / unity-game-client

Unity Client for World of Balance
http://smurf.sfsu.edu/~wob/
9 stars 8 forks source link

Null Reference Exception when playing multiplayer convergence #85

Open Fito opened 8 years ago

Fito commented 8 years ago

I get the following error when joining a multiplayer convergence game:

screen shot 2016-05-05 at 12 52 54 pm
Fito commented 8 years ago

The problem is coming from this section: void InitializeResetSlider (float availWidth, int widthPer) { int perPage = Mathf.FloorToInt (availWidth / widthPer); // Adjust init slider val maxResetSliderValue = Mathf.Max (0, attemptList.Count - perPage); resetSliderValue = maxResetSliderValue; }

attemptList is Null

niculistana commented 8 years ago

I am also experiencing this issue.

echan2 commented 8 years ago

I am as well

jensvdh commented 8 years ago

Same here @worldofbalance/convergence

dlhoff commented 8 years ago

I have not received this error so far and i play a lot. It may be because i play it differently than you do. Do you click on the reset sliders at any time during the game? At the beginning of the game? I normally click on the reset sliders after playing a few rounds, but not at the beginning.

dlhoff commented 8 years ago

Harjit got this error because the converge-ecosystem.txt file in his directory is different than the one i pushed to the repository. We are preparing a new pull-request/push for multiplayer convergence and i will make sure the right version of coverge-ecosystem.txt file gets into the repository. Maybe my previous push did not take that file.

jensvdh commented 8 years ago

@dlhoff sounds good!