MV What can cause a tileset not showing in-game?

It happens sometimes after starting or loading my game, for apparently no reason.
Tileset elements won't show, but character sets are visible. It's just all black with characters showing normally (can also be doors, lamps etc)
If I enter and exit the main menu, all is back to normal. Same if a battle happens. I tried to refresh the map to see if that would fix it, but it didn't. Any ideas?
sounds like a loading problem, which can be caused by either wrong file/folder names, or by pictures that are too big and need more time to load.
can you give us an example of the filepath to one of the tilesheets that goes missing?
from drive letter through all foldernames to the tilesheet picture name?
I'm using the RTP tilesets so they can't be too big and it's definitely not a case of missing files.
I forgot to say, it happens only after deployment. I have a lot of scripts so it's hard to identify which one could be causing the issue.
But what happens that exiting the main menu causes the tileset to magically re-appear?
I mean, first the characters are teleported to a new map, no tileset, then I press ESC, main menu, I exit, and the tileset is back. Is there any obvious reason for that?
then show us the filepath to the file - I specifically asked you for that so that we can check if it contains any letter that might cause problems on loading due to wrong letters. that has nothing to do with missing files and was never intended for that option.
I'm not sure I understand because it's the normal filepath for all MV games.
\www\img\tilesets
As for filenames they are the default ones so Dungeon_A1, Dungeon_A2 etc
I'm not sure I understand because it's the normal filepath for all MV games.
\www\img\tilesets
that is only part of the filepath- the only part that always works.
but it is not the full filepath - I asked for the path beginning with the drive letter itself for a reason, because a lot of people make the mistake of placing the game folder into a folder that requires overrides to function in a browser, and those overrides are often instable - working only sometimes or causing other problems.

so please, give the full filepath beginning with c:\ (or whatever drive your game is on)
I've played it on various folders but the latest one was:
C:\Users\[Name]\Desktop\
My name is nothing special and doesn't have special characters.

I doubt it's that honestly. It's kind of trickier than that, sometimes the tiniest update in the deployment can cause a map to show black instead of normal. It's also thankfully pretty rare (but very annoying nonetheless).

Is there a script call that can force the tileset to appear or at least simulate whatever works whan I enter and exit the main menu?
C:\Users\[Name]\Desktop\
My name is nothing special and doesn't have special characters.
"Space" is a special character that is forbidden under networking rules. And the same goes for quite a number of other symbols like .,? and more
and even with that you're still have not given the full path, because the project name folder was never mentioned.

One of the many examples for a folderpath that creates problems would be
C:\Users\The Main User\Desktop\The Test Game\www\img\tilesets
because that folderpath contains spaces both in the username folder and in the game name folder.
I think if it were invalid characters, they wouldn't appear after returning from the menu.

Make a copy of your project, removed ALL the plugins and all the events on that map (in the copy), then put the starting position on that map. Deploy, and see if the same problem happens. If it doesn't, give us screenshots of your plugin manager so we can see if any plugins could be causing it.

When you deploy and have the issue, are you still just playing it on your own pc, or have you put it into a web page where the resources have to be downloaded as you play? It actually sounds to me like it's a loading delay.
Thankfully the game's name and mine are only letters.
That's why I'm asking, is there a script call that can force the tileset to appear or at least simulate whatever works whan I enter and exit the main menu?

One of the many examples for a folderpath that creates problems would be
C:\Users\The Main User\Desktop\The Test Game\www\img\tilesets
because that folderpath contains spaces both in the username folder and in the game name folder.

This does raise some future concerns. What if I call my game The Quest of Justice?
It becomes impossible to use because it has spaces?? That seems a bit too much...
RPG Maker itself has spaces in its name:
\Steam\steamapps\common\RPG Maker MV

So if I want to sell a game that has spaces in its name, I cannot? Completely crazy...

Make a copy of your project, removed ALL the plugins and all the events on that map (in the copy), then put the starting position on that map. Deploy, and see if the same problem happens. If it doesn't, give us screenshots of your plugin manager so we can see if any plugins could be causing it.

I've got a lot of plugins, mostly from YEP and SRPG... without the plugin yes everything works fine.

When you deploy and have the issue, are you still just playing it on your own pc, or have you put it into a web page where the resources have to be downloaded as you play? It actually sounds to me like it's a loading delay.

Still on my own PC.
I don't think it's a loading delay but maybe.
I had this weird example: I could teleport in a map and it showed properly.
Then I change a few tiny things, redeployed, and that same map wouldn't work anymore even if I was doing the exact same action (just walking to the teleport).
I think one of the things I had changed was the config.rpgsave

But I would like to know if anyone has any idea why entering and exiting the main menu "restores" the map? I noticed entering battle mode also restores the map.
What if I call my game The Quest of Justice?
the game title does not have to be the same as the folder name.
that the editor fills in both at the same time is only a convenience, you can simply remove all spaces from the foldername without removing them from the title.
RPG Maker itself has spaces in its name:
The editor is not HTML5-based, only the games it creates are. So those rules only matter to the games, not to the editor itself.
So if I want to sell a game that has spaces in its name, I cannot? Completely crazy...
It can have spaces on the title screen, just not in the folder- or filenames.
without the plugin yes everything works fine


Moderator note: In that case, I have moved this to Plugin Support

And now you get to do what everyone with a plugin problem gets to do - go through them and try to identify which one is causing it. There are certain steps that need to be followed, starting with giving us screenshots of your plugin list.

Yes, a plugin can cause the map to appear before all the resources are loaded.
the game title does not have to be the same as the folder name.

It does, if you're using Steam, which is the case of many MV users.
Steam doesn't let you decide the folder name or remove spaces from it, it uses directly the name of the game. Hence why The Quest of Justice would automatically have the filepath:
\Steam\steamapps\common\The Quest of Justice
So what's next? No game name with more than one word ever?

Yes, a plugin can cause the map to appear before all the resources are loaded.

Rather than going through all the plugins, given the extremely annoying nature of the issue (it cannot even be replicated easily), I'd prefer to use a script call that forces the resources (or specifically the tilesets) to be loaded. Is there no such script call?
It does, if you're using Steam, which is the case of many MV users.
Steam doesn't let you decide the folder name or remove spaces from it, it uses directly the name of the game.
no, the mechanics are otherwise. there is nothing preventing you from having a different string on the title screen than in the foldernames.
It's more work and not as convenient admittedly, but there is no choice as long as you're using any HTML5-based engine.
Rather than going through all the plugins, given the extremely annoying nature of the issue (it cannot even be replicated easily), I'd prefer to use a script call that forces the resources (or specifically the tilesets) to be loaded. Is there no such script call?
why do you think everyone hates bughunting? It is always tedious, but unfortunately in such a case there is no way around it.
Because the problem here is not the loading itself, it is that some plugin has probably changed the regular order of functions. Trying to preload the tilesets in this case will cause more problems than it solves, especially since preloading has a very high chance of causing memory leaks or messing with other elements.

or to describe the situation with another example: If your car suddenly activated the warning light for bad oil, what would be the better solution: the work to change the oil, or a black tape to hide the light until your car completely breaks down?
Rather than going through all the plugins, given the extremely annoying nature of the issue (it cannot even be replicated easily), I'd prefer to use a script call that forces the resources (or specifically the tilesets) to be loaded. Is there no such script call?

By default the resources ARE loaded before the map is displayed. Any script call we could give you would be what the game is already using, so would not make any difference at all. If this only happens when you have your plugins enabled, then a plugin is stopping that default behaviour. We cannot tell you what to do to avoid that if you refuse to tell us what plugins you're using.

Why are you so averse to giving us information? Andar asked you several times what the full path to your game project was and you refused to tell him. I've asked you three times now for screenshots of your plugin manager and you refuse that as well. If you want our help, you have to give us what we're asking for. We don't have time or patience to guess when you withhold information that could be helpful. For all you know, it could be a really simple thing that we will recognize as soon as we look at your plugin list.

And the steam version does not force you to create your project anywhere. It's entirely up to you where it goes. I use the Steam version and I have my projects in D:\GameDev\RPGMaker... I just browsed to my preferred location when prompted for the game name, and it put it where I wanted it to go.
no, the mechanics are otherwise. there is nothing preventing you from having a different string on the title screen than in the foldernames.

How do you do that?

Because the problem here is not the loading itself, it is that some plugin has probably changed the regular order of functions.

I don't understand why it's such a rare occurence then? If a plugin does that, why doesn't it do it all the time? Why does it do it so rarely? Why does it do it on a same map when it wasn't doing it before?

Why are you so averse to giving us information?

I'm not averse but my plugin list is not exactly tidy right now.

And the steam version does not force you to create your project anywhere. It's entirely up to you where it goes. I use the Steam version and I have my projects in D:\GameDev\RPGMaker... I just browsed to my preferred location when prompted for the game name, and it put it where I wanted it to go.

But is the folder different from "RPG Maker MV"?
As far as I know Steam automatically creates the folder using the app's name. So in the case of MV it's using "RPG Maker MV" not "RPGMakerMV".
I'm not averse but my plugin list is not exactly tidy right now.

And that could be the very reason for your issue. Certain plugins, when used together, must be in a specific order, or "strange things" will happen. You say you are using a lot of Yanfly plugins, and Yanfly gives a specific order for them, so if you have the wrong order, you're going to have issues.

I suggest you get your plugin list "tidy" and make sure it's in the correct order. If you're lucky, your problem will disappear. If it doesn't, come back and we'll look into it more.
I saw this happen a few times but some people got tileset file dimensions wrong that causes this bug. Just putting it here in case the freak chance that is your problem.
Just putting it here in case the freak chance that is your problem
That was my first thought too, but the OP said they're using RTP tiles. And I also think if that were the issue, entering the menu then going back to the map wouldn't make them suddenly appear.
This whole thread is very odd. You started it asking for help, but every single time someone tells you what to do to get that help, you argue against it.

Completely aside from the whole debacle about folder names (which is just silly - you clearly don't have coding experience, so why are you arguing with someone who does? My Steam common folder has half a dozen games in it right now whose names have been truncated to have no spaces), for the number of posts you've written complaining about the advice you've gotten you could've simply spent that time taking a few screenshots of your plugin manager and posting them.

You have two very experienced users who have made multiple posts trying to teach you how to fix this - why wouldn't you just do what they say?

Original thread: https://forums.rpgmakerweb.com/threads/what-can-cause-a-tileset-not-showing-in-game.134543/