This project is read-only.

Cannot compile .bank


The latest version of source is unable to compile a bank with bankutil.exe

ReadShort is not correctly reading the name of a multipatch correctly. it is calculating the length of the string wrong, and therefore the loop has an outofbounds exception:
for (int x = 0; x < chars.Length; x++)
                chars[x] = (char)data[index + 2 + x];
Im not entirely sure what its doing wrong, Readshort works correctly for the lines until patchname=, but then it calculates it wrong.

This happens with the GMBank sfz files provided with the source.