Tint lost after using menu

This does not appear to be a script related issue, which is why I'm posting in the general support forum.

this is a problem I've been trying to sort for the last couple of months but which appears to be going nowhere.  Here are the details.

Using Shaz's multi-fog script, I am showing a greyish tinted fog graphic.  At the beginning everything is as I would expect it to be.  I can change maps and there is no alteration in the appearance.  However, irrespective of which map I am on, if I use the menu when I return to the map view the greyish tint has gone and the map now appears not just bright as in the editor, but actually bleached in that the pink sand now looks almost white.  The same thing happens if there is a battle, I assume that's because of going into battle menus etc.

I have tried tinting the fog and/or tinting the screen.  this makes everything darker and again I can change maps, but again as soon as I use the menu, I end up with the bleached appearance.  Here are screen shots showing the difference before using the menu and after using it.

Any suggestions as to what is going on would be gratefully received.

Thanks

Does this only happen if the multi fog script is enabled? If you comment it out, does everything work as it should?


Is the fog even there in the bright version? I can't tell if it's not showing at all, or if it's showing but so bright that it can't be seen. How are you adding it?


What other scripts do you have installed?


mmm ... I have just tested myself, and this issue does not happen for me, either from the menu or from the battle screen. I'm going to move it to Script Support, because it MUST be something related to scripts.


So ... does it happen from ALL your maps? Can you put fog on a number of maps and test with the menu on each one? If it only happens on one/some, we'll take a look at any autorun or parallel process events you have that are active on those maps, or in common events.


Other than that, let us know what other scripts you're using.
Your questions first

Screen tints used on maps without fogs work fine; I've got them all over the place and have never had any difficulties.  I'm showing fogs in another area without problems, but there's no screen tint on those maps, so not really much help for comparison purposes.

The fog is there, even in the bright version, though it's almost impossible to detect it as the map is so bright.

I'm having real difficulty getting any of my images in Photobucket to show up here - I think it's a fault with my browser - so showing the (long) list of scripts isn't possible just at the moment.

Now here's where it gets interesting and why I'm not at all sure that this is a straightforward (ahem!) script problem.

The reason why I decided to use a fog graphic that was already tinted grey is that a white fog shown over sand doesn't really show up properly and it is very difficult to give the impression of it being night time as the sand shows fairly white through the white fog.  I originally had our old friend alpha_fog plus a screen tint.  That always seemed to work okay, no menu/bleaching problem.  But as I said, the effect wasn't very good and the blotches of 'fog' were too big.  So I made a new fog graphic tinted grey and used it without screen tint.  That gave me the effect I wanted, but I then get the bleaching problem that you can see in the screen shots.

I am showing the fog with a script call like this (I have to type it because of the problem of not being able to show screen shots this morning):

show_fog(1, "Fog2", 0, 150, 1, 200, -2, -2)
If you'd like to zip up your project and load it up somewhere for me to download (not 4shared, and not somewhere where I have to register/login), I can take a look at it for you. Just put the starting spot on the map that has the problem, and also create a save file with the PC on a map that uses fogs/tints that DOESN'T have the problem, so I can get right into playing and debugging. PM me a link if you don't want to make it publicly available yet.
It'll have to be something like sendspace as it's pretty big.

I'm at work now, so will have to find time to upload it during the course of the day, but with differences in time zones there would have been a big gap before you could look at it anyway.

Thanks very much for the offer.

Once it's uploaded, I'll pm you the link.
The problem is with the script call you've used to add the fog. You're setting the blend mode to 1 (addition) instead of 0 (normal).

I got the problem as soon as the game started - I didn't have to go into a menu or anything to see it.

Here is what you've got:

show_fog(1, "Fog2", 0, 150, 1, 200, -2, -2)Here is the method and its arguments:
Code:
  def show_fog(number, name, hue = 90, opacity = 64.0, blend_type = 0, zoom = 200,     sx = 0, sy = 0, z = nil)
So you're using a hue, opacity and blend mode different to the default values. If you don't need to use a different value, I suggest you just stick with what the method uses as the default values.Changing it to this:

Code:
show_fog(1, "Fog2", 0, 150, 0, 200, -2, -2)
makes it show up fine for me.
Thank you so much for sorting this.  Obviously I have misunderstood what blend does.
Yeah, it's a graphics blend mode - addition, subtraction (graphics programs will let you multiply and do other stuff too). I don't pretend to understand them either 🙂 XP provided it, so I figured I may as well add it to the script, too.


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.

Original thread: https://forums.rpgmakerweb.com/threads/tint-lost-after-using-menu.21151/