MZ Transparent PNG drawing black block

I'm using MOG's background image, but when i try to use a transparent PNG, the part becomes black :'))) is there anyway to change it?
Example below:
The unedited js below
1716377681851.png
1716377671088.png
P/s: if possible, i'd like it to have different background for different menus (items/save/ect..)
what is the size of the image?
what program do you use to edit/create it?
if you use the same image with show picture over the map, is it transparent or not?
what is the size of the image?
what program do you use to edit/create it?
if you use the same image with show picture over the map, is it transparent or not?
hello! the resolution is the default 816x624 (mog's stretch the image to my setting 1104x624)
i use photoshop for all my pictures
the show image it is transparent!

hello! the resolution is the default 816x624 (mog's stretch the image to my setting 1104x624)
i use photoshop for all my pictures
the show image it is transparent!
another is, stretch or not, it is still black (i used another image before :'3)
As far as I'm aware, the menu uses a map snapshot as background. I'm assuming you may have turned that off in one of your plugin settings, or Mog's plugin just straight up disables it, which will result in a black background.
Like SGHarlekin says, Mog's plugin replaces the default background. I think everything's working as designed.

If you want to see the blurred map as well, you could try editing the plugin's code:
  1. First, make a backup copy in case things go wrong!
  2. Search and replace all instances of this._backgroundSprite with this._backgroundSprite2.
  3. Remove the word return from line 222:
    JavaScript:
    	 if (!this.needSkipBackgroundScene()) {this.createBackground2();return};
  4. Swap the order of lines 222 and 223.
This is just a quick, untested theory based on me reading Mog's code.

(To save others from checking: Mog's terms of use permit redistribution.)
Like SGHarlekin says, Mog's plugin replaces the default background. I think everything's working as designed.

If you want to see the blurred map as well, you could try editing the plugin's code:
  1. First, make a backup copy in case things go wrong!
  2. Search and replace all instances of this._backgroundSprite with this._backgroundSprite2.
  3. Remove the word return from line 222:
    JavaScript:
         if (!this.needSkipBackgroundScene()) {this.createBackground2();return};
  4. Swap the order of lines 222 and 223.
This is just a quick, untested theory based on me reading Mog's code.

(To save others from checking: Mog's terms of use permit redistribution.)
you saved my life the second time 😀
if possible, can i set it for different menus?

liiiiiiiike the options menu?
you saved my life the second time 😀
if possible, can i set it for different menus?
Oh wow, that actually worked? Nice! 😂

if possible, can i set it for different menus?
I notice you made a new thread about that and got an answer there~


Also, try to avoid making 2 posts in a row like that, i.e. a "double post". Here's the official message, you're not in trouble:

@Lin989, please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.

(This rule is mostly to make sure people don't just keep bumping their thread by themselves for attention: a double post is OK if there's 72+ hours between them.) I've merged your double-posts this time. 👋

Original thread: https://forums.rpgmakerweb.com/threads/transparent-png-drawing-black-block.168908/