Use Map as Title Screen

EDIT

This plugin is now available on GitHub (and has been adapted for MZ): https://github.com/Nolonar/RM_Plugins-TitleMap

Here's a direct link to the latest release: https://github.com/Nolonar/RM_Plugins-TitleMap/releases/latest/download/N_TitleMap.js

---

Just before MZ releases, here's a new MV plugin from me: N_TitleMap

What does it do?

It lets you choose a map, which will be shown instead of the usual Title Screen.

Instead of this:
Spoiler
TitleMap_off.png

You get this:
Spoiler
TitleMap_on.png

It renders a real map, with events and everything.
You can change weather, you can change the BGM or play BGS, you can even display message windows (make sure your message text ends with
Code:
\^
, or you won't be able to start a New Game!)

For more details, read the Notes in the plugin.

How to use
Enter the ID of the map you would like to display.
Spoiler
TitleMap_setup.png

You can see the Map ID in the status bar at the bottom of the RPG Maker UI.
Spoiler
TitleMap_setup_2.png

Terms of use
The plugin is under MIT license, which means that you are free to do with it what you want for any purpose on any project.

The only condition is: don't remove the MIT license and copyright notice from the plugin file.
I think SRD has one as well, but if you want a bit nicer title screen of instead everytime
the same map over and over, maybe you can set save map as title screen?

like, you have "start map" where the player normally starts as starters,
than if you save the game on a different map, that MapID is being saved for the
the title screen.
unless its a bit similair to zelda title screen, which have a title screen and a 1/4 of
the x and y scall;ed down, in 1 of the corners as save location of its map ID.

it would be nice to have something like that, that camara moves, but if you have
similair or map ID where the player saved would be nicer and it makes yours
more unique.
I think SRD has one as well, but if you want a bit nicer title screen of instead everytime
the same map over and over, maybe you can set save map as title screen?

like, you have "start map" where the player normally starts as starters,
than if you save the game on a different map, that MapID is being saved for the
the title screen.
unless its a bit similair to zelda title screen, which have a title screen and a 1/4 of
the x and y scall;ed down, in 1 of the corners as save location of its map ID.

it would be nice to have something like that, that camara moves, but if you have
similair or map ID where the player saved would be nicer and it makes yours
more unique.
That's an interesting suggestion. I'll keep it in mind for future improvements.

I really should be studying for my upcoming exams, though, so don't expect improvements any time soon.


If you need to move the camera, I think you can already do that with the "Scroll Map..." event command. I haven't tested that one yet, but I think it should work.
Sorry to bring back an old topic, but this is Awesome Nolonar!!! Thanks a lot for this.
I'm trying it but it conflicts with Visustella core. Do you have any recommendations to make it work?

This is the error:
rmmz_managers.js:2031 TypeError: Cannot read properties of undefined (reading 'addChild')
at Scene_Base.addWindow (rmmz_scenes.js:84:23)
at Scene_Title.<computed>.createCommandWindow (VisuMZ_0_CoreEngine.js?versionId=72916460:8442:189655)
at Scene_TitleMap.create (N_TitleMap.js?versionId=72916460:105:18)
at SceneManager.changeScene (rmmz_managers.js:2085:25)
at SceneManager.updateMain (rmmz_managers.js:2057:10)
at SceneManager.update (rmmz_managers.js:1939:18)
at Graphics._onTick (rmmz_core.js:801:14)
at TickerListener.emit (pixi.js:9474:26)
at Ticker.update (pixi.js:9928:38)
at Ticker._tick (pixi.js:9679:24)
Looks like it conflicts with the Visustella createCommandWindow.
Your plugin is loading first, before Visustella

Thanks again!
Sorry to bring back an old topic, but this is Awesome Nolonar!!! Thanks a lot for this.
I'm trying it but it conflicts with Visustella core. Do you have any recommendations to make it work?

I'm sorry about that. I've just downloaded the demo project so I could access Visustella core, and there is indeed a conflict. Interestingly, changing the load order produces a different error.

My goal is to make plugins that coexist with as many different plugins as possible without any conflicts regardless of load order, so I'm actually very interested in fixing this.

Unfortunately, Visustella core is not only a huge file (653 kB vs 8 kB for N_TitleMap), but it's also obfuscated. To give you an idea of what this means, here's the first function in Visustella core:
JavaScript:
function _0x324f(_0x5502ab,_0x46fc1b){const _0x17cdb6=_0x17cd();return _0x324f=function(_0x324f58,_0xa02343){_0x324f58=_0x324f58-0x1ae;let _0x373231=_0x17cdb6[_0x324f58];return _0x373231;},_0x324f(_0x5502ab,_0x46fc1b);}

By contrast, this is the first function of N_TitleMap:
JavaScript:
create() {
    Scene_Base.prototype.create.call(this);
    DataManager.loadMapData(parameters.mapId);
    this.createCommandWindow();
    // Scene_Map will create its own window layer later on.
    this.removeChild(this._windowLayer);

    // Needed to avoid player character from appearing on TitleMap when
    // player returns to Title.
    DataManager.setupNewGame();
}

The entire code is also a one-liner, so when the interpreter tells me to look at line 8641, that is as helpful as telling me the needle I'm looking for is somewhere on Earth.

This means that it could take me a significant amount of time and effort to fix the bug. I promise to do it, but I cannot possibly estimate how long it'll take. Hopefully you understand.


EDIT: Well, this was easier than I thought. I released version 1.0.5 which should be compatible to Visustella core (and possibly other plugins that mess with the Scene_Title). You can find the newest version on GitHub through the link in the first post.

EDIT 2: The fix only works if Visustella core is loaded after N_TitleMap. I tried to fix it the other way around too, but failed to fix it despite working on it for ~2 hours (it's almost 3 AM and I have to wake up at 8 AM). Considering the plugin appears to be working when loaded before Visustella core, I believe there's no real need to invest even more time and effort into it. I hope that's acceptable for you.
Wow you are amazing! It is really hard to work against obfuscated plugins.
Thanks a lot for this!!!
Hi!
I just tried your plugin and it's not working for me. When I use it I get the error:
this.createCommandWindow is not a function.

The error tracks to line 103. I use MZ and don't use Visustella Core or any other title screen plugins.

Thanks for your time.
You should write here the entire stack trace like I did before (the quoted part of my message), it makes easier to find the bug.
Hi!
I just tried your plugin and it's not working for me. When I use it I get the error:
this.createCommandWindow is not a function.

The error tracks to line 103. I use MZ and don't use Visustella Core or any other title screen plugins.

Thanks for your time.

I apologize for that. By improving compatibility with Visustella core, I seem to have broken the plugin when not using Visustella core. Version 1.0.6 fixes that. You can grab the latest version from the link in my first post above.

To my defense, I was trying to fix the plugin when I should've been sleeping instead.
if it worked in MV, maybe you can set the mapID by plugin command to change titlescene.

however, I want to ask you a favor if you are able to do it, as I dont own MZ/ or use any VS plugins.
I tell you later, but need to see if its conflict with it or not.

but I think I DM you later if it's oke for the suggestion/edit if possible.


EDIT:
Scratch that, it might not be possible, as 1 could work, my idea wont without modify it heavely.
@Nolonar No worries! I've been there. It works great now thanks!
if it worked in MV, maybe you can set the mapID by plugin command to change titlescene.

however, I want to ask you a favor if you are able to do it, as I dont own MZ/ or use any VS plugins.
I tell you later, but need to see if its conflict with it or not.

but I think I DM you later if it's oke for the suggestion/edit if possible.


EDIT:
Scratch that, it might not be possible, as 1 could work, my idea wont without modify it heavely.

I think using a teleporter might be more appropriate for changing maps. Unfortunately, the Transfer Player... event command currently doesn't do anything on the title screen.

I'll see if I can fix this.

As for MV support, I think there's a high chance version 1.0.6 still works with MV, but I haven't tested it on MV since 1.0.4

I'll test MV compatibility for the next version (where I'll have fixed the teleporters), but I won't test MV with Visustella. If you use MV and Visustella, just notify me if they don't work and I'll try and fix it.
I dont use visustella as it wont work in MV. (not even with RETRO probably.

the main idea I had for mapID is with a plugin command or scriptcall, to set the MapID.
the way I had in mind wont without heavely modify it. (I can DM you for it), but I do know
you wont accept it.

the scriptcall/plugin command to change mapID might still usefull for other players though
as you dont look at the same title scene over and over 🙂

like: you have the main title scene, when you save the game on map 8, you can set map8,
than save the game.

if you save on map 19, than that map is shown instead 🙂 (ideally useful for single save slot.)
the way I hope it to work, requires modifications and on top of a title background.

as I dont know how your coding works for ES6 which had "yield" whatever that means, I dont know
how much it takes to make it work for my needs.

DM if intrested, but dont do it if it requires alot of work to add it! as it was stated it doesn't work
with other title plugin which I use 1 for 2 effects there.
Progress report:

I am currently working on update 1.1.0
It is not yet ready for release (there is a visual bug when returning to the title screen from the game, followed by a crash when trying to start a new game or load a saved game).

If you are using N_Minimap v1.0.1 or N_SpeechBubbles v1.1.1, I just updated them to improves their stability (v1.0.2 and v1.1.2). Without these updates, they will crash when used with the upcoming N_TitleScreen v1.1.0

N_TitleScreen v1.1.0 will have the following changes:
  • Working teleporters. You will be able to change from one map to the next using events.

  • Working player character & followers. They are transparent and through by default, but can be made visible using an event. It is no longer necessary to create a separate event as dummy for the player character.

  • Possibility to set the title map depending on the latest save game.
    • This includes having access to all variables and switches of the latest save game. You can freely manipulate those switches and variables without affecting the save game. If you are on MV and use a plugin for Autosaves, I recommend NOT modifying switches or variables on the title screen, unless you can turn autosaves off on the title screen.

    • (Not implemented yet) Map notetags to force the title screen to load a different map instead (if you think a specific map shouldn't be used as title map).
  • (Not implemented yet) The ability to specify a switch that will be ON for the title screen and OFF otherwise (unless you specifically turn it on during gameplay). This will allow you to create events that will only run on the title screen.
I hope you'll like it. I'll make another post once the update is available for download.
Version 1.1.0 is now available for download on GitHub.

The changelog is more or less the same as in my previous post, but here is the official one on GitHub for the reference:

New:​

  • Option to use map where player saved last instead of the default map defined in the plugin parameter. The plugin will fall back to the default map if no save file is available.
    • Map notetags to refer to an alternate map to display on the title screen instead. Useful for maps that are too small or boring for the title screen.
  • Access to all switches and variables from the latest save file.
    • IMPORTANT NOTE: Switches and variables can be modified freely, but won't be saved to the save file. MZ autosaves are disabled on the title screen, but any autosave feature added to MV through a plugin will remain active on the title screen, so be careful!
  • Option to specify a switch that will be turned ON when the title screen loads, so events can tell if they are running on the title screen. The switch can still be turned ON or OFF at will, although that is not recommended.
  • Plugin parameters to specify a coordinate. Useful for large maps.

Changed:​

  • Transfer Player... event commands are now supported.
  • Player character and followers can now be used on the title screen. They are transparent and through by default, but can be made visible using event commands.

While I have tested this on both MV and MZ, enabling map transfers required significant changes to the plugin. Fixing all the bugs I found wasn't easy, and there's a high likelihood that I've missed quite a bunch depending on your exact configuration. There's also the fact that it's already 3:30 AM over here, and I don't have the energy to keep testing.

If you notice any issues, please report them here, so I can have a look and try to fix them. But for now, I wish you all good night and sweet dreams.

PS: If you're using the option to load a map from the latest save file, be aware that editing the map in the RPG Maker editor can lead to one of these outcomes:
  • Newly added events may not show up on the title screen.
  • Edited events may be displayed in the wrong place or in the wrong state.
  • Removed events may cause the game to crash.
That is because the save file contains references to events. It uses these references to remember the current position of an event, or even to keep track of which event commands have run, and which ones still need to run.

As a result, the game may not display new events since they are missing from the save file, and it may crash because it is trying to load data for an event that no longer exists.

If your game crashes at startup, either delete your save files or disable the loading feature until you've reloaded the current map (you can do so by exiting and reentering the map) and saved the game again.

I might fix the crash someday, but that is currently very low on my priority list.
@Nolonar There's an option to focus the camera in a specific zone of the map? Maybe with an event?
@Nolonar There's an option to focus the camera in a specific zone of the map? Maybe with an event?
I'm sorry for the delay. I haven't been on this forum in a long while.

The easiest way to achieve this would be to teleport it to where you need to focus. Normally you'd make the player character transparent first, but on the title screen they'll be transparent by default (and can be made visible through an event command).

If you need the player character to be visible at the same time, you can use an event that looks like the player.
@Nolonar
Hello. Thank you for creating such a wonderful plugin. I am currently having trouble implementing only the “New Game” option on the Title screen. I would like to have a select menu on a different map.

When I use Triacontane’s TitleNewGameOnly.js plugin, it conflicts and the TitleButton is not displayed.Is there a solution to avoid conflicts?

The plugin URL for TitleNewGameOnly.js is here: https://raw.githubusercontent.com/triacontane/RPGMakerMV/mz_master/TitleNewGameOnly.js

I would like to add that on the map, I have automated map events and used variables to branch conditions and display pictures. The conditions change depending on the progress of the scenario, so that the picture and title BGM change.

Regarding the possibility to set the title map depending on the latest save game, it may just be my project, but when I restart the game, the switches and variables in the save data are not loaded and the switches and variables are initialized. If I open the save data and return to the title while it is running, the map screen changes according to the variables.
I am looking forward to your reply.
Hi, and thanks for the plugin. Thing is, I've got a problem with the plugin being that the title commands don't show up. I don't know if it's because of the plugins I have being MogHunter's titlecommands and titlelayers plugins, can you help me with this?
Nice plugin 😀 Thanks for this Nolonar. I'll use this for my MZ project.

As an off-chance is there a way to move the menu commands to any location I want..?
Or maybe add in the feature to move each menu selection choice to a specified X/Y location?
Or if anyone knows how I can do this using this plugin.

For now I have moved the title menu to the bottom right of screen using the settings in RMMZ but its limited, so they are listed downwards, but i'd really like to list them diagonally at the bottom right.

Thanks !!

Original thread: https://forums.rpgmakerweb.com/threads/use-map-as-title-screen.123428/