jleonard2099 / LHG_CollegeBB

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

Creating conference schedule with 6+ teams throws error #10

Closed jleonard2099 closed 1 year ago

jleonard2099 commented 1 year ago
jleonard2099 commented 1 year ago

Line 1579 in SCHEDULE.BAS is where the team data is read in for each entry in a schedule that is loaded. Specifically, it reads in the team at the specified index in the teams file. This means the creation of the schedule is likely working, but may not be saving the index of each team correctly.

jleonard2099 commented 1 year ago

Teams were being read in from the LIB file with * in thte name because the conditional was not excluding them. This meant values for available teams included indexes that didn't match existing teams.

After adjusting for this behavior, errors are still received. However, the year numbers are now accurate. The first 2 games are simply missing the index numbers of the associated teams.

jleonard2099 commented 1 year ago

The index numbers are indeed what was missing. The creation of a conference was not passing the index value as a parameter to the team selection routine, so it was getting written as 0's when the conference was created.

Updated routines to accept the correct parameters and now a conference file can be created and scheduled accurately.