It's the Khas Light Effects that causing the problem. It isn't really fully compatible with the script.
Advanced Game Time
RGSS3 Scripts (RMVX Ace)You can't be serious. Does that mean I have to take Khas Light script out of my game or have to deal with extremely screwed up caves and dungeons? Please tell me you're lying 

Nah. I wish. Basically the /notint function isn't compatible at all with Khas because Vlue's Advanced Time has a mistake with the Khas compatibility.
Crap...is there another light script I can use instead of khas? Because let's face it. We need light with the advanced game time. Does Victors Light Script work better here?
Nah, Victors Light Script doesn't work with it either.
Any alternatives? Othert Light Scripts? Or maybe another time script? I could really need Light AND Time. Not just one of them >; /
No unfortunately, well at least not in the English-speaking RPG Maker communities. For some reason there isn't much demand for a tint based on time script.
Method number 3 is what you want. You need to switch it around though, pause the tint first then change it. What pause tint does is not lock the current tint in but instead stops the auto-tint process based on time. When you do this, make sure you aren't using the Notint comment as well, that locks the map tint in at 0,0,0,0. For the battle thing, KHAS lighting doesn't work in battle, so it reverts to default, just disable BATTLE_TINT in customization. Once you leave the cave you merely have to do a GameTime.pause_tint(false) and the tint will return.
Thank you very much for answering me Vlue! I'm really honored!
But sadly it doesn't seem to work : (
The event inside the cave is now
______________________________
GameTime.pause_tint(true)
s = $game_map.effect_surface
s.change_color(60,0,0,0,120)
Erase Event
______________________________
Inside of the script there is:
Use_KHAS = true
BATTLE_TINT = false
But somehow it is the exact same. As you can see I have now set the tint to 0,0,0,120 to make it darker. And because of that I noticed something fishy! Let's look at it:
01:00 pm ingame time:
The script lists this time as 0,0,0,0 tint. I was inside the cave and my event tint took over. After that an encounter happened. After that the tint was the exact same as before. So there was a change of 0,0,0,0. EXACTLY the value that is listed in your script for that timeperiod"
05:00 pm ingame time:
This timeperiod is listet as 0,0,10,55 tint. As soon as I went inside the cave my 0,0,0,120 tint took over. Again: Exactly as it should. But then there was another enemy encounter and after that the Map was noticeably darker then before. It seemed as the 0,0,10,55 tint from the script somehow was layed OVER my 0,0,0,120 tint making the effective tint for the map 0,0,10,175
10:00 pm ingame time:
This timeperiod is listet as 20,0,60,135 tint. Once again I went into the cave and there it was. My normal 0,0,0,120 tint. but after the next enemy encounter the map was pitch black and I could not see anything. It seemed once again as the 20,0,60,135 tint was added over my 0,0,0,120 tint and the map became 20,0,60,255.
The last battle at 10:00 pm was NOT darker than the other battles but the color was kind of blue-ish. So I have following theory:
Even though I have BATTLE_TINT set to false AND the "GameTime.pause_tint(true)" script going it seems that the r,g,b values of the timed tint in your script apply to the battles. That's why the battle was kind of blue. And after that the timed tint is added to the tint value I activated with my automatic event.
Call me crazy but I REALLY think something about that theory is right : O
But sadly it doesn't seem to work : (
The event inside the cave is now
______________________________
GameTime.pause_tint(true)
s = $game_map.effect_surface
s.change_color(60,0,0,0,120)
Erase Event
______________________________
Inside of the script there is:
Use_KHAS = true
BATTLE_TINT = false
But somehow it is the exact same. As you can see I have now set the tint to 0,0,0,120 to make it darker. And because of that I noticed something fishy! Let's look at it:
01:00 pm ingame time:
The script lists this time as 0,0,0,0 tint. I was inside the cave and my event tint took over. After that an encounter happened. After that the tint was the exact same as before. So there was a change of 0,0,0,0. EXACTLY the value that is listed in your script for that timeperiod"
05:00 pm ingame time:
This timeperiod is listet as 0,0,10,55 tint. As soon as I went inside the cave my 0,0,0,120 tint took over. Again: Exactly as it should. But then there was another enemy encounter and after that the Map was noticeably darker then before. It seemed as the 0,0,10,55 tint from the script somehow was layed OVER my 0,0,0,120 tint making the effective tint for the map 0,0,10,175
10:00 pm ingame time:
This timeperiod is listet as 20,0,60,135 tint. Once again I went into the cave and there it was. My normal 0,0,0,120 tint. but after the next enemy encounter the map was pitch black and I could not see anything. It seemed once again as the 20,0,60,135 tint was added over my 0,0,0,120 tint and the map became 20,0,60,255.
The last battle at 10:00 pm was NOT darker than the other battles but the color was kind of blue-ish. So I have following theory:
Even though I have BATTLE_TINT set to false AND the "GameTime.pause_tint(true)" script going it seems that the r,g,b values of the timed tint in your script apply to the battles. That's why the battle was kind of blue. And after that the timed tint is added to the tint value I activated with my automatic event.
Call me crazy but I REALLY think something about that theory is right : O
Well, if you insist.. you're crazy.
But I went through the script and did find something that would do that. Try it now: http://pastebin.com/bXXaZhpQ
(With BATTLE_TINT still false)
But I went through the script and did find something that would do that. Try it now: http://pastebin.com/bXXaZhpQ
(With BATTLE_TINT still false)
You are awesome Vlue! Thank you very much! It seems that did the trick. 10:00 pm and even after a battle the tint does not change! : )
Hey there, Vlue! Thank you for this wonderful script! 🙂
I'm using the message codes to show the current hour and minute/s, but I wondered if one could be added to convey if it's AM or PM as well? (If not, is there any way I can achieve this manually?)
I'm using the message codes to show the current hour and minute/s, but I wondered if one could be added to convey if it's AM or PM as well? (If not, is there any way I can achieve this manually?)
It's a mee again! *rips off fake mustache*
I think I found another glitch in the matrix!
Let's say I am in a huge ass magical academy shaped like a tower. There are no real windows and stuff so it's always pretty dark in there. So I change the tint and activate the GameTime.pause_tint(true) call. Everything works well at first. You enter the tower and it gets dark. Hours and hours can pass but the tint won't change. That's a good thing. The BAD thing on the other hand is as follows:
Everytime you change the area (while the script call is still "true") the area get's tintet like the time tells it to. So let's say it is 22 pm and you change the area...then it gets pretty dark. If it is 11 am and you change the area then it gets pretty bright. But because of the "GameTime.pause_tint(true)" call it will STAY that way unless you change the tint manually again. So the "GameTime.pause_tint(true/false)" script call kind of let's you stop the auto tinting but everytime you change the area the tint will still change according to the actual ingame time.
Is there a way to prevent this?
Yea sure I can have an auto event on every map to tint it again but it's kind of irritating that everytime you change the area the tint has to change back again. Because especially when it's day and you are in some dark place: You WILL see the tint change back. Every time you go to another map : <
I think I found another glitch in the matrix!
Let's say I am in a huge ass magical academy shaped like a tower. There are no real windows and stuff so it's always pretty dark in there. So I change the tint and activate the GameTime.pause_tint(true) call. Everything works well at first. You enter the tower and it gets dark. Hours and hours can pass but the tint won't change. That's a good thing. The BAD thing on the other hand is as follows:
Everytime you change the area (while the script call is still "true") the area get's tintet like the time tells it to. So let's say it is 22 pm and you change the area...then it gets pretty dark. If it is 11 am and you change the area then it gets pretty bright. But because of the "GameTime.pause_tint(true)" call it will STAY that way unless you change the tint manually again. So the "GameTime.pause_tint(true/false)" script call kind of let's you stop the auto tinting but everytime you change the area the tint will still change according to the actual ingame time.
Is there a way to prevent this?
Yea sure I can have an auto event on every map to tint it again but it's kind of irritating that everytime you change the area the tint has to change back again. Because especially when it's day and you are in some dark place: You WILL see the tint change back. Every time you go to another map : <
Thank you once again for your quick replies but I still have the same issue. Called "GameTime.pause_tint(true)" and changed the tint to my liking but as soon as I change the area the tint still changes according to the actual ingame time and then stays that way no matter how time changes (as long as I don't change the tint manually again)
Hmm, tested it now and it seems work fine: http://pastebin.com/bXXaZhpQ
Thank you! Now it seems to work nearly perfect! But for some strange reason if I leave the tower (with the pause-tint call going off again) at 12 pm to 1 pm the tint does not change back to normal. But as soon as it turns 1 pm the tint goes back to normal. This however seems to only happen at that specific hour because I tried walking out of the dark tower every full hour but the tint always changes back to normal...only the magical hour between 12 pm and 1 pm seems to rebel against the auto tint if you leave from an already tintet place.
Strange, yes. But definitely better than before : D
Strange, yes. But definitely better than before : D
Is it possible to have a separate tinting cycle for the inside of houses via a note tag? So you could make the inside of houses the same tint as outside except a bit darker?
Is it possible to interact with this script in game? I would like to make some changes in time like when you sleep in the inn you wake up the next morning or midnight if you wanted to. Or is it possible to get the time value lets said in summer season the food price is cheaper because higher production level or during night time monster is stronger and rare monster appear?
I have a question...but first:
Vlue, I'm head over heels in love with this script. It's perfect for what I am needing. Thank you! Thank you for this wonderful gift.
Question:
Concerning the config options:
DEFAULT_TIMELAPSE = 60 & TIMELAPSE_VARIABLE = 80
Does the "60" represent 60 FRAMES = 1 sec, or 60 SECONDS = 1 minute?
[the "(or minute)" in the help line above it threw me off] - cause i'm a newb 🤣
Can I change the TIMELAPSE VARIABLE from "80" to "ANY" variable of my choosing...say "1"?
Vlue, I'm head over heels in love with this script. It's perfect for what I am needing. Thank you! Thank you for this wonderful gift.
Question:
Concerning the config options:
DEFAULT_TIMELAPSE = 60 & TIMELAPSE_VARIABLE = 80
Does the "60" represent 60 FRAMES = 1 sec, or 60 SECONDS = 1 minute?
[the "(or minute)" in the help line above it threw me off] - cause i'm a newb 🤣
Can I change the TIMELAPSE VARIABLE from "80" to "ANY" variable of my choosing...say "1"?
Original thread: https://forums.rpgmakerweb.com/threads/advanced-game-time.3851/