SRL Archive - OSR Help

Error: Exception: The bitmap[0] does not exist at line 753


loragnor

2013-06-28 18:04:38

Suddenly started having this issue. I've run the problem down to globals.simba:


Function FoundBar: Boolean;
var
tempCTS, X, Y: Integer;
begin
tempCTS:= GetColorToleranceSpeed;
SetColorToleranceSpeed(1);

Result := FindBitmapToleranceIn(SRL_NAVBAR_BITMAP, X, Y, 0, 0, 764, 50, 10); // This is where the script stops with the error message

SetColorToleranceSpeed(tempCTS);
end;

The issue seems to be that SRL_NAVBAR_BITMAP is not being defined?? In fact, I don't see that LoadSRLBitmaps is even being called??

I've uninstalled, reinstalled, deleted everything, rebooted, etc and this keeps cropping up.

Edit:
:blushing: I hate it when this happens….

So, I made quite a few changes to a script without testing between change sessions. I had compiled with CTRL->F9, but had not run the script. In looking through my changes, I realized that I had inserted some failsafes in the form of "if LoggedIn then Exit;". This caused my script to call on the LoggedIn function of Players before calling SetupSRL. Of course, LoadSRLBitmaps will not be called automatically until SetupSRL.

Thanks for anyone who looked at this post and thanks to anyone who refrained from telling me what an idiot I was.

If possible, could a moderator please close this thread?

Peanuts

2013-06-28 20:24:11

From: loragnor

Edit:
:blushing: I hate it when this happens….

So, I made quite a few changes to a script without testing between change sessions. I had compiled with CTRL->F9, but had not run the script. In looking through my changes, I realized that I had inserted some failsafes in the form of "if LoggedIn then Exit;". This caused my script to call on the LoggedIn function of Players before calling SetupSRL. Of course, LoadSRLBitmaps will not be called automatically until SetupSRL.

Thanks for anyone who looked at this post and thanks to anyone who refrained from telling me what an idiot I was.

If possible, could a moderator please close this thread?


I do things like that allllll the time xD

You can close the thread with the thread tool buttons in the top right corner of the first post.

loragnor

2013-06-28 20:34:35

From: Peanuts
I do things like that allllll the time xD

You can close the thread with the thread tool buttons in the top right corner of the first post.


:P Thanks for the confidence builder and the tip to close.

Well, I don't see a close button. Maybe I need to be a member.