Starting game immediately into fullscreen?

Hello. I'm trying to start the game in fullscreen. I've tried using N_StartFullscreen and CC_AutoFullScreen, but they both have this issue where the window appears in the game's resolution before it actually switches to fullscreen. Is there a way to have the game start immediately into fullscreen mode without it starting out as a mini window?

Clarification: Getting the game to go fullscreen is no problem. What I'm really trying to do is remove the split-second loading window from appearing before the game goes fullscreen.

1754065533252.png
To package.json file, in the window section you need to add
JavaScript:
"fullscreen": true,
To package.json file, in the window section you need to add
JavaScript:
"fullscreen": true,
It still pops up with windowed mode before going fullscreen with this. I didn't notice any changes sadly
bump
This plugin by Nolonar could help you 🙂

https://github.com/Nolonar/RM_Plugins-StartFullscreen/tree/master/js/plugins

What I personally use is this plugin:

https://forums.rpgmakerweb.com/inde...ns-manager-mz-options-menu-customizer.159642/

It adds a full screen option to the settings, and you can set it to true by default.
This plugin by Nolonar could help you 🙂

https://github.com/Nolonar/RM_Plugins-StartFullscreen/tree/master/js/plugins

What I personally use is this plugin:

https://forums.rpgmakerweb.com/inde...ns-manager-mz-options-menu-customizer.159642/

It adds a full screen option to the settings, and you can set it to true by default.
The first plugin is the one I tried before. Testing the other plugin still gives the same results. The mini window appears before it goes fullscreen
The first plugin is the one I tried before. Testing the other plugin still gives the same results. The mini window appears before it goes fullscreen
Oh I get what you mean! You mean the window that shows the startup loading?

Unfortunately, I don't know of a plugin that lets you do this. This is because I think it is loading plugins during the startup loading.
Personally I'd just leave it as-is. Pretty sure it's common for full-screen games to launch with a temporarily-not-full-screen window. 😴

To answer the question: I'm not sure how well it'd work, but it should be possible to have the window start hidden, then use a short plugin to reveal the window when everything is ready. E.g.
  • Save this as a .js file and import it via the Plugin Manager:
    JavaScript:
    /*:
     * @target MZ
     * @plugindesc Show the game window (standalone) when this plugin loads.
     * @author Caethyril
     * @url https://forums.rpgmakerweb.com/posts/1526449/
     * @help Designed for use with the manifest (package.json) option:
     *     window.show = false;
     * See link for details.
     * 
     * Free to use and/or modify for any project, no credit required.
     */
    if (Utils.isNwjs()) nw.Window.get().show();
    If that shows the window prematurely, you can try replacing this line:
    JavaScript:
    if (Utils.isNwjs()) nw.Window.get().show();
    ...with this:
    JavaScript:
    ;void (alias => {
      Scene_Boot.prototype.start = function() {
        alias.apply(this, arguments);
        if (Utils.isNwjs()) nw.Window.get().show();
      };
    })(Scene_Boot.prototype.start);
    I.e. show the window after the initial loading time is done (rather than when this plugin loads). This should occur immediately before the core splash screen shows, or the title screen if you have splash disabled.

  • Add the window.show = false option to your project's manifest file (package.json) to change the app's initial appearance. Here's the default manifest with that option added:
    JSON:
    {
        "name": "rmmz-game",
        "main": "index.html",
        "chromium-args": "--force-color-profile=srgb",
        "window": {
            "title": "Example",
            "width": 816,
            "height": 624,
            "position": "center",
            "icon": "icon/icon.png",
            "show": false
        }
    }
Note that when you save your project (e.g. to apply Plugin Manager changes) the editor will overwrite the manifest file, removing custom settings. You can avoid this by:
  1. Only applying the changes between save and playtest (or after deploying); or

  2. Flagging the package.json file as "Read-only". This will cause an annoying but harmless warning when saving your project, and will ensure that RPG Maker doesn't nuke your edits.
Personally I'd just leave it as-is. Pretty sure it's common for full-screen games to launch with a temporarily-not-full-screen window. 😴

To answer the question: I'm not sure how well it'd work, but it should be possible to have the window start hidden, then use a short plugin to reveal the window when everything is ready. E.g.
  • Save this as a .js file and import it via the Plugin Manager:
    JavaScript:
    /*:
    * @target MZ
    * @plugindesc Show the game window (standalone) when this plugin loads.
    * @author Caethyril
    * @url https://forums.rpgmakerweb.com/posts/1526449/
    * @help Designed for use with the manifest (package.json) option:
    *     window.show = false;
    * See link for details.
    *
    * Free to use and/or modify for any project, no credit required.
    */
    if (Utils.isNwjs()) nw.Window.get().show();
    If that shows the window prematurely, you can try replacing this line:
    JavaScript:
    if (Utils.isNwjs()) nw.Window.get().show();
    ...with this:
    JavaScript:
    ;void (alias => {
      Scene_Boot.prototype.start = function() {
        alias.apply(this, arguments);
        if (Utils.isNwjs()) nw.Window.get().show();
      };
    })(Scene_Boot.prototype.start);
    I.e. show the window after the initial loading time is done (rather than when this plugin loads). This should occur immediately before the core splash screen shows, or the title screen if you have splash disabled.

  • Add the window.show = false option to your project's manifest file (package.json) to change the app's initial appearance. Here's the default manifest with that option added:
    JSON:
    {
        "name": "rmmz-game",
        "main": "index.html",
        "chromium-args": "--force-color-profile=srgb",
        "window": {
            "title": "Example",
            "width": 816,
            "height": 624,
            "position": "center",
            "icon": "icon/icon.png",
            "show": false
        }
    }
Note that when you save your project (e.g. to apply Plugin Manager changes) the editor will overwrite the manifest file, removing custom settings. You can avoid this by:
  1. Only applying the changes between save and playtest (or after deploying); or

  2. Flagging the package.json file as "Read-only". This will cause an annoying but harmless warning when saving your project, and will ensure that RPG Maker doesn't nuke your edits.
This works!!! Thank you 😀 I did have to use
JavaScript:
;void (alias => {
  Scene_Boot.prototype.start = function() {
    alias.apply(this, arguments);
    if (Utils.isNwjs()) nw.Window.get().show();
  };
})(Scene_Boot.prototype.start);

How would I flag package.json as read only? I'm creating a template project, so it would be nice not to have to repeatedly deal with this for all projects I create from it lol

Edit: Figured it out. Thanks again 🙂
Great! You're welcome~ 👋

Original thread: https://forums.rpgmakerweb.com/threads/starting-game-immediately-into-fullscreen.179301/