terrax lighting - tint issues

i am using terrax lighting plugin and i love it, but i cannot figure out how not to have tint from one map stay on another map when a character moves from one map to another

basically, in terrax lighting, you have a plugin command that adds tint to a certain map, which is useful, because, without that, if you just add a light event to your map, the rest of the map will be pitch black. with tint, it is the colour you pick

for different maps, though, i would like to set different tints, however, if i set tint colour 1 on a map A, and then move to map B, the tint color 1 will appear on the map B too. if i add a separate tint colour to the map B, well, that is when it gets fun, as if i move from A to B several times, one of the maps will start having the tint colour of the other map, and then it won't change no matter what i do

i hope i am explaining this well... i tried erase event thingy, but it did nothing, and i have to admit i am quite a noob regarding switches, plugins, all the "technical" stuff, so even though i tried some things, nothing really worked

i found this thread on erasing events, but honestly i did not really understand it, especially the part referring to playtesting and players seeing different things, so i don't even have idea if that could help me at all? i also read this post and tried the self-switch with the empty second page thingy, but it did also not work

i also tried adding a plugin command with the right tint for the target map to every transfer event, but that did not work either

the plugin info file says this regarding the tint:

"As an alternative to the daynight cycle you can use the tint system. If you want to use another plugin for the day/night cycle, the tint option is probably best to use.
The plugin command 'Tint set #333333' will make the room less dark.
The plugin command 'Tint fade #777777 5' will fade the color from the current color to the new, the last number (5) is the speed of the fade, were 1 is a fast fade and 20 is a very slow one.
If an area has a daynight cycle system, the tint system is disabled.
"

however, as i am using neither daynight system nor the fade thing, the bolded sentence is the only useful one, i think. and that is how i have been doing it, i just add that command in a new event that is in some random untouchable place on the map (except i have been using different hexcodes, not just #333333). i do options default, aka "walking", priority i also leave default, aka "below characters" and trigger i tried both "autorun" and "parallel", if that helps

i guess my question is how to remove that plugin command when moving from one map to another? not sure what the other solution would be, but i am very very open to suggestions, i will try anything

thanks in advance!!

edit: i made a small game several years ago while learning to use rpg maker for the first time and i apparently had this same issue, and i just found out (i went to check my profile randomly to see if i ever posted anything because my memory is... xD) that i already asked this back then, and got a reply which explained to me the tints were transferring from one map to another (i did not realise that was happening) and i was suggested to add a tint event to each map. however, as we can see, that is not working for some reason

new edit: i will add some pics to try to illustrate my point better

for the town map, i used tint #354065 and for the inside map, i used #45321c. the first one is blue, for the wintery night, and the second one is brown-ish, for the warm and cozy feeling inside (not fully satisfied with it, but i will find a better shade haha)

Screenshot_1.png

Screenshot_2.png


however, no matter on which map i start, if i go from the outside map to the inside map, the inside map tint changes to the outside map one, giving it a more cold-ish feeling (not that that really even matters, it still looks nice, but it could prove a problem for other maps where the tint of the screen might play a bigger role, or, if reverse happens, which did happen several times when i was testing stuff, the night town would end up brown)

Screenshot_3.png

hope this explains it a little bit better!!
You went wrong at the very first assumption you made.

Tint does NOT use colors, it is a color operation instead.

An RGB color has a value of 0 to 255 in each color channel. The fact that you can tint with a negative number alone should have told you that the operation does not use colors, as a negative color value does not exist.

And this is where the next problem comes into being. Let's assume you have a dark base color of 10 in all three channels, and you apply a tint to further darken by -50/-50/-50.
Negative numbers do not exist, so the result of that tint will be capped 0/0/0, NOT -40/-40/-40 as the pure mathematical tint operation. That is the reason why you can't remove a tint by applying another tint - doing the reverse of +50 would end you at +50 instead of the original 10 because you cannot know when a tint was capped without knowing the original color.

There has to be a different command "reset tint" or "remove tint" in the plugin, because you cannot remove tint by applying another tint. And you need to find and use that command instead of adding one color operation after another to the map.
You went wrong at the very first assumption you made.

Tint does NOT use colors, it is a color operation instead.

An RGB color has a value of 0 to 255 in each color channel. The fact that you can tint with a negative number alone should have told you that the operation does not use colors, as a negative color value does not exist.

And this is where the next problem comes into being. Let's assume you have a dark base color of 10 in all three channels, and you apply a tint to further darken by -50/-50/-50.
Negative numbers do not exist, so the result of that tint will be capped 0/0/0, NOT -40/-40/-40 as the pure mathematical tint operation. That is the reason why you can't remove a tint by applying another tint - doing the reverse of +50 would end you at +50 instead of the original 10 because you cannot know when a tint was capped without knowing the original color.

There has to be a different command "reset tint" or "remove tint" in the plugin, because you cannot remove tint by applying another tint. And you need to find and use that command instead of adding one color operation after another to the map.
thank you so much for your reply!

i have to admit i am not sure what do you mean by negative numbers, i only saw the plugin using hex codes, but yeah, adding one tint on top of another, even in different maps, does not seem to be working - i added some pics and more detailed explanation to the original post, hopefully it explains the problem i have better

i am going to try to find the reset/remove command, although i am not sure how, there is nothing in the manual or google searches... i guess i will just try out different commands in hope something works haha
I use it like this;

Tint set #FFFFFFturns it just to not tint at all where all the colors are bright and on.
#000000 turns it to conplete black, because all the colors are off.

As a rule of thumb RGB (red green blue)
The first two is for red #FF0000 makes the screen red while #0000FF makes it blue.

Between 00 and tFF are more variations like 0F or F0 or 12 or 55 or F5 etc for each color.

Or you can search for a hex to color (google as one build in)


To set a tint each map, use an autorun or parralel event to set the tint and if you want erase event and exit event processes.

You could open up all the maps with notepad++ or any other script editor programm you prefer. Then search for the plugin commands set tint and change the color to #FFFFFF fornall of them. Make sure you make a backup just to be sure.
I use it like this;

Tint set #FFFFFFturns it just to not tint at all where all the colors are bright and on.
#000000 turns it to conplete black, because all the colors are off.

As a rule of thumb RGB (red green blue)
The first two is for red #FF0000 makes the screen red while #0000FF makes it blue.

Between 00 and tFF are more variations like 0F or F0 or 12 or 55 or F5 etc for each color.

Or you can search for a hex to color (google as one build in)


To set a tint each map, use an autorun or parralel event to set the tint and if you want erase event and exit event processes.

You could open up all the maps with notepad++ or any other script editor programm you prefer. Then search for the plugin commands set tint and change the color to #FFFFFF fornall of them. Make sure you make a backup just to be sure.
thank you for your reply!!

oh, i definitely have one site where you can find hex codes bookmarked, i am very picky 😀 i did not google had it, but that's very cool. the #FFFFFF does not really work for me, as i want some darkness on my maps - i added some pics to my original post to hopefully explain it all better

as for the erase event and exit event processes, i tried erase event for the tint events, but it still did not do what i wanted to do, like, if i went from map A to map B several times (and they each had a tint event with different tint colour) one of the tints would start showing on both of the maps even if they had their own tint event
thank you for your reply!!

oh, i definitely have one site where you can find hex codes bookmarked, i am very picky 😀 i did not google had it, but that's very cool. the #FFFFFF does not really work for me, as i want some darkness on my maps - i added some pics to my original post to hopefully explain it all better

as for the erase event and exit event processes, i tried erase event for the tint events, but it still did not do what i wanted to do, like, if i went from map A to map B several times (and they each had a tint event with different tint colour) one of the tints would start showing on both of the maps even if they had their own tint event

Maybe you made a mistake with the "build-in" screen tint from rpg maker.
You could remove the whole set tint from the plugins and use the set screen tint from the rpg maker program.
Maybe you made a mistake with the "build-in" screen tint from rpg maker.
You could remove the whole set tint from the plugins and use the set screen tint from the rpg majer program.
that is definitely an idea worth trying, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/terrax-lighting-tint-issues.153467/