Help with Community Lighting

Hello again, I'm back with more issues with my game.

You see, my game has a day/night system made with switches and variables, it works pretty well, but I wanted to upgrade it with Community Lighting to make street lights... But now the plugin is always active no matter what I do, and if I use the command to activate and deactivate the lights it just changes from light to dark with no transition... So, I wonder if someone could help me to solve this problem, as well as to let me know if there's a tutorial to make a flashlight (Youtube has some, but they are in languages I don't know). This is the code for my day/night cycle:

code1.png

Code2.png

Code3.png

code6.png

Code4.png

Code5.png
When you're pasting an event, please don't crop it down - show the entire frame, so we can see what kind of event it is, how it's being triggered, etc.

What in there has to do with Community Lighting? If it's something with that Node Respawn event, you should show that to us. Otherwise, everything is default Tint Screen commands.
When you're pasting an event, please don't crop it down - show the entire frame, so we can see what kind of event it is, how it's being triggered, etc.

What in there has to do with Community Lighting? If it's something with that Node Respawn event, you should show that to us. Otherwise, everything is default Tint Screen commands.
Community Lighting works on its own, if active, the area gets dark and it's not affected by the day/night cycle. I want it to only get dark and turn on the lights at night.
What are your Plugin Settings?

I know Community Lighting has several options you can change that effect the day/night cycle of the plugin.

Can you post a screenshot of the plugin options?
My point is that Community Lighting has its own settings for a day/night cycle that it's expecting you to use to make the lighting work correctly.

I'm confused as to why you're making your own system with manual tinting instead of incorporating the plugin you're using.
What are your Plugin Settings?

I know Community Lighting has several options you can change that effect the day/night cycle of the plugin.

Can you post a screenshot of the plugin options?
I'm more of an artist than a programmer, so I don't understand a lot of plugin settings so I was trying to look for tutorials but there's nothing for this plugin. Also, between the plugin and the system I already have, I prefer the later as it also controls the weather and the clock.
I started experimenting with the full Community Lighting plugin a while ago on a side project that I probably won't finish. Haven't been playing with it over the last month or so, but I found that, for instance, you can have maps with lights that come on when it is night according to the plugin's day/night cycle. There is quite a lot to process when setting the parameter's plugins, and doing notetags. I found I had to read the instructions several times to understand them enough for my purposes. (This isn't a criticism of the help - it is a complex plugin that you can do a lot with it, and I am not the youngest or the most computer-savvy person on the forum.)

Edit: You are probably better using the built-in day/night cycle than using your own, evented days and nights. I found that the default value of "Daylight initial speed" was much too low - 40 or 60 seems better.

Edit2: To have a light on at the inn that only comes on at night, but otherwise the inn gets dark at night I needed:

  • Notetag for the map: <cl: DayNight>
  • Notetag for the lamp event: <cl: Light 350 #FFFFFF night>
  • Parameters used include: "Daynight Cycle" true
It looks as if you could do with showing us the parameters and notetags that you use.
It looks as if you could do with showing us the parameters and notetags that you use.
If I understand the previous posts correctly, he wasn't using any, which is going to make the plugin hard to use.

I don't super get the "not filling out plugin parameters because I'm not a programmer" - most of them are the same things he has in his event (which variable is hours, minutes, which hours are nighttime, etc.). But I think that's the way to go - and it's helpful that you provided your notetags.
I started experimenting with the full Community Lighting plugin a while ago on a side project that I probably won't finish. Haven't been playing with it over the last month or so, but I found that, for instance, you can have maps with lights that come on when it is night according to the plugin's day/night cycle. There is quite a lot to process when setting the parameter's plugins, and doing notetags. I found I had to read the instructions several times to understand them enough for my purposes. (This isn't a criticism of the help - it is a complex plugin that you can do a lot with it, and I am not the youngest or the most computer-savvy person on the forum.)

Edit: You are probably better using the built-in day/night cycle than using your own, evented days and nights. I found that the default value of "Daylight initial speed" was much too low - 40 or 60 seems better.

Edit2: To have a light on at the inn that only comes on at night, but otherwise the inn gets dark at night I needed:

  • Notetag for the map: <cl: DayNight>
  • Notetag for the lamp event: <cl: Light 350 #FFFFFF night>
  • Parameters used include: "Daynight Cycle" true
It looks as if you could do with showing us the parameters and notetags that you use.
Notetags! How could I forget? I fixed it, thank you so much... But now I have a question, I have an Inn option to jump to next morning, how do I make the event?
I have an Inn option to jump to next morning, how do I make the event?
...set your hour and minute variables to whatever you want them to be?
...set your hour and minute variables to whatever you want them to be?
I tried to use an event to add hour variable but it doesn´t let me do it that way.
That doesn't tell us anything. You need to show us your event if you want any of us to know what you did wrong 😛
That doesn't tell us anything. You need to show us your event if you want any of us to know what you did wrong 😛
Sorry, here's the event:
Captura de pantalla 2024-09-16 192104.png
Why are you adding 12 instead of doing what I said and setting it to the time you want?

You have no idea what time it is when the player chooses to use the inn, it could be 10 in the morning so you're just making it 10 at night.

You're also not including any of the logic from your day/night event to check for it to be over 24, changing the tint, etc. So none of that would update for the player until another hour passed in the game and your parallel event ran.

Just use Control Variables to set the hours to 8 (or whatever time you want the player to wake up in the morning) and set the tint to your morning tint.
Why are you adding 12 instead of doing what I said and setting it to the time you want?

You have no idea what time it is when the player chooses to use the inn, it could be 10 in the morning so you're just making it 10 at night.

You're also not including any of the logic from your day/night event to check for it to be over 24, changing the tint, etc. So none of that would update for the player until another hour passed in the game and your parallel event ran.

Just use Control Variables to set the hours to 8 (or whatever time you want the player to wake up in the morning) and set the tint to your morning tint.
Already did that, didn't work. I decided to create a new game to test the community lighting without my own system... It stays at night.
Okay. Good luck with your project.
Okay. Good luck with your project.
It's still not working, as if the plugin blocked the Variable and making it impossible to set and jump to different hours.
....[snip]... But now I have a question, I have an Inn option to jump to next morning, how do I make the event?
This plugin runs its own internal clock. Although it gives you the option to have variables for hours and minutes for you to read so that your events can check the time, you won't get far by trying to change those variables yourself. However, it gives plugin commands to update its internal clock that is internal to this plugin. Once you have done that, the plugin will automatically update the variables that your events can read for hours, minutes and so on.

The plugin commands that you are probably interested in for this issue are:-

Daynight hour h m
- Sets the ingame time to hh:mm

Daynight add h m
- Adds the specified hours (h) and minutes (m) to the ingame clock

where 'h' is either the new value of the hour, or the value that you add to it and 'm' the minutes.

For instance when the party in my side project sleeps, I might move the internal clock along 7 hours 20 minutes by a plugin command: Daynight add 7 20"

This is in the help section of the plugin, but because it can do a lot of things the "help" has a lot in.

Just in case any RPG Maker novices happen to be reading this, "Plugin Command" is on the third tab of the event commands, at the bottom on the right.

Obviously you will know from the plugin parameters what hours are day and what are night. I use the defaults for the day and night hours, but I am sure that you could change them if you wanted to.

Edit: Seen something else!

"Already did that, didn't work. I decided to create a new game to test the community lighting without my own system... It stays at night."

Each map that you want the lightness and darkness of day and night has to have a notetag to tell the plugin that it isn't something like an underground mine or dungeon:

<cl: DayNight>

The "cl:" at the beginning of the notetag depends upon the notetag key parameter. Because I was new to the Community Lighting plugin, I thought it easier to use the default. When I first tried the plugin out I left out the "cl:", and then had to read the help file to find out why the notetag didn't work.

Edit2: If anything in this post is badly written or not too the point it is because it is early morning here and I haven't drunk my second cup of coffee yet!
This plugin runs its own internal clock. Although it gives you the option to have variables for hours and minutes for you to read so that your events can check the time, you won't get far by trying to change those variables yourself. However, it gives plugin commands to update its internal clock that is internal to this plugin. Once you have done that, the plugin will automatically update the variables that your events can read for hours, minutes and so on.

The plugin commands that you are probably interested in for this issue are:-

Daynight hour h m
- Sets the ingame time to hh:mm

Daynight add h m
- Adds the specified hours (h) and minutes (m) to the ingame clock

where 'h' is either the new value of the hour, or the value that you add to it and 'm' the minutes.

For instance when the party in my side project sleeps, I might move the internal clock along 7 hours 20 minutes by a plugin command: Daynight add 7 20"

This is in the help section of the plugin, but because it can do a lot of things the "help" has a lot in.

Just in case any RPG Maker novices happen to be reading this, "Plugin Command" is on the third tab of the event commands, at the bottom on the right.

Obviously you will know from the plugin parameters what hours are day and what are night. I use the defaults for the day and night hours, but I am sure that you could change them if you wanted to.

Edit: Seen something else!

"Already did that, didn't work. I decided to create a new game to test the community lighting without my own system... It stays at night."

Each map that you want the lightness and darkness of day and night has to have a notetag to tell the plugin that it isn't something like an underground mine or dungeon:

<cl: DayNight>

The "cl:" at the beginning of the notetag depends upon the notetag key parameter. Because I was new to the Community Lighting plugin, I thought it easier to use the default. When I first tried the plugin out I left out the "cl:", and then had to read the help file to find out why the notetag didn't work.

Edit2: If anything in this post is badly written or not too the point it is because it is early morning here and I haven't drunk my second cup of coffee yet!
Works like a charm! Thank you so much! With this, the main problem is solved... Now, if it isn't asking too much, one last question, I want the inside of the houses to be completely bright all the time (as well as stores and some dungeons), do I use the plugin command Tint set c for that map?
Works like a charm! Thank you so much! With this, the main problem is solved... Now, if it isn't asking too much, one last question, I want the inside of the houses to be completely bright all the time (as well as stores and some dungeons), do I use the plugin command Tint set c for that map?
I haven't done anything like that because my games are set in fantasy settings, so there is nothing like electric lighting in them. I didn't notice anything specific in the plugin help section, so I decided to experiment with a new house interior.

I made a new interior map (17 by 13). I didn't use the notetag for the map to enable day and night changes in lighting. I used 3 events (the transfer out and 2 lamps) that had notetags to make them light sources that were on all the time, with a radius of 1000. The notetags for the events that I used were:

<cl: light 1000 #ffffff>

I think that something like that would give the effect that you want, but I suggest that you experiment a little. For instance, you could try increasing the number after "light" higher. (It sets how far the light goes.) I think that it may be better to have a few light sources that have a big radius than lots of light sources with smaller radii.

Good luck!

Original thread: https://forums.rpgmakerweb.com/threads/help-with-community-lighting.171930/