SRL Archive - Jr. Member General Help and Discussion

Smart 8+


Thanatos

2013-08-01 15:52:16

When trying to bot in Old School rs I came upon a problem. Smart 8+ doesn't like working for me. I've followed the steps on multiple tutorials and still nothing. I know it's not a problem with smart it's just me being stupid in some way. It may be something with java since I've always had issues on this computer. When I try and start a script or just open smart I get "Smart Cannot Spawn Clients". I also don't know if this is an issue but the black debug box (I think that's what it is called) doesn't stay up when I open simba and when I start the script it comes up for a second and then disappears again. Considering the vast majority of the people here are smarter than me…care to point out what I'm doing wrong?

Kevin

2013-08-01 16:08:26

If you're using Smart8.2, it requires Java7 AND that you manually set your computer's environment PATH variable to the bin folder of your Java7.

Thanatos

2013-08-01 16:20:55

SMART 8
** Smart Cannot Spawn Clients **
Successfully executed.

SMART 8.2
[SIMBA=Files\Simba\Includes\SRL-OSR/SRL/misc/SmartParams.Simba(229:202): Invalid number of parameters at line 228
Compiling failed.
[Error] H:\Program Files\Simba\Includes\SRL-OSR\SRL\misc\SmartParams.Simba(35:7): Unknown identifier 'Smart_World' at line 34 Compiling failed.]

Is this correct for the path?
H:\Program Files (x86)\Java\jre7\bin\java.exe

(ignore the H it's just how my computer is)

Kevin

2013-08-01 17:12:59

That path should not include "java.exe", but the rest of it is correct. Although the Smart_World error is odd….

Thanatos

2013-08-01 18:13:30

I've changed the path…still no luck. I don't get the 8.2 error either. I've never seen that before.

Brandon

2013-08-01 20:55:37

Whoever it was that designed the include and didn't know how to get the "World" parameter automatically should read on:


Function GetSmartParams: TStringArray;
var
Params: TStringArray;
Page: String;
Begin
Page := 'http://oldschool' + Between('<a href="http://oldschool', '"', GetPage('http://www.oldschool.runescape.com/'));
Result := Explode('/j', Page);
If (Length(Result) = 2) Then
begin
Result[0] := Result[0] + '/';
Result[1] := 'j' + Result[1];
end;
End;


Then:


Params := self.GetSmartParams();
If (Length(Params) <> 2) then
begin
Writeln('** Failed To Grab Smart Parameters **');
Writeln('** Please check your internet connection/firewall **');
TerminateScript;
Exit;
end;

SmartSpawnClient(Replace(PluginPath, '\', '/', [rfReplaceAll]), Params[0], '/' + Params[1], Width, Height, 's', '', '', '');


This would automatically find the right world and load smart with the correct parameters. I really hope you guys aren't using the wrong ones or else enjoy the bans/slow loading.

samerdl

2013-08-02 13:51:17

Did you get it to work?

Thanatos

2013-08-02 14:57:36

From: samerdl
Did you get it to work?


Nope and I'm thinking about just not trying anymore since I'm going to be getting a new laptop in a month or two