Open bjfranks opened 1 year ago
The reason this happens is because NoteData
determines the number of columns
by looking at the first non-empty line of note data. This doesn't work when the note data is completely empty. I might set it to 0 for these cases. Another option would be to define a static mapping of stepstype
s to column counts (dance-single
→ 4, dance-double
→ 8, etc.) but I'd like to avoid that pattern as much as possible.
Another option would be to define a static mapping of stepstypes to column counts (dance-single → 4, dance-double → 8, etc.)
Upon further reflection, I think that this is not only a reasonable fix for the bug, but makes more sense as the default method for determining column count than the current behavior ("looking at the first non-empty line of note data"). Will have to think some more about whether empty note data should even be considered a strict parse error.
So, I was just going through files trying to count game elements and noticed that whenever an empty edit came up, the library crashed due to a list index being out of range. Here are three similar errors. For each, I give the file name and the index of the chart failing, followed by the stack trace. Find the files attached:
files.zip