Weather effects/shadows/light suddenly stopped appearing

Hi everyone, hopefully someone can help out a newbie...

I was working on building one map, and then used Galv's Layer Graphics (found here: http://galvs-scripts.com/galvs-layer-graphics/) to overlay shadows and light via three separate images I made in Photoshop. I also was trying out Mog's Weather EX and had an event that called light particles to overlay the map. These were both working fabulously and without any issues under earlier today when I was trying out an animated background script from here: http://rmrk.net/index.php?topic=44635.0 . It didn't end up working, but the minute I playtested my game to try out an actual animation, the Galv and Mog effects weren't ingame. I deleted the new animated bg script, but even after that the effects never show up again. I've deleted and then re-added both scripts, and re-added both events, and checked to see if my custom graphics were there and correct, to no avail. 🙁 I don't really know what happened or what's missing...

I've attached my project here! https://www.dropbox.com/s/ihizzcp3vvxy2qn/Practice.exe?dl=0

Thanks so much, I'll keep racking my brains over this 🙁  
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
Never mind, solved it! I'd erased line 1411 from the game_interpreter script. :0
WHAT???

YOU ERASED THE ABILITY TO DO SCRIPT CALLS???

Do you know what most writers of scripts put between Configuration part and the Script part?

They put a note :

"Do not edit unless you know what you do"

Well, Enterbrain should have put that note in the script No. 1, so these things won't happen

So let me explain you.

In Ruby, unlike compilable laguages there is a method called eval.

In it you put a string, and eval method evaluates that string in a Ruby interpreter.

Line 1411 is "eval(script)", right?

That line is evaluating script calls, and if you erase it, you won't be able to evaluate script calls anymore.

So, bring back that very important line, and show us your script calls, because THEY are the real problem
I'm going to second that. With that line gone, 99% of the scripts in the game won't even function anymore. In fact, I'm amazed your game didn't crash just running without that line.
It wouldn't crash. That line is where the script call is actually executed. The Script Call method itself still existed. It would have just set up everything for the script call, and not executed it.


Yes, it would have prevented ALL Script event commands from running.


Not generally recommended to mess with the RTP scripts. I did it myself in order to make things more efficient, but I'm a scripter and - for the most part - know what I'm doing, and what to do if I mess up. I've gone back to the point of view that it's better to keep scripts separate and not change the original - makes it much easier to enable/disable scripts, share them, and troubleshoot them.


But anyway, the problem is solved, so I'll go ahead and close this.

Original thread: https://forums.rpgmakerweb.com/threads/weather-effects-shadows-light-suddenly-stopped-appearing.43932/