Hi there!
Bug
I found a bug where the Map Name Window will not show when you enter on a map that has a show text command on an autorun/parallel event.
How to replicate
Sample project download here. (One Drive - 4,27MB .zip)
Cause
Suggestion
Remove the above code and on the
Bug
I found a bug where the Map Name Window will not show when you enter on a map that has a show text command on an autorun/parallel event.
How to replicate
- Put a name to be displayed in the map settings.
- On that same map, create an autorun/parallel event and put a show text command to open.
- Hit playtest. As soon as the map is loaded, the show text command will display a message and it will not show the map name window.
- Download the sample project to see that happening.
Sample project download here. (One Drive - 4,27MB .zip)
Cause
JavaScript:
Scene_Map.prototype.updateMapNameWindow = function() {
if ($gameMessage.isBusy()) {
this._mapNameWindow.close();
}
};
Suggestion
Remove the above code and on the
Game_Map.prototype.setup code, add:
JavaScript:
if($dataMap.displayName){
this.enableNameDisplay()
}else{
this.disableNameDisplay()
}
JavaScript:
Game_Map.prototype.setup = function(mapId) {
if (!$dataMap) {
throw new Error("The map data is not available");
}
this._mapId = mapId;
this._tilesetId = $dataMap.tilesetId;
this._displayX = 0;
this._displayY = 0;
this.refereshVehicles();
this.setupEvents();
this.setupScroll();
this.setupParallax();
this.setupBattleback();
this._needsRefresh = false;
};