SRL Archive - SRL Archives

Solve Pinball!


mastaraymond

2007-10-19 20:29:02

Ok, i've created this "SolvePinball" procedure. It has got a simple PinballDetected maybe i should optimize that one, but the main procedure works.. I tested it on a lot of worlds and it should work.
Proof it worked:[php]
SRL Compiled in 63 msec
Pinball detected!
5603685
We've succesfully tagged this pillar! Current score: 1
We've succesfully tagged this pillar! Current score: 2
We've succesfully tagged this pillar! Current score: 3
We've succesfully tagged this pillar! Current score: 4
We've succesfully tagged this pillar! Current score: 5
We've succesfully tagged this pillar! Current score: 6
We've succesfully tagged this pillar! Current score: 7
We've succesfully tagged this pillar! Current score: 8
We've succesfully tagged this pillar! Current score: 9
We've succesfully tagged this pillar! Current score: 10
Solved the Pinball!
Successfully executed[/php]Oh, and here is the code ^^.
program New;
{.include SRL/SRL.scar}

Function PinballDetected: Boolean;
begin;
if (GetColor(MMCX,MMCY) = 0) then
if StrToIntDef(GetNumbers(GetTextAtEx(374, 241,0, UpChars, True,True,0,0,65535,9, False, tr_NormalChars)),-1) <> -1 then
Result := True;
end;

Function SolvePinBallRay: Boolean;
var
CTS,CurrentScore,MSPeed,RRX,RRY,MTime,LastClick,StartTime,Fails,I,GroundColor,Timer : Integer;
TPA : TPointArray;
SortedTPA : TPointArrayArray;
ClickedRight : Boolean;
begin;
if not PinballDetected then exit;
While ClickToContinue do //Just to be sure? Idk if he needs to talk ^^.
begin;
if not LoggedIn then exit;
Wait(500+Random(500));
end;
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(1);
GroundColor := GetColor(298, 188);
if not SimilarColors(GroundColor,5735272,10) then
begin;
FindColorsSpiralTolerance(MSCX,MSCY,TPA,5735272,MSX1,MSY1,MSX2,MSY2,10);
Try
GroundColor := GetColor(TPA[1000].x,TPA[1000].y);
except
GroundColor := GetColor(TPA[Length(TPA)-1].x,TPA[Length(TPA)-1].y)
end;
end;
Result := False;
MSPeed := MouseSpeed;
MouseSpeed := 20;
ColorToleranceSpeed(2);
SetColorspeed2Modifiers(0.17,0.57);
StartTime := GetSystemTime;
LastClick := GetSystemTime;
Timer := GetSystemTime;
CurrentScore := StrToIntDef(GetNumbers(GetTextAtEx(374, 241,0, UpChars, True,True,0,0,65535,9, False, tr_NormalChars)),0);
repeat
if not LoggedIn then break;
if (GetSystemTime - LastClick) > 45000 then
begin;
Mouse(MSCX, MSCY,5,5,true);
LastClick := GetSystemTime;
end;
if (CurrentScore = -1) or (Currentscore = 10) then break;
FindColorsSpiralTolerance(0, 0, TPA, 6199903, MSX1, MSY1, MSX2, MSY2,5);
if GetArrayLength(TPA) > 30 then
begin;
SortedTPA := TPAtoATPAEx(TPA,60,70);
SortATPASize(SortedTPA,True);
I := GetArrayLength(SortedTPA[0]) - 1;
if I > 30 then
begin;
Tpa := RearrangeTPA(SortedTPA[0],0,I,True,True);
if (TPA[I].x-TPA[0].x) > 25 then
begin;
MiddleTPAex(SortedTPA[0],RRX,RRY);
Timer := GetSystemTime - Timer;
Mouse(RRX,RRY,0,0,True);
GetMousePos(RRX,RRY);
MTime := GetSystemTime;
While not ClickedRight and Not ((GetSystemTime - MTime) > 200) do
begin;
ClickedRight := SimilarColors(GetColor(RRX-5,RRY+5),4471248,10);
Wait(5);
end;
LastClick := GetSystemTime;
if ClickedRight then
begin;
RRX := CurrentScore;
While Not ((GetSystemTime - LastClick) > 20000) and (RRX = Currentscore) do
begin;
CurrentScore := StrToIntDef(GetNumbers(GetTextAtEx(374, 241,0, UpChars, True,True,0,0,65535,9, False, tr_NormalChars)),-1);
if (CurrentScore = -1) then break;
Wait(200+random(50));
end;
if CurrentScore = 0 then
begin;
Fails := Fails + 1;
Writeln('Misclicked! Score has been reset! Fails: '+inttostr(Fails));
end else if (RRX = Currentscore) then
Writeln('Misclicked! Going on baby!')
else if CurrentScore <> -1 then
Writeln('We'#39've succesfully tagged a pillar, took: '+inttostr(Timer)+ 'ms! Current score: '+inttostr(Currentscore));
Timer := GetSystemTime;
end;
end;
end;
end else
Wait(50);
until ((GetSystemTime - StartTime) > 620000) or (Fails > 8)
MouseSpeed := MSpeed;
if CurrentScore >= 10 then
begin;
ColorToleranceSpeed(1);
Fails := 0;
MakeCompass('n');
repeat
HighestAngle;
MakeCompass('n');
Fails := Fails + 1;
For I := 1 to 3 do
begin;
RRX := MSCX;
RRY := 333;
FindColorSpiralTolerance(RRX,RRY,GroundColor,MSX1,MSY1,MSX2,MSY2,10);
if RRY >= 330 then RRY := 320
MMouse(RRX,RRY,5,5);
GetMousePos(RRX,RRY);
Mouse(RRX,RRY,0,0,True);
Wait(4000+Random(750));
if StrToIntDef(GetNumbers(GetTextAtEx(374, 241,0, UpChars, True,True,0,0,65535,9, False, tr_NormalChars)),-1) = -1 then Break;
end;
if StrToIntDef(GetNumbers(GetTextAtEx(374, 241,0, UpChars, True,True,0,0,65535,9, False, tr_NormalChars)),-1) = -1 then Break;
if IsUpTextMultiCustom(['xit','ave','Exit','Cave']) then
Break;
RRX := MSCX;
RRY := 333;
FindColorSpiralTolerance(RRX,RRY,6582101,MSX1,MSY1,MSX2,MSY2,10);
MMouse(RRX,RRY,0,0);
if IsUpTextMultiCustom(['xit','ave','Exit','Cave']) then
Break;
until(Fails >= 2)
if not (Fails >= 2) then
begin;
if StrToIntDef(GetNumbers(GetTextAtEx(374, 241,0, UpChars, True,True,0,0,65535,9, False, tr_NormalChars)),-1) <> -1 then
begin;
GetMousePos(RRX,RRY);
Wait(5+random(10));
Mouse(RRX,RRY,0,0,True);
end;
Result := True;
TakeScreen('Solved Pinball');
Writeln('Solved the Pinball!');
// Inc(Pinballs);
ColorToleranceSpeed(CTS);
Wait(5000 + Random(1000));
Exit;
end;
end;
// inc(NOPinballs);
ColorToleranceSpeed(CTS);
Players[CurrentPlayer].Rand := 'PinBall';
Logout;
end;

begin

SetupSRL;
if PinballDetected then
begin;
WritelN('Pinball detected!');
SolvePinBallRay;
end;

end.


Smartzkid

2007-10-19 20:46:57

Very nice, Raymond.

If I get any pinball accounts in the near future, I'll try it out.

Harry

2007-10-19 21:19:18

Wow, I think I may pop this into my SRL folder ;)

BobboHobbo

2007-10-19 21:39:00

Awesome! Can this be used in free scripts or should i Obfuscate or what ever that word is?

:D

* I hate solving that random by hand its so ****** annoying :)

Tim0suprem0

2007-10-19 23:21:48

Wow thanks I get this one all the time!

And like Bobbo said, can we add this to free scripts? Or is it being kept members only?

HellBoyz

2007-10-20 00:24:40

Why don't let us member fully test and utilize 1st before sending to free script? Thats what the member benefit was and thats why many leech or noobs try to get in for benefit

Bobarkinator

2007-10-20 00:42:30

Why isn't Wizzups? Good enough?

n3ss3s

2007-10-20 03:50:45

If I get pinball rand Ill try to make one too ;)

And try yours :p

MasterKill

2007-10-20 04:22:41

all i have to say is:

WOW awesome job :) i wanted to make a better slover with find function but you allready did it wich is very good :)

Bobark: no wizzup's was not sloving when (highestangle; ), ray i hope yours does? :)

Wizzup?

2007-10-20 04:45:37

From: Bobarkinator
Why isn't Wizzups? Good enough?


Well my DTM and stuff works, I just solved the pinblal to early, I only got the real 'solving' process, the rest is still by pups, which has to be changed.

From: MasterKill
Bobark: no wizzup's was not sloving when (highestangle; ), ray i hope yours does? :)


HighestAngle was still by pups.

mastaraymond

2007-10-20 05:36:49

Ofcourse you may use this… I need to change some little things. But it works allright…

~Raymond

EDIT:
From: Bobarkinator
Why isn't Wizzups? Good enough?

Well, i asked him if the Pinball solver was working. He said no, so i made one myself ^^.

BobboHobbo

2007-10-20 05:48:38

i got pinball random!

Im trying now.

EDIT**
Worked! Nice good job!
We've succesfully tagged this pillar! Current score: 1
We've succesfully tagged this pillar! Current score: 2
We've succesfully tagged this pillar! Current score: 3
We've succesfully tagged this pillar! Current score: 4
We've succesfully tagged this pillar! Current score: 5
We've succesfully tagged this pillar! Current score: 6
We've succesfully tagged this pillar! Current score: 7
We've succesfully tagged this pillar! Current score: 8
We've succesfully tagged this pillar! Current score: 9
We've succesfully tagged this pillar! Current score: 10

Sometimes it took awhile to find the green blinking thing, but it sloved :) good job :)

ShowerThoughts

2007-10-20 05:53:32

nice work, you can see he's dutch :p

mastaraymond

2007-10-20 05:56:53

From: BobboHobbo
i got pinball random!

Im trying now.

EDIT**
Worked! Nice good job!
We've succesfully tagged this pillar! Current score: 1
We've succesfully tagged this pillar! Current score: 2
We've succesfully tagged this pillar! Current score: 3
We've succesfully tagged this pillar! Current score: 4
We've succesfully tagged this pillar! Current score: 5
We've succesfully tagged this pillar! Current score: 6
We've succesfully tagged this pillar! Current score: 7
We've succesfully tagged this pillar! Current score: 8
We've succesfully tagged this pillar! Current score: 9
We've succesfully tagged this pillar! Current score: 10

Sometimes it took awhile to find the green blinking thing, but it sloved :) good job :)
Yeah its because its searching for a real special color, that doesn't appears all the time ;). Im glad it worked (h).

~Raymond

EDIT:
From: hermpie
nice work, you can see he's dutch :p

Yeah, my English isn't that good ^^. Everything that counts here is scripting talent, right? ;)

ShowerThoughts

2007-10-20 05:59:38

i like to share all the anti-randoms to the the ''leecher''(because i dont make them:() but we could make a srl anti-randoms map for srl members and higher and one for the rank below?

not that im against sharing but more people sa(id)y it

mastaraymond

2007-10-20 06:03:19

From: hermpie
i like to share all the anti-randoms to the the ''leecher''(because i dont make them:() but we could make a srl anti-randoms map for srl members and higher and one for the rank below?

not that im against sharing but more people sa(id)y it
I think everyone wants to make their script flawless, randoms are a part of that. Randoms should be free to everyone. If you want to separate SRL Members and "leechers". Dont release any good scripts to them ;).
The reason i posted this here is because this was the only section where it could fit ^^.

Oh and about the long time waiting, if it doesn't click a pillar for 45 secs. It will move to the middle of the "place", so he has got a good view on the pillars ;).

~Raymond

ShowerThoughts

2007-10-20 06:05:30

kk, nice work

i already expected that raymond so, its okay

its even better :)

the scar noob

2007-10-20 06:07:43

Raymond, you did it again:p
Congrtulations with your new creation, and oh boi it's a nice one!(h)

I will test it as soon as I get the PinBall random, I promise!

-Tsn.

ShowerThoughts

2007-10-20 06:09:10

The Scar Noob you auto!!!!

i will promise if i get it i will test;)

the scar noob

2007-10-20 06:11:31

From: hermpie
The Scar Noob you auto!!!!

i will promise if i get it i will test;)


Last time I auto'd was last week I think :)
You know, I want to find a uber powerminer XD, I don't want to use Tara's ChickenKiller anymore, they are all 30+combat :p

-Stijn.:eek:

mat_de_b

2007-10-20 06:25:44

@ devs, put in srl?

Markus

2007-10-20 06:33:40

Nice work :D

King of Knives

2007-10-20 07:14:12

Nice job, Raymond :D

I don't care if you're dutch, english, american, french or from any other country. That's the great about SRL. Scripting talent and attitude matters the most :D And you got talent :D

-Knives

mastaraymond

2007-10-20 07:26:06

From: King of Knives
Nice job, Raymond :D

I don't care if you're dutch, english, american, french or from any other country. That's the great about SRL. Scripting talent and attitude matters the most :D And you got talent :D

-Knives


Thanks! ^^.

R0b0t1

2007-10-20 12:52:26

KoK, SHHH! Don't say American… It'll piss all the Latinos off.

mastaraymond

2007-10-20 15:45:16

Ok guys there was a big mistake in the script, i forgot to put in ColorToleranceSpeed(2);. Now it finds the new pillar almost immediately. I also update the PinballDetected function, its way faster now… Oh and i had a new PinballChar so i tested it with the new version, this is the result:

Pinball detected!
We've succesfully tagged this pillar! Current score: 1
We've succesfully tagged this pillar! Current score: 2
We've succesfully tagged this pillar! Current score: 3
We've succesfully tagged this pillar! Current score: 4
We've succesfully tagged this pillar! Current score: 5
We've succesfully tagged this pillar! Current score: 6
We've succesfully tagged this pillar! Current score: 7
We've succesfully tagged this pillar! Current score: 8
We've succesfully tagged this pillar! Current score: 9
We've succesfully tagged this pillar! Current score: 10
Solved the Pinball!

Harry

2007-10-20 15:50:23

From: the scar noob
Last time I auto'd was last week I think :)
You know, I want to find a uber powerminer XD, I don't want to use Tara's ChickenKiller anymore, they are all 30+combat :p

-Stijn.:eek:


Use ChopYBank :)

Bobarkinator

2007-10-20 15:53:01

From: mastaraymond
Ok guys there was a big mistake in the script, i forgot to put in ColorToleranceSpeed(2);. Now it finds the new pillar almost immediately. I also update the PinballDetected function, its way faster now… Oh and i had a new PinballChar so i tested it with the new version, this is the result:

Pinball detected!
We've succesfully tagged this pillar! Current score: 1
We've succesfully tagged this pillar! Current score: 2
We've succesfully tagged this pillar! Current score: 3
We've succesfully tagged this pillar! Current score: 4
We've succesfully tagged this pillar! Current score: 5
We've succesfully tagged this pillar! Current score: 6
We've succesfully tagged this pillar! Current score: 7
We've succesfully tagged this pillar! Current score: 8
We've succesfully tagged this pillar! Current score: 9
We've succesfully tagged this pillar! Current score: 10
Solved the Pinball!


Add a timer :)

n3ss3s

2007-10-20 16:00:00

I want to find a uber powerminer XD


75% chance Ill build one in my coal miner ;)

@ray: Make it tell how fast it finds one pilar :p

mastaraymond

2007-10-20 16:11:52

Ok guys added the timer… And seeded up the PinballDetected a bit, again!

I also had another account in pinball, the mis click was because the screen moved exactly at the moment i clicked :-(:
Pinball detected!
We've succesfully tagged this pillar! Current score: 1
We've succesfully tagged this pillar! Current score: 2
We've succesfully tagged this pillar! Current score: 3
We've succesfully tagged this pillar! Current score: 4
We've succesfully tagged this pillar! Current score: 5
Misclicked! Score has been reset! Fails: 1
We've succesfully tagged this pillar! Current score: 1
We've succesfully tagged this pillar! Current score: 2
We've succesfully tagged this pillar! Current score: 3
We've succesfully tagged this pillar! Current score: 4
We've succesfully tagged this pillar! Current score: 5
We've succesfully tagged this pillar! Current score: 6
We've succesfully tagged this pillar! Current score: 7
We've succesfully tagged this pillar! Current score: 8
We've succesfully tagged this pillar! Current score: 9
We've succesfully tagged this pillar! Current score: 10

Harry

2007-10-20 17:31:09

I got it always moved RIGHT when I clicked :(

mastaraymond

2007-10-21 05:04:11

From: Hy71194
I got it always moved RIGHT when I clicked :(
Just bad luck, I guess. It should repair himself and go on. After 6 fails it stops trying… Should work like 9/10 times alright. It always worked for me.. If it doesn't work probably could you make a screenshot of how your MS Looks like? And explain what didn't work. Thnx :rolleyes:.

~Raymond

Wizzup?

2007-10-21 05:08:21

You need to add the clicktocontinue in order for it to work.. :)

mastaraymond

2007-10-21 05:58:07

From: Wizzup?
You need to add the clicktocontinue in order for it to work.. :)

No need to.. It doesn't check the chatbox..
Oh and heres a proggy from HugoLord, since he cant post it, I will do it for him. The first time he stopped the script, because he wanted to see how it worked ;). OH btw, the time in ms is the time it takes between finding a new pillar. Not the time it takes to calculate if its the right pillar ;).

SRL Compiled in 0 msec
Misclicked! Score has been reset! Fails: 1 // i did this by accident
We've succesfully tagged a pillar, took: 20641ms! Current score: 1
We've succesfully tagged a pillar, took: 63ms! Current score: 2
We've succesfully tagged a pillar, took: 5750ms! Current score: 3
We've succesfully tagged a pillar, took: 78ms! Current score: 4
We've succesfully tagged a pillar, took: 8891ms! Current score: 5
We've succesfully tagged a pillar, took: 5781ms! Current score: 6
We've succesfully tagged a pillar, took: 9860ms! Current score: 7
We've succesfully tagged a pillar, took: 8688ms! Current score: 8
Successfully executed
User specified a new RS window
Successfully compiled
SRL Compiled in 15 msec
We've succesfully tagged a pillar, took: 43143140ms! Current score: 1
We've succesfully tagged a pillar, took: 23437ms! Current score: 2
We've succesfully tagged a pillar, took: 1516ms! Current score: 3
We've succesfully tagged a pillar, took: 984ms! Current score: 4
We've succesfully tagged a pillar, took: 15985ms! Current score: 5
We've succesfully tagged a pillar, took: 4266ms! Current score: 6
We've succesfully tagged a pillar, took: 6938ms! Current score: 7
We've succesfully tagged a pillar, took: 547ms! Current score: 8
We've succesfully tagged a pillar, took: 7672ms! Current score: 9
We've succesfully tagged a pillar, took: 641ms! Current score: 10
Solved the Pinball!
Successfully executed

~Raymond,

P.S. Im going to implant this into my findnormalrandoms :rolleyes:

Smartzkid

2007-10-23 20:06:48

Pinball detected!
Misclicked! Score has been reset! Fails: 1
Misclicked! Score has been reset! Fails: 2
We've succesfully tagged a pillar, took: 1406ms! Current score: 1
We've succesfully tagged a pillar, took: 8859ms! Current score: 2
Misclicked! Score has been reset! Fails: 3
We've succesfully tagged a pillar, took: 1703ms! Current score: 1
We've succesfully tagged a pillar, took: 5016ms! Current score: 2
We've succesfully tagged a pillar, took: 718ms! Current score: 3
We've succesfully tagged a pillar, took: 203ms! Current score: 4
We've succesfully tagged a pillar, took: 421ms! Current score: 5
We've succesfully tagged a pillar, took: 766ms! Current score: 6
We've succesfully tagged a pillar, took: 63ms! Current score: 7
We've succesfully tagged a pillar, took: 5265ms! Current score: 8
We've succesfully tagged a pillar, took: 22859ms! Current score: 9
We've succesfully tagged a pillar, took: 62ms! Current score: 10
Solved the Pinball!

Clicked wrongly a couple times, mostly right when the camera angle changed.

Got it done, though. Good work!

Hugolord

2007-10-24 06:01:33

Raymond i most say this script is awesome! =D

[OffTopic/]and welcome back everyone [/OffTopic]

ShowerThoughts

2007-10-24 06:11:06

yes, its awsome can i put it into my srl?

Lalaji

2007-10-24 07:28:42

ont have any players in pinn ball atm :(

mastaraymond

2007-10-24 12:40:18

From: Smartzkid
Pinball detected!
Misclicked! Score has been reset! Fails: 1
Misclicked! Score has been reset! Fails: 2
We've succesfully tagged a pillar, took: 1406ms! Current score: 1
We've succesfully tagged a pillar, took: 8859ms! Current score: 2
Misclicked! Score has been reset! Fails: 3
We've succesfully tagged a pillar, took: 1703ms! Current score: 1
We've succesfully tagged a pillar, took: 5016ms! Current score: 2
We've succesfully tagged a pillar, took: 718ms! Current score: 3
We've succesfully tagged a pillar, took: 203ms! Current score: 4
We've succesfully tagged a pillar, took: 421ms! Current score: 5
We've succesfully tagged a pillar, took: 766ms! Current score: 6
We've succesfully tagged a pillar, took: 63ms! Current score: 7
We've succesfully tagged a pillar, took: 5265ms! Current score: 8
We've succesfully tagged a pillar, took: 22859ms! Current score: 9
We've succesfully tagged a pillar, took: 62ms! Current score: 10
Solved the Pinball!
Clicked wrongly a couple times, mostly right when the camera angle changed.

Got it done, though. Good work!

Thnx :).

@Hermpie, ofcourse you can put it in your antirandoms.. Do whatever you want to do with it.. (h)

Macrosoft

2007-10-28 16:52:13

OMG SOOOO COOOL, were is WT-Fakawi?

Harry

2007-10-28 17:05:56

Hah, this needs to be in SRL. Or atleast a boolean in Pinball.scar , for logout or solve :cool:

Wizzup?

2007-10-28 17:08:51

Yes it will be soon.

Harry

2007-10-29 20:32:14

Tasty :)

SRL Compiled in 16 msec
Pinball detected!
We've succesfully tagged a pillar, took: 657ms! Current score: 1
We've succesfully tagged a pillar, took: 2141ms! Current score: 2
We've succesfully tagged a pillar, took: 3828ms! Current score: 3
We've succesfully tagged a pillar, took: 3828ms! Current score: 4
We've succesfully tagged a pillar, took: 6765ms! Current score: 5
We've succesfully tagged a pillar, took: 1344ms! Current score: 6
We've succesfully tagged a pillar, took: 250ms! Current score: 7
We've succesfully tagged a pillar, took: 4953ms! Current score: 8
We've succesfully tagged a pillar, took: 1235ms! Current score: 9
We've succesfully tagged a pillar, took: 313ms! Current score: 10
Solved the Pinball!
Successfully executed

The screen moved just when the script clicked it (like 3 times :( ) so I helped it along ;) and it worked great.

HellBoyz

2007-10-29 20:59:30

Damn, i solve the pinball myself should have test this pinball script, I'll try to get more pinball random soon, if I'm lucky. lol. I'll post a proggy soon when i get the hold of pinball random

mastaraymond

2007-10-30 11:10:44

From: Hy71194
Tasty :)

SRL Compiled in 16 msec
Pinball detected!
We've succesfully tagged a pillar, took: 657ms! Current score: 1
We've succesfully tagged a pillar, took: 2141ms! Current score: 2
We've succesfully tagged a pillar, took: 3828ms! Current score: 3
We've succesfully tagged a pillar, took: 3828ms! Current score: 4
We've succesfully tagged a pillar, took: 6765ms! Current score: 5
We've succesfully tagged a pillar, took: 1344ms! Current score: 6
We've succesfully tagged a pillar, took: 250ms! Current score: 7
We've succesfully tagged a pillar, took: 4953ms! Current score: 8
We've succesfully tagged a pillar, took: 1235ms! Current score: 9
We've succesfully tagged a pillar, took: 313ms! Current score: 10
Solved the Pinball!
Successfully executed

The screen moved just when the script clicked it (like 3 times :( ) so I helped it along ;) and it worked great.

Im glad it worked (h).

Also can anyone confirm it stops clicking when its out of the cave? I changed it a bit, but don't have any accounts to test it on (h).

~Raymond

King of Knives

2007-10-30 12:46:03

SRL > Jagex

:P

It seems to work pretty well, Raymond. I will definitely test once I get the random. (I don't auto much though)

-Knives

Smartzkid

2007-10-30 15:12:26

I just ran it and it worked fine.

Misclicked twice, but it got through on the third try.

RudeBoiAlex

2007-11-01 16:54:17

i lag then it freezes until it stops scar

the scar noob

2007-11-02 08:53:49

damn, I feel really bad:(
Yesterday I had that random (or the day before yesterday).
I tried SRL's PinBall Solver, which is a bit buggy..
It does th pillar clicking well, but it doen't finishes the random (it doesn't exits the cave).
However, I have sent information to Nielsie95 + pics through msn, he told me he maybe is going to have a look at it, so, who know.. maybe we get a perfect SolvePinBallByNiels; in one of the next revs?:p

If I get the random again, I will try yource;)

-Tsn.

King of Knives

2007-11-03 13:00:55

Worked like a charm :D

Proggy:
Pinball detected!
We've succesfully tagged a pillar, took: 176380518ms! Current score: 1
We've succesfully tagged a pillar, took: 421ms! Current score: 2
We've succesfully tagged a pillar, took: 3541ms! Current score: 3
We've succesfully tagged a pillar, took: 733ms! Current score: 4
We've succesfully tagged a pillar, took: 1841ms! Current score: 5
Misclicked! Going on baby!
Misclicked! Going on baby!
We've succesfully tagged a pillar, took: 16880ms! Current score: 6
We've succesfully tagged a pillar, took: 2995ms! Current score: 7
We've succesfully tagged a pillar, took: 8549ms! Current score: 8
We've succesfully tagged a pillar, took: 5475ms! Current score: 9
We've succesfully tagged a pillar, took: 109ms! Current score: 10
Solved the Pinball!


The first tag didn't take as long time as the proggy says… Don't know why…

-Knives

mastaraymond

2007-11-03 13:07:48

From: King of Knives
Worked like a charm :D

Proggy:


The first tag didn't take as long time as the proggy says… Don't know why…

-Knives

Probably because the first time, the times isn't loaded yet ^^.
Im glad it worked :).

~Raymond

the scar noob

2007-11-10 17:21:59

As promised, here are my results!:p

Pinball detected!
We've succesfully tagged a pillar, took: 6328ms! Current score: 1
Misclicked! Score has been reset! Fails: 1
We've succesfully tagged a pillar, took: 6750ms! Current score: 1
We've succesfully tagged a pillar, took: 14485ms! Current score: 2
We've succesfully tagged a pillar, took: 6313ms! Current score: 3
We've succesfully tagged a pillar, took: 12172ms! Current score: 4
We've succesfully tagged a pillar, took: 875ms! Current score: 5
We've succesfully tagged a pillar, took: 6094ms! Current score: 6
We've succesfully tagged a pillar, took: 1656ms! Current score: 7
We've succesfully tagged a pillar, took: 859ms! Current score: 8
We've succesfully tagged a pillar, took: 969ms! Current score: 9
We've succesfully tagged a pillar, took: 5390ms! Current score: 10


It worked! Great job masta:D

-Tsn.

The Claw

2007-11-13 00:46:15

Have you tried searching for the green-circl colour around the mouse to stop misclicks? Do a getmousepos, count colors in a box around it, and if the % is greater than whatever then we are hovering over the right pillar. And right clicking stops misclicks as well, cause if you right click, even though the screen can still change when you click the text it tags the pillar that you right clicked on :)

mastaraymond

2007-11-13 09:15:40

From: The Claw
Have you tried searching for the green-circl colour around the mouse to stop misclicks? Do a getmousepos, count colors in a box around it, and if the % is greater than whatever then we are hovering over the right pillar. And right clicking stops misclicks as well, cause if you right click, even though the screen can still change when you click the text it tags the pillar that you right clicked on :)

Nope didn't add that, could add a simple CountColorsTolerance, will add it when i've got time. Thnx :). Right clicking wouldn't fix the problem (I think) because if the screen rotates before it clicks, its still a missclick ^,^.

King of Knives

2007-11-13 09:38:59

But that way, it'll only click "Tag" if the mouse actually clicked on the pillar. If the screen rotates and the mouse then clicks somewhere, it will only be able to click "Walk Here" or "Cancel", unless you are so unlucky, that it actually miss-clicked on another pillar.

-Knives

mastaraymond

2007-11-13 09:42:07

From: King of Knives
But that way, it'll only click "Tag" if the mouse actually clicked on the pillar. If the screen rotates and the mouse then clicks somewhere, it will only be able to click "Walk Here" or "Cancel", unless you are so unlucky, that it actually miss-clicked on another pillar.

-Knives

I didn't consider that as a bug x). If it misclicks, it doesn't find a red color around the mouse and the script will move on.. :rolleyes:

pwnaz0r

2007-11-13 19:45:59

Sorry to say but didnt solve my pinball =\

mastaraymond

2007-11-14 09:42:56

From: pwnaz0r
Sorry to say but didnt solve my pinball =\

Okay, will make a better one, when i've got time (which i haven't atm)

Hugolord

2007-11-18 08:47:47

solves perfectly for me =D

RAM

2007-11-24 11:02:31

User specified a new RS window
Successfully compiled
SRL Compiled in 297 msec
Pinball detected!
User specified a new RS window
We've succesfully tagged a pillar, took: 62750ms! Current score: 1
Misclicked! Going on baby!
We've succesfully tagged a pillar, took: 453ms! Current score: 2
[Runtime Error] : Out Of Range in line 150 in script

Successfully compiled
SRL Compiled in 16 msec
Pinball detected!
[Runtime Error] : Out Of Range in line 150 in script

User specified a new RS window
Successfully compiled
SRL Compiled in 0 msec
Pinball detected!
We've succesfully tagged a pillar, took: 203ms! Current score: 1
Misclicked! Going on baby!
[Runtime Error] : Out Of Range in line 150 in script

Successfully compiled
SRL Compiled in 15 msec
Pinball detected!
[Runtime Error] : Out Of Range in line 150 in script


Tired it a few times, but didn't have any luck….just lags out most of the time

mastaraymond

2007-11-24 16:41:46

From: RAM
Tired it a few times, but didn't have any luck….just lags out most of the time

Well, that Out of Range is really weird, probably because of the New SCAR.. Also i found out it isn't working as good anymore, when i get another Pinball i'll do some solving on the Pilar finding.. The color i picked isn't really good ;). Thanks for trying though,

~Raymond

n3ss3s

2007-11-24 17:00:18

Hey ray, when my yewcutter gets out I'll post that if people get any pinball randoms post the accs to ray :)

mastaraymond

2007-11-24 17:04:05

From: n3ss3s
Hey ray, when my yewcutter gets out I'll post that if people get any pinball randoms post the accs to ray :)

I would appreciate that :). Finnish tha script pl0x!

~Raymond

RAM

2007-11-24 17:18:17

From: mastaraymond
Well, that Out of Range is really weird, probably because of the New SCAR.. Also i found out it isn't working as good anymore, when i get another Pinball i'll do some solving on the Pilar finding.. The color i picked isn't really good ;). Thanks for trying though,

~Raymond


sorry, forgot to mention it was tested on 3.12c

mastaraymond

2007-11-24 17:21:14

From: RAM
sorry, forgot to mention it was tested on 3.12c

Aah i see why
"Players[CurrentPlayer].Rand := 'PinBall';"
The length Of players = 0 x). But thats not a minor problem ;). I think it doesn't find the color right.. That would explain why it keeps standing there lagging. Only solution is, redo the color, not much work ;).

~Raymond

Wizzup?

2007-11-25 04:48:57

From: mastaraymond
Aah i see why
"Players[CurrentPlayer].Rand := 'PinBall';"
The length Of players = 0 x). But thats not a minor problem ;). I think it doesn't find the color right.. That would explain why it keeps standing there lagging. Only solution is, redo the color, not much work ;).

~Raymond


Or use a sexy DTM.

mastaraymond

2007-11-25 05:56:23

From: Wizzup?
Or use a sexy DTM.

My own DTM system? ^,^

n3ss3s

2007-11-25 07:03:26

Or use a sexy DTM.


Or use a sexy TPA.

:p

But seriously, FindColorsSpiralTolerance(MSCX, MSCY, greenPoints, GreenColor…..), SplitTPA…. SortTPABySize… Wizzy doesn't know the sexiness of his plugin :)