[XP] Advanced Time and Environment System

Started by fugibo, March 09, 2008, 11:08:36 pm

Previous topic - Next topic

legacyblade

Well I could make it, it's just blizz knows the way through his script better than I do (his scripts are really complex), and it'd be easier if he knew how to do it off the top of his head. It's just when I try editing scripts, it usually appears to work, but then causes a bunch of bugs that I didn't notice at first (simply because I don't understand fully how the script works together).

And I guess I could make it myself, but if you wanted to, you could make it :D (I'm not being lazy, it's just I've got lots of homework now).

BTW, thanks for the comment about the class change script. Glad it helped you get you into scripting :)

Jackolas

to be fair.. that script is also the reason for me joining here.
so your the reason me doing scripts and joining this forum :P

Atm I can't do the script until next week.
will do it than if nobody else did it than already

legacyblade

sweet o.o I created a scripter!!! MWAHAHHAHAHAHAH

Well that's really nice of you to be willing to do that script addon for me. I'll try and do it myself, but I don't know if I'll have time. But if I don't do it, I (and I'm sure all sorts of other people) would be very grateful to you for doing it.

Blizzard

Maybe I'll add that later. Or LF will if he finally decides to work on the script a bit. ;>_>
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Ilitsa

Hi everyone, me again =x

I was wondering if someone could help me out with this script. I got it working just fine for the most part, just wanted a few things changed

length of day/night (I wanted it to last maybe 5 minutes? The way its set up default is something like 32 seconds for a full cycle) another issue I had was when I enter a building, I want to turn it off, so I call script and write ATES.off and thought that was it, but it kept scrolling through the tints, so I added ATES.tint_off, but now when I leave a building, the tint jumps to what it would be had I stayed outside.

I'm not sure if it would be easier to explain it to me here, or on msn, I'm a complete Scripting nubcake, so I might take a while before FULLY understanding(though I have made some good steps forward today, just by playing around)

Thanks in advance

Blizzard

The default is 36 seconds, not 32. The value has to be a divider of 36, so 300 is not possible. You can use 288 or 324. I did that limitation for a reason, but I can't remember what it was. >.<

If you turn off the tinting, there should be no change in screen tinting controlled by ATES at all.

There's also a demo.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Ilitsa

Thank you Blizzard, I fully understand now actually :) I'll try not to ask any more dumb questions for a while lol.

G_G

How do we make it not tint on certain maps?

Tazero

ATES.tint_off...

RTS(Read the script man =P  )


If you were a fish...

raijaku

I keep getting an error.

in the call script function i put "$ATES.on" and several of the other commands but i always get

NoMethodError occured while running script.

undefined method 'on' for nilNilClass

and any and all variations of what is between ' ' tint_on and the other commands are the same. i do not know if i am doing something wrong

or what but if i could get some help with this it would be greatly appreciated

Aqua

Did you insert the ATES script in a new script slot below RTP scripts but above Main in the right order?

raijaku

January 27, 2010, 07:10:39 pm #151 Last Edit: January 27, 2010, 08:25:57 pm by raijaku
Yes here is the order of my scripts

SDK
Mog_Animated_Title
Pixelmovement script v1.3
ATES
Weather Effects
Average Level

also am i even using the right commands? i know very little about scripting and even less about the script call command. my other scripts that use it work fine but this one just does not like me for some reason

Edit: i changed the ATES script location to the bottom of the above list same effect. im gonna try to place directly above main and see what happens

Edit #2: nope no change. please help!

Jackolas

if i'm correct this script has mayor issues with SDK.

raijaku

January 28, 2010, 05:20:17 am #153 Last Edit: January 28, 2010, 05:28:47 am by raijaku
well in the script there is

class Game_ATES
 
  attr_accessor :time
  attr_accessor :frame_count
  attr_accessor :active
  attr_accessor :tinting
 
  def initialize
    @time = ATES::Time.new(0, 0)
    @frame_count = 0
    @active = false
    @tinting = false
  end
now thos falses after active control wheather ATES runs when you start the game or not. i can use the ATES system when i set those to true and i have no issues the clock works and all else. however the problem comes from the fact that i cannot not use the call script function to control the system meaning that it is always on. for the time being i have it set to off, seeing as this is one of the few day-night systems i have seen for xp i would really like to have this working. if someone has any idea how it can be fixed please help me


Blizzard

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

raijaku

... ... ... I am a complete idiot. lol. I don't know much about the script call commands like i said before and i thought that all commands had to have $ in front of it. this makes me look like a complete noob despite the fact ive been using rpgmaker for going on about 3 years now. thank you for fixing my error and sorry to bother everyone with such a noob mistake

Lost King

Nothing to feel nooby about, I've been using XP for 3 years now too and still find new stuff, and that's only with default event stuff, scripting's a whole nother story.

If this script gets any more new and exciting features I may consider using it in a project of mine.
*Scribble Scribble* Oh right, not that sort of signature.

Blizzard

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Jragyn

Could this script be modified in some way to project REAL time into the game, versus implanted 5 minute days, 5 minute nights (or whatever they are set to)?

I currently use a script I butchered and modified for use from VX...for XP!
Spoiler: ShowHide
#==============================================================================
# � Kylock's Time System VX 1.5 MOD V.1.1
#     6.3.2008                 30.5.2009
#------------------------------------------------------------------------------
#  Script by: Kylock
#  MOD by reijubv
#===============================================================================
# Credit mainly goes to Kylock
# and then.  reijubv
# (Cuz I think I deserve something better than just a "thanks"..)
# Have a nice day!
#===============================================================================
# ? Auto-tone Instructions
#------------------------------------------------------------------------------
#    Maps designated as outdoors are the only maps to be affected by this
#  scripts use of auto-toning.  To signify a map to be "outdoors", you must
#  include [KTS] In the name of the map.  For example, you world map could be
#  named "World Map [KTS]" or "[KTS] World Map".  Provisions are made later in
#  the script to remove [KTS] from the map name when it's read by another
#  script.  This means that "[KTS]" won't show up in your Map Name Popup
#  windows.
#==============================================================================
# ? Game Database Setup
#------------------------------------------------------------------------------
#    This script, by defult, uses the following game variables and switches:
#  Database Variables:
#    [1] The Current Time
#    [2] The Current Second
#    [3] The Current Minute
#    [4] The Current Hour
#    [5] The Current Day
#    [6] Name of the Current Day (abbreviated)
#    [7] The Current Day index in one week (0-6) a week starts from sunday
#    [8] The Current Month
#    [9] The Current Month's name (abbreviated)
#    [10]The Current Day Id in this Month (1-32,or 1-30,or 1-29)
#    [11]The Current Year
#    [12]Season's name
#    [13]Weather's Name
#    [14]Weather Id, 0 is clear weather..
#  Database Switches
#    [1] ON during night hours   (2200-0400)(10pm-4am)
#    [2] ON during dawn hours    (0500-0800)( 5am-8am)
#    [3] ON during daytime hours (0900-1800)( 9am-6pm)
#    [4] ON during sunset hours  (1900-2100)( 7pm-9pm)
#    [5] ON during spring season
#    [6] ON during summer season
#    [7] ON during fall season
#    [8] ON during winter season
#==============================================================================

$kylockTIME = true


#==============================================================================
# Stores variables and user defined settings for the time system.
#==============================================================================
module KTS
  #-----------------------------------------------------------------------
  # Settings for Time Periods
  #-----------------------------------------------------------------------
  T1 = [ 0,4 ] # Night         # Sets time periods for tinting effects
  T2 = [ 5,8 ] # Dawn          # [Start Hour, End Hour] for time period
  T3 = [ 9,17] # Day           # Use 24-hour values for time periods
  T4 = [18,21] # Sunset
  T5 = [22,24] # Night         # <- Ex: Night is between 23:00 and 24:00
  #-----------------------------------------------------------------------
  # Settings for Output to Game Variables option.
  #-----------------------------------------------------------------------
  # Set this to true to output the current time to game variables.
  DATABASE_OUTPUT = true 
    # Game Variable to be used for time output.
    TIME    = 12 #(Time in string format. Ex: "2:48 AM" or "02:48")
    SECONDS = 13 # 1 to 59
    MINUTES = 14 # 1 to 59
    HOURS   = 15 # 1 to 24
    DAYS    = 16 # 1 to 366
    DAYNAME = 17 # Sun, Mon, etc..
    WEEKDAY = 18 # 0 to 6 (Day index in one week)
    MONTH   = 20 # 1 to 12
    MONTHNAM= 19 # Jan, Feb, May, etc..
    MONTHDAY= 21# 1 to 31
    YEAR    = 22# 1994, 2009, etc
    SEASON  = 23# Season Name (Spring, Summer, Fall, Winter)
    WEATHERN= 24# Weather's name
    WEATHER = 25# Weather Id, 0 is clear weather
   
    # Game Switches to be used for time output.
    NIGHT   = 55 # This switch is on during night hours   (2200-0400)(10pm-4am)
    DAWN    = 56 # This switch is on during dawn hours    (0500-0800)( 5am-8am)
    DAY     = 57 # This switch is on during daytime hours (0900-1800)( 9am-6pm)
    SUNSET  = 58 # This switch is on during sunset hours  (1900-2100)( 7pm-9pm)

    # Season Switches.
    SPRING  = 59 # This switch is on during spring season
    SUMMER  = 60 # This switch is on during summer season
    FALL    = 61 # This switch is on during fall season
    WINTER  = 62 # This switch is on during winter season
  #-----------------------------------------------------------------------
  # Settings for time controlled screen toning
  #-----------------------------------------------------------------------
  # True will enable screen toning to be used by the script.
  USE_TONE = true
  # Sets the duration of tone changes (in frames)
  FADE_LENGTH = 240
  # Defines tones to be used in the corresponding time periods defined above.
  #              RED, GREEN, BLUE, GREY
  C1 = Tone.new(-187,  -119,  -17,  68)
  C2 = Tone.new(  17,   -51, -102,   0)
  C3 = Tone.new(   0,     0,    0,   0)
  C4 = Tone.new( -68,  -136,  -34,   0)
  C5 = Tone.new(-187,  -119,  -17,  68)
  # Defines anti-tones
  A1 = Tone.new( 187,   119,   17, -68)
  A2 = Tone.new( -17,    51,  102,   0)
  A3 = Tone.new(   0,     0,    0,   0)
  A4 = Tone.new(  68,   136,   34,   0)
  A5 = Tone.new( 187,   119,   17, -68)
  #-----------------------------------------------------------------------
  # MOD
  #-----------------------------------------------------------------------
  #-----------------------------------------------------------------------
  # Settings for season periods
  #-----------------------------------------------------------------------
  S1 = [1,3]  # Spring        # Sets month periods for season system
  S2 = [4,6]  # Summer        # [Start Month, End Month] for time period
  S3 = [7,9] # Fall          #
  S4 = [10,12] # Winter        # <- Ex: Winter is between 10th - 12th (Oct - Dec)
  # Use automatic weather?
  WEATHER_SYSTEM = true
  # Sets the duration of weather changes (in frames)
  WEATHER_LENGTH = 240
  # Time before changing weather (in hours)
  WEATHER_COOLDOWN = 3
  # Weather names (Must be the same order as weather's Id) adds as many as required
  #                   0       1        2         3
  WEATHER_NAME = ["Clear", "Rain" , "Storm" , "Snowy"] # VX default only have these 3
  #-----------------------------------------------------------------------
  # Settings for possible weather
  # To add more weathers, just add more weather ids there
  # ex = W[#] = [ WeatherId, .....]
  # S[#] means, season number #
  # Weathers only occurs when entering map with [KTS] on it's name.
  # Those weathers will be randomly occurs, but snowy weather only spawns
  # during Winter.
  #-----------------------------------------------------------------------
  W = {}
  W[1] = [0, 1, 2 ] # [ WeatherId, .....]
  W[2] = [0, 1, 2 ] # [ WeatherId, .....]
  W[3] = [0, 1, 2 ] # [ WeatherId, .....]
  W[4] = [0, 1, 3 ] # [ WeatherId, .....]
  #-----------------------------------------------------------------------
  # Settings for weather bgs
  # WeatherId => "filename", file must be in Audio/BGS/ folder
  #-----------------------------------------------------------------------
  WEATHERSOUND_OK = true
  # If true, setup the BGS on line 385
  # Remember. BGS only changes when you enter/exit a map, but weather can change
  # even if you stay inside a map for a long time....
end

#==============================================================================
# Core Time System Engine (MODDED)
#==============================================================================
class Kylock_Time_System
  if $kylockTIME = true
  # sets instance variables
  def initialize
    $kts_map_data = load_data("Data/MapInfos.rxdata")
    @event_offset = (Time.now.strftime("%H").to_i * 3600) + (Time.now.strftime("%w").to_i * 86400)
    $kts_event_tone = false
    $kts_event_weather = false
    $kts_battle_tone = true
    $kts_anti_tone = Tone.new(0,0,0,0)
    @startingweatherdelay = 0
    @curweather = 0
    @played = false
  end
  # Computes current time and updates variables if used
  def update
    if !@kts_stop
      # for scripters
      @total_seconds = Graphics.frame_count + @event_offset
      @total_minutes = @total_seconds / 60
      @total_hours = @total_minutes / 60
      @total_days = @total_hours / 24
      @total_weeks = @total_days / 7
      @total_months = @total_weeks / 4
      @total_years = @total_months/12
      #
      @seconds = Time.now.sec
      @minutes = Time.now.min
      @hours   = Time.now.hour
      @days    = Time.now.strftime("%j").to_i
      @weekday = Time.now.strftime("%w").to_i
      @month = Time.now.strftime("%m").to_i
      @monthname = Time.now.strftime("%b")
      @monthday = Time.now.strftime("%d")
      @year = Time.now.strftime("%Y").to_i
      update_tint
      update_weather
      if KTS::DATABASE_OUTPUT
        $game_variables[KTS::TIME]    = getTime
      end
    end
  end
  #
  def update_variables
    $game_variables[KTS::SECONDS] = @seconds
    $game_variables[KTS::MINUTES] = @minutes
    $game_variables[KTS::HOURS]   = @hours
    $game_variables[KTS::DAYS]    = @days
    $game_variables[KTS::DAYNAME] = getDayName
    $game_variables[KTS::WEEKDAY] = @weekday
    $game_variables[KTS::MONTH] = @month
    $game_variables[KTS::MONTHNAM] = @monthname
    $game_variables[KTS::YEAR] = @year
    if KTS::WEATHER_SYSTEM == true
      $game_variables[KTS::WEATHER] = $game_screen.weather_type #@weather
    if $game_variables[25] == 0
      $game_variables[KTS::WEATHERN] = "Clear" #getWeatherName
    elsif $game_variables[25] == 1
      $game_variables[KTS::WEATHERN] = "Raining" #getWeatherName
    elsif $game_variables[25] == 2
      $game_variables[KTS::WEATHERN] = "Deluge" #getWeatherName
    elsif $game_variables[25] == 3
      $game_variables[KTS::WEATHERN] = "Snowy" #getWeatherName
    end
    end
    $game_variables[KTS::SEASON] = getSeasonName
    $game_variables[KTS::MONTHDAY] = @monthday
  end
  #
  def update_switches
    if @period == 1 || @period == 5
      $game_switches[KTS::NIGHT] = true
    else
      $game_switches[KTS::NIGHT] = false
    end
    if @period == 2
      $game_switches[KTS::DAWN] = true
    else
      $game_switches[KTS::DAWN] = false
    end
    if @period == 3
      $game_switches[KTS::DAY] = true
    else
      $game_switches[KTS::DAY] = false
    end
    if @period == 4
      $game_switches[KTS::SUNSET] = true
    else
      $game_switches[KTS::SUNSET] = false
    end
  end
  #
  def update_season_swithces
    if @month >= KTS::S1[0] and @month <= KTS::S1[1]
      @speriod = 1
      $game_switches[KTS::SPRING] = true
    else
      $game_switches[KTS::SPRING] = false
    end
    if @month >= KTS::S2[0] and @month <= KTS::S2[1]
      @speriod = 2
      $game_switches[KTS::SUMMER] = true
    else
      $game_switches[KTS::SUMMER] = false
    end
    if @month >= KTS::S3[0] and @month <= KTS::S3[1]
      @speriod = 3
      $game_switches[KTS::FALL] = true
    else
      $game_switches[KTS::FALL] = false
    end
    if @month >= KTS::S4[0] and @month <= KTS::S4[1]
      @speriod = 4
      $game_switches[KTS::WINTER] = true
    else
      $game_switches[KTS::WINTER] = false
    end
  end
  #-----------------------------------------------------------------------
  # Script Support/Misc Functions (MODDED)
  #-----------------------------------------------------------------------
  def getTime
    time = Time.now.strftime("%H:%M %p")
    return time
  end
  def getSeasonName
    sname = "Spring" if @speriod == 1
    sname = "Summer" if @speriod == 2
    sname = "Fall"   if @speriod == 3
    sname = "Winter" if @speriod == 4
    return sname
  end
  def getMonthName
    monthname = Time.now.strftime('%b')
    return monthname
  end
  def getDayName
    weekday = Time.now.strftime('%a')
    return weekday
  end
  def getWeatherName
#    weathername = KTS::WEATHER_NAME[@weather]
#    return weathername
  end
 
  #-----------------------------------------------------------------------
  # Screen Tone Functions
  #-----------------------------------------------------------------------
  def update_tint(duration = KTS::FADE_LENGTH)
    return if $BTEST
    if KTS::USE_TONE && !$kts_event_tone && $kts_map_data[$game_map.map_id].outside_tint?
      if @hours >= KTS::T1[0] and @hours <= KTS::T1[1]
        @period = 1   
        $game_screen.start_tone_change(KTS::C1,duration)
        $kts_anti_tone = KTS::A1
      elsif @hours >= KTS::T2[0] and @hours <= KTS::T2[1]
        @period = 2
        $game_screen.start_tone_change(KTS::C2,duration)
        $kts_anti_tone = KTS::A2
      elsif @hours >= KTS::T3[0] and @hours <= KTS::T3[1]
        @period = 3
        $game_screen.start_tone_change(KTS::C3,duration)
        $kts_anti_tone = KTS::A3
      elsif @hours >= KTS::T4[0] and @hours <= KTS::T4[1]
        @period = 4
        $game_screen.start_tone_change(KTS::C4,duration)
        $kts_anti_tone = KTS::A4
      elsif @hours >= KTS::T5[0] and @hours <= KTS::T5[1]
        @period = 5
        $game_screen.start_tone_change(KTS::C5,duration)
        $kts_anti_tone = KTS::A5
      end
    else
      # no tone if indoors
        if !$kts_map_data[$game_map.map_id].outside_tint?
          $game_screen.start_tone_change(Tone.new(0,0,0,0),duration)
        end
    end
  end
  # Set weather
  def setweather(duration)
    if ((@startingweatherdelay - @hours) >= KTS::WEATHER_COOLDOWN) or
       ((@startingweatherdelay - @hours) <= -KTS::WEATHER_COOLDOWN)
      @startingweatherdelay = Time.now.hour
      the_weatherset = KTS::W[@speriod]
      @curweather = the_weatherset[rand(KTS::W[@speriod].length)]
      @weather = @curweather
    else
      @weather = @curweather
    end
    $game_screen.weather(@weather, 9 , duration)
  end
   
  #-----------------------------------------------------------------------
  # Season/weather update
  #-----------------------------------------------------------------------
  def update_weather(duration = KTS::WEATHER_LENGTH)
    return if $BTEST
    if KTS::WEATHER_SYSTEM && !$kts_event_weather && $kts_map_data[$game_map.map_id].outside_tint?
      if @month >= KTS::S1[0] and @month <= KTS::S1[1]
        @speriod = 1
      elsif @month >= KTS::S2[0] and @month <= KTS::S2[1]
        @speriod = 2
      elsif @month >= KTS::S3[0] and @month <= KTS::S3[1]
        @speriod = 3
      elsif @month >= KTS::S4[0] and @month <= KTS::S4[1]
        @speriod = 4
      end
      setweather(duration)
    else
      # no weather if indoors
        if !$kts_map_data[$game_map.map_id].outside_tint?
          Audio.bgs_stop #Stop BGS
          $game_screen.weather(0, 0, 0)
        end
    end
  end
=begin
  def screen
    if $game_temp.in_battle
      return $game_troop.screen
    else
      return $game_map.screen
    end
  end
=end
  # Extra Feature; Change BGS
  def start_bgs
    return if !$kts_map_data[$game_map.map_id].outside_tint?
     if $kts_map_data[$game_map.map_id].outside_tint?
      if  KTS::WEATHER_SYSTEM == true
        if KTS::WEATHERSOUND_OK == true
          if @weather == 1
            Audio.bgs_play("Audio/BGS/Rain", 70, 100)
          elsif @weather == 2
            Audio.bgs_play("Audio/BGS/Storm", 70, 100)
            # ADD MORE IF YOU WANT to play BGS when weather with Id @weather occurs!
            # Like this :
            # elsif @weather == Id
            #  Audio.bgs_play("Audio/BGS/SomeBGS", 70, 100)
          else
            Audio.bgs_stop
          end
        end
      end
    end
  end
end
end

class Spriteset_Map
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  alias kts_initialize initialize
  def initialize
    $kts.update_switches if KTS::DATABASE_OUTPUT
    $kts.update_variables if KTS::DATABASE_OUTPUT
    $kts.update_season_swithces if KTS::DATABASE_OUTPUT
    kts_initialize
  end
end

#==============================================================================
# Instantly updates screen tone when a new map is loaded.
#==============================================================================
class Game_Map
  alias kts_setup setup
  def setup(map_id)
    kts_setup(map_id)
    $kts_event_tone = false
    $kts.update
    $kts.update_tint(0)
    $kts.update_weather(0) if KTS::WEATHER_SYSTEM
    $kts.start_bgs
  end
end
=begin
#==============================================================================
# Instantly updates screen tone when a battle starts.
#==============================================================================
class Spriteset_Battle
  alias kts_create_battleback create_battleback
  def create_battleback
    $kts.update_tint(0)
    kts_create_battleback
  end
end

#==============================================================================
# Temporarily disables auto-toning if an event tints the screen.
#==============================================================================
class Game_Interpreter
  alias kts_Interpreter_command_223 command_223
  def command_223
    $kts_event_tone = true
    kts_Interpreter_command_223
  end
  alias kts_Interpreter_command_236 command_236
  def command_236
    $kts_event_weather = true
    kts_Interpreter_command_226
  end
end
=end
#==============================================================================
# Integrates the Time System into the Game System.
#==============================================================================
class Game_System
  # inits a KTS object
  alias kts_initialize initialize
  def initialize
    $kts=Kylock_Time_System.new
    kts_initialize
  end
  # Updates kts every game frame
  alias kts_update update
  def update
    $kts.update
    kts_update
  end
end

#==============================================================================
# Scans Map Names for Toning
#==============================================================================
class RPG::MapInfo
  def name # Definition prevents location scripts from reading anything within
    return @name.gsub(/\[.*\]/) {""} # brackets, including the brackets
  end
  def original_name
    return @name
  end
  def outside_tint?
    return @name.scan(/\[KTS\]/).size > 0
    # old regexp: return @name.scan(/[\KTS]/).size > 0
  end
end
=begin
#==============================================================================
# Sets up the time window for the menu. (MODDED)
#==============================================================================
class Window_KTS < Window_Base
  def initialize(x, y)
    super(x, y, 160, WLH+32)
    refresh
  end
  def refresh
    self.contents.clear
    self.contents.draw_text(0, -6, 120, 32,$kts.getDayName+" "+$kts.getTime, 2)
  end
  def update
    super
    $kts.update
    self.contents.clear
    self.contents.draw_text(0, -6, 120, 32, $kts.getDayName+" "+$kts.getTime, 2)
  end
end

#==============================================================================
# Adds the time window to the menu.
#==============================================================================
class Scene_Menu < Scene_Base
  alias kts_start start
  def start
    kts_start
    @kts_window = Window_KTS.new(0,304)
  end
  alias kts_terminate terminate
  def terminate
    kts_terminate
    @kts_window.dispose
  end
  alias kts_update update
  def update
    kts_update
    @kts_window.update
  end
end
=end
#==============================================================================
# Saves and Loads game time to/from save game file.
#==============================================================================
class Scene_Save
  alias kts_write_save_data write_save_data
  def write_save_data(file)
    kts_write_save_data(file)
    Marshal.dump($kts, file)
  end
end

class Scene_Load
  alias kts_read_save_data read_save_data
  def read_save_data(file)
    kts_read_save_data(file)
    $kts = Marshal.load(file)
  end
end


And well, honestly, I just feel like if it was made FOR XP, and not just me hacking up the script until it functions as I need it, mayhaps the world could utilize this script as well as me :D

Just a thought.
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

Lost King

February 05, 2010, 05:30:34 pm #159 Last Edit: February 05, 2010, 11:58:33 pm by Lost King
Not sure if I should be asking here or in the RMX-OS plugin thread, but I decided to try using ATES today in my RMX-OS game. I believe I managed to input the scripts properly, I'm not getting errors, I'm just getting a very Yellow screen. It comes up regardless of whether ATES is on or tinting is on. From what I've read, people here don't seem to be experiencing it so I think it's something with the RMX-OS extension. I tried to go into the script and fiddle with the tinting colors...but there's a lot of different little tinting sections and I'm not sure which to mess with. Oh, and the clock displays in a weird format. Like I'm getting the time: 300:40

Any help?

EDIT: Alright, I think I fixed it by making the ATES turn on with a parallel process event that also changes the screen color tone back to normal colors. Not sure if this will change when entering another map or when the tinting happens, I should probably have posed this question in the plugin thread though as it seems to be the cause.
*Scribble Scribble* Oh right, not that sort of signature.