SRL Archive - General Botting Help

Unable to spawn SMART client.


Thomas

2015-04-15 07:21:36

Error log:
---- attempting to spawn smart, attempt #: 6
---- initSmart():
------ Attempting to pair to a previously spawned client
------ smartPairToExistingClient():
-------- Found no free clients to pair to
------ smartPairToExistingClient(): result = false
------ Attempting to spawn a new client..
------ smartCreateClient():
-------- ERROR: Error while grabbing parameters
-------- HINT: Make sure you can reach the RS website, and no active firewall is blocking Simba
------ Failed to grab parameters
---- initSmart()
---- Waiting up to 5 minutes for RS to load...

Removed RuneScape cache files and folders.
Reinstalled RuneScape client.
Java is up to date.
Removed old java versions and folders.
Have tried running Simba as admin.

Renzanity

2015-04-15 07:35:26

I thought I was the only one.:(

Bixby Sayz

2015-04-15 07:35:46

Something seems to have changed overnight, for me at least. Everything was running fine last night. This morning S.M.A.R.T. simply fails to start. Haven't had time to dig into it and see what is going on.

cosmasjdz

2015-04-15 07:39:11

I get this too. Reinstalled java, simba, turned firewall off, runned as adminitrator, restarted pc, loaded rs in a browser. Doesnt work.

Usually it used to be a fix to load one runescape client in browser fixing this. But now nothing helps

Justin

2015-04-15 07:53:21

We are aware of the issue. I have sent in a pull request to fix this. Jagex changed the way they send the client out to the browsers.
@The Mayor; has just accepted the pull request. Waiting for Wizzup's server to update.

If you don't want to wait:
https://github.com/SRL/SRL-6/compare/0dc31b9da2e4...8292649f5327

Thanks,

Justin.

Bixby Sayz

2015-04-15 07:53:50

Edit: NVM. Mayor beat me to it.

Clarity

2015-04-15 07:58:58

ogLib has also been updated to accommodate this for anyone who uses that :)

Antonio

2015-04-15 08:57:28

From: Justin
We are aware of the issue. I have sent in a pull request to fix this. Jagex changed the way they send the client out to the browsers.
@The Mayor; has just accepted the pull request. Waiting for Wizzup's server to update.

If you don't want to wait:
https://github.com/SRL/SRL-6/compare/0dc31b9da2e4...8292649f5327

Thanks,

Justin.


Working for me thanks!

For anyone reading this post and looking for a fix open SIMBA and go to File> Open then go to your Simba folder then go to Includes/srl-6/lib/misc folder. Open up the file named "smart". Go to line 285 and replace that full line with
params := explode(',', between('worldLink=''', ';', page));

NOTE: Line 285 has to be exactly that otherwise it won't work.

niekasnieko

2015-04-15 09:15:03

changed smart.simba file but now I get error on my scripts:

Error: Unknown declaration "params" at line 301

Can someone help with this? thank you.

Justin

2015-04-15 09:22:22

From: niekasnieko
changed smart.simba file but now I get error on my scripts:

Error: Unknown declaration "params" at line 301

Can someone help with this? thank you.


Resolved. Connected to users computer via TeamViewer and fixed the compile issue.

falloutboy12

2015-04-15 09:25:51

so I got rev 1111 - is that supposed to fix it? What else do I need to clear if I have the right version of srl?
[edit]Nvm - working now for some unknown reason after force update srl[/edit]

Justin

2015-04-15 09:27:29

From: falloutboy12
so I got rev 1111 - is that supposed to fix it? What else do I need to clear if I have the right version of srl?


Replace C:\Simba\Includes\srl-6\lib\misc\smart.simba

with this

https://raw.githubusercontent.com/SRL/SRL-6/f42bc9478fbe9ba54421a6362daab8c3b85523d0/lib/misc/smart.simba

falloutboy12

2015-04-15 09:28:36

From: Justin
Replace C:\Simba\Includes\srl-6\lib\misc\smart.simba

with this

https://raw.githubusercontent.com/SRL/SRL-6/f42bc9478fbe9ba54421a6362daab8c3b85523d0/lib/misc/smart.simba


Thanks for your quick help!

Justin

2015-04-15 09:29:03

From: falloutboy12
Thanks for your quick help!


You are most welcome :)

Have a nice day

Threshold

2015-04-15 11:10:18

From: Justin
You are most welcome :)

Have a nice day


I did the same, still get this: http://puu.sh/heSma/7dcd82aa73.png

I'm able to run a simple smart client spawn though, so not sure what's up.

Clarity

2015-04-15 11:32:10

From: Doa Envy
I did the same, still get this: http://puu.sh/heSma/7dcd82aa73.png


What is your current smartGetParameters(); code within smart.simba? What script are you attempting to run?

Threshold

2015-04-15 11:42:43

From: Clarity
What is your current smartGetParameters(); code within smart.simba? What script are you attempting to run?


The livid farm script, I've got <10 hours left. I know it gets smart from the GLX (from Obs library) so I've tried to go in there to fix it but not working so far. The SRL-6 is working fine, I noticed.

There isn't a smartGetParameters(); in the GLX smart, but there is this:

Procedure TSmart.Create(Width, Height: Integer; InitSequence: String; Plugins: TStringArray = []); overload;
var
Params: TStringArray;
Begin
Self.__Width := Width;
Self.__Height := Height;
AddOnTerminate('__TSmartFreeAll');

If (Not Self.__ForceNew And Self.Pair()) then
Exit;

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

Self.__Target := SmartSpawnClient('C:/Program Files (x86)/Java/jre8/bin/java.exe', Replace(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], Width, Height, InitSequence, 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.82 Safari/537.36', '-XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=30', Implode(',', Plugins));
If (Self.__Target <> 0) Then
begin
try
Self.__PID := SmartGetClientPID(Self.__Target);
SetEIOSTarget('libsmartremote', ToStr(Self.__PID));
Writeln('Loading SMART: ' + Params[0] + Params[1]);
Self.__Graphics.Create(Width, Height, SmartDebugArray(Self.__Target));
Insert(@Self, __Smart__Pointers);
except
WriteLn('** Fatal Error: Pairing Clients; Terminating Script **');
SmartFreeClient(Self.__Target);
TerminateScript;
end;
end else
begin
Writeln('** Smart Cannot Spawn Clients **');
TerminateScript;
end;
End;

with the part supposed to be editing in the SRL-6 just down below:

Function TSmart.GetParams: TStringArray;
var
Params: TStringArray;
Page: String;
Begin
Page := Between('<iframe id="game" src="', '"', GetPage('http://www.runescape.com/game.ws?j=1'));
Params := Explode(',', Page);
Result := Params;
End;

Clarity

2015-04-15 12:05:55

Change this:
From: Doa Envy

Function TSmart.GetParams: TStringArray;
var
Params: TStringArray;
Page: String;
Begin
Page := Between('<iframe id="game" src="', '"', GetPage('http://www.runescape.com/game.ws?j=1'));
Params := Explode(',', Page);
Result := Params;
End;


to this:

function TSmart.GetParams: TStringArray;
var
Params: TStringArray;
Page: String;
begin
Page := getPage('http://www.runescape.com/game.ws?j=1');
Params := explode(',', between('worldLink=''', ';', page));
Result := Params;
end;

Threshold

2015-04-15 12:11:54

Life saver, I owe my comp cape tonight to @Clarity
<3

Clarity

2015-04-15 12:17:38

From: Doa Envy
Life saver, I owe my comp cape tonight to @Clarity
<3


No worries, congratulations! :) Now go for trimmed and 200m all.

Threshold

2015-04-15 12:21:41

From: Clarity
No worries, congratulations! :) Now go for trimmed and 200m all.


k, make cw bot pls :) 800 hrs later…. k, make chompy bird killer pls :)

BeatlesFanGirl

2015-04-15 16:56:54

Really??

Death Iz Pro

2015-04-15 22:00:30

I've changed the smart file within my includes of srl-6, but am still getting this message:


Attempting to pair to a smart client..
No free clients to pair to
Failed to pair to any smart previously spawned smart clients
Attempting to spawn a client
Grabbing your best world…
Fatal Error: Unable to spawn a SMART client
HINT: Make sure you have the lastest java version, and try running simba as admin
Successfully executed.


Trying to run Anonymous AIO Fletch for OSR.

Thomas

2015-04-16 17:54:22

Problem turned up again for me. Hoping it's just temporary.

Clutch

2015-04-16 17:56:32

From: lovebotter
Problem turned up again for me. Hoping it's just temporary.

https://villavu.com/forum/showthread.php?t=112776

Was there an update overnight or something? Your the 3rd person I've seen so far with issues. Although the two in this thread were on 64bit version.

Thomas

2015-04-16 17:58:33

From: Clutch
https://villavu.com/forum/showthread.php?t=112776

Was there an update overnight or something? Your the 3rd person I've seen so far with issues. Although the two in this thread were on 64bit version.


Nope, it was just last hour or so. Not sure what's wrong, it does grab parameters though, probably just my windows 10 9926 being buggy like usual.
I don't have java 64 anymore anyway.

Thomas

2015-04-17 16:23:33

Now it does grab the parameters, but does not spawn a SMART client either;
---- attempting to spawn smart, attempt #: 6
---- initSmart():
------ Attempting to pair to a previously spawned client
------ smartPairToExistingClient():
-------- Found no free clients to pair to
------ smartPairToExistingClient(): result = false
------ Attempting to spawn a new client..
------ smartCreateClient():
---------- smartGetParameters(): Succesfully grabbed paramters
-------- getJavaPath():
---------- Attempting to search for your Java path
---------- Found your java path @ C:\Program Files (x86)\Java\jre1.8.0_45\bin\javaw.exe
-------- getJavaPath()
-------- Using parameters [http://world21.runescape.com/, f212518211955021029]
-------- Using plugins "OpenGL32.dll,d3d9.dll"
------ Failed to spawn a SMART client
---- initSmart()
---- Waiting up to 5 minutes for RS to load...
---- 1 minute(s) have passed, client is not ready yet

Resolved, was windows 10 firewall being bad as usual.

photomac54

2015-04-30 16:21:27

I keep having a problem similar to the original post on this thread about not finding a client. When I start a script the debug will show exactly what the original post says. This happens every once in a while and then will stop. I have "fixed" it twice now two different ways but never really changing anything. When I hit play a new window will not pop up, it'll flash and immediately shut down. I tried the fixes in this thread along with many others, I am not sure what is causing this and like I said Simba will work fine for a day then have this problem for a day. Keeps going back and forth. It seems completely random why it will load a client then next time try to load it wont.
– setupSRL()
—- Setting up SRL…
—- attempting to spawn smart, attempt #: 1
—- initSmart():
—— Attempting to pair to a previously spawned client
—— smartPairToExistingClient():
——– Found no free clients to pair to
—— smartPairToExistingClient(): result = false
—— Attempting to spawn a new client..
—— smartCreateClient():
———- smartGetParameters(): Succesfully grabbed paramters
——– getJavaPath():
———- Attempting to search for your Java path
———- Found your java path @ C:\Program Files (x86)\Java\jre1.8.0_45\bin\javaw.exe
——– getJavaPath()
——– Using parameters [world18.runescape.com/, f3028782687789175525]
——– Using plugins "OpenGL32.dll,d3d9.dll"

photomac54

2015-04-30 21:01:15

I am having similiar problems as the original post. Sometime the client will spawn but it goes off and on. Now it has been more off then on. Tried a bunch of different things but havnt found a permanent fix. This is what keeps coming up.
– setupSRL()
—- Setting up SRL…
—- attempting to spawn smart, attempt #: 1
—- initSmart():
—— Attempting to pair to a previously spawned client
—— smartPairToExistingClient():
——– Found no free clients to pair to
—— smartPairToExistingClient(): result = false
—— Attempting to spawn a new client..
—— smartCreateClient():
———- smartGetParameters(): Succesfully grabbed paramters
——– getJavaPath():
———- Attempting to search for your Java path
———- Found your java path @ C:\Program Files (x86)\Java\jre1.8.0_45\bin\javaw.exe
——– getJavaPath()
——– Using parameters
——– Using plugins "OpenGL32.dll,d3d9.dll"