Baldur's Gate Wiki:Game source files/2DA/MXSPLWIZ

MaX SPeLls WIZards is the table that defines the maximum number of slots for spells to be memorizable by a mage or sorcerer of a certain class level, ordered by spell level. Specialist mages may add  to each number, while the dragon disciple and the bard have their own tables.

The *.2da files differ from game to game in length and correctness, but are identical regarding each game's level cap – the differences (or mistakes) would only apply to levels that can't be gained in the respective game. Thus, only one table is shown here.

Memorizable spells progression
2DA V1.0 0       1   2   3   4   5   6   7   8   9 1      1   0   0   0   0   0   0   0   0 2      2   0   0   0   0   0   0   0   0 3      2   1   0   0   0   0   0   0   0 4      3   2   0   0   0   0   0   0   0 5      4   2   1   0   0   0   0   0   0 6      4   2   2   0   0   0   0   0   0 7      4   3   2   1   0   0   0   0   0 8      4   3   3   2   0   0   0   0   0 9      4   3   3   2   1   0   0   0   0 10      4   4   3   2   2   0   0   0   0 11      4   4   4   3   3   0   0   0   0 12      4   4   4   4   4   1   0   0   0 13      5   5   5   4   4   2   0   0   0 14      5   5   5   4   4   2   1   0   0 15      5   5   5   5   5   2   1   0   0 16      5   5   5   5   5   3   2   1   0 17      5   5   5   5   5   3   3   2   0 18      5   5   5   5   5   3   3   2   1 19      5   5   5   5   5   3   3   3   1 20      5   5   5   5   5   4   3   3   2 21      5   5   5   5   5   4   3   3   2 22      5   5   5   5   5   5   3   3   3 23      5   5   5   5   5   5   3   3   3 24      5   5   5   5   5   5   4   3   3 25      5   5   5   5   5   5   4   4   3 26      5   5   5   5   5   5   4   4   3 27      5   5   5   5   5   5   4   4   4 28      5   5   5   5   5   5   5   4   4 29      5   5   5   5   5   5   5   5   4 30      5   5   5   5   5   5   5   5   4 31      5   5   5   5   5   5   5   5   4 32      5   5   5   5   5   5   5   5   4 33      5   5   5   5   5   5   5   5   4 34      5   5   5   5   5   5   5   5   4 35      5   5   5   5   5   5   5   5   5 36      5   5   5   5   5   5   5   5   5 37      5   5   5   5   5   5   5   5   5 38      5   5   5   5   5   5   5   5   5 39      5   5   5   5   5   5   5   5   5 40      5   5   5   5   5   5   5   5   5

Mod related

 * If a player plans to modify their game and remove the level cap or at least expand class level progression for the first part of the, they should replace the actual game's  with that one from Baldur's Gate II.