EvilChicken!
2010-08-02 00:09:59
I've come across this error in my script which I simply cannot find a logical explanation for.
^This single line has been puzzling my mind for a couple of hours now.
Just so you know what I'm talking about, it happens in this:
Now, I could most likely make some sort of workaround for this, but I just read this thread, and his error seems very similar to mine IMO – except that mine occurs during runtime and his during compiling.
I'm sorry to be asking, and I know that it's very possible that the error is somehow induced as a result of my own work – but I am simply curious as to what the solution might be.
I've attached the entire script below, including a test account which I just ran through Tutorial Island. Just open up RS and hit run, the error should occur a couple of seconds after opening the bank.
What puzzles me the most about this error, is that the lines 1002-1034 use the very same methods, and they seem to work pretty flawlessly.
Final notes: Yes, I am using the latest opendev with latest Simba (console says 707, afaik should be latest?)
If you come across any other mistakes I've made or things that should be improved, do let me know. Any comment is appreciated!
EDIT: My avatar is finally in it's correct element.
Error: Exception: The bitmap[2] does not exist at line 567^This single line has been puzzling my mind for a couple of hours now.
Just so you know what I'm talking about, it happens in this:
if (FindBitmapToleranceIn(BarBmp, X, Y, MBX1, MBY1, MBX2, MBY2, 10)) then:line, with these:Debug_Ln('Bank_WithdrawBars: searching for SRL_BMP #' +
IntToStr(Queue[CP].Bar.bmpID) + ' - ' + Queue[CP].Bar.Name + ' bar.', DEBUG_MINOR);
BarBmp := srl_GetBitmap(Queue[CP].Bar.bmpID);
if (FindBitmapToleranceIn(BarBmp, X, Y, MBX1, MBY1, MBX2, MBY2, 10)) then
begin
Debug_Ln('Bank_WithdrawBars: Found ' + Queue[CP].Bar.Name +
' bar bitmap at ' + IntToStr(X) + ', ' + IntToStr(X) + '.', DEBUG_MINOR);
MMouse(X - Random(3), Y - Random(3), 3, 3);: being the surrounding lines. For further examination, see the entire script attached below.Now, I could most likely make some sort of workaround for this, but I just read this thread, and his error seems very similar to mine IMO – except that mine occurs during runtime and his during compiling.
I'm sorry to be asking, and I know that it's very possible that the error is somehow induced as a result of my own work – but I am simply curious as to what the solution might be.
I've attached the entire script below, including a test account which I just ran through Tutorial Island. Just open up RS and hit run, the error should occur a couple of seconds after opening the bank.
What puzzles me the most about this error, is that the lines 1002-1034 use the very same methods, and they seem to work pretty flawlessly.
Final notes: Yes, I am using the latest opendev with latest Simba (console says 707, afaik should be latest?)
If you come across any other mistakes I've made or things that should be improved, do let me know. Any comment is appreciated!
EDIT: My avatar is finally in it's correct element.