View Full Version : SRL 5 Access Violation?
Brandon
12-16-2011, 08:33 PM
Compiled successfully in 1451 ms.
SRL Compiled in 16 msec
SMART Initialized.
Loaded: Server 52, Members: True, Signed: True, Super Detail: False.
Error: Exception: Access violation at line 101
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap]
Points to /Misc/Smart.simba Line 101 aka SmartGetColor.. No scripts work for me on SRL 5 :S
And why is the includes so hard to read?!
Shuttleu
12-16-2011, 08:55 PM
srl 5 is out?
i will look into it and see, what script were you using?
~shut
EDIT: where did you get SRL 5 from?
Brandon
12-16-2011, 09:09 PM
srl 5 is out?
i will look into it and see, what script were you using?
~shut
Yeah its out somehow.. I just found out so I decided to give it a try.. and bam access violations all over the place..
I was using a blood rune script.
Shuttleu
12-16-2011, 09:11 PM
Yeah its out somehow.. I just found out so I decided to give it a try.. and bam access violations all over the place..
I was using a blood rune script.
where did you get it from?
~shut
Hobbit
12-16-2011, 09:14 PM
SRL 5 Beta: https://github.com/SRL/SRL-5/zipball/master
Shuttleu
12-16-2011, 09:39 PM
nothing seems to compile for me, so i would suggest switching back to SRL 4
~shut
Nava2
12-16-2011, 10:33 PM
nothing seems to compile for me, so i would suggest switching back to SRL 4
~shut
Thats because there's changes (obviously..).
Hobbit
12-16-2011, 10:38 PM
I just tested it and it all compiled fine for me. (Test compile not a script)
It compiles, but it does throw an access violation once it starts to run. I haven't had much time to look into it though.
Nava, does this have anything to do with your mouse implementations? (not placing any blame, just trying to get it fixed. :redface: )
Hobbit
12-17-2011, 04:54 AM
I thought we removed it?
Daniel
12-17-2011, 05:25 AM
SRL5 is exactly the same as SRL4 in terms of functionality. Just the methods are commented differently and is Simba only. So I wouldn't really bother with it :)
Nava2
12-17-2011, 05:40 AM
SRL5 is exactly the same as SRL4 in terms of functionality. Just the methods are commented differently and is Simba only. So I wouldn't really bother with it :)
No, actually its not.
It has more bug fixes amongst other things. It also has some speed boosts in some nice places where Simba can enhance it.
@NCDS, no, that was fixed. It was because I had forgotten to call "setupGauss." That was also an immediate runtime error, not like this.
Could be an old version, though.
Shuttleu
12-17-2011, 10:08 AM
ok, its compiling now, dont know why it didnt yesterday... :/
anyway, just a simple
{$i srl/srl.simba}
begin
setupsrl;
end.
compiles and runs fine, so if OP could let me know which script then i can look into it
~shut
Brandon
12-19-2011, 09:08 PM
ok, its compiling now, dont know why it didnt yesterday... :/
anyway, just a simple
Simba Code:
{$i srl/srl.simba}
begin
setupsrl;
end.
compiles and runs fine, so if OP could let me know which script then i can look into it
~shut
Go to castlewars.. Run this script.. Bam..
[Hint] C:\Simba\Includes\SRL/SRL/core/antiban.simba(131:3): Variable 'X' never used at line 130
[Hint] C:\Simba\Includes\SRL/SRL/core/antiban.simba(131:3): Variable 'Y' never used at line 130
Compiled successfully in 1404 ms.
SRL Compiled in 16 msec
SMART Initialized.
Loaded: Server 45, Members: True, Signed: True, Super Detail: False.
Error: Exception: Access violation at line 101
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap]
program new;
{$define SMART}
{$define CRASHSMART}
{$i SRL/SRL.simba}
{$i sps/sps.simba}
{$i SRL/SRL/misc/paintsmart.simba}
{$i SRL/SRL/skill/summoning.simba}
Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Name := '';
Pass := '';
Pin := '';
BoxRewards := ['XP','xp','lamp'];
LampSkill := 'Slayer';
Active := True;
end;
end;
Function OpenChest: Boolean;
var
X,Y,T: Integer;
begin
Result := BankScreen;
if FindObjTPAMulti(X, Y, [5793394, 11447990, 13619160], 3, 2, 10, 10, 10, ['Use','Bank','chest']) then
begin
MMouse(X, Y, 0, 0);
wait(500);
ClickMouse2(True);
if not DidRedClick then
Exit;
FFlag(0);
MarkTime(T);
repeat
FindNormalRandoms;
if (TimeFromMark(T) > 5000) then
Exit;
if (BankScreen) or (PinScreen) then
break;
Wait(100);
until(false)
if PinScreen then
if (Players[CurrentPlayer].Pin <> '') then
InPin(Players[CurrentPlayer].Pin);
end;
Result := BankScreen;
end;
begin
Smart_Server := 45;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
DeclarePlayers;
SetupSRL;
OpenChest;
end.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.