I use that one for a different mechanic, but also tested with shora lightning
for testing purpose, and it works on my end, MZ works differently, so the
scriptcall I use for MV probably wont work in MZ, but should be equal around.
if you transfer to 1 map and back and works, I should go with that way,
it isn't a bad thing if it works by than.
MZ - [MZ & MV v1.9.7] Shora Lighting & Shadow System
● ARCHIVED · READ-ONLY
-
-
Perhaps it's that you need to force the plugin to rebuild its shadow map based on the region IDs.
-
Looking at the plugin more carefully, that would not be simple. My best guess is that you'd want to modify
GameLighting.prototype.addto keep a record of all the lights it adds, then you'd need a way to do a "refresh" of GameLighting that destroys all the lights and rebuilds them. The shadow appears to get built and baked into each light when the light is created, so yeah, changing the region IDs on the map at runtime isn't going to affect lights that have already been built. -
@matthewwells
you can disable the light and enabling it which could work as well,
this is untested though, but worth a try? -
Question, is there any built in way for me to have this plugin only affect lighting in certain maps? It's a nice plugin, but I'm looking for a way to have it only affect certain areas without it blacking out the rest of my game. An example would be map A uses the lighting, but map B wouldn't. Right now map B is completely dark unless I add lighting to it, which I don't want. I want it to appear as if I wasn't using the plugin at all on map B.
-
I know I had this problem initially, and I solved it. I think that the solution was to set "ambient" to "#ffffff" in the settings under "Map: Default." This essentially turns lighting off, since an pure-white ambient will cause lights not to render. I do now have to use common events to set the ambient light to whatever I want when transitioning maps. As I recall, I tried using map notes to set the ambient lighting and that didn't work. I created created common events called "set cave lighting", "set indoor lighting", "restore full lighting", etc.
-
@AllosaurusNE you can do so to turn off the plugin on those maps
and enable them on the maps you need it.
there is a scriptcall in the helpfile or in the OP post how to do that. -
Hi how can we change light image to an event ? Like there's a laptop and I want the light blue by using a blue light image
-
@cl0ud you can use comments to give a lightsource name.
event page 1 [light torch]
event page 2 [light laptop]
event page 3 [light gaming]
each page can be a switch what it is on and it can change
the colors.
keep in mind that torch, laptop, gaming = custom light names which
you can set in the parameters if you use other colors (small, medium, big,
objects, flashlight colors) etc, you can set it up how you want it to and name
them correctly.
I would not name custom light directly unless you know what you do, but
you can make a list on how you want it so you can keep lights organized. -
Hi again, the main character find a flashlight and at the end of an event there is light around him, how do I do that ? And when he is in a new map there is alway light
-
Hello @cl0ud! I had the same issue a few days ago and I solved it this way. Within an event, I just gave my character a torchlight, an item I created in the dedicated menu. To do this, create an item and add the name of the light in square brackets in the Note section . My question, however, is: how do I make the light turn on and off on command?
-
@cl0ud & @nnl94
I would suggest to take a look at the demo, and the events used there.
you can set the light ON/OFF by $gameMap or $gameEvent scriptcall.
you can set it to true/false, color etc to change them.
I dont know if this was also in the documentation or helpfile.
the Demo give you almost 80% of all things you could do with the lights,
how to enable/disble the plugin and more. -
Well, I want to try the demo but Actors.json is correcpted so I can't open the project@cl0ud & @nnl94
I would suggest to take a look at the demo, and the events used there.
you can set the light ON/OFF by $gameMap or $gameEvent scriptcall.
you can set it to true/false, color etc to change them.
I dont know if this was also in the documentation or helpfile.
the Demo give you almost 80% of all things you could do with the lights,
how to enable/disble the plugin and more. -
I dont have that problem or encounter it.
if you get that error, check your browser setting, there is a topic how
to avoid that error though. -
Yeah, I've learned how to turn lights on and off, my question is, is there a way to let a player turn their own torchlight on and off on command? If so I cannot find it anywhere.@cl0ud & @nnl94
I would suggest to take a look at the demo, and the events used there.
you can set the light ON/OFF by $gameMap or $gameEvent scriptcall.
you can set it to true/false, color etc to change them.
I dont know if this was also in the documentation or helpfile.
the Demo give you almost 80% of all things you could do with the lights,
how to enable/disble the plugin and more. -
you can do so by using an item and an buttonCommonEvent plugin.
you can than toggle a switch ON/OFF for equiping and unequip the
torch that way as simpliest solution.
I dont know by plugin command or scriptcall, but should be possible
with $gamePlayer I believe. -
Hello
So, first off. I did DL this for free (For Now). I am going to see if I can actually figure it out, if I can, I will pay for the commercial version. Now my big question because this part always messes with me.
Create a folder named lights in /img/, and puts your light images in here.
where do I get said images? This part always gets to me. Also, to be sure...this is made for MZ as well, correct?
Thank you -
@Devian1 check the demo how its done.
in the demo is the lights, but those could be removed (as well in the parameters).
if you know how it works, you can do it safely and add your own lights (shape, colors)
etc.
and use custom names if you like or if you are a beginner/average in plugins,
use the images + settings from the demo first. and alter it later if needed. -
i tried to install plugin on my game, i got this error when starting my game
"cannot read property 'valid' of null"
strange, this caused by event comment [light]...
i did something wrong? -
Hey i got 2 Problems with this plugin.
When the Game is running its registering 32x all of my default/costum lights.
What can i do to stop this?
2nd one is, when im using parallax mapping and lightning with pictures with a greater resoulution 2000px for example, im getting permanent micro lags. i can produce this micro lags in the demo game too. just add a l picture with a bigger res. it will happen even there. =( is there any solution for this? I cant give up on parallax...