SRL Archive - SRL Randoms

[SRL-RANDOM] Abyss (Lost and Found) ~ Working


Coh3n

2012-01-13 20:05:10

As of March 28th, 2012, the Abyss (Lost and Found) random is working. If, for whatever reason, the solver failed, please post the debug text (found in Simba/Includes/SRL/logs) and if you're willing to let an SRL developer use your account, PM the account details to one of the following developers:
  • No one.
Thanks,
The SRL Development Team

WT-Fakawi

2012-01-14 03:43:45

Not sure if this is the place (looks like it), but the Abyss has an endless loop when it fails to solve! Stopped my scripts a couple of times.

Press Play

2012-01-16 18:07:37

From: WT-Fakawi
Not sure if this is the place (looks like it), but the Abyss has an endless loop when it fails to solve! Stopped my scripts a couple of times.

It also has an endless loop when it solves too! I had the debug, but I lost it :( Note: it didn't say it was solved, but when I logged in to the account it was!

mormonman

2012-01-16 18:11:42

From: -daazndagger-
It also has an endless loop when it solves too! I had the debug, but I lost it :( Note: it didn't say it was solved, but when I logged in to the account it was!


I've had that will several different randoms. Not just Abyss.

DemiseScythe

2012-01-18 11:03:38

…

NotReligious

2012-01-18 11:47:23

Hmmh. For me the solver had to guess, but it did guess the correct one. So maybe it worked? (but it did say it was guessing) Also the script did not continue after the random. (I can't really post the debug, because there was none, it just stopped) Probably due to the script, not the solver itself.

DemiseScythe

2012-01-18 12:02:11

Which solver? You could be more specific…

NotReligious

2012-01-19 06:11:43

From: DemiseScythe
Which solver? You could be more specific…


The default one for this random?

mormonman

2012-01-19 12:55:08

From: DemiseScythe
(*
Abyss
=====

Written by: DemiseScythe
Stores all the routines to solve the Abyss random.

*)
{$DEFINE TEST} // Uncomment to test separately from the SRL include
{$i srl/srl.simba}

procedure Abyss_Solve;
var
Stick, dx, dy, i: Integer; //Stick is the DTM of the area above the stick.
aFound: Extended;
begin
Stick := DTMFromString('mrAAAAHic42BgYNBhZGCQAWJbIFYEYnMgFgNiJyDWBuIqoJp8IM4D4jogrgHiLiBuh+JQVSmGMntThlgjLYZIdRkw34WPi8GdH4glxRj4gWrwYUYCGAYAeSYKcw==');
Writeln('We started Abyssal Plane Random!');
MakeCompass('n'); //Sets the right direction and angle.
SetAngle(SRL_Angle_High);
Writeln('We should walk to an appendage!');
Mouse(646, 48, 3, 3, True); //Will make sure we approach anywhere near the stop Stick
FFlag(6);
Wait(1500 + Random(100));
Writeln('We should activate appendage!');
repeat
if FindDTMRotated(Stick, dx, dy, MSX1, MSY1, MSX2, 200, -Pi/4, Pi/4, Pi/30, aFound) then
Mouse(dx, dy, 3, 3, True);
Wait(2500 + Random(100));
Inc(i); //Clicks the stick and goes through ClickToContinue 25 times or until it has left the random.
ClickToContinue; //Clicks stick until it has clicked the right one. "Guesses" 25% of guessing right.
until (TabExists(tab_Inv)) or (i >= 25); //17% chance it will fail 5 times in a row. 25 should be plenty.
FreeDTM(Stick); //May be needs some wait here to allow time for it to be teleported back.
end;

{$IFDEF TEST}
begin
clearDebug();
activateClient();
setupSRL();

//Abyss_Solve();
end.
{$ENDIF}

This is my solver for Abyss Random Event, I know it is not worthy of include but it works, I will translate it into standard code when I have some time and would appreciate if Coh3n or someone else with good standards can help translate this code into this format:

http://paste.villavu.com/show/APzkZRyoKO0svK6U6ubL/

If not, I will get to it eventually, let me know if you find anyone finds bugs and I will fix them. This is the best I can do with the supply of randoms I currently have.

Know Bugs:
-None. (Need an Abyss account to fix my detector, that is all).


You do know that the current abyss solver works right?

Olly

2012-01-19 12:58:52

Nothing wrong with having two?

WT-Fakawi

2012-01-19 14:10:17

From: DemiseScythe
(*
Abyss
=====

Written by: DemiseScythe
Stores all the routines to solve the Abyss random.

*)
{$DEFINE TEST} // Uncomment to test separately from the SRL include
{$i srl/srl.simba}

procedure Abyss_Solve;
var
Stick, dx, dy, i: Integer; //Stick is the DTM of the area above the stick.
aFound: Extended;
begin
Stick := DTMFromString('mrAAAAHic42BgYNBhZGCQAWJbIFYEYnMgFgNiJyDWBuIqoJp8IM4D4jogrgHiLiBuh+JQVSmGMntThlgjLYZIdRkw34WPi8GdH4glxRj4gWrwYUYCGAYAeSYKcw==');
Writeln('We started Abyssal Plane Random!');
MakeCompass('n'); //Sets the right direction and angle.
SetAngle(SRL_Angle_High);
Writeln('We should walk to an appendage!');
Mouse(646, 48, 3, 3, True); //Will make sure we approach anywhere near the stop Stick
FFlag(6);
Wait(1500 + Random(100));
Writeln('We should activate appendage!');
repeat
if FindDTMRotated(Stick, dx, dy, MSX1, MSY1, MSX2, 200, -Pi/4, Pi/4, Pi/30, aFound) then
Mouse(dx, dy, 3, 3, True);
Wait(2500 + Random(100));
Inc(i); //Clicks the stick and goes through ClickToContinue 25 times or until it has left the random.
ClickToContinue; //Clicks stick until it has clicked the right one. "Guesses" 25% of guessing right.
until (TabExists(tab_Inv)) or (i >= 25); //17% chance it will fail 5 times in a row. 25 should be plenty.
FreeDTM(Stick); //May be needs some wait here to allow time for it to be teleported back.
end;

{$IFDEF TEST}
begin
clearDebug();
activateClient();
setupSRL();

//Abyss_Solve();
end.
{$ENDIF}


Wow. That is an amazing piece of code. You apply my favourite principle: Keep It Simple Stupid. Only one thing you need to do: Make it a function, returning True or False…. and maybe wait a little more. On some systems the GUI needs time to build up.

I definately like this! Keep it up.

footballjds

2012-01-19 14:17:04

From: WT-Fakawi
…Only one thing you need to do: Make it a function, returning True or False…. and maybe wait a little more. On some systems the GUI needs time to build up…


Demise, I'd suggest fail-safing the waits. put the wait into a loop, repeat it, break out after x seconds or if getColor at x, y returns xyz321. You get the drift, (:

DemiseScythe

2012-01-19 18:30:52

Well, my first draft is a procedure, on the translated copies is almost completely functions, this looks messy but it does the work, step two is clean up and fail safes, step 3 is debuging, upgrading and testing, then it can be released

nickrules

2012-01-21 18:55:14

Failed to exit after solving:

***** STR: FOUND RANDOM: 'Abyssal Teleport' *****
Screenshot of: Found Abyssal Teleport random 3 Hours, 47 Minutes and 34 Seconds
Eye found in North.
Gray found in East.
Eye found in South.
Eye found in West.
'Eye count: 3'
'Gray count: 1'
'Pink count: 0'
'Arm count: 0'
'Found unique! Gray in East.'

Found char. idled out, and as the random was never detected as finished, the script never resumed.

Coh3n

2012-01-21 19:19:34

Still in the random?

kevin33

2012-01-22 00:38:40

***** STR: FOUND RANDOM: 'Abyssal Teleport' *****
Screenshot of: Found Abyssal Teleport random 1 Hours, 38 Minutes and 54 Seconds
Gray found in North.
Gray found in East.
Gray found in South.
Gray found in West.
'Eye count: 0'
'Gray count: 4'
'Pink count: 0'
'Arm count: 0'
No uniques found!
Guessing…
** Warning in SolveAbyss: Failed finding right answer. Retrying, attempt #1. **
Arm found in North.
Arm found in East.
Arm found in South.
Arm found in West.
'Eye count: 0'
'Gray count: 0'
'Pink count: 0'
'Arm count: 4'
No uniques found!
Guessing…


Thats all it got. It solved it cuz when I looked I had a gift. Didnt get to it on time to stop it for you guys to test :(

nickrules

2012-01-26 17:07:01

From: nickrules
Failed to exit after solving:

***** STR: FOUND RANDOM: 'Abyssal Teleport' *****
Screenshot of: Found Abyssal Teleport random 3 Hours, 47 Minutes and 34 Seconds
Eye found in North.
Gray found in East.
Eye found in South.
Eye found in West.
'Eye count: 3'
'Gray count: 1'
'Pink count: 0'
'Arm count: 0'
'Found unique! Gray in East.'

Found char. idled out, and as the random was never detected as finished, the script never resumed.


This has happened twice now.

From: Coh3n
Still in the random?

No, because it was solved.


E: Why not use InAbyss to detect that we're out?

Justin

2012-02-06 01:11:40


***** STR: FOUND RANDOM: 'Abyssal Teleport' *****
Screenshot of: Found Abyssal Teleport random 20 Minutes and 47 Seconds
Arm found in North.
Arm found in East.
Arm found in South.
Arm found in West.
'Eye count: 0'
'Gray count: 0'
'Pink count: 0'
'Arm count: 4'
No uniques found!
Guessing...
** Warning in SolveAbyss: Failed finding right answer. Retrying, attempt #1. **
Gray found in North.
Gray found in East.
Gray found in South.
Arm found in West.
'Eye count: 0'
'Gray count: 3'
'Pink count: 0'
'Arm count: 1'
'Found unique! Arm in West.'

29/03/2012

[00:22:25]: ***** Found Random: Abyss *****
[00:22:31]: Abyss_Solve: Clicked Appendage
[00:22:33]: Abyss_Solve: Clicked Appendage
[00:22:36]: Abyss_Solve: Clicked Appendage
[00:22:39]: Abyss_Solve: Clicked Appendage
[00:22:43]: Abyss_Solve: Clicked Appendage
[00:22:45]: Abyss_Solve: Clicked Appendage
[00:22:50]: ***** Solved Random: Abyss *****

Seems to of solved the random event but SRL still thinks its in the Random event when it has teleported out

shstiger2009

2012-03-28 17:26:09

Can't post a debug as I'm not on the computer that my script is running, but just saw this work perfectly, solved it fine.

So WORKING as of March 28, 2012 at 4:25 PM CST.

:)

Gala

2012-04-25 18:53:01

Still working fine.

Andres

2012-05-25 14:26:18

I just had a (semi) successful solve. It found the right appendage but took a few tries:


***** Found Random: Abyss *****
Abyss_Solve: Clicked Appendage
Abyss_Solve: Clicked Appendage
Abyss_Solve: Clicked Appendage
Abyss_Solve: Clicked Appendage
Abyss_Solve: Clicked Appendage
Abyss_Solve: Clicked Appendage
Abyss_Solve: Clicked Appendage
Abyss_Solve: Clicked Appendage
Abyss_Solve: Clicked Appendage
***** Solved Random: Abyss *****
***** Found Random: Rewards *****
RD_SolveBox: Found reward box
RD_ClickBoxOption: Found box option box
***** Solved Random: Rewards *****
***** Found Random: Rewards *****
RD_SolveMystery: Found mystery box
RD_SolveMystery: Clicked mystery box
***** Solved Random: Rewards *****

Justin

2012-05-25 20:11:26

From: Andres
I just had a (semi) successful solve. It found the right appendage but took a few tries:


***** Found Random: Abyss *****
Abyss_Solve: Clicked Appendage
Abyss_Solve: Clicked Appendage
Abyss_Solve: Clicked Appendage
Abyss_Solve: Clicked Appendage
Abyss_Solve: Clicked Appendage
Abyss_Solve: Clicked Appendage
Abyss_Solve: Clicked Appendage
Abyss_Solve: Clicked Appendage
Abyss_Solve: Clicked Appendage
***** Solved Random: Abyss *****
***** Found Random: Rewards *****
RD_SolveBox: Found reward box
RD_ClickBoxOption: Found box option box
***** Solved Random: Rewards *****
***** Found Random: Rewards *****
RD_SolveMystery: Found mystery box
RD_SolveMystery: Clicked mystery box
***** Solved Random: Rewards *****


No need to worry about that,


(**
* Author: Coh3n & DemiseScythe
* Description: Solves the random by clicking the same appendage over and over
* again. There's a 25% chance of getting it right each click.
*)

Andres

2012-05-27 00:06:46

From: [J]ustin
No need to worry about that,


(**
* Author: Coh3n & DemiseScythe
* Description: Solves the random by clicking the same appendage over and over
* again. There's a 25% chance of getting it right each click.
*)


Ok gotcha, thanks for the info ;)

YesMan

2012-06-06 12:56:45

Mine isn't working, the client does the random wrong, keeps doing it wrong, and then logs out after a while for being inactive

Austin

2012-08-27 20:58:34

Here's a recent log from the random, pretty plan and simple lol.. wasn't watching it while it was doing it so that's all the info I can give.

[01:04:00]: ***** Found Random: Abyss *****
[01:04:08]: Abyss_Solve: Abyss solver exceeded maximum tries
[01:04:10]: ***** Failed Random: Abyss **
***

TehNeonFishy

2012-10-01 18:27:13

Failed for me a couple of times, just clicking on the wrong lever.

[01:14:10]: ***** Found Random: Abyss *****
[01:14:16]: Abyss_Solve: Clicked Appendage
[01:14:19]: Abyss_Solve: Clicked Appendage
[01:14:22]: Abyss_Solve: Clicked Appendage
[01:14:28]: Abyss_Solve: Abyss solver exceeded maximum tries
[01:14:28]: ***** Failed Random: Abyss *****

DaWu

2012-10-07 13:32:27

I can confirm that this currently is not working. Same debug as poster above.
Happened more than 10 times lately.

Sin

2012-10-10 19:30:34

The solver itself works, we just need to increase the number of times to somewhere near 50.

It has a 1 in 4 chance of clicking the right lever.