[VXAce] SYDOSCRIPTS [SS] - CHARACTER SHADOWS problem

Hi, I'm using this script for shadows on my character:

http://forums.rpgmakerweb.com/index.php?/topic/26216-%E2%96%BC-sydoscripts-ss-character-shadows/

It worked well, I was impressed with this script, but now I'm mapping a bigger map than the others that I have done before, and now when I press in New game to play that map (72 widht x 56 height)

The error that appears when I start the game is this one:

 
29zrmsh.png


And thii is the line 161 of the script:

2l9laty.png


What do you think that I should do? Thanks for your help, I need this script, I hate characters without shadows :c 
Do me a favour: make a new line above 161 and write

puts "#{@cw} #{@shadow_sprite.width}"

And tell me what the console says.
I did it, and now I have the same Error, but now it is:

Script ''Shadow'' line 162: NoMethodError ocurred. undefined method '/' for nil:Nilclass

Did I put in the right place the new line that you told me?

Look:

rw1mva.jpg
You should still get that error, but you should also have a message in the console. If you can't see it, you'll have to click "show console" in the game menu on the editor.
I don't know why, but the error has stopped. When the error appeared, I was trying to do this:

https://www.youtube.com/watch?v=KV1IdgSc1Xs

Maybe it's an error of the scripts with switchs... I don't know but when I erased all the events, the error desappeared and now I can play the game without any crash, hmm. 

EDIT: CONFIRMED, I did the event again and the error happened again. 

http://gyazo.com/6bfd0eb4acc5e515ff8775bda327848d (Screenshot with console) 
Looks like at some point either @cw or @shadow_sprite are nil, but as the values are the same I can't tell which.

Please change the puts line to

puts "cw: #{@cw} Shadow sprite width: #{@shadow_sprite.width}"

And let me know the result.

Original thread: https://forums.rpgmakerweb.com/threads/vxace-sydoscripts-ss-character-shadows-problem.39572/