Advanced Game Time

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
377
First Language
English
Primarily Uses
Advanced Game Time v1.2
By V.M. of D.T.
Introduction
The Advanced version of the Game Time script.

This version features customizable time increments, seconds, minutes, hours, days, weekdays, months, years, you can set them all however you want. As well as a new tinting system, no more taking control of the built in tint, this one uses it's own and comes with support for Khas's lighting effects script (since that's a big deal). And last but not least, message codes to include time variations in your messages!

Features
- Customizable time increments
- Customizable tints
- Message codes!

Screenshots
None at the moment

How to Use
Plug and play and customize if needed.

Script
Click here for the handy pastebin!

Some extra custom times I threw together for fun:
Harvest Moon-esque
Code:
#Time it takes for a second (or minute) to pass, in frames#(Frame rate is 60 frames per second)TIMELAPSE = 60#Whether to use seconds or notNOSECONDS = true#Number of seconds in a minuteSECONDSINMIN = 0#Number of minutes in an hourMINUTESINHOUR = 60#Number of hours in a dayHOURSINDAY = 24#Names of the days (As little or as many days in the week as you want)DAYNAMES = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]#Day name abbreviationsDAYNAMESABBR = ["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]#Number of days in each month (Also represents number of months in a year)MONTHS = [30,30,30,30]#Names of the monthsMONTHNAMES = ["Spring","Summer","Autumn","Winter"]#Abrreviated names of the monthsMONTHNAMESABBR = ["SPR","SUM","AUT","WIN"]
Olden times RPG thingy (kinda?)
Code:
#Time it takes for a second (or minute) to pass, in frames#(Frame rate is 60 frames per second)TIMELAPSE = 120#Whether to use seconds or notNOSECONDS = true#Number of seconds in a minuteSECONDSINMIN = 0#Number of minutes in an hourMINUTESINHOUR = 60#Number of hours in a dayHOURSINDAY = 24#Names of the days (As little or as many days in the week as you want)DAYNAMES = ["Firstday","Moonday","Twinsday","Midweek","Thorsday","Freeday","Lastday"]#Day name abbreviationsDAYNAMESABBR = ["FRS","MON","TWI","MID","THO","FRE","LST"]#Number of days in each month (Also represents number of months in a year)MONTHS = [30,30,30,30,30,30,30,30,30,30]#Names of the monthsMONTHNAMES = ["Snowfall","Lastcold","Newleaf","Rainfall","Floodsweek","Greenleaf","Sunburst","Redleaf","Leaffall","Firstfall"]#Abrreviated names of the monthsMONTHNAMESABBR = ["SNW","LCL","NEW","RAI","FLO","GRE","SUN","RED","LEA","FRS"]
FAQ
None yet.

Credit and Thanks
- By V.M. of D.T.
- Free to use in any non commercial or commercial project.

Author's Notes
This script hasn't been thoroughly tested but works for the most part. I'm sure there are some bugs
remaining. Give it time.

Donations always accepted and appreciated through Paypal: sumptuaryspade@live.ca

History
V1.2 - Fixed KHAS notint bug
- Multi-line custom clock window!
- Changed the way notint works (notetags instead of array now)

V1.1 - Save/load time
- Custom clock setups
- Year post (AD/BC/etc...)
- Fixed KHAS bug
- Allow use of tint in battle
- Clock in the Menu
- Map Note tag to stop time
- Option to sync with PC time

Want a feature that you don't see here put in? Feel free to comment and I'll see what I can do!
 
Last edited by a moderator:

ディーノス

Make a new destiny!
Veteran
Joined
Jul 3, 2012
Messages
187
Reaction score
19
First Language
Indonesian
Primarily Uses
umm....

it's great script but can you tint the battle too?
 

Cuvorio

Villager
Member
Joined
Jun 5, 2012
Messages
9
Reaction score
0
First Language
Indonesia
Primarily Uses
Well why don't you tint it manually?

Using some sort of conditional branch..

But it's complicated...

Ah and by the way nice script you got there Vlue :D
 

ディーノス

Make a new destiny!
Veteran
Joined
Jul 3, 2012
Messages
187
Reaction score
19
First Language
Indonesian
Primarily Uses
i got some error using this...

after i close my menu...

Script "Khas Awesome Light Effects" Line 442 : NoMethodError occured.

undefined method "opacity=" for nil:NilClass
 

Cuvorio

Villager
Member
Joined
Jun 5, 2012
Messages
9
Reaction score
0
First Language
Indonesia
Primarily Uses
Well have you been true the :



Code:
#Using KHAS lighting effects script? Turn this on to use that tint
USE_KHAS = false
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
377
First Language
English
Primarily Uses
Newer copy up there now that allows you to use the tint in battle (pretty sure it doesn't work with KHAS) and fixes that KHAS opacity= problem.
 
Joined
Aug 24, 2012
Messages
23
Reaction score
3
First Language
English
Primarily Uses
Script 'Vlue's Time System' line 326:RGSSError occurred.

failed to create bitmap
I'm getting the above error at the title menu of all places. I'm not sure as to why though...Any ideas as to what's wrong?
 

Internetakias

RPG Maker VX Ace Noob :P
Member
Joined
Aug 26, 2012
Messages
67
Reaction score
8
First Language
Greek
Primarily Uses
Hmmm, It'd be great if the in game clock could sync up with the PC's clock, like in Animal Crossing and Pokemon D/P.
 
Last edited by a moderator:

SLEEP

grunge rock cloud strife
Veteran
Joined
Mar 21, 2012
Messages
606
Reaction score
214
First Language
emglish
Primarily Uses
N/A
Would it be possible to be able to use notetags in maps to determine if time passes on them or not? It would be super handy! But it doesn't matter too much, I really like this script anyway, and have put it into my game. Thanks a bunch. :)
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
377
First Language
English
Primarily Uses
Script 'Vlue's Time System' line 326:RGSSError occurred.

failed to create bitmap
I'm getting the above error at the title menu of all places. I'm not sure as to why though...Any ideas as to what's wrong?

Hmm, using any custom title scripts?

Hmmm, It'd be great if the in game clock could sync up with the PC's clock, like in Animal Crossing and Pokemon D/P.
Definitely possible, stay tuned!

Would it be possible to be able to use notetags in maps to determine if time passes on them or not? It would be super handy! But it doesn't matter too much, I really like this script anyway, and have put it into my game. Thanks a bunch. :)
That's not a bad idea, I'll look into it.
 
Joined
Aug 24, 2012
Messages
23
Reaction score
3
First Language
English
Primarily Uses
Hmm, using any custom title scripts?
No but do you need me to list my scripts? Either way here's my list just in case:

Symbol Encounter

Ace Battle Engine

TP Manager

Death Common Events

Active Chain Skills

Ace Message System

Random Skill Invoke

Skill Cost Manager

Slippery Tiles

Shop Options

Tactics Ogre Crafting System

DT's Difficulty

New Game +

Ace Save Engine

Ace System Options

Ace Victory Aftermath

State Animations

Fullscreen++

Lemony's Sound Emitting Events

Enemy Target Info

Enemy HP Bars

Khas Awesome Light Effects

Advanced Game Time

Basic Climate System

Class System Add-on: Class Unlock Level

Class Specifics

Learn Skills Engine

Class System
Btw alot of them are from yanfly if that helps.

edit

Removed All of my scripts and it still crashes :(

This is the part that keeps giving the error: (Line 326)

self.bitmap = Bitmap.new(Graphics.width,Graphics.height)
 
Last edited by a moderator:

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
377
First Language
English
Primarily Uses
Hmm, when does that error occur at the title screen? Right away, or when returning from the save screen or similar?
 
Joined
Aug 24, 2012
Messages
23
Reaction score
3
First Language
English
Primarily Uses
Usually a minute or two after starting, and this is coming from when you just launch the game.
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
377
First Language
English
Primarily Uses
That's bizzare, umm, try changing that line to

self.bitmap = Bitmap.new(544,416)

(or whatever your width/height is) and see if it errors.
 
Joined
Aug 24, 2012
Messages
23
Reaction score
3
First Language
English
Primarily Uses
Hmm, still does it.

edit

I Tried using it in a new blank project (after I re downloaded the script), and the error still occurs...
 
Last edited by a moderator:

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
377
First Language
English
Primarily Uses
Well, I did notice something irregular in the script and fixed it, try getting a fresh copy now and using it.
 
Joined
Aug 24, 2012
Messages
23
Reaction score
3
First Language
English
Primarily Uses
ok thx, will try it out shortly :)

edit

Happy to say that you fixed it! Thanks aton :wub:
 
Last edited by a moderator:

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
377
First Language
English
Primarily Uses
Updated to 1.1.4 to include:

Clock in the Menu

Map Note tag (Notime) to stop time in certain maps

Ability to sync with PC (Current/Real) Time!
 
Joined
Aug 24, 2012
Messages
23
Reaction score
3
First Language
English
Primarily Uses
Hey back again, here's a bug with your new version that I'm getting:

This happens as soon as I start it up :(
 
Last edited by a moderator:

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
377
First Language
English
Primarily Uses
I did fix that! Just.. in the wrong script (Climate uses the same note thing). Pastebin updated to reflect that fix.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

I wonder if there's ever been an art challenge that involves drawing faces from the generator.
I'm sorry about earlier. I have the most hate and the most love for my art at the same time. Felt bad about my thread because I wasn't listening, and because I made it out of a bad mindset to begin with. S'another Thursday for me.

The main character of the book)
Things you can say about your rpg maker project but not your bf/gf: I'm not super committed but it's fun to play around with it.

Forum statistics

Threads
94,368
Messages
920,348
Members
124,134
Latest member
scrollstorm
Top