SRL Archive - Jr. Member General Help and Discussion

Need help with Astral RC script


jayman19981

2014-06-22 17:35:34

I took vwxz's astral crafter and changed it up to add a couple of new features. I've been using the modified version for a while now but a couple days ago something happened to it and it goes threw the main loop in seconds and doesn't work. Can someone check it out please.

jayman19981

2014-06-22 17:43:36

---- Setup area "0_0MOONCLAN" in 4294967374ms
-- sps.init()
---- TRSMinimap.clickCompass(): Clicked compass
The map looks normal
The map looks normal
-- sps.getPlayerPos(): result = {X = 130, Y = 186}, took 4294968031 ms
-- TRSBankscreen.__openBankBooth()
---- isMouseOverText()
------ Current mouse-over text: ""
---- isMouseOverText(): False
---- Found wrong mouse-over text
---- isMouseOverText()
------ Current mouse-over text: "Bank Bank booth"
------ Found "Bank Bank booth" in mouse-over string: "Bank Bank booth"
---- isMouseOverText(): True
---- Found correct mouse-over text
---- TRSChooseOption._select():
------ Options found: [Bank Bank booth, Collect Bank booth, Walk here, Examine Bank booth, Cancel]
------ Found option "Bank Bank booth" in "Bank Bank booth"
---- TRSChooseOption.select() result = true
---- Bankscreen or pinscreen never opened
---- isMouseOverText()
------ Current mouse-over text: ""
---- isMouseOverText(): False
---- Found wrong mouse-over text
---- isMouseOverText()
------ Current mouse-over text: "Bank Bank booth"
------ Found "Bank Bank booth" in mouse-over string: "Bank Bank booth"
---- isMouseOverText(): True
---- Found correct mouse-over text
---- TRSChooseOption._select():
------ Options found: [Bank Bank booth, Collect Bank booth, Walk here, Examine Bank booth, Cancel]
------ Found option "Bank Bank booth" in "Bank Bank booth"
---- TRSChooseOption.select() result = true
---- Bankscreen or pinscreen never opened
---- isMouseOverText()
------ Current mouse-over text: ""
---- isMouseOverText(): False
---- Found wrong mouse-over text
---- isMouseOverText()
------ Current mouse-over text: ""
---- isMouseOverText(): False
---- Found wrong mouse-over text
-- TRSBankscreen.__openBankBooth() result = False
-- TRSChooseOption._select():
---- Options found: [Deposit-1 Pure essence, Deposit-5 Pure essence, Deposit-10 Pure essence, Deposit-90 Pure essence, Deposit-X Pure essence, Deposit-All Pure essence, Examine Pure essence, Cancel]
------ TRSChooseOption.close(): result = true
---- Failed to find any text matches
-- TRSChooseOption._select() result = false
-- TRSChooseOption._select():
---- Options found: [Withdraw-1 Pure essence, Withdraw-5 Pure essence, Withdraw-10 Pure essence, Withdraw-90 Pure essence, Withdraw-X Pure essence, Withdraw-All Pure essence, Withdraw-All but one Pure essence, Examine Pure essence, Cancel]
---- Found option "Withdraw-All" in "Withdraw-All Pure essence"
-- TRSChooseOption.select() result = true
---- bankscreen.withdraw(): result = True
-- TRSChooseOption._select():
---- Options found: [Deposit Giant pouch, Fill Giant pouch, Empty Giant pouch, Examine Giant pouch, Cancel]
---- Found option "Fill Giant pouch" @ accuracy 1
-- TRSChooseOption.select() result = true
-- TRSChooseOption._select():
---- Options found: [Withdraw-1 Pure essence, Withdraw-5 Pure essence, Withdraw-10 Pure essence, Withdraw-90 Pure essence, Withdraw-X Pure essence, Withdraw-All Pure essence, Withdraw-All but one Pure essence, Examine Pure essence, Cancel]
---- Found option "Withdraw-All" in "Withdraw-All Pure essence"
-- TRSChooseOption.select() result = true
---- bankscreen.withdraw(): result = True
-- TRSChooseOption._select():
---- Options found: [Deposit Large pouch, Fill Large pouch, Empty Large pouch, Examine Large pouch, Cancel]
---- Found option "Fill Large pouch" @ accuracy 1
-- TRSChooseOption.select() result = true
-- TRSChooseOption._select():
---- Options found: [Deposit Medium pouch, Fill Medium pouch, Empty Medium pouch, Examine Medium pouch, Cancel]
---- Found option "Fill Medium pouch" @ accuracy 1
-- TRSChooseOption.select() result = true
-- TRSChooseOption._select():
---- Options found: [Deposit Small pouch, Fill Small pouch, Empty Small pouch, Examine Small pouch, Cancel]
---- Found option "Fill Small pouch" @ accuracy 1
-- TRSChooseOption.select() result = true
-- TRSChooseOption._select():
---- Options found: [Withdraw-1 Pure essence, Withdraw-5 Pure essence, Withdraw-10 Pure essence, Withdraw-90 Pure essence, Withdraw-X Pure essence, Withdraw-All Pure essence, Withdraw-All but one Pure essence, Examine Pure essence, Cancel]
---- Found option "Withdraw-All" in "Withdraw-All Pure essence"
-- TRSChooseOption.select() result = true
---- bankscreen.withdraw(): result = True
---- TRSGameTab.__initTabs(): Setup gametab properties
-- sps.getPlayerPos(): result = {X = 134, Y = 186}, took 4294968015 ms
---- Waiting while the player is moving...
-- sps.walkPath(): result = False
-- tabBackpack.countBitmap(): Counted 21 items

That is debug of it trying to withdraw pure ess and fill pouches. It takes about 5 seconds for all that and then exits walks out the bank for one second and then repeats.

Sk1nyNerd

2014-06-22 20:42:32

i like that syntax, it looks so much cleaner and easier (only play osr). the debug report is cool too.

you should probably failsafe this

procedure OpenBank
var
I: Integer;
begin
for I := 1 to 5 do begin
if BankScreen.IsOpen then begin
Break;
end else begin
BankScreen.Open(BANK_BOOTH);
WaitRandom(2000);
end;
end;
end;

this seems fishy. is youre path valid? looks like its timing out or something

—- TRSGameTab.__initTabs(): Setup gametab properties
– sps.getPlayerPos(): result = {X = 134, Y = 186}, took 4294968015 ms <===the fishy part
—- Waiting while the player is moving…
– sps.walkPath(): result = False
– tabBackpack.countBitmap(): Counted 21 items

The Mayor

2014-06-23 01:51:23

All of your bank stuff, and your mouseScroll bit (NPC contact bit) use the same TPoint:


Mouse(BankScreen.GetPackSlotBox(1).GetMiddle, MOUSE_RIGHT);


getMiddle is returning the middle TPoint in the box, so you are right clicking the exact middle of the box EVERY time. I'm surprised you're not banned yet :p You should use:


mouseBox(bankScreen.getPackSlotBox(1), MOUSE_RIGHT);

You should fix those begins too :)

jayman19981

2014-06-27 14:30:22

From: Sk1nyNerd
i like that syntax, it looks so much cleaner and easier (only play osr). the debug report is cool too.

you should probably failsafe this

procedure OpenBank
var
I: Integer;
begin
for I := 1 to 5 do begin
if BankScreen.IsOpen then begin
Break;
end else begin
BankScreen.Open(BANK_BOOTH);
WaitRandom(2000);
end;
end;
end;

this seems fishy. is youre path valid? looks like its timing out or something

—- TRSGameTab.__initTabs(): Setup gametab properties
– sps.getPlayerPos(): result = {X = 134, Y = 186}, took 4294968015 ms <===the fishy part
—- Waiting while the player is moving…
– sps.walkPath(): result = False
– tabBackpack.countBitmap(): Counted 21 items


ya i think thats it but i don't know how to fix it.. happening with all my scripts. can someone please tell me how to fix the time?

jayman19981

2014-07-06 22:57:46

can any one help me fix the time issues with my srl?