SRL Archive - General Botting Help

Bot Doesn't Sign In After 6 Hour


dominos

2014-11-18 18:19:30

It seems like it worked up until possibly just a couple days ago, now when it reloads the bot after 2-3 minutes it says there is a fatal error at the login page and terminates the script. Is there anyway around this, is it a problem with a script or with SRL?

Ian

2014-11-18 18:32:50

You should post the debug of the error, that might have some more information in it.

3Garrett3

2014-11-18 18:48:37

It would also be helpful to know if this is a script you wrote or one you're using (and which one you're using if so). Every script is different and different people put the 6 hour fix in different spots, so it could be something going on there.

Other than that, make sure you force an update to SRL, it might fix everything.

Justin

2014-11-18 19:01:31

3/3 of my scripts failed to login after the 6 hour auto-log. Will try to do some debugging if I find time

J_R

2014-11-18 19:16:45

Just wanted to post that I'm getting this as well. Was trying to run TomTuff's div script overnight (have not had problems at all before a few days ago), but it ended up terminating after the 6hr logout, will run it again to see the message.

Justin

2014-11-18 22:02:50

@The Mayor; How are your bots going?

serajin

2014-11-18 22:07:58

I've been noticing a lot more crashing since the last patch. Stable scripts are dropping left and right. I have also had players fail to login back after the 6 hour mark.

Ashaman88

2014-11-18 23:17:10

The last patch was today so there couldn't have been too many opportunities to restart :P. Also there were some fixes to the include today which may have played a factor.

Granted there could be a new issue popping up, but yall should turn back on the srldebug whenever you call login player so you can see what happened.

The Mayor

2014-11-18 23:38:24

From: Justin
@The Mayor; How are your bots going?


Not bad


Justin

2014-11-19 00:20:42

From: The Mayor
Not bad



Okay so sixHourFix isn't broken :p

P1nky

2014-11-19 03:33:47

From: The Mayor
Not bad



What the heck! What script are you using? :o #ThatProggieTho ;)

Qw4rt6yu9

2014-11-19 06:40:44

happening to me as well, maybe something could be included in the antiban procedure that logs it out and then in to avoid being kicked after six hours?

KeepBotting

2014-11-19 07:55:55

SixHourFix works fine, but logging in after a restart is giving me a headache. I'll run some of my bots while I'm at school today and see if I can manage to post some debug later.

Lucidity

2014-11-19 10:15:50

Seems to be working fine for me.. I'll try some other scripts.


KeepBotting

2014-11-19 17:50:14

From: KeepBotting
SixHourFix works fine, but logging in after a restart is giving me a headache. I'll run some of my bots while I'm at school today and see if I can manage to post some debug later.

I lied. Ran fine all day, reloaded and logged back in twice. Will return to this thread and quote/mention Asha if it happens again, though.

E: Got an error and subsequent termination of script at around the 13 hour mark.
@Ashaman88;

------ FATAL ERROR: smartSetupDrawing(): Unable to setup SMART drawing
Successfully executed.
The following bitmaps were not freed: [25]

Never been unable to setup SMART drawing before. Not 100% sure that's what's causing the issue.

Lipcot

2014-11-20 08:16:06

im gettin this 50% of the time, i've got 4 bots overnight, 2 made it, 2 didnt. tesseract problem?

-- TPlayer.login()
---- TPlayer.loginToLobby()
------ C******@Hotmail.Com ()
------ Entering username...
------ Entering password...
------ Login response: Your game session has now ended
------ WARNING: RS Update: Going to call EVENT_RS_UPDATE procedure
------ sixHourFix():
-------- attempt #: 1
-------- Succesfully freed SMART[5236]
-------- Killed our current client, waiting 305297 ms before reloading client
-------- initSmart():
---------- 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\jre7\bin\javaw.exe
------------ getJavaPath()
------------ Using parameters [http://world106.runescape.com/, f7088559425008038468]
------------ Using plugins "d3d9.dll"
------------ Succesfully spawned a client, attempting to target
-------------- smartSetAsTarget(): Succesfully set SMART[4564] as Simbas target
---------- smartCreateClient(): result = true
---------- Succesfully initialized via spawning a new client
-------- initSmart()
-------- Setting refresh rate back to 60
---------- smartSetupDrawing(): Succesfully setup SMART drawing
-------- Re-drawing the smartImage bitmap
------ smartReloadClient()
------ Waiting up to 5 minutes for RS to load...
-------- __setInputBoxes(): Set username and password boxes
------ Client succesfully loaded after reload
------ TPlayer.login()
-------- TPlayer.loginToLobby()
---------- C********@Hotmail.Com ()
---------- Entering username...
---------- Entering password...
---------- WARNING: Unknown login string: "5' " ",:TZ:'.‘
USERNAME/EMAIL
********(dhotmail.com| //Notice it didnt read correctly the @. and then well...
F-::,rg~::.r. us-:-rn3m+:—? 9*:-F7‘I+Er‘r‘rb‘:-r Ia
PASSWORD
it-iii*
F ::. rgc: r. p 3 -.7 -_'~ I.-.w:»r~:1?
I::. r I .: -3: r. th
I
I -"
---------- HINT: Please report this issue in the SRL bugs section of the forum

Hoodz

2014-11-20 11:15:57

From: undorak7
im gettin this 50% of the time, i've got 4 bots overnight, 2 made it, 2 didnt. tesseract problem?

-- TPlayer.login()
---- TPlayer.loginToLobby()
------ C******@Hotmail.Com ()
------ Entering username...
------ Entering password...
------ Login response: Your game session has now ended
------ WARNING: RS Update: Going to call EVENT_RS_UPDATE procedure
------ sixHourFix():
-------- attempt #: 1
-------- Succesfully freed SMART[5236]
-------- Killed our current client, waiting 305297 ms before reloading client
-------- initSmart():
---------- 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\jre7\bin\javaw.exe
------------ getJavaPath()
------------ Using parameters [http://world106.runescape.com/, f7088559425008038468]
------------ Using plugins "d3d9.dll"
------------ Succesfully spawned a client, attempting to target
-------------- smartSetAsTarget(): Succesfully set SMART[4564] as Simbas target
---------- smartCreateClient(): result = true
---------- Succesfully initialized via spawning a new client
-------- initSmart()
-------- Setting refresh rate back to 60
---------- smartSetupDrawing(): Succesfully setup SMART drawing
-------- Re-drawing the smartImage bitmap
------ smartReloadClient()
------ Waiting up to 5 minutes for RS to load...
-------- __setInputBoxes(): Set username and password boxes
------ Client succesfully loaded after reload
------ TPlayer.login()
-------- TPlayer.loginToLobby()
---------- C********@Hotmail.Com ()
---------- Entering username...
---------- Entering password...
---------- WARNING: Unknown login string: "5' " ",:TZ:'.‘
USERNAME/EMAIL
********(dhotmail.com| //Notice it didnt read correctly the @. and then well...
F-::,rg~::.r. us-:-rn3m+:—? 9*:-F7‘I+Er‘r‘rb‘:-r Ia
PASSWORD
it-iii*
F ::. rgc: r. p 3 -.7 -_'~ I.-.w:»r~:1?
I::. r I .: -3: r. th
I
I -"
---------- HINT: Please report this issue in the SRL bugs section of the forum

that happens 99% of the time when i run rs3 scripts

dominos

2014-11-20 16:54:16

From: undorak7
im gettin this 50% of the time, i've got 4 bots overnight, 2 made it, 2 didnt. tesseract problem?


Script has been running for 12h 09m 20s
—- FATAL ERROR: Failed to login player after restart


Mine happens about 50% of the time as well, as you can see here, the first restart worked fine. The second one, however, failed to log in.

Justin

2014-11-20 17:08:24

From: undorak7
im gettin this 50% of the time, i've got 4 bots overnight, 2 made it, 2 didnt. tesseract problem?

-- TPlayer.login()
---- TPlayer.loginToLobby()
------ C******@Hotmail.Com ()
------ Entering username...
------ Entering password...
------ Login response: Your game session has now ended
------ WARNING: RS Update: Going to call EVENT_RS_UPDATE procedure
------ sixHourFix():
-------- attempt #: 1
-------- Succesfully freed SMART[5236]
-------- Killed our current client, waiting 305297 ms before reloading client
-------- initSmart():
---------- 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\jre7\bin\javaw.exe
------------ getJavaPath()
------------ Using parameters [http://world106.runescape.com/, f7088559425008038468]
------------ Using plugins "d3d9.dll"
------------ Succesfully spawned a client, attempting to target
-------------- smartSetAsTarget(): Succesfully set SMART[4564] as Simbas target
---------- smartCreateClient(): result = true
---------- Succesfully initialized via spawning a new client
-------- initSmart()
-------- Setting refresh rate back to 60
---------- smartSetupDrawing(): Succesfully setup SMART drawing
-------- Re-drawing the smartImage bitmap
------ smartReloadClient()
------ Waiting up to 5 minutes for RS to load...
-------- __setInputBoxes(): Set username and password boxes
------ Client succesfully loaded after reload
------ TPlayer.login()
-------- TPlayer.loginToLobby()
---------- C********@Hotmail.Com ()
---------- Entering username...
---------- Entering password...
---------- WARNING: Unknown login string: "5' " ",:TZ:'.‘
USERNAME/EMAIL
********(dhotmail.com| //Notice it didnt read correctly the @. and then well...
F-::,rg~::.r. us-:-rn3m+:—? 9*:-F7‘I+Er‘r‘rb‘:-r Ia
PASSWORD
it-iii*
F ::. rgc: r. p 3 -.7 -_'~ I.-.w:»r~:1?
I::. r I .: -3: r. th
I
I -"
---------- HINT: Please report this issue in the SRL bugs section of the forum


Jagex might of changed something with the return messages as Sept 26 I updated the return messages and AFAIK it was working fine until now

https://github.com/SRL/SRL-6/commit/7ffab03b52744a04d9d5bab41b883d42c392ad2d

Lipcot

2014-11-20 17:22:51

From: Justin
Jagex might of changed something with the return messages as Sept 26 I updated the return messages and AFAIK it was working fine until now

https://github.com/SRL/SRL-6/commit/7ffab03b52744a04d9d5bab41b883d42c392ad2d


yes, probably. I've also noticed that sometimes it writes the username and the password on the same box! can that have something to do with it also?

Justin

2014-11-20 17:42:26

From: undorak7
yes, probably. I've also noticed that sometimes it writes the username and the password on the same box! can that have something to do with it also?


I believe this is caused by SRL not waiting for the client to be 100% loaded before typing in the credentials. I'll play around with some wait times tonight after work.

Lucidity

2014-11-20 19:38:06

You could override the sixhourfix and put a random wait before it logs in, that solved my problem with typing the information in the same form-field.


if (waitClientReady()) then
begin
print('Client succesfully loaded after reload');
print('Signing player online..');
wait(random(2500, 6500));

J_R

2014-11-21 10:04:47

So, the 6 hour log in is definitely working for me now (last 2 days at least); however, I do get that error that undorak got (or a similar one) because of probable lags on the login process. In fact, I think this is what was causing me problems a few days ago.

Ashaman88

2014-11-25 09:48:03

People who have been having some issues with login procedures. I've been experimenting with some edits to how the login procedures are handled and would like some testing. I want more power in the scripters hands when it comes to login procedures. On a high level, these edits basically only try to login once (but will try to successfully respawn the client as many times as smartresetattempts is set at). If it fails to login once, it returns false. That means it's the scripts job to decide things like, how many times to try and login again before switching to another player.

Here is an example of how I handle it in my script for a single player:

if not isLoggedIn then
begin
writeln('Attempting to log back in');
disableSRLDebug := false;
repeat
try
players[currentPlayer].login;
inc(i);
except
end;
if (i = 5) then
terminateScript;
until isLoggedIn;
disableSRLDebug := true;
end;

Obviously instead of terminating the script you could just do nextplayer to implement multiplayer. The reason for these changes is primarily that there are way too many terminates within the login procedures. Now the only terminate will occur when the client fails to respawn. Also functions have been simplified for ease of editing in the future. Replace your players.simba and smart.simba with the following:
http://paste.villavu.com/show/6446/
http://paste.villavu.com/show/6447/

Go ahead and try it out. I've been running it for the past week or so w/o issue. Oh and 1 more thing, you will probably notice more delays with the login procedures. I've added longer waits in places due to prevent random 1 off issues.

Happy testing.

shepdog

2014-11-28 12:06:29

I was having this same issue for the longest time. I end up just closing out then re opening.