OcRam - Lights plugin (for MV)

belatucadrus

Veteran
Veteran
Joined
Mar 6, 2017
Messages
111
Reaction score
15
First Language
french
Primarily Uses
RMMV
Yeah sorry, I figured it out. Your plugin is amazing, and I'm trying my best to understand it.
I've read the help section multiple times but until now I've only used simple lights systems, yours looks very complete, and I'm sure I can achieve great things with it.

Sorry to bother you with another question but I think I understand your plugin command tints the entire screen with an absolute value rather than a relative one, but is there a workaround for overlays ? My fogs and overlays gets tinted too and I went from this :

To this :

Hi !

I'm still stuck with this issue, and while searching for a solution I have a suggestion

Do you have any plans to implement light overlays in your plugin ?

Say we could use monochromatic images like these :

lights.png

And we could use the white part as a light overlay using the same tinting process as your plugin. That would solve the light overlay getting tinted along with the screen. Would that be possible ? I don't know
 

OcRam

Servant of the Universe
Veteran
Joined
Aug 2, 2016
Messages
614
Reaction score
740
First Language
Finnish
Primarily Uses
RMMZ
Hi !

I'm still stuck with this issue, and while searching for a solution I have a suggestion

Do you have any plans to implement light overlays in your plugin ?

Say we could use monochromatic images like these :

View attachment 164566

And we could use the white part as a light overlay using the same tinting process as your plugin. That would solve the light overlay getting tinted along with the screen. Would that be possible ? I don't know
Thank you for the message,

How do you draw that overlay at the moment?
 

belatucadrus

Veteran
Veteran
Joined
Mar 6, 2017
Messages
111
Reaction score
15
First Language
french
Primarily Uses
RMMV
Thank you for the message,

How do you draw that overlay at the moment?
I'm using Victor Engine's Fog & Overlay plugin. The plugin lets me set the depth of the overlay (from "above parallaxes" to "above animations". But even if I set my overlay depth tp 0 (above animations) the Light Layer is on top of that, resulting in what you see
 

OcRam

Servant of the Universe
Veteran
Joined
Aug 2, 2016
Messages
614
Reaction score
740
First Language
Finnish
Primarily Uses
RMMZ
I'm using Victor Engine's Fog & Overlay plugin. The plugin lets me set the depth of the overlay (from "above parallaxes" to "above animations". But even if I set my overlay depth tp 0 (above animations) the Light Layer is on top of that, resulting in what you see
I used engines own "Show picture" command and it was looking really good. Didn't mess any original colors I had.

Blend mode "Additive" is crucial for this also changed opacity and then tinted it to desired color.
 

tenac666

Veteran
Veteran
Joined
Apr 11, 2020
Messages
58
Reaction score
6
First Language
English
Primarily Uses
RMMV
I downloaded this big project with all scripts by OcRam but it unfortunetly it still dosent help becouse Im interesing only on lighting system but in this demo it dosent work without time system and I don't now how to delate that. I think better will if every script will by on one map with full view of possibilites. Anyonehave some demo only with lighting system?
 

OcRam

Servant of the Universe
Veteran
Joined
Aug 2, 2016
Messages
614
Reaction score
740
First Language
Finnish
Primarily Uses
RMMZ
I downloaded this big project with all scripts by OcRam but it unfortunetly it still dosent help becouse Im interesing only on lighting system but in this demo it dosent work without time system and I don't now how to delate that. I think better will if every script will by on one map with full view of possibilites. Anyonehave some demo only with lighting system?
Thank you for the message,

There is "Cellar" map in demo project which doesn't care about Time_System. 1st thing is to set light_bg without it lights won't show up (since it's kind of day time and you can't see lights at day light).
 

Moon_Haven

Veteran
Veteran
Joined
May 5, 2020
Messages
161
Reaction score
62
First Language
French
Primarily Uses
RMMV
I've just installed this plugin, please bear with me as I'm learning how it works and will probably have lots of noob questions.

Is there a way to set a default indoor light instead of having an event for each indoor map that calls Plugin Command: light_bg #333541? Reasons I'm asking are:

1- Every interior in my game will be very dark (almost pitch black) and I'd prefer not having to call an event every time a player transition to an indoor map.

2- I have a lot of transfer player event inside the same indoor map. Going from main floor of an inn to its basement for instance, will transfer the player after they open the door. It seems that transferring the player resets the bg_light, so I have to have a Plugin Command on every door... this is going to be a bit tedious, but not impossible.

Thanks in advance!
 
Last edited:

belatucadrus

Veteran
Veteran
Joined
Mar 6, 2017
Messages
111
Reaction score
15
First Language
french
Primarily Uses
RMMV
I used engines own "Show picture" command and it was looking really good. Didn't mess any original colors I had.

Blend mode "Additive" is crucial for this also changed opacity and then tinted it to desired color.
Sorry for the late reply. I'm more active on discord than on the forums. I managed to make it work using your advice and some GIMP filters, thank you.

I came back here for another reason though. I discovered something odd while making my game. It looks like your plugin keeps light data from the previous save when starting a new game.

To make it short, I am testing a sewer map, started a new game, spawned outside the sewer (forest, daylight), I died in the sewer, so I started a new game again, and the forest was dark, like if I were in the sewer
I could reproduce the bug in your demo project by starting a project, changing the lights (e.g pulsating light player), returning to Title and start a new game again.
 

OcRam

Servant of the Universe
Veteran
Joined
Aug 2, 2016
Messages
614
Reaction score
740
First Language
Finnish
Primarily Uses
RMMZ
Sorry for the late reply. I'm more active on discord than on the forums. I managed to make it work using your advice and some GIMP filters, thank you.

I came back here for another reason though. I discovered something odd while making my game. It looks like your plugin keeps light data from the previous save when starting a new game.



I could reproduce the bug in your demo project by starting a project, changing the lights (e.g pulsating light player), returning to Title and start a new game again.
Thank you for the report!

Issue you described has been now fixed in OcRam_Lights v2.14 (resets player and follower light data properly after game over, goto title etc...)


I've just installed this plugin, please bear with me as I'm learning how it works and will probably have lots of noob questions.

Is there a way to set a default indoor light instead of having an event for each indoor map that calls Plugin Command: light_bg #333541? Reasons I'm asking are:

1- Every interior in my game will be very dark (almost pitch black) and I'd prefer not having to call an event every time a player transition to an indoor map.

2- I have a lot of transfer player event inside the same indoor map. Going from main floor of an inn to its basement for instance, will transfer the player after they open the door. It seems that transferring the player resets the bg_light, so I have to have a Plugin Command on every door... this is going to be a bit tedious, but not impossible.

Thanks in advance!
@Moon_Haven this is a good idea! I will add this to my todo list.
 
Last edited:

Moon_Haven

Veteran
Veteran
Joined
May 5, 2020
Messages
161
Reaction score
62
First Language
French
Primarily Uses
RMMV
Hi @OcRam, I'm wondering how much trouble would it be to change the way the day-->night transition works (and if you would even consider working on it).

What I have found is that the transition is tied to a timer. This means if you are outside, you will see the transition happen over the course of the set duration of that timer. However, if you are to walk inside and then back outside while this timer is going on, then it seems the transition timer is lost (reset or completed).

Is there a way to tie the transition directly to the timer, so that if the player goes in and out of a building, it will not affect the timer, and the transition will resume where it should?

English is not my first language, so it's a bit hard for me to explain. Let me try to illustrate.


Currently, we have a transition (let's say 1000 ticks) that spans from night (dark) to dawn (light)
1606904216776.png


If the character walks inside, then walks outside while the timer is going, we would expect the transition to resume back (bar at the top). But what really happens is that the transition seems to be already completed (bar below).
1606904385596.png

Hope this makes sense?

Cheers!
 
Last edited:

OcRam

Servant of the Universe
Veteran
Joined
Aug 2, 2016
Messages
614
Reaction score
740
First Language
Finnish
Primarily Uses
RMMZ
Hi @OcRam, I'm wondering how much trouble would it be to change the way the day-->night transition works (and if you would even consider working on it).

What I have found is that the transition is tied to a timer. This means if you are outside, you will see the transition happen over the course of the set duration of that timer. However, if you are to walk inside and then back outside while this timer is going on, then it seems the transition timer is lost (reset or completed).

Is there a way to tie the transition directly to the timer, so that if the player goes in and out of a building, it will not affect the timer, and the transition will resume where it should?

English is not my first language, so it's a bit hard for me to explain. Let me try to illustrate.


Currently, we have a transition (let's say 1000 ticks) that spans from night (dark) to dawn (light)
View attachment 169569


If the character walks inside, then walks outside while the timer is going, we would expect the transition to resume back (bar at the top). But what really happens is that the transition seems to be already completed (bar below).
View attachment 169570

Hope this makes sense?

Cheers!
Thank you for the message,

I thought that myself when integrated with time system, but then considered amount of work vs. gain it would provide - I decided to clear all timers on scene terminate to avoid all kind of problems.

I know it would be doable with saving timers to variables etc., but like said work vs. gain was no go for this feature.
 

Users Who Are Viewing This Thread (Users: 2, Guests: 2)

  • Hade

Latest Threads

Latest Profile Posts

It seems MOG Weather only has a "clear" function to instantly erase a given weather effect. Probably works well if weather only changes at map transfer, etc, but looks very abrupt if weather effects are continuously changing. So my next challenge: script a "fade" function to gradually fade the sprites and wait to "clear" the current weather until the opacity of all its sprites hits zero... or something like that! XD
BRIEF HISTORY OF MY GAME SO FAR
June 2019 - My friend (let's call him G) says he wants to make a game
later- it's really bad and angsty
laterer - He gives up

EARLY 2020 - I suggest trying again, G says yes
slightly later - G gives up and gives me the whole idea
LATE 2020 - I finish the script's first draft. G doesn't like it

And that's where we stand!
To get validation for all your hard work feels amazing.

Studio Blue did a video on Collector and enjoyed it a lot. I expected them to rip it to shreds, but the gameplay went (mostly) well.

There are things I can improve, but they said my game "oozes Mike Pondsmith" (he's the creator of the Cyberpunk 2020 ttrpg, which precedes Cyberpunk 2077). I was shocked to hear such a compliment! :kaopride:
People3_3 and People3_4 added!

Forum statistics

Threads
105,749
Messages
1,016,119
Members
137,433
Latest member
Silki
Top