Zeus Lights & Shadows

Quigon

electric boogaloo
Veteran
Joined
Mar 17, 2012
Messages
1,982
Reaction score
954
First Language
English
Primarily Uses
N/A
Hmm. I'll give that a go, thanks :)

EDIT: Agh, no luck with that.
 
Last edited by a moderator:

Dymdez

Newbie-in-Chief
Veteran
Joined
Feb 4, 2014
Messages
752
Reaction score
154
First Language
English
Primarily Uses
BRAVO! Finally a lighting script that makes sense and works with my other 100 scripts!!!
 

Ultim

Kartoffel.
Veteran
Joined
May 21, 2014
Messages
787
Reaction score
117
First Language
Arabic
Primarily Uses
FINALLY ! a good lighting script that is compatible with my Pearl ABS and Minimap scripts!
 

Xarai

Warper
Member
Joined
Jun 13, 2014
Messages
2
Reaction score
0
First Language
English
Primarily Uses
I have a problem with this tho, I wanted this only for specific maps, but it seems to be stuck on all of them, it makes the bright scenes and maps gloomy looking how do I fix it where I only allow it on certain maps
 

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
Hum, It may be related to screen tone but I'm not sure.

If you're using other scripts you can try changing the order, moving the light script in first or last pos.
 

Xarai

Warper
Member
Joined
Jun 13, 2014
Messages
2
Reaction score
0
First Language
English
Primarily Uses
Tried, it's now infront of every thing in materials, is there a setting to enable it for every map or certain maps? maybe that is the problem and I am unaware of it

but just in case I will list what all I have for scripts

Victors's engine - for basic, animated battlers, and fog and overlay, fixed parallax,  actor's battle

fix pictures - fix pictures to map

lune message system

xail system - core - item mini

acezon - map as title

yanfly - move restrict region

ceodore - show variables

ring menu

and move title

I am aware that victor has a light engine similar to yours and I've not tried it yet because I understand yours a little more :/

so if theres any help I'd like some advice to fix it if there is a current fix
 

Kyuukon

主人公
Veteran
Joined
Aug 22, 2013
Messages
2,215
Reaction score
1,077
First Language
Spanish
Primarily Uses
RMMV
Nice script. It'll come in handy for sure :)

Just a few questions:

- Is there a way to change the Z value for each shadow/light as we choose like the modern algebra Fix Picture script? Can you add that feature? That would be neat :3

- For whatever reason I get a setup error ("Script 'Game_Interpreter' line 1411: NoMethodError occurred. Undefined method 'setup' for nil: NilClass") after inputing this code

shadow("Basement").setup("Basement_S.png")shadow("Basement").set_pos(0, 0)shadow("Basement").set_origin(0, 0)shadow("1F").setup("1F_S.png")shadow("1F").set_pos(0, 0)shadow("1F").set_origin(0, 0)shadow("2F").setup("2F_S.png")shadow("2F").set_pos(0, 0)shadow("2F").set_origin(0, 0)shadow("Outside").setup("Outside_S.png")shadow("Outside").set_pos(0, 0)shadow("Outside").set_origin(0, 0)I thought the problem was because of the name file but that doesn't seem to be the case :( Any ideas?
 
Last edited by a moderator:

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
You can change the z value of lights : light("key").z = 10

But not for shadows.

About your bug I don't know, I tried your code and it works for me.
 

Dymdez

Newbie-in-Chief
Veteran
Joined
Feb 4, 2014
Messages
752
Reaction score
154
First Language
English
Primarily Uses
Hi - first issue I have had with this script. So, I setup the badass tint that I want to have on my map. Check it out!



But looks what happens when the player picks up the light. It changes the whole maps tint?



Why would this happen? If anyone knows how to fix it that would be amazing!

temporary fix: if i place a light in the corner of the map the "bug" doesn't occur, only when the last light is extinguished. Weird...
 
Last edited by a moderator:

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
Hi,

Yes I have changed the way tint works when using lights in my script, but we're not supposed to see the difference.
It seems that I have a bug in my formulas when using gray value, I'll check out what I can do to fix it.

Btw the normal expected result of your tint settings is what you have on your second screen. ;)
 

ZtluhKat

Villager
Member
Joined
May 25, 2015
Messages
5
Reaction score
0
First Language
English
Primarily Uses
I absolutely love this script! It's fairly easy to use compared to others I've tried and doesn't interfere with other scripts (so far).

Only, I've been trying to have it so lanterns outside will go off at set times, I've tried a bunch of different things but I haven't had any luck.

sorry if it's an easy solution, but i'm not seeing it; would you help me? 
 

Dymdez

Newbie-in-Chief
Veteran
Joined
Feb 4, 2014
Messages
752
Reaction score
154
First Language
English
Primarily Uses
Has anyone been able to figure out how to resolve the problem with this script and parallax mapping with secret passageways? The bit that is dark colored and not being lit up is an overlay picture that covers the hidden passageway, and is retaining its tint causing that awkwardness below..

 
Last edited by a moderator:

TheXiangyou

Warper
Member
Joined
Sep 2, 2015
Messages
1
Reaction score
0
First Language
English
Primarily Uses
Hello everyone. I got a little problems with the script (In Game) Not a error but only a Shadow Scale who doesn't appear correctly. Thank you for reply and some help! 

TreeProblems.png
 

Kevin O'Ryan

Kevin O'Ryan
Veteran
Joined
Dec 15, 2013
Messages
159
Reaction score
37
First Language
English
Primarily Uses
RMVXA
Galvs Region Effects seem to not work anymore... not sure if its this script or another one... lol


Nevermind, I had messed up on a something when applying this script... lol All is good and work together!
 
Last edited by a moderator:

SakuraMiya

Invincible Airhead
Veteran
Joined
Jul 17, 2016
Messages
76
Reaction score
3
First Language
Spanish
Primarily Uses
Awesome script, it has helped me a lot for now.


By the way, this script works with overlays, right? How I'm supposed to put them on the map?
 

JarvisTube

Villager
Member
Joined
Jun 25, 2016
Messages
18
Reaction score
0
First Language
English
Primarily Uses
Hi! I know this thread is years old, but when i leave a map and come back the lights not on???
 

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
@Dymdez : Which parallax script do you use?


If it allows you to change the parallax z property you should set it to a value bellow 0xC000.


@TheXiangyou : Yes I know it's kinda the normal behavior, contrary to those built in, here shadows are not above but below everything, that's why you tree appears above the shadows.


For now if you want to fix it the only solution is either to do your shaded trees with events, or to shade them directly into the tileset.


@SakuraMiya : I'm not sure to understand what you mean but no this script does not have overlays.


If you use an overlay script with some chance it should be compatible without having to do anything special.


On how to add lights you should read the documentation and/or have a look on the demo.


@JarvisTube : Yes, lights are deleted when you leave the map, that's normal, you should create them every time you go back.


There is several ways to do it, with a parallel event or <setup> tags as showed in the demo.
 
Last edited by a moderator:

SakuraMiya

Invincible Airhead
Veteran
Joined
Jul 17, 2016
Messages
76
Reaction score
3
First Language
Spanish
Primarily Uses
Yes, I noticed it....
I did look at the demo and all, but is it possible to the lights more? So that it doesn't look much like a solid circle.
 

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
We create lights with this command : light(key).setup(filename)


The filename points to a file in Pictures folder that you have to create (with your favorite paint software, eg Gimp) to the shape of your choice.


There is no predefined lights packed with the script.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

I'm a bit conflicted. One the one hand, it's quite visually cool to make bodies of water that the player can interact with by going into it. However obscuring the player character from a gameplay perspective is pretty bad. Hmm... There's the option to make the area around the player visible, but then that kind of defeats the purpose of submerging them. :unsure:
Stream will be live shortly with some Darkest Dungeon! Feel free to drop by!
Another two plugins done! One being an on map grid inventory.
busy with my newborn child, can't even touch pc at all ;_;
Make a Game in RPG Maker MZ: Episode 6 Starts NOW! Let's map some caves!

Forum statistics

Threads
104,294
Messages
1,005,342
Members
135,808
Latest member
Lavos
Top