Advanced Game Time

It's immensely useful for my game, which takes place in a single day; for me, time is critical, essential.

As a generic solution, I'm not so sure, because it removes the playtime from the save. I would suggest thinking about:

- Keeping this as a separate (but related) add-in, or

- Appending the current time to the game playtime, and making it optional to show the current time, or

- A pair of flags (show_playtime, show_gametime) which you can set in your core script to enable showing neither, one, or both times.

Personally, what I have done (a separate script) seems the least useful.
This is what i get right before the game even starts:

Script 'Advanced Game Time + Night/Day' line 106: NoMethodError occurred.

undefined method 'width' for GraphicsModule
This script is for use with RPGMaker VX Ace, and is not guaranteed to work in any other versions (like RMXP).
well do you have a script like this one that does work for rmxp?
I do not, I've only done scripts for Rpg Maker VX Ace.
I've been working on a project using the script, when it comes to triggering events based off the clock, I've found that if I use the fastest setting for the clock (wait 1 frame) sometimes the events fail to fire...maybe 1 in 3 times it works. I got more reliable when I backed it off to wait 2 frames, but with the kind of time frame I'm on I would like the faster advancing of the time. Have you heard of this problem before, and any solutions you can think of?
how to call script?
I've been working on a project using the script, when it comes to triggering events based off the clock, I've found that if I use the fastest setting for the clock (wait 1 frame) sometimes the events fail to fire...maybe 1 in 3 times it works. I got more reliable when I backed it off to wait 2 frames, but with the kind of time frame I'm on I would like the faster advancing of the time. Have you heard of this problem before, and any solutions you can think of?
I have not heard of that before... how are you triggering events based on time?

how to call script?
What do you mean? Everything, including script calls, are explained in the header of the script.
I have not heard of that before... how are you triggering events based on time?
A nested conditional branch of game time hour, then game time minute. Gametime hour 23 -> Gametime minute 59 should set off once every day, but if the wait time is only 1 frame it frequently misses. I'm guessing the game just can't process it fast enough and maybe the 2nd condition isn't true?
is there away to have an event only work at certain times through a script call. Say, I wanted a npc to only appear at night, what script cal would i use for that.
I'd like to second Mustidie's question.
Ok, sooo... Sifted through as many posts as I could handle to see if my issue's been discussed already, but it doesn't look like it.

My planet has 33-day months, 15 months in a year, and 30 hour days and 11-day weeks.

Spoiler
Here's what I have as the start time:

START_TIME = [00,30,18,8,9,892]

and...

CUSTOM_CLOCK = ["month"," ","year","yearp"]
CUSTOM_CLOCK2 = ["weekshort"," ","day"," ","hour12","blinky","min",]

#Names of the days (As little or as many days in the week as you want)
DAYNAMES = ["Ala","Vena","Keta","Sena","Bela","Dena","Ona","Ila","Una","Fena","Jena"]
#Day name abbreviations
DAYNAMESABBR = ["Ala","Ven","Ket","Sen","Bel","Den","Ona","Ila","Ula","Fen","Jen"]
#Number of days in each month (Also represents number of months in a year)
MONTHS = [33,33,33,33,33,33,33,33,33,33,33,33,33,33,33]
#Names of the months
MONTHNAMES = ["Mauz","Mefiya","Mura","Seisa","Sarrye","Syl",
              "Nauz","Nihari","Nakade","Dura","Damma","Draya","Kufya","Kenna",
              "Kirone"]
#Abrreviated names of the months
MONTHNAMESABBR = ["Maz","Mef","Mur","Sei","Sar","Syl",
                  "Naz","Nih","Nak","Dur","Dam","Dra",
                  "Kuf","Ken","Kir"]
#The default letters to be posted before the year in dates
DEFAULT_YEAR_POST = "E100"

And screenshot: http://gyazo.com/30873ff8c173c9ec23d15cdd13f60259
Which is fine, until I open the menu. Shouldn't it be calling the name of the month instead of the number, which also is off by +1?

Also I see that you have planned to use periods but haven't yet gotten around to it. That's actually the system I hoped to use -- My world is really old and the inhabitants live for thousands of years, so they have a different system.

E100 is 100th Era, 892 is the current year... Basically, dates are written: E90.Y1514.D224

So that example year is actually 26th of Nauz, 90,1514. There's more ways to write the date, but that's the simplest one. I'm also curious how to force the clock to use 30 hours instead of 24. Your script didn't like it when I tried to add more tints for specific times.
Sorry if this question is stupid, but I've read through most of the thread and can't find an answer.

How do I change the clock so that it's on the top left corner of the screen, rather than bottom right?
You will have to change these to your liking:

Code:
CLOCK_X = Graphics.width - 175CLOCK_Y = Graphics.height - 48 - 24 - 12
You will have to change these to your liking:

CLOCK_X = Graphics.width - 175CLOCK_Y = Graphics.height - 48 - 24 - 12
I figured that but I'm not sure which numbers are for the top left corner of the screen :/ I tried 0,0 and it didn't work, so I'm not sure which combination of numbers it is
I figured that but I'm not sure which numbers are for the top left corner of the screen :/ I tried 0,0 and it didn't work, so I'm not sure which combination of numbers it is
I know from my trials that x=-350 and y=-225 - 24 - 12 will put the clock in the middle of the screen. Keep adding to the negative numbers until it's where you want it to be.

I'm having an issue with the custom clock. I want to black out the screen when viewing the clock, kind of "Five Night's at Freddy's monitor blocks all view of the office" style. I added a simple black picture to be my custom background, and I've positioned it so it hides the map.

My problem is that the picture shows when I start a new game or load one, and I have to hit SHIFT to show the clock and then again to hide both. Any suggestions in what's gone wrong?
Hello there! I am running into an issue when using this. The Basic Game Time one works but however when I try to run this one, I get this error... http://gyazo.com/bafd7013e0beb70e74f74d20d722344d I am really new to all this, so if you could give me a noob friendly answer that'd would be great!
so i thought i'd inform you about a slight issue i found while i was using this script

so i was working with the time and i had set up an event that said when it was the 16th (the next day) something would happen, this even failed and i was positively baffled as i checked my work over and over again so i checked the clock in-game via the menue and i discovered that the game thought that the day was one day ahead of what i set it to be, i wanted to see if this was my error so i came here and got a vanilla copy of the script, made a completely blank/default project with absolutely no extra scripts but this one, and i set the start time to (0,0,0,0,0,0) in game it stated that the time was 0:00, the year was 0, the month was 0, and the date was 1

the error was with the script as i had modified this test project little to none

so vlue if you could be so kind as to fix this, then that'd be great  😀
Okay, I've found a neat little work around for my problem, and I thought I'd share it with everyone so they can use it if they want to do similar.

I wanted the screen to go dark when the clock is viewed. I tried using a custom background image, but I ended up with the image showing up at the start of the game, so that was no good to me.

Instead, I made the clock viewing a common event tied to an item called "watch" (surprise-surprise). I had programmed it to fade out and then show the time and then hide the time and fade back in, using an invisible text to break the two motions apart. I then realised that time was still moving while viewing the time, so I added the GameTime.notime function and voila! Exactly what I wanted, and the player can't and won't want to move while the time is present. I also added nil onto CLOCK TOGGLE in the script so there's no way to toggle the time with the event.

Here's what the event looks like.

Watch.png

(Sorry about the thumbnail, gallery upload keeps saying "error".)
Sorry to necro this thread BUT I've read a post from Vlue in this thread that you are allowed to as long as it's about problems with scripts. So please don't kill me D':

I've a certain problem with caves and tinting.

I want caves and dungeons in my game to be dark, no matter what time it is. So I've tried several ways:

1. Tried the Notint comment in the map. But since this comment does not stop the timed tinting but tinting overall it is out of question.

2. I tried to change the entrance event to this:

______________________________

Player teleport to ThatOneCave

s = $game_map.effect_surface

s.change_color(60,0,0,0,0)

GameTime.pause_tint(true)

______________________________

Note: I only changed the color to 0,0,0,0 out of test purpose. Once I go into the cave everything works how it should. But once a fight starts s*** gets real. Right at the battle transition the game world gets blue-ish (at night...but NOT as dark as outside the dungeon) or orange (at dusk...but NOT as dark orange as outside the dungeon) and stays that even after the battle. 

 

 

3. I tried to make a auto event inside the cave. This is the event:

______________________________

s = $game_map.effect_surface

s.change_color(60,0,0,0,0)

GameTime.pause_tint(true)

Erase event

______________________________

In this case I had the exact same problems as above .




4. Then I tried to make a parallel event out of it. This is the event:

______________________________

LOOP

GameTime.pause_tint(false)

s = $game_map.effect_surface

s.change_color(60,0,0,0,0)

GameTime.pause_tint(true)

REPEAT ABOVE

______________________________

Here I tried to screw the games auto tint system after the battles. I wanted to let the game know the whole time that I wanted the tint inside the cave to be 0,0,0,0.

In reality: There was no tinting inside of the dungeon. It was always the same tint as outside.

 

 

I'm so confused. I would really appreciate some help here.

 

 

I'm using following scripts:

 

Yanfly Message Scripts

Self Switch Remote

In Depth Maps

 

Advanced game time (duuuh)

Khas Awesome Light Effects

Original thread: https://forums.rpgmakerweb.com/threads/advanced-game-time.3851/