@ImaginaryVillain @Aesica
A very good option would be to create a compatibility with the Yanfly option menu Core. I had to create a switch connected on an entry in the menu, and everytime that you close the menu, this passage check if the switch is on/off and then run a parallel common event.
If the switch is on, then it activate the script and automatically apply the tint that i want.
If the switch is off, then the common event deactivate the script with command.
Had a specific part of code to insert in the option menu core, for check this without this passages would be great (maybe it can remember the tint when you re-enable it, or have the possibility to "syncronize" it, if you reactivate it and you use the Day/Night option.
Would it be possible?
It's possible, but I'm personally not inclined to do it for two reasons:
1. I'm not a fan of having a player-controlled on/off switch for all lighting effects in general, since it cheapens the design of a developer's maps that utilize the aforementioned lighting effects. Imagine you, as the developer, making a spooky cave with limited lighting, a haunted house with limited visibility, or a nice cutscene for your town at night......only to realize players can just turn off all of that in the options menu.
2. And this is the big one: Yanfly's options core is a paid plugin, and I'm not too keen on making compatibility tweaks for other plugin developers' premium content in something that's otherwise free. Besides, I don't have options core so I'd probably have to buy it so I could see what makes it tick. That's a no-go.
Sorry I don't have better news about that.
🙁
I have been trying to get the day night to work even on a new project but the screen only stays like if it is day time. I have put the note into the map note area but it still doesn't work. I used the same settings as the demo with no results. Can anyone help. I'm using mv the latest steam version
Post the note tag you're using exactly.
rmmz_managers.js:2030 TypeError: Failed to execute 'createRadialGradient' on 'CanvasRenderingContext2D': The provided double value is non-finite.
at Bitmap.radialgradientFillRect (Community_Lighting_MZ.js:2698)
at Lightmask._updateMask (Community_Lighting_MZ.js:1904)
at Lightmask.update (Community_Lighting_MZ.js:1384)
at Spriteset_Map.Sprite.update (rmmz_core.js:1971)
at Spriteset_Map.Spriteset_Base.update (rmmz_sprites.js:3150)
-----------------------------------------
Can anyone help?
Oops almost missed this one. Are you using any other plugins with map-based visual effects (weather plugins, etc?) What are you doing exactly when that error occurs?