jleonard2099 / LHG_CollegeBB

Lance Haffner Courtside College Basketball
GNU Affero General Public License v3.0
5 stars 0 forks source link

Position not displayed in lineup #8

Closed jleonard2099 closed 9 months ago

jleonard2099 commented 1 year ago

When choosing the starting lineup, both the player list and prompts for position do not show a position. This is despite the fact that position codes are assigned to users in the data files. Also, the variable PO$() is being referenced for the display output.

Somehow, when PO$() is populated during the reading of team data, several items like this from COLBBTMS are read in as blank / 0.

The looping structure appears to accurately lineup with reading the right values in the file at the right times.

It is not known why this happens but it has been confirmed present in the original.

jleonard2099 commented 9 months ago

One area of investigation that has not been evaluated is to ensure that COLBBTMS file is actually populated with positions, since this is the "supplemental" file developed after the original BASK format.

It is possible, then, that this only is occuring because the data is no there in the files.

jleonard2099 commented 9 months ago

With the games in their current status, this came down to the fact that I had been erasing arrays like this used to read in team data during the InitVar routine. It is not clear why this is an issue in the original game but I believe it was just a failure to initialize values for it at all.