SRL Archive - Help and Support

Wtf is this?


The Claw

2007-06-06 06:47:17

When I run this:

program New;
{.include SRL/SRL.scar}

var Airs: Integer;

procedure Count;
begin
CountInvSlot(Airs, 1, 2);
Writeln(IntToStr(Airs));
end;

begin
ActivateClient;
Count;
end.

I get this in the debug box:

Successfully compiled
LoadChars failed - folder "C:\Program Files\SCAR 3.01\CharsChat2\fontsmall\" does not exist
[Runtime Error] : Exception: Access violation at address 00715694 in module 'scar.exe'. Read of address 00000000 in line 1048 in script C:\Program Files\SCAR 3.01\includes\srl\srl\core\Inventory.scar

:duh: :confused: :confused: :eek: :spongebob: ?

GoF

2007-06-06 07:03:35

Maybe put SetupSRL; there? :)

The Claw

2007-06-06 07:04:35

yeh Boreas just said to do that on msn, but it still happens lol

GoF

2007-06-06 07:05:58

Compiled fine for me after I put SetupSRL; there… Those errors are weird, just try changing stuff until it works :p That's what I usually do.

rkroxpunk

2007-06-06 07:08:52

Ya I usually have to add the thing in ur case SetupSRL;
then save it close it and open it in a new SCAR. Usually works for me

The Claw

2007-06-06 07:23:04

talking to boreas on msn and he said its because it wasnt updated for DIVI, so im using rune count instead :)

heres the script if anyone wants it, it returns the amount of air runes in the debug box.

program New;
{.include SRL/SRL.scar}
{.include SRL/SRL/Misc/amount.scar}

var AirRuneCount: Integer;

procedure Count;
begin
AirRuneCount := RuneAmount('inv', 'Air');
Writeln(IntToStr(AirRuneCount));
end;

begin
SetupSRL;
ActivateClient;
Count;
end.