LevelNoMatter

Sebastián Cámara
Member
Joined
Feb 6, 2017
Messages
3
Reaction score
25
First Language
Spanish
Primarily Uses
RMMV
Lighting and Time Editor v1.00
Level No Matter



Due I haven't had time, Feelzor has offered to continue the plugin adding new features and fixing bugs.
Download here


Introduction
I started making this plugin with the intention of giving a more professional look to my game, and the result was a lighting editor with night and day cycle, and some time control functions. Then I decided that it was good enough to share it :)

Installation
    • Put the plugins in this order:
      1. LNM_GameEditorCore.js
      2. LNM_GameTime.js
      3. LNM_LightingTool.js
    • Insert the folders “editor” and “lights” in the "img" directory. That’s it.
Lighting Tool (LNM_LightingTool.js)

How to use
You can add lights in two ways:
    • From the in-game editor.
    • From events.
Adding lights in-game
Press TAB and then press over the lamp icon. Then select the type of light you want to add. You can drag and edit your properties at any time.

Adding custom lights from events
Simply create an event and then in the field “Note” add the following line:

Light(filename, scale, hue, alpha).addPulse(pulseMin, pulseMax, pulseSpeed).addFlick(flickIntensity, flickSpeed)
    • Filename: (string) Sprite used for the light, located in /img/lights/
    • Scale: (float) Scales the sprite (1.0 = 100%, 0.5 = 50%, etc)
  1. Hue: (integer) Tint scale for colors from 0 to 359. For more information visit https://en.wikipedia.org/wiki/File:HueScale.svg
  2. Alpha: (float) Transparency of the light, from 0.1 to 1.0
  3. pulseMin: (float) Minimum scaling for pulse animation
  4. pulseMax: (float) Maximum scaling for pulse animation
  5. pulseSpeed: (integer) Speed for pulse animation
  6. flickIntensity: (integer) Intensity for flick animation
  7. flickSpeed: (integer) Speed for flick animation
Examples:

Ambient
Light(default, 5.0, 28, 1.0)

Torch
Light(default, 15, 1.0, 1.0).addPulse(0.98, 1.02, 7).addFlick(1, 3)

Bonfire
Light(default, 28, 1.3, 1.0).addPulse(1.1, 1.3, 15).addFlick(1, 3)

Adding default lights from events
You can also create default lights by simply typing Torch, Bonfire or Ambient in the field “Note”.

Player torch
You can activate or deactivate the player’s torch by simply activating or deactivating the corresponding switch. By default it is #0001, but you can change it from the Plugin Manager.

Game Time (LNM_GameTime.js)

Plugin commands

Time PAUSE
Stops time. This is useful for cutscenes.

Time PLAY
Reactivates time.

Time SET hour minutes
Sets game’s time to a specific time.
Example:
Time SET 15 0
Sets game’s time to three in the afternoon.


Time ADD hours minutes
Advances time.
Example:
Time ADD 2 15
Advances time by two hours and fifteen minutes.


Notetags
These must be set in the field Note in Map Properties.

<Tint: R, G, B>
Ignores time and sets the screen tone specified in RGB color (Red, Green, Blue). This is useful for darker dungeons or zones in which lighting is not time dependant.
Example:
<Tint: 0, 0, 0>
Ignores time and sets the screen tone to black.


<Tint: CustomTintID>
Ignores time and sets the screen tone to a Custom Tint from the Plugin Manager.
Example:
<Tint: 8>
Sets the screen tone of Custom Tint 8.


Terms of use
Free to use for both commercial and non-commercial games. You can credit me if you want as Sebastián Cámara or as Level No Matter.

Special thanks to
Xelion for helping me with the translations.

Hope you find this useful or fun :)
 
Last edited:

kovak

Silverguard
Veteran
Joined
Apr 3, 2016
Messages
1,264
Reaction score
1,565
First Language
PT - EN
Primarily Uses
RMMV
This is really a lifesaver, it will save time when makin paralax maps for sure.
Does it consume lots of memory?
 

IAmJakeSauvage

Veteran
Veteran
Joined
Dec 4, 2015
Messages
418
Reaction score
671
First Language
English
Primarily Uses
RMMV
This looks SO FRIGGIN' COOL! Do you have to use it with the time system - or can you leave the time system out?

EDIT: Except when I do it in-editor rather than with events, after like 5+ items on the map it doesn't let me drag/click on them anymore.
 
Last edited:

Farr

Veteran
Veteran
Joined
Feb 16, 2014
Messages
247
Reaction score
93
First Language
Portuguese
Wooo!

Is there a way to leave the time system out?
 

LevelNoMatter

Sebastián Cámara
Member
Joined
Feb 6, 2017
Messages
3
Reaction score
25
First Language
Spanish
Primarily Uses
RMMV
This is really a lifesaver, it will save time when makin paralax maps for sure.
Does it consume lots of memory?

I don't think so. Probably less memory than parallax but more CPU.

This looks SO FRIGGIN' COOL! Do you have to use it with the time system - or can you leave the time system out?

EDIT: Except when I do it in-editor rather than with events, after like 5+ items on the map it doesn't let me drag/click on them anymore.

I don't know if I understood you correctly (sorry if I don't), but the lights created from events cannot be dragged.

Wooo!

Is there a way to leave the time system out?

You can pause time anytime if you want to remove the night and day cycle, but remove the Game Time plugin is more complicated. I think there's not much point in doing that because the lights are mostly noticeable when it's dark. You have a new or different idea in how this plugin could be used?
 

Farr

Veteran
Veteran
Joined
Feb 16, 2014
Messages
247
Reaction score
93
First Language
Portuguese
I thought the light effects would work if I just tint my screen but I guess it runs around the time plugin.
I tried to create a super dark area using Tint Screen, even thou time was [255, 255, 255], the screen gets dark but the light effects doesnt work.
It works if I set the time to make everything look dark but I don`t have control over Gray, just RGB.

It`s still an insanely great plugin.
 

Psypix

Warper
Member
Joined
Jul 13, 2016
Messages
4
Reaction score
4
First Language
Czech
Primarily Uses
N/A
Hello. Its amazing plugin!! Big up!! Can you help me please? Where i find or where i set variables for sec, min, hours? Thanks for answer and execuse me for my english :D
 

Usaku-chan

Villager
Member
Joined
Jun 13, 2015
Messages
11
Reaction score
4
First Language
English
Primarily Uses
N/A
I do like how this plugin handles lighting, and the time system :) I'm just having a little issue with changing the hue of some of my lights.
I'm trying to change the ambient light's hue. It's also happened with torches too. Not sure what's going on at all with it now. (Using the in game light editor thingie)
The image below shows the error I get. (blocked out my details though lol)(
http://imgur.com/oOZkU05.png
 

BrelmineFR

Warper
Member
Joined
Jan 18, 2015
Messages
1
Reaction score
0
First Language
French
Primarily Uses
Works perfectly so far, this is amazing. This script plus the doodad one are just insane to create a perfect map.
Excellent, a real treasure. Thanks for sharing.
 

Draconic_Story_Teller

Guardian of the Bookshelf
Veteran
Joined
Apr 14, 2017
Messages
34
Reaction score
10
First Language
English
Primarily Uses
RMMV
Love it, finally a commercially usable light tool I can get behind! My only question/request is if it is possible to have/add the ability to have a default time, for when the game first launches. It doesn't make a lot of sense for my heroes to get into port at midnight, afterall.

Edit: Inb4 someone says be specific or there's a plugin command for that - I'm using the command currently, but how I am set up currently, I load in, get the navy blue of midnight, and flash quickly to the morning sunlight. Makes it look worse than leaving it at midnight alone....
 

Moe_Lester13

Veteran
Veteran
Joined
Nov 22, 2015
Messages
72
Reaction score
11
First Language
English
Love it, finally a commercially usable light tool I can get behind! My only question/request is if it is possible to have/add the ability to have a default time, for when the game first launches. It doesn't make a lot of sense for my heroes to get into port at midnight, afterall.

Edit: Inb4 someone says be specific or there's a plugin command for that - I'm using the command currently, but how I am set up currently, I load in, get the navy blue of midnight, and flash quickly to the morning sunlight. Makes it look worse than leaving it at midnight alone....

You can have your characters start off transparent on a black map, fade out and set up all of your Plugin commands before transporting to your actual starting map and fading back in. By doing that you can actually play other events like BGS/SE/Text etc and other events for the start of your game.
 

SoulOfRock

Veteran
Veteran
Joined
Mar 19, 2014
Messages
51
Reaction score
6
First Language
Spanish
Primarily Uses
Can you help me pls? this error appear when i try to start a new game

-cannot read property ´checkPlayerTorch´ of null

Developer Tools:

TypeError: Cannot read property 'checkPlayerTorch' of null
at Game_Map.refresh (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/LNM_LightingTool.js:991)
at Game_Map.setupEvents (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/HIME_CustomPageConditions.js:171)
at Game_Map.setup (rpg_objects.js:5413)
at Game_Map.setup (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/YEP_RegionRestrictions.js:269)
at Game_Map.setup (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/YEP_SaveEventLocations.js:159)
at Game_Map.setup (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/YEP_X_EventChaseStealth.js:322)
at Game_Map.setup (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/GALV_CamControl.js:193)
at Game_Map.setup (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/LNM_GameTime.js:428)
at Game_Map.setup (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/LNM_LightingTool.js:976)
at Game_Player.performTransfer (rpg_objects.js:7448)

Help pls D:!!!!
 

Draconic_Story_Teller

Guardian of the Bookshelf
Veteran
Joined
Apr 14, 2017
Messages
34
Reaction score
10
First Language
English
Primarily Uses
RMMV
Can you help me pls? this error appear when i try to start a new game

-cannot read property ´checkPlayerTorch´ of null

Developer Tools:

TypeError: Cannot read property 'checkPlayerTorch' of null
at Game_Map.refresh (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/LNM_LightingTool.js:991)
at Game_Map.setupEvents (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/HIME_CustomPageConditions.js:171)
at Game_Map.setup (rpg_objects.js:5413)
at Game_Map.setup (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/YEP_RegionRestrictions.js:269)
at Game_Map.setup (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/YEP_SaveEventLocations.js:159)
at Game_Map.setup (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/YEP_X_EventChaseStealth.js:322)
at Game_Map.setup (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/GALV_CamControl.js:193)
at Game_Map.setup (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/LNM_GameTime.js:428)
at Game_Map.setup (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/LNM_LightingTool.js:976)
at Game_Player.performTransfer (rpg_objects.js:7448)

Help pls D:!!!!
I'm no Java master, but I'll just ask a simple question off the bat: Did you unzip the provided master zip into your game's directory? The Zip contained js/plugins and also images/lights, so if you didn't unzip properly, that might be the problem. Can't read the properties of a nonexistent file, can you now?

Alternatively, I'll ask if you're an administrator. Administrators don't give a poop about access perms, which if the prior idea was incorrect, might make a difference for some reason... although you're in your own home directory so i'm not sure...
 

Draconic_Story_Teller

Guardian of the Bookshelf
Veteran
Joined
Apr 14, 2017
Messages
34
Reaction score
10
First Language
English
Primarily Uses
RMMV
You can have your characters start off transparent on a black map, fade out and set up all of your Plugin commands before transporting to your actual starting map and fading back in. By doing that you can actually play other events like BGS/SE/Text etc and other events for the start of your game.

A sloppy fix imo, but I guess I'll just leave in the metaphorical suggestion bin a 'default time parameter in the plugin' note.
Soz for double post, just catching up on old posts i missed when away.
 

SoulOfRock

Veteran
Veteran
Joined
Mar 19, 2014
Messages
51
Reaction score
6
First Language
Spanish
Primarily Uses
I'm no Java master, but I'll just ask a simple question off the bat: Did you unzip the provided master zip into your game's directory? The Zip contained js/plugins and also images/lights, so if you didn't unzip properly, that might be the problem. Can't read the properties of a nonexistent file, can you now?

Alternatively, I'll ask if you're an administrator. Administrators don't give a poop about access perms, which if the prior idea was incorrect, might make a difference for some reason... although you're in your own home directory so i'm not sure...

Yup,im administrator,and yup i unzip all under the game folder,and i try copy one by one the js plugins,and lights,and is the same >n< thanks >n<
 

Draconic_Story_Teller

Guardian of the Bookshelf
Veteran
Joined
Apr 14, 2017
Messages
34
Reaction score
10
First Language
English
Primarily Uses
RMMV
A question, is there a way to refer to the time this plugin creates in a script? Something like if time is or greater than 18:30, change event sheet to sheet 2 // change self switch B to active?
 

DelphiniumVII

Villager
Member
Joined
Oct 27, 2015
Messages
8
Reaction score
1
First Language
English
So im getting these errors (Undefined is not a function) whenever I start my game. The plugins work when I create a brand new game but not on the one I'm currently working on. I disabled all other plugins and tried to run it and still get these errors. If anyone can help I'd appreciate it.

EDIT: Turns out I just needed to update all of my core plugins.
 

Attachments

  • Capture.JPG
    Capture.JPG
    75 KB · Views: 31
Last edited:

Draconic_Story_Teller

Guardian of the Bookshelf
Veteran
Joined
Apr 14, 2017
Messages
34
Reaction score
10
First Language
English
Primarily Uses
RMMV
@DelphiniumVII - consider running a fresh project with just these plugins and everything on default, I never had any errors with this plugin set per say, mostly problems with the in-game editor not wanting to work with me and needing me to reset my game instance. I'm going to wager you should start with a new project adn see if this happens again. If it does, be sure you're completely updated in terms of your RPGMV version and possibly Java. Don't think we are dependent on it, but worth a shot.
 

DelphiniumVII

Villager
Member
Joined
Oct 27, 2015
Messages
8
Reaction score
1
First Language
English
So whenever I set the map tint for example <Tint: 225, 114, 54> in the Map Properties Section. When I access the menu and close it, it resets the tint to the current time. Is anyone else having this issue?
 

serbyk

Warper
Member
Joined
Mar 14, 2016
Messages
1
Reaction score
0
First Language
Romanian
Primarily Uses
Amazing job, simply amazing ... congratulations ... but i have a little sugestion ... can you add a RealTime option ??
because i was using DaimoniousTails's gametime plugin in combination with another plugin to display the time on the gameplay screen.

And maybe a copy-paste or duplicate option
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

and_remember_tomorrow_beside_myself.jpg

The worst part about making custom stuff is, I can't really ask any of you why a second copy of the character randomly appears only when going SW, S, or SE and changing directions. Been bugging me for the last two days. On the plus side, look at the new random map pieces I made while thinking about it.:LZSexcite:
RPG Maker News #11 | Mech Battlers, Angels of Death on Console, New MZ Plugins & Music Packs

forgot I drew Riley's message bust ages ago. They might be one of the most unique characters in the game so far.
37 years old...
What hath possessed me to start rapping, Lloyd only knows.

I think the worst part is, I am actually really good...

no... actually, the worst part is writing a song about bum rushing Gandalf to stop Frodo...
I don't even listen to rap.
Just finished v0.1 of FOSSIL. It's a plugin that lets you use MV plugins in MZ without editing them by making them use new functions.

I have about 40 plugins tested and working so far (including chrono engine and some other big ones). I hope that the community will pitch in and help improve it, so we can use all the old plugins in MZ. :)

Forum statistics

Threads
110,430
Messages
1,053,224
Members
143,494
Latest member
gamebaiv8clcub
Top