SRL Archive - OSR Help

Getting an error, please help D:


djm995

2013-04-11 03:02:34

[Error] C:\Simba\Includes\SRL-OSR/SRL/misc/SmartParams.Simba(241:156): Invalid number of parameters at line 240

  World := GetRS07World;

//Removal of Smart 7.2?
//{$IFDEF SMART8}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), 'http://oldschool' + World + '.runescape.com/', 'j1', 765, 503, '', '', '');
//{$ELSE}
//Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '');
//{$ENDIF}

I also get this,
[Error] C:\Simba\Includes\SRL-OSR/SRL/misc/SmartParams.Simba(229:202): Invalid number of parameters at line 228

begin
If (Not ForceNew) then
begin
Ids := SmartGetClientIDs;
Count := Length(IDs);
If (Count > 0) then
For I:= 0 To (Count - 1) Do
begin
If SmartPairClient(IDs[I]) then
begin
Result := IDs[I];
SetEIOSTarget('libsmartremote', ToStr(Result));
Writeln('Paired with SMART[' + ToStr(Result) + ']');
Exit;
end;
end;
end;

I got the latest SmartParams from Github, any help would be appreciated :)

tealc

2013-04-11 03:07:57

at the beginning of the script you are trying to run try changing {define smart} to {define smart8}

Frement

2013-04-11 03:08:11

What script did you try running? Is there {$DEFINE SMART} or {$DEFINE SMART8} at the top?

djm995

2013-04-11 03:14:36

SMART8… that's not the error though, it's something else :c

I've tried a few scripts and all have the same problem with me

The Mayor

2013-04-11 03:26:11

From: djm995
SMART8… that's not the error though, it's something else :c

I've tried a few scripts and all have the same problem with me


First thing I would do is reinstall the SRL-OSR include files. Download the whole ZIP from here and extract to C:\Simba\Includes\

Make sure the folder is named SRL-OSR not SRL-OSR-master. Also, make sure you are using scripts that use the SRL-OSR include, rather than the P07Include (as this uses a different SmartParams). If the script says

{$I SRL-OSR/SRL.Simba} 

at the top, then you should be good to go :)

Sjoe

2013-04-11 03:27:48

From: djm995
SMART8… that's not the error though, it's something else :c

I've tried a few scripts and all have the same problem with me


You downloaded smart8?

djm995

2013-04-11 03:34:05

From: The Mayor
First thing I would do is reinstall the SRL-OSR include files. Download the whole ZIP from here and extract to C:\Simba\Includes\

Make sure the folder is named SRL-OSR not SRL-OSR-master. Also, make sure you are using scripts that use the SRL-OSR include, rather than the P07Include (as this uses a different SmartParams). If the script says

{$I SRL-OSR/SRL.Simba} 

at the top, then you should be good to go :)


Yeh i re-downloaded them about 10 mins ago

From: Sjoekeloe
You downloaded smart8?


I'll re-download smart8 again just incase

EDIT: Thanks guys, it was the SMART8 that fixed it, i just had to re-install that :)