All right, I just discovered the Neo Mode 7 script (which enables rotation and zooming and whatever), but I have yet another error. It's on line 493 and it says something about the NilClass not being able to be converted into a bitmap. Here's the line:
@map_tileset.blt(32 * ((k - 1) % 8), 32 * ((k - 1) / 8), bitmap, rect)
Someone posted the same problem on the main Mode 7 forum and then they said they fixed it. There was an empty layer or something. I have no idea what that means and they didn't say how they fixed it.