Simple credit scene from main menu

So I was setting up a simple credit scene in my game.
I want it to play automatically at the end of the game, but also to be an option in the game's main menu.
I made a Common Event with nothing more than a scrolling text with the credits and the "Back to main menu" option at the end.
Then I entered VisuStella Core Engine plugin, and in Title Command List I added a new line, configured as you can see (Common Event is n.43, as you can see):
credits.png

The option appears in the main menu, but when selected I got this error.
1708529589255.png
I already tried to see where's the problem in older posts (sorry @slimmmeiske2 for necro-posting!) but found no solution.
What am I doing wrong?

PS: I'd like to know what happens here also to learn something, but I consider using a plugin as an option too. It's just that all credits plugins I found are too "heavy" or complex, I really like to put in my game a plain black screen with text scrolling, nothing more (maybe considering putting a background image, but nothing more than that).
It's exactly what it says - there's no such function as SceneManager._scene.commandCommonEvent()

In fact, there's no such function as commandCommonEvent() for any data type.

Where did you get that syntax from?

Plus, even if there were such a thing, what you're doing wouldn't do anything because you're calling it without any reference to a specific common event.

The correct syntax for calling a common event is $gameTemp.reserveCommonEvent(ID)

Edit: I found the other thread you posted in, and that thread was about using VisuStella's Main Menu Core, not the Core Engine.

It's possible that commandCommonEvent() function is added by the Main Menu Core, so you may be able to duplicate the setup from that thread if you use the correct plugin they're talking about.
Edit: I found the other thread you posted in, and that thread was about using VisuStella's Main Menu Core, not the Core Engine

Just thought it coud work also in the main menu.
So there is no way to create from scratch a simple "blacken the screen and show a wrapped text" credit scene from the main menu? Only option is to use a plugin?
Correct. There are no settings in the editor to modify the title screen at all, so changing it requires code in a plugin.

But the Main Menu Core is free, so I don't know why using it would be a problem.
Correct. There are no settings in the editor to modify the title screen at all, so changing it requires code in a plugin.

But the Main Menu Core is free, so I don't know why using it would be a problem.

Just because I wanted the option to see the credit from the title screen.
Anyway, many thanks for the help and the explications!
...and did you try the code I gave you to do so? I'm having some trouble understanding.
...and did you try the code I gave you to do so? I'm having some trouble understanding.

Sorry, I didn't mention that I tried it but all I got is the game to freeze (except for the music). Now that I know how to correctly call the event (many thanks again) I'm trying different things, but I'm literally doing it randomly.
Any ideas?
Any ideas?
Google it.

I typed in "rpg maker mz credits plugin" and this is the first result:
I typed in "rpg maker mz credits plugin" and this is the first result:

Thanks, I already downloaded it and it will be my first option if I won't be able to work the method above (also because I already have other CGMZ plugins in my project).
The engine automatically deactivates the command window when a command is OK'd. So it looks like the game is frozen, but actually the window is just unresponsive. By default the title scene doesn't do anything with the common event queue, so the event gets queued but does not begin processing.

The easiest option would be a plugin specifically designed for this, like Turan linked.

Otherwise, with the VisuStella plugin...you could make a "custom new game" command: start a new game on a "credits" map, then send them back to the title screen at the end. E.g. (untested):
Spoiler
JavaScript:
// Memorise current starting position.
const m = $dataSystem.startMapId;
const x = $dataSystem.startX;
const y = $dataSystem.startY;
// Change starting position (edit these numbers).
$dataSystem.startMapId = 1;
$dataSystem.startX = 2;
$dataSystem.startY = 3;
// Call "New Game" command.
SceneManager._scene.commandNewGame();
// Restore starting position.
$dataSystem.startMapId = m;
$dataSystem.startX = x;
$dataSystem.startY = y;
The engine automatically deactivates the command window when a command is OK'd. So it looks like the game is frozen, but actually the window is just unresponsive. By default the title scene doesn't do anything with the common event queue, so the event gets queued but does not begin processing.

The easiest option would be a plugin specifically designed for this, like Turan linked.

Otherwise, with the VisuStella plugin...you could make a "custom new game" command: start a new game on a "credits" map, then send them back to the title screen at the end. E.g. (untested):
Spoiler
JavaScript:
// Memorise current starting position.
const m = $dataSystem.startMapId;
const x = $dataSystem.startX;
const y = $dataSystem.startY;
// Change starting position (edit these numbers).
$dataSystem.startMapId = 1;
$dataSystem.startX = 2;
$dataSystem.startY = 3;
// Call "New Game" command.
SceneManager._scene.commandNewGame();
// Restore starting position.
$dataSystem.startMapId = m;
$dataSystem.startX = x;
$dataSystem.startY = y;

Definitely try this asap!!
I'll come back to tell if it works!

EDIT: It works!!
Excellent solution: clear, simple, usable in-game and in-menu, plus I learned something new today!
Big success!
Many thanks @caethyril, and @ATT_Turan too!
Great, happy RPG Making! 👋

Original thread: https://forums.rpgmakerweb.com/threads/simple-credit-scene-from-main-menu.166025/