Save Bug

Greetings!

I just noticed a big mistake in my project.

When I call the script:

DataManager.saveGame (1);

Use, if a memory is created, but if you want to load it, you get a big bug.
Thought so far, here bite a few plugins, but misrepresenting, the error with the Scriptcall also comes in a new project. I once attached the error as a picture.

Can anyone help me with that?

Kojote
did you notice that there is a space inside that script line? have you tried it without that mistake?
What blank line do you mean? In each space is an underline. It goes around the line:

this._eventCallback = null;

EDIT:

In another forum I was apparently now helped, so far the error seems to be fixed. The problem seems to be that the BGM is not saved.

Here the solution as Scriptcall:

  1. $gameSystem.onBeforeSave(1);
  2. DataManager.saveGame(1);
In the first post above where you asked your question, there is a space between saveGame and (1), and that would invalidate that command.
It has to be like you posted in your answer, without a space before the (

And I don't know if that mistaken space was copied from your code or if you accidentally added it when writing here.

Original thread: https://forums.rpgmakerweb.com/threads/save-bug.81368/