Hello. First of all I would like to thank you for this great plugin. It would be great if you could add a changelog to the first page (couldn't find it anywhere); I took the liberty of compiling every update you posted here:
Version History
Version 1.2.2
* Very small update, screen resolution settings to improve performance
* Tint variables are global now, so they can be set from other day-night plugins
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Version 1.2.1
* You can add two optional commands for brightness and direction
* Light 200 #FFFFFF B50 increases the brightness with 50%. Value between 0 and 99.
* Light 200 #FFFFFF D1 will give half a lightglobe for lightsources placed on walls.
* 1. For lights on north walls, light will face down.
* 2. For lights on east walls, light will face west.
* 3. For lights on south walls, light will face north.
* 4. For lights on west walls, light will face east.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Version 1.2.0
New :
* TileLight and RegionLight settings
* To create lightsources without using events you can use the following plugin command.
* TileLight 1 ON #FFFFFF 150 Will create a lightsource (color #FFFFFF radius 150) on all tiles with tile-tag 1.
* TileRegion 1 ON #FFFFFF 150 Will create a lightsource on all tiles with region-number 1.
* TileLight 1 OFF will turn off the lights on tile-tag 1 again
* TileRegion 1 OFF will turn off the lights on region-number 1 again
* TileFire and RegionFire works the same as TileLight, but with fire effect.
* Make sure your map still has at least one event with lights in it, otherwise the script will not run.
*
* TileBlock and RegionBlock settings
* To block lights on certain tiles (roofs for instance) you can use the following plugin command.
* TileBlock 1 ON #000000 Will block light on tiles with tile-tag 1.
* RegionBlock 1 ON #000000 Will block lights on tiles with region-number 1.
* TileBlock 1 OFF and TileRegion 1 OFF turns off the blocking again.
* To darken but not completly block light use a slightly higher color setting (#333333) for instance.
* This function does not raytrace. If the players lightradius is bigger then the blocking tiles the
* light will show on the other side. For the best effect keep the lightradius a bit smaller then the block section.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Version 1.1.9
Fixed : Flashlight issues
Added : You can set the density of the beam.
Use plugin command 'Flashlight on 8 12 #FFFFFF 4' where
8 = beam length
12 = beam width
#FFFFFF = beam color
4 = beam density (make sure the beam density is never bigger then the beam width setting)
'Flashlight on 8 12 #FFFFFF 11' will give you a very solid beam without softness effect at the edge.
'Flashlight on 8 12 #FFFFFF 1' will give you a beam with maximum softeness at the edges.
I've also made a new area that shows work in progress on the tile-block and tile-light script i'm working on, i'm still working on the settings and saves, so its only to show how it works.
In the demo it blocks light to the roof and the lantern isn't a event but a tile.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Version 1.1.8
Fixed : Lots of bug fixes for moving events.
Non moving events can have flashlights now as well (extra option to set the direction until i can figure out the direction of non-moving events from the data)
A bit of new code in the shrinking/growing orbs to control speed (thanks gattsbr)
Daynight setting can be set in the note-tag of the map now, as well as in a note-tag on an event as before.
New : The Tint system.
* As an alternative to the daynight cycle you can use the tint system. If you want to use another plugin for the day/night cycle, the tint option is probably best to use.
* The plugin command 'Tint set #333333' will make the room less dark (this replaces the lightsource with the very large radius for a not-so-dark effect.)
* The plugin command 'Tint fade #777777 5' will fade the color from the current tint color to the new, the last number (5) is the speed of the fade, were 1 is a fast fade and 20 is a slow one.
* If an map has a daynight cycle system, the tint system is disabled (they don't mix well).
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Version 1.1.7
Fixed : Bug with hour setting fixed. (minutes can be ommited now)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Version 1.1.6
Fixed : Bug with fire effect not saving correctly
Enhanced : DayNight system
* If you want to use the time of day to trigger effects (like turning on lights when it gets dark)
* you can use the parameters 'Save DaynightHours','Save DaynightMinutes','Save DaynightSeconds'
* The default is 0, which means its off.
* If you set DaynightHours to a value,5 for example, it will store the hour value inside game variable 5.
* You can then use that variable to trigger lights.
* To help syncing/debugging the time system you can use scriptcommand 'daynight debug' to display the current time.
* If you want to go 'alien world' and stuff, you can change the number of hours in a day with
* script command 'daynight hoursinday 48' (for 48 hours in day, don't forget to fill in the hour values)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Version 1.1.5
Minor update
Included compatibilty with a soon to be released new script.
Included configure fire-effect.
* You can configure the fire effect with the plugin command 'SetFire 7 10'
* Where 7 is the radius change and 10 is the shift in color from red to yellow.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Version 1.1.4
Added: Flashlight enhancements.
To use a flashlight effect use 'Flashlight on 8 12 #FFFFFF' and 'Flashlight off'
(the last 3 numbers are optional, the default will be used if ommited)
Moving events can also use the flashlight effect. Use 'Flashlight 8 12 #888888' in the note-tag.
Where 8 is the length of the flashlights beam and 12 is the width of the beam. The last value is the color of the beam, use grey values to create a dimmer beam.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Version 1.1.3
Fixed
A number of variables (flashlight,fire) and arrays (switches and daynight settings) get saved to the save-game
and restored on load
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Version 1.1.2
Small update to fix some bugs.
Fixes : Problem with lights warping from one end of the map to the other
Fixes : Light not coloring at radius below 100
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Version 1.1.1
Fixes :
Game parameters are no longer used for saving data (Mega thanks to Schlangan for suppling the code)
The Time of Day can still be stored in a game variable, but the default is off (0). If you want to trigger lights when it gets
dark it can be usefull. Just reserve a game variable and set the 'Save DaynightCycle' to the variable you want to use when
you install the plugin.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Version 1.1.0
Mostly bugfixes and making sure that when a game is saved, lightradius and timeofday are restored to the correct values.
Watch the new parameters when you are adding the script. The script takes game variables 10 and 11 to save values. If you
already used variables 10 and 11 for your game, don't forget to adjust the parameters to free variables or they will be overwritten
by the script.
The speed of the daynight cycles has a clearer definition now.
'daynight speed 50' means that 1 hour will take 50 seconds in the game, so one day will take 50 * 24 = 1440 seconds = 20 minutes realtime.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Version 1.0.9
Fixed: Moving events now with moving lightsources *thanks Vengarus, you made me see the light*
Fixed: Daynight cycle now keeps running even when your in maps without the cycle.
New:
You can save the day-night cycle to a game variable so the state will be saved when you save a game
Plugin command : 'Daynight save 5' will save it to game variable 5 (make sure you reserve it)
Ps. For the moving lightsources i needed to overwrite another core function, this could give problems
if other plugins overwrite this function as well, let me know if your moving lightsources don't move.
The overwritten function is : Game_CharacterBase.prototype.updateMove.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Version 1.0.8
Fixed: Growing/shrinking lightsources now grow relative (about 5 seconds).
New:
Day and Night cycle.
On the map put a trigger with 'Daynight' to activate a day-night cycle on the map
Plugin command : Daynight speed 5 : change the speed of the cycle
0 = stop cycle
1 = very fast (about 24 hours in 12 seconds)
2 = fast (about 24 hours in 24 seconds)
etc.. find the value you like by testing.
Plugin command : Daynight hour 16 : change the hour of the cycle to 16:00 hours
Each hour has its own color, from hour 0 to hour 23. Each can be defined with its own color.
You can change the color of each hour with a plugin command. However, it might be
easier to edit the script itself. You will find the color array at the start of the script : daynightcolors
Plugin command : Daynight color 0 #222222 : change the color of 0:00 hours to almost black
Plugin command: Daynight color 1 #222222 : change the color of 1:00 hours to almost black
So the change all color from the default you have to do 24 plugin commands.
(but then again, you probably have to set it only once).
See the demo for the effect and speed options.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Version 1.0.7
Fixed:
Fire will flicker a little less fast to reduce the strobe effect
New:
You can completly turn off the script with the plugin command: 'Light deactivate'
And you can turn it on again with the plugin command: 'Light activate'
New:
You can slowly grow or shrink the player radius with the plugin command 'Light radiusgrow 100 #FFFFFF'
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Version 1.0.6
New:
If you replace the light keyword with fire, your lights will have a flicker
So Light 150 #FFCC00 becomes Fire 150 #FFCC00.
New:
First experiment with a flashlight, it's not perfect yet, the directional movement of the light is to quick, i might
need to animate it from one side to the next, take a look and tell me what you think (it's in the chest in last room of the demo).
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Version 1.0.5
Version 1.0.5 has some bug fixes and a way to automaticly or manualy reset all the light switches on the map.
Use the plugin command : 'Light switch reset' to reset all manual lightsouces to the default 'off'
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Version 1.0.4
Due to popular demand, the game switches have been removed and replaced by a script system.
* Give the lightsource the normal def : Light 250 #FFFFFF and an extra number so it becomes 'Light 250 #FFFFFF 1'
* To turn on this light use plugin command : 'Light on 1'.
* The plugin command will also trigger SelfSwitch 'D' on the targeted light(s).
* To turn off the light use plugin command : 'Light off 1'.
* See the demo for an example.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Version 1.0.3
Added :
You can turn on and off lightsources by using switches
To turn on lightsources in the game, do the following, give the lightsource the normal def : Light 250 #FFFFFF and an extra number so it becomes
'Light 250 #FFFFFF 1' , the 1 indicates it will turn on when switch 0001 turns on,and off when it turns off.. see the demo for an example
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Version 1.0.2
Added :
You can create a completely dark dungeon by putting in a lightsource with radius 0
You can alter the lightcolor of the player with the script command : Light radius 100 #FFFFFF (100=radius, #FFFFFF=lightcolor)
Added new rooms to the demo to show the effects and how to code them.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Version 1.0.1
Fixed some typo's and included a script to alter the radius with a plugin command.
(Light radius 100 changes the radius from the default to 100)