RangeError with Khas Awesome Light Effects

I'm not sure if this is the right place for script-specific errors, but I dunno where else to put this.

 In the game I'm working on one of my characters has an ability that lets him cross gaps in floors (basically a glorified jump event).  Another of my characters has an ability to create a circle of light around the player sprite using KALE. Since the game is mostly dark the player will usually have the light circle on most of the time.

All of the jump events work without issue without the light circle ability turned on. WITH it on, all but one of the jump events works normally. The odd one out crashes the game with this error.

[IMG]http://i534.photobucket.com/albums/ee342/YomiYagami/temp/error.png[/IMG]

Line 734 is "bitmap.clear_rect(init-phx,y-phy,shadow_fx(y)-init+1,1)" in the KALE script.

I don't get why it's only crashing for that one event. It is towards the right edge of the screen a bit (map is 22x37 and the event is on 17, 15) but I dunno if by "range error" they mean actual distance or what cuz computer speak might as well be Greek to me. There's a duplicate of the event right beside it (in fact, all the jump events were copy/pasted from a single event) that works fine, and jumping back over the hole in the opposite direction works too. Any insight and a possible fix would be great.
I've moved this thread to script support. Please be sure to post your threads in the correct forum next time. Thank you.
I hate to self-bump my threads, but I really don't want to release my game with this game-crashing error still in it.
Please post links to your scripts.


When you put scripts into your game, you're not meant to post them INTO the slot that says (insert here) - you're meant to put the mouse on (insert here), HIT the INSERT button, and post your script into the new, empty slot - and then name the slot.


In fact, you may need to also post your project (even with just that one map) so someone can play around with it a bit. I suspect it might take a bit of logging to the console to figure out what's going on. It's saying to me that the number is too big to be recorded in an integer variable. Maybe do a few prints to the console before that line, to show what's in each of those variables (init, phx, y, phy, shadow_fx(y))
...Well now that I've fixed my little script insertion snafu (wow, I totally misunderstood what that bit of text in [insert Here] said), here's my project.

http://www.mediafire.com/download/58h175dg84qe3xb/Project2.rar
 

For anyone willing to look at the problem, you'll want to use Avdol's Blazing Detector move from the menu, switch to Joseph, then step forward one square (so under the RIGHT side of the chandelier, left side will work fine you'll notice) and press action to reproduce the crash (which now points to line 904 due to me adding back the part of the KALE script that had the instructions and stuff).

As for my scripts, I'm using:
KALE (duh)
Scene Interpreter
Large Choices
Equip Events
Command Manager
XaiL Core and Menu Delux
Yanfly Ace Message System
Yami Anti-Lag
a script to change the lead character with Q or W
and a script to raise a characters' stats as their TP goes up.

Almost all these scripts were added after the problem occurred, so I don't think they could be causing any conflicts with KALE.
I just playtested this with no problems, all four jump events seem to work just fine...

Scratch that, I was using the wrong jump events...

Yeah I've got no clue, that's a strange error.

If anyone who is an actual Ruby scripter that knows what they're doing, this is all I found out:

for y in (sy-range).to_i..@y1 init = shadow_ix(y) bitmap.clear_rect(init-phx,y-phy,shadow_fx(y)-init+1,1) endThe init value skyrockets from 608 to a huge number, which is what is causing the error. Problem is, I'm not a Ruby scripter so I don't know how to fix it 🙁 Hopefully someone else can help you.
I hate to bump, but it's been more than a month. Can anyone help me with this?
Show me the definition of shadow_ix()
I'm not sure if this is what you mean, but I got this from the KALE script:

def shadow_ix(y) return @m1.nil? ? @x1 : (y-@n1)/@m1 endThere's a download for my project and instructions on how to recreate the crash a few posts up if you want to set up the error for yourself.
Well I managed to resolve this on my own by making the faulty jump event move the character downward one more space. I don't know how that fixed it, but it did.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/rangeerror-with-khas-awesome-light-effects.15562/