Log in

View Full Version : Everything broken :S



Brandon
05-16-2012, 03:26 AM
I don't even know where to start. I'm not usually the one to ask for help but:

GameTab.Simba:


Error: Out Of Range at line 2359
The following DTMs were not freed: [SRL - Lamp bitmap, 1, 2, 3]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, 3, 4, 5]



That's the GameTab.Simba. Changing Length to High fixes it but then another line errors.. and another, and another... It gives this for every game tab function that uses Length or High. Iunno wth I'm doing wrong. Simba hates me or something. I can't run anything, I can't update scripts, I can test anything at all :S

The mouse moves so slow even with smart open, I had to set MouseSpeed:= 10; I checked the github, nothing has been changed for 5 days. Infact, Gametab hasn't been touched for 2 months.

Smart gives a black screen upon load but I fixed that by calling the below function right before SetupSRL:

Procedure SmartFastLoad(Server: Integer; Members, Signed, Detailed: Boolean);
begin
SmartSetupEx(Server, Members, Signed, Detailed);
SmartSetRefresh(100);
MMouse(1, 1, 1, 1);
end;


That makes it load programatically at high speed. Thing is, the mouse moves extremely slow if I do not set the speed..

Next is any script I compile I'm getting:

Unknown identifier '' at line 101


wth? Unknown what? There's nothing there -___- Infact, that line doesn't even exist! The .Simba file that is highlighted only contains:


{$I SRL/SRL.Simba}

begin
end.


That's only 5 lines including the blank. Not only that, i'm getting DTM's out of range when in fact they are already loaded and I know that for sure. Other times I'm getting DTM's out of range where there are no DTM finding functions.. for example a blank function would give me out of range when infact the function does nothing at all.

Reinstalled, registry clean, Java reinstall, everything updated, I even tried compiling Smart AND Simba myself and it turns out I'm NOT the only one having these problems. I've seen threads that are having the same problems. What's wrong with the new Simba? Never happened before I pressed that Update button. Now when I downgrade, it makes no difference even with a registry restore(using a Hive of course) and a folder delete.
Nothing.. Anyone else or am I just special?

Peter
05-16-2012, 04:09 AM
My Simba is well in-truly rooted too....

Kyle Undefined
05-16-2012, 04:20 AM
Are you on Lape, or PascalScript Interpreter?

Brandon
05-16-2012, 03:29 PM
Are you on Lape, or PascalScript Interpreter?

Pascal. Still the same thing :S

Kyle Undefined
05-16-2012, 04:13 PM
I remember I was getting those errors when I was on Lape. I was getting pissed, haha, then I realized that.

Have you changed anything recently? Came out of the blue basically.

bg5
05-16-2012, 04:48 PM
That's the GameTab.Simba. Changing Length to High fixes it but then another line errors.. and another, and another... It gives this for every game tab function that uses Length or High. Iunno wth I'm doing wrong. Simba hates me or something. I can't run anything, I can't update scripts, I can test anything at all :S

I found it few days ago using Preemptible runespan.
It occurs when XP counter is off. Two functions are crashing with Out of range error: Function ToggleXPPopUp(Disabled: Boolean): Boolean;
and function ToggleXPBarEx(Open: Boolean; CounterNum: integer): Boolean;

I changed line in both to:

try
P := TPA[Random(Length(TPA))];
except
end;

but it's not fix at all.
Reason of this out of range error is that TPA has length = 0 after FilterPointsPie. I have no idea why.

When I you put debug into functions ,I saw:
TPA := TPAFromBox(IntToBox(521, 51, 546, 75));
writeln(High(TPA));
FilterPointsPie(TPA, 0, 360, 0, 12, 534, 63);
try
P := TPA[Random(Length(TPA))];
except
writeln('error');
writeln(High(TPA));
end;



649
error
-1

Gucci
05-21-2012, 03:38 AM
I'm getting error with gametab also, I removed anything that had to do with that part of the include but for some reason it'll go and click the skills tab freeze and then open gametab giving



Error: Exception: Access violation at line 876
The following DTMs were not freed: [SRL - Lamp bitmap, 1, 2, 3, 4, 5, 6]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap]

Here:

(*
GetMMLevels
~~~~~~~~~~~

.. code-block:: pascal

Function GetMMLevels(LevelType : String;var ColorSign : String): integer;

Returns the level shown next to the minimap.
Colorsign returns the color of the text (Green,Yellow,Orange,Red).
Returns -1 if failed.

.. note::

by Raymond / Wizzup / Sabzi / NCDS *****Before Error Was Here*****

Example:

.. code-block:: pascal
*)
function GetMMLevels(LevelType: string; var ColorSign: string): Integer;
var
Colors : TIntegerArray;
Signs: TStringArray;
P: TPointArray;
I: Integer;
B: TBox;
begin;
Result := -1;
ColorSign := '';
case LowerCase(Leveltype) of
'health', 'hp', 'hitpoints', 'constitution': B := IntToBox(719,27,745,43);
'prayer', 'pray' : B := IntToBox(735,66,762,82);
'run','energy' : B := IntToBox(735,103,762,122);
'summon', 'summoning' : B := IntToBox(719,119,745,156);
else
begin;
srl_Warn('GetMMLevels', 'Invalid LevelType: ''' + LevelType + '', warn_AllVersions);
Exit;
end;
end;
Colors := [65280, 65535, 2070783, 255];
Signs := ['Green', 'Yellow', 'Orange', 'Red'];
for I := 0 to 3 do
begin
With B do
FindColorsTolerance(P, Colors[i], x1, y1, x2, y2, 30);
if Length(P) < 1 then
Continue;
Result := StrToIntDef(GetNumbers(GetTextAtExWrap(B.X1, B.Y1, B.X2, B.Y2, 0, 4, 4, Colors[i], 20, statChars)), -1); //**Here**
if (Result > -1) then
begin
ColorSign := Signs[i];
Exit;
end;
end;
end;