Crystal Basic Module Error

Getting this error whenever I try to battle test, this is actually a crucial script for the License Board. Both scripts are from Crystal Engines website. So anyone got any idea why the script is acting this way. My theory on why it's doing this must have something to do with the map since it mentions map info. I wanna try solving the issue without removing the script altogether. Any solutions would be greatly appreciated.
I believe this belongs in script support.

$data_mapinfos isn't loaded in test battles.
You'll need to run your tests in a new game.
I believe this belongs in script support.

$data_mapinfos isn't loaded in test battles.
You'll need to run your tests in a new game.
So if I run it in a new game it should fix the error? As a battle process event correct?
It should circumvent that particular error, but it will always occur during test battles so long as you maintain your current setup.
It's very easy to test, so I figured you'd give it a try before following up. :blink:
((because of the rules in regard to double positing))
@Lord Roy
A lot of scripts store part of their data in the savefiles - that is needed because otherwise most scripts couldn't save their settings and working data.
But this data is usually only created by a "new game" on the title screen.

The error you're getting (any "undefined for NIL") basically tells you that the script tries to access data that does not exist, usually because the data hasn't been created with a new game. This is a very common error if you add a new script and then try to load an older savefile that does not contain the data the script needs.

Whenever you add a script, you need to start a new game and ignore or delete all older savefiles, or you risk those errors.

The other cause for this error are incompatible scripts or a script configured wrong.

Original thread: https://forums.rpgmakerweb.com/threads/crystal-basic-module-error.81941/