I know that this issue has been addressed before, but this is a new query, as the suggested solution(s) do not work for me. The following was tested in a new project, with no added scripts, so I know that it is not being caused by a custom script overwriting anything.
The usual problem: the main window shows up as transparent. One solution proposed was this:
Also, remember that windows are by default transparent. You'd have to set its back opacity to 255 in Window_Base:
self.windowskin = Cache.system("Window") self.back_opacity = 255 self.openness = 255So I added the 2nd and 3rd lines under the first in my default script. Made no difference.
I then tried this snippet I found, putting under 'Material' and above 'Main'
class Window_Base alias kalacious_opaquewin_iniz_8ba5 initialize def initialize(*args) kalacious_opaquewin_iniz_8ba5(*args) # Call Original Method self.back_opacity = 255 endendAgain, it had no effect.
The Help file says that the default setting is 192. Using ctrl+f search did not turn up 192 anywhere in the Window_Base script.
I did, however, see this section which refers to translucent, so I tried changing it to 192
def translucent_alpha return 160 endMade no difference.
I now cannot think what else to try. Please can someone explain, in fool-proof terms, what I ought to be doing.
Thanks
Works perfectly for me. Both adding the line in the default under self.windowskin = or just playing copy-pasting that snippet worked with a new project.
And that translucent_alpha is for fonts, so it is unrelated.
Here's a silly question: Are you using the default windowskin or a custom one? And if you're using a custom one, is it slightly transparent?
It's a custom one, and it is not transparent.
Then a few more questions to try and troubleshoot why it's not working for you.
-Does it change if you set it to 0? I know this isn't your goal, but I'm curious if it's making a change.
-By main window, do you mean all windows or a specific one?
Sorry, but you are dealing with a scripting idiot. When you say "Does it change if you set it to 0?" where would I do that and how?
All windows e.g. New game/continue/quit window; menu window, message box. The selector bar is fine, using a section from the same graphic that provides the main window and the borders are fine as well.
Does it work if you change your windowskin back to the default? (Just temporarily rename your custom one)
If it does, can you show us your custom windowskin?
Instead of self.back_opacity = 255, try self.back_opacity = 0 just to easily see if it is making a difference. I don't know if you're using the first or second snippet you posted, so change it in whichever one you are using. (The second is probably easier for a "scripting idiot." I would not recommend changing default scripts if you're not comfortable doing so.)
Sec, I have a solution for this (used it in my retro demo).
Try this (ignore the skin options as I was using two different window skins based that were interchangeable via script options):
class Window_Base < Window def initialize(x, y, width, height) super self.windowskin = Cache.system("Window") self.back_opacity = 255 update_padding update_tone create_contents @opening = @closing = false endendUse it as an overwrite if you want. I placed the opacity above all else to ensure that it would work. It seems to work in my retro demo that I worked on. Let me know if that doesn't work.
Can you show us a screenshot of it in-game? I do know that the window transparency doesn't have any effect if you have an empty map (black background).
Looks like it's working fine to me (and it is when I copy it into my game). I did adjust the section in the lower left corner to make it a bit more transparent, so the background in the top left corner would show through.
What exactly is the problem?
Are you sure that you didn't accidentally change some script stuff around and then saved this in the main folder (the RTP), so that every future new project will have the same bug?
@shaz
The problem is that the window is supposed to be the dark colour that at the moment is showing up in the selector bar - I put a bit of the window graphic there to make sure it wasn't a problem of the graphic being e.g. transparent (obviously the font colour would have to change so that it shows up against the custom colour). Furthermore, the graphic is mottled, as you can see from the actual image of the windowskin in post #9 and that doesn't show up in the in-game screenshots either.
@Celianna
I'm sure that I haven't done that as I don't edit the default scripts as I know that I'm too ignorant to do it properly. The only things I have done is to change the default font colours and the default number of save slots. Neither of those changes were saved to the RTP as I can see the default settings in this new test project.
It's because of the section in the bottom left corner. The top left section is what's in the background, and the bottom left section covers it. In the default windowskin, that bottom left section is very transparent, but in yours, it's not - it's almost fully opaque. Which means none of the top left section will be visible behind it.
Depending on what editing program you're using, you need to make that lower left section MUCH more transparent (check the default Window.png file for comparison). With Paint.net, I cut it and pasted it to its own layer, reduced the layer transparency, then merged the layers again. That allowed me to see the top left (blue) background behind it.
That's the aspect I didn't know - I've never seen that explained in anything I've looked at. I thought it was just the top left section which determined the appearance.
I have now followed your advice, and it's turned out how I had hoped. Thank you very much.
It's in the help file 😉 And looking at the RTP window skin gives the clue about the opacity being low.
RPG Maker VX Ace > Reference Material > Resource Standards > Window Skins
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.