Skip title issue

How to skip title in RPG Maker MV?
I know it's probably gona use a plugin.

I found the code below on the internet.
Sorry i cant give it credit because idk who the author is.
I saved the code as js file, and it doesnt work.

Spoiler: Code
function (){

Scene_Boot.prototype.start = function() {
Scene_Base.prototype.start.call(this);
SoundManager.preloadImportantSounds();
if (DataManager.isBattleTest()) {
DataManager.setupBattleTest();
SceneManager.goto(Scene_Battle);
} else if (DataManager.isEventTest()) {
DataManager.setupEventTest();
SceneManager.goto(Scene_Map);
} else {
this.checkPlayerLocation();
DataManager.setupNewGame();
if(DataManager.isAnySavefileExists()){
new Scene_Load().onSavefileOk();
}else{
SceneManager.goto(Scene_Map);
}
//Window_TitleCommand.initCommandPosition();
}
this.updateDocumentTitle();
};

Scene_Load.flag = true;

Scene_Load.prototype.onSavefileOk = function() {
Scene_File.prototype.onSavefileOk.call(this);
var load = null;
if(Scene_Load.flag){
load = DataManager.loadGame(1)
}else{
load = DataManager.loadGame(this.savefileId());
}
if (load) {
this.onLoadSuccess();
} else {
this.onLoadFailure();
}
};

Scene_Load.prototype.onLoadSuccess = function() {
if(Scene_Load.flag){
Scene_Load.flag = false;
}else{
SoundManager.playLoad();
}
this.fadeOutAll();
this.reloadMapIfUpdated();
SceneManager.goto(Scene_Map);
this._loadSuccess = true;
};

var Scene_Menu_createCommandWindow = Scene_Menu.prototype.createCommandWindow;
Scene_Menu.prototype.createCommandWindow = function() {
Scene_Menu_createCommandWindow.call(this);
this._commandWindow.setHandler('read', this.commandRead.bind(this));
};

Scene_Menu.prototype.commandRead = function() {
SceneManager.push(Scene_Load);
};

Window_MenuCommand.prototype.makeCommandList = function() {
this.addMainCommands();
this.addFormationCommand();
this.addOriginalCommands();
this.addOptionsCommand();
this.addReadCommands();
this.addSaveCommand();
this.addGameEndCommand();
};

Window_MenuCommand.prototype.addReadCommands = function(){
this.addCommand(TextManager.continue_, 'read', DataManager.isAnySavefileExists());
};

Scene_Menu.prototype.commandGameEnd = function() {
this.fadeOutAll();
SceneManager.exit();
};
}

I've moved this thread to Plug-In Requests. Thank you.



Also we advise not using code you just find on the internet, as you can get in trouble if you use it without giving credit.
You could even easily find some by google it. but here's anyway...
https://forums.rpgmakerweb.com/index.php?threads/skip-title-screen.48510/
your code are in a anonym function(), its why its not work.

The only line you need its for do what you whant its replace the rmmv sceneBoot
PHP:
Scene_Boot.prototype.start = function() {
    Scene_Base.prototype.start.call(this);
    SoundManager.preloadImportantSounds();
        this.checkPlayerLocation();
        DataManager.setupNewGame();
        SceneManager.goto(Scene_Map);// skip title screen and go to map
        Window_TitleCommand.initCommandPosition();
        this.updateDocumentTitle();
};

more info about self-invoking function and why your function not work.
https://forums.rpgmakerweb.com/index.php?threads/questions-about-how-plugins-work.87625/

Original thread: https://forums.rpgmakerweb.com/threads/skip-title-issue.87861/