Advanced Game Time

● ARCHIVED · READ-ONLY
Started by Vlue 20 posts View original ↗
  1. 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
    Spoiler
    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?)
    Spoiler
    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!
  2. umm....

    it's great script but can you tint the battle too?
  3. 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
  4. 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
  5. Well have you been true the :



    Code:
    #Using KHAS lighting effects script? Turn this on to use that tint
    USE_KHAS = false
  6. 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.
  7. Spoiler
    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?
  8. 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.
  9. 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. :)
  10. TheWisdomcube2000 said:
    Spoiler
    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?

    Internetakias said:
    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!

    one hundred said:
    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.
  11. Vlue said:
    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:

    Spoiler
    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)
  12. Hmm, when does that error occur at the title screen? Right away, or when returning from the save screen or similar?
  13. Usually a minute or two after starting, and this is coming from when you just launch the game.
  14. 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.
  15. 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...
  16. Well, I did notice something irregular in the script and fixed it, try getting a fresh copy now and using it.
  17. ok thx, will try it out shortly :)

    edit

    Happy to say that you fixed it! Thanks aton :wub:
  18. 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!
  19. Hey back again, here's a bug with your new version that I'm getting:

    Spoiler
    dayandnighterror.png
    This happens as soon as I start it up :(
  20. I did fix that! Just.. in the wrong script (Climate uses the same note thing). Pastebin updated to reflect that fix.