Khas Awesome Lighting Effects Error!

Okay so I am trying very hard to use the "Khas Awesome Lighting Effects Script" and it is killing me. It is so irritating to use for a newbie and there are so many errors. Now my game wont even let me play because of an error. I downloaded it straight from the guy's website, so I'm not sure how the coding could be messed up. Help?

khas error.png
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
Could you provide a link to the script?  Knowing what you modified can help as well.
@Heirukichi Here is the link. http://arcthunder.blogspot.com/p/rpg-maker.html I used the English version and did not modify anything. Took the script straight from the sample demo game.
What's on line 952 of that script?  Did you start a new game after adding the script, or did you load a game that had been saved earlier?  If the latter, try starting a new game instead.  A lot of scripts set things up in the 'new game' step and expect them to still be set up in save files, but if you started a game without the script and then resumed it, that stuff won't have been set up.
@Shaz here is line 952.


$game_map.lantern.restore


That error means your "lantern" for $game_map is Nil.


@ToriKlepto the game gives that error when you load a game you saved BEFORE adding that script. As Shaz said start a new game and you won't have that error.
So in this case, the lantern property is added to $game_map either when a map is loaded, or when a new game is started.  If you started a game and saved it prior to adding the script, $game_map will not have a lantern property.  And when you load a saved game, $game_map already has all of its settings and doesn't need to be 'reloaded' or re-initialized.


Your comment that there are "so many errors" pretty much points to this as well.  Such a popular script would not have "so many errors" so it has got to be something with the way you're running it - in this case, trying to resume a game that was saved without the script.  You should find a lot of your errors will go away after you start a new one.
Thank you both. I did not not know it was necessary to start a new game. I appreciate the help.

Original thread: https://forums.rpgmakerweb.com/threads/khas-awesome-lighting-effects-error.71635/