SRL Archive - SRL Archives

Lazy --> Perfect<-- Set Compass Angle


LordGregGreg

2007-06-15 22:59:31

Really new working version JUST released!! TRY IT
Ok, Sorry about that red stuff but seriously, I spent 5 hours perfecting this. It has a very advanced detection system that decides if a point is considered a possible line point check out how it works!!!
I don't cat what you have said you have seen before, this works better, and this is the KEY to getting very tricky rs functions to work.

Please, tell me what you think about it, I'm not ready to just let all this hard work go to nothing.

Enjoi.

Edit: I fixed alot of stuff, it work much better now
Go and take a look at my facy case statment at the bottm… (then look at the mod statments before hand! O snap!)

Ok, i know you are all thinking that we already have great compass functions. And we do, and I use them.
However, there are just some times when you REALLY need the compass to be EXACTLY perfect (color finding for instance).
And that is what this script does.
It is very simple, it has only one argument, the direction, which it immediately passes to SetCompas

How does it do better than that?
Well, just like in my other post,
link here–> http://www.villavu.com/forum/showthread.php?t=11886

it uses the white lines on the minimap as reference points, and tries to make their slope zero.

So yes, this one is very complex, and even then, it still won't work everywhere, but starting at the top left of your minimap, it starts looking for lines (the first white color it hits on its way down is considered a possible point, nothing below them). If the points found match certian criteria, it decides to keep it untill it feel it has enough to align to.

I REALLY encorage you to look at the code in this one, I am very proud of it.

Also, if you want to have fun testing it out, I have made that very easy for you. Simply download my varock walker script,
link here–> http://www.villavu.com/forum/showthread.php?t=11639
and before you start it, set player[0].loc = "GregAlign";
that will put you into an infinite loop that looks for "north south east or west".
So while your in this mode (anywhere btw) just type in "North" and press enter, then watch the debug screen go crazy.
brsnad new version!!! works better I swear!! half my crap in the last one wasnt working
i got to go to work
try it
I will leave a cope of my varock scipt here for easy testing, but the newest one will be on the link provided above.

FUNCTION GregGlobalAlign(direction: CHAR): BOOLEAN;
VAR
here, seperation, numberpoints, globalTries, pointtotest, distchange,
newx, oldx, newy, oldy, tnewy, tnewx, stupid, timesat: INTEGER;
xkeyPoint: ARRAY[0..40] OF INTEGER;
ykeyPoint: ARRAY[0..40] OF INTEGER;
slope: DOUBLE;
BEGIN
Result := False;
here := 0;
globaltries := 0;
oldx := 0;
oldy := 0;
newx := MMX1;
newy := MMY1;
stupid := 20;
seperation := 4 - 1;
numberpoints := 10;
timesat := 3;
markTime(mark);
MakeCompass(direction);
wait(500 + random(500));
REPEAT
//globaltries := globaltries + 1;
newx := MMX1;
here := 0;
REPEAT
newx := newx + 1;
newy := MMY1;
REPEAT
newy := newy + 1;
IF (here >= numberpoints) THEN
BEGIN
Greg('we have enough points now');
Greg('we have recieved ' + IntToStr(here) + ' points to wokr with');
Greg('taking the first and last to calculate (y) slope...');
IF ((xkeyPoint[here - 1] - xKeyPoint[0]) = 0) THEN
BEGIN
Greg('wrong!');
END
ELSE
BEGIN
slope := (ykeyPoint[here - 1] - yKeyPoint[0]) DIV
(xkeyPoint[here - 1] - xKeyPoint[0]);
END;
//Greg('the slope is: '+inttostr(slope));
writeln('y is ' + IntToStr(ykeypoint[here - 1]) +
' and y1 is ' + IntToStr(ykeypoint[0]) + 'the slope is ' +
floattostr(slope));
Greg('verifying slope with random point to make sure its not stupid');
pointtotest := 1 + random(here - 1);
newy := ykeyPoint[pointtotest];
newx := xkeyPoint[pointtotest];
distchange := newx - xkeypoint[0];
Greg('x1 is ' + IntToStr(newx) + ' and x is dist change is ' +
IntToStr(distchange));
IF ((((ykeypoint[0] * 10) + (slope * 10 * distchange)) >=
(newy * 10) - 9) AND//9 means .9 whitch is max error i alow due to floats
((((ykeypoint[0] * 10) + (slope * 10 * distchange)) <=
(newy * 10) + 9))) THEN
BEGIN
Greg('the slope is not bogus');
globaltries := 0;
IF (slope > 0) THEN
BEGIN
Greg('the slope is biger then zero, rotate left');
globaltries := 0;//globaltries - 1;
KeyDown(VK_LEFT);
wait(30 + Random(30));
KeyUp(VK_LEFT);
wait(500 + Random(500));
END;
IF (slope < 0) THEN
BEGIN
Greg('the slope is less than zero, rotate right');
globaltries := 0;//globaltries - 1;
KeyDown(VK_RIGHT);
wait(30 + Random(30));
KeyUp(VK_RIGHT);
wait(500 + Random(500));
END;
IF (slope = 0) THEN
BEGIN
Greg('we fixed the angle perfectly');
globaltries := 100000;
Result := True;
END;
END
ELSE
BEGIN
Greg('bogus slope');
END;
here := 0;
END;
IF (SimilarColors(16116715, getColor(newx, newy), 25) AND
(here <= numberpoints+1)) THEN
BEGIN
Greg('Similar color...x is: ' + IntToStr(newx) + 'y is :' +
IntToStr(newy));
IF ((newx - xKeyPoint[0]) = 0) THEN
BEGIN
Greg('wrong!');
slope := 9000;
END
ELSE
BEGIN
slope := (newy - yKeyPoint[0]) DIV (newx - xKeyPoint[0]);
//Greg('temp slope: ' + floattostr(slope*100));
END;
//BAD WAY-->if (((newy - oldy) >= -1) and ((newy - oldy) <= 1)) then
IF (((slope * 100) >= (-1 * stupid)) AND ((slope * 100) <= stupid)) THEN
BEGIN
Greg('passed slope test slope: ' + floattostr(slope));
IF (here > 0) THEN
BEGIN
pointtotest := random(here - 1);
tnewy := ykeyPoint[pointtotest];
tnewx := xkeyPoint[pointtotest];
slope := (oldy - yKeyPoint[0]) DIV (oldx - xKeyPoint[0]);
distchange := tnewx - xkeypoint[0];
Greg('the point to test it here:'+inttostr(pointtotest));
Greg('x1 is ' + IntToStr(tnewx) + ' and x0 is '+inttostr(xkeypoint[0]));
Greg('y1 is ' + IntToStr(tnewx) + ' and y0 is '+inttostr(ykeypoint[0]));
// IntToStr(distchange));
Greg('y0 is ' + IntToStr(ykeypoint[0]) + ' and slope is ' + floattostr(slope)+ 'dist change is ' + IntToStr(distchange));
Greg('y0 plus slop time dist is ' + floattostr(ykeypoint[0] +( slope * distchange)) +
' and newy is =' + IntToStr(tnewy));
IF ((((ykeypoint[0] * 10) + (slope * 10 * distchange)) >=
(tnewy * 10) - 9) AND//9 is max tolerance i wil allow off from floats =.9
((((ykeypoint[0] * 10) + (slope * 10 * distchange)) <=
(tnewy * 10) + 9))) THEN
BEGIN

Greg('pased slope check addition point.');
Greg(' here is'+inttostr(here)+' point...x is: ' +
IntToStr(newx) + 'y is :' + IntToStr(newy));
xkeyPoint[here] := oldx;
ykeyPoint[here] := oldy;
oldx := newx;
oldy := newy;
here := here + 1;
newx := newx + seperation;
END
ELSE
BEGIN
Greg('point doent match, starting here');
here := 0;
oldx := newx;
oldy := newy;
xkeyPoint[here] := oldx;
ykeyPoint[here] := oldy;
END;

END
ELSE
BEGIN
Greg('new pont by default');
Greg(' here is'+inttostr(here)+' point...x is: ' +
IntToStr(newx) + 'y is :' + IntToStr(newy));
xkeyPoint[here] := oldx;
ykeyPoint[here] := oldy;
oldx := newx;
oldy := newy;
here := here + 1;
newx := newx + seperation;
END;

END
ELSE
BEGIN
Greg('point doent match, starting here');
here := 0;
oldx := newx;
oldy := newy;
xkeyPoint[here] := oldx;
ykeyPoint[here] := oldy;
END;
break;
END;
UNTIL ((newy >= MMY2) OR (here > 12) OR (globalTries > 100))
UNTIL ((newx >= MMX2) OR (here > 12));
//Greg('went through all the points, non matched!!');
//Greg('uping alowed slope');
stupid := stupid + 10;
IF ((timesat MOD 1) = 0) THEN//change the mod number to up the stupid more per level
BEGIN
stupid := 44;
globaltries := globaltries + 1;
END;
CASE globaltries OF
1:
BEGIN
seperation := 3 - 1;
numberpoints := 9;
//line is 27 pixels long
END;
2:
BEGIN
seperation := 3 - 1;
numberpoints := 8;
//line is 24 pixels long
END;
3:
BEGIN
seperation := 3 - 1;
numberpoints := 6;
//line is 18 pixels long
END;
4:
BEGIN
seperation := 2 - 1;
numberpoints := 7;
//line is 14 pixels long
END;
5:
BEGIN
seperation := 1 - 1;
numberpoints := 9;
//line is 10 pixels long
END;
END;
timesat := timesat + 1;
Greg('');
Greg('');
Greg('');
Greg('alowed slope:' + IntToStr(Stupid) + ' num points: ' +
IntToStr(numberpoints) + ' seperation ' + IntToStr(seperation) +
' globaltries is ' + IntToStr(globaltries));
IF (TimeFromMark(Mark) > (1000 * 30)) THEN
BEGIN
Result := False;
break;
END;
UNTIL (globaltries > 6);
Greg('exited');
END;
//************************************************************************//

Bobarkinator

2007-06-15 23:28:45

:p

Click the smile. But good work anyways.

LordGregGreg

2007-06-15 23:38:52

From: bobarkinator
:p

Click the smile. But good work anyways.

O. What the crap. Surly it can't be as good as mine…

Edit: oh. I needed to update!
function GregGlobalAlign(direction: char)

Edit Edit, Ok, yeah, mine works better in the right situations.

nielsie95

2007-06-16 03:24:33

I tested it (VE), and it didn't work for me.. It keeps turning, even if it's near the right angle. And it lags pretty much..

LordGregGreg

2007-06-16 03:28:00

From: nielsie95
I tested it (VE), and it didn't work for me.. It keeps turning, even if it's near the right angle. And it lags pretty much..

the lag is mainly from the infinate loop that searches for you typing text.

Edit : (Notices 0 views)
Um, did you test with the right update?

nielsie95

2007-06-16 03:51:02

I tried the function in the tags.. I don't know if that's the updated one..?

LordGregGreg

2007-06-16 10:35:05

From: nielsie95
I tried the function in the tags.. I don't know if that's the updated one..?

I thought it was, but ill go update it now just to be sure.

LordGregGreg

2007-06-16 11:44:32

brsnad new version!!! works better I swear!! half my crap in the last one wasnt working
i got to go to work
try it

Widget

2007-06-17 08:15:14

I'm assuming Greg() means Writeln()..?

Anyway, it was still off when it finished, giving me this:
Successfully compiled
Line 168: [Hint] (177:1): Variable 'NEWLINE' never used in script C:\Program Files\SCAR 3.06\includes\srl\srl\core\Globals.scar
SRL Compiled in 125msec.
addition point...x is: 593y is :33
addition point...x is: 598y is :32
addition point...x is: 602y is :32
addition point...x is: 607y is :31
addition point...x is: 611y is :31
addition point...x is: 615y is :31
addition point...x is: 619y is :30
addition point...x is: 623y is :30
addition point...x is: 627y is :29
addition point...x is: 631y is :29
addition point...x is: 635y is :28
we have enough points now
we have recieved 11 points to wokr with
taking the first and last to calculate (y) slope...
y is 29 and y1 is 0the slope is 0.045958795562599
verifying slope with random point to make sure its not stupid
x1 is 631 and x is dist change is 631
the slope is not bogus
the slope is biger then zero, rotate left
addition point...x is: 631y is :29
wrong!
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 646y is :35
addition point...x is: 650y is :35
addition point...x is: 654y is :34
addition point...x is: 658y is :34
addition point...x is: 662y is :33
addition point...x is: 666y is :33
point doent match, starting here
addition point...x is: 671y is :28
addition point...x is: 675y is :28
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 687y is :102
addition point...x is: 691y is :103
point doent match, starting here
point doent match, starting here
addition point...x is: 697y is :109
point doent match, starting here
addition point...x is: 702y is :75
addition point...x is: 706y is :75
point doent match, starting here
addition point...x is: 711y is :92
point doent match, starting here
addition point...x is: 716y is :73



alowed slope:44 num points: 9 seperation 2 globaltries is 1
addition point...x is: 593y is :33
addition point...x is: 598y is :32
addition point...x is: 602y is :32
addition point...x is: 607y is :31
addition point...x is: 611y is :31
addition point...x is: 615y is :31
point doent match, starting here
addition point...x is: 620y is :30
addition point...x is: 623y is :30
addition point...x is: 626y is :29
addition point...x is: 629y is :29
addition point...x is: 632y is :29
addition point...x is: 635y is :28
addition point...x is: 638y is :31
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 646y is :35
addition point...x is: 649y is :35
addition point...x is: 652y is :35
addition point...x is: 655y is :34
addition point...x is: 658y is :34
addition point...x is: 661y is :34
addition point...x is: 664y is :33
addition point...x is: 667y is :32
addition point...x is: 670y is :28
addition point...x is: 673y is :28
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 28 and y1 is 35the slope is -0.28
verifying slope with random point to make sure its not stupid
x1 is 661 and x is dist change is 16
bogus slope
addition point...x is: 661y is :34
point doent match, starting here
addition point...x is: 665y is :33
point doent match, starting here
point doent match, starting here
addition point...x is: 670y is :28
addition point...x is: 673y is :28
addition point...x is: 676y is :28
addition point...x is: 679y is :25
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 687y is :102
addition point...x is: 690y is :102
point doent match, starting here
addition point...x is: 694y is :110
addition point...x is: 697y is :109
point doent match, starting here
addition point...x is: 701y is :75
addition point...x is: 704y is :75
addition point...x is: 707y is :74
point doent match, starting here
addition point...x is: 711y is :92
point doent match, starting here
point doent match, starting here
addition point...x is: 716y is :73
point doent match, starting here



alowed slope:54 num points: 9 seperation 2 globaltries is 1
addition point...x is: 593y is :33
addition point...x is: 598y is :32
addition point...x is: 602y is :32
addition point...x is: 607y is :31
addition point...x is: 611y is :31
addition point...x is: 615y is :31
addition point...x is: 619y is :30
addition point...x is: 622y is :30
point doent match, starting here
addition point...x is: 626y is :29
addition point...x is: 629y is :29
addition point...x is: 632y is :29
addition point...x is: 635y is :28
addition point...x is: 638y is :31
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 646y is :35
addition point...x is: 649y is :35
addition point...x is: 652y is :35
addition point...x is: 655y is :34
addition point...x is: 658y is :34
addition point...x is: 661y is :34
addition point...x is: 664y is :33
addition point...x is: 667y is :32
addition point...x is: 670y is :28
addition point...x is: 673y is :28
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 28 and y1 is 35the slope is -0.28
verifying slope with random point to make sure its not stupid
x1 is 652 and x is dist change is 7
bogus slope
addition point...x is: 652y is :35
addition point...x is: 655y is :34
addition point...x is: 658y is :34
addition point...x is: 661y is :34
point doent match, starting here
addition point...x is: 665y is :33
point doent match, starting here
point doent match, starting here
addition point...x is: 670y is :28
addition point...x is: 673y is :28
addition point...x is: 676y is :28
addition point...x is: 679y is :25
addition point...x is: 682y is :22
point doent match, starting here
point doent match, starting here
addition point...x is: 687y is :102
addition point...x is: 690y is :102
point doent match, starting here
addition point...x is: 694y is :110
addition point...x is: 697y is :109
point doent match, starting here
addition point...x is: 701y is :75
addition point...x is: 704y is :75
addition point...x is: 707y is :74
point doent match, starting here
addition point...x is: 711y is :92
point doent match, starting here
point doent match, starting here
addition point...x is: 716y is :73
point doent match, starting here



alowed slope:64 num points: 9 seperation 2 globaltries is 1
addition point...x is: 593y is :33
addition point...x is: 598y is :32
addition point...x is: 602y is :32
addition point...x is: 607y is :31
addition point...x is: 611y is :31
addition point...x is: 615y is :31
addition point...x is: 619y is :30
addition point...x is: 622y is :30
addition point...x is: 625y is :29
addition point...x is: 628y is :29
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 29 and y1 is 81the slope is 0.553191489361702
verifying slope with random point to make sure its not stupid
x1 is 619 and x is dist change is -100
bogus slope
addition point...x is: 619y is :30
addition point...x is: 622y is :30
addition point...x is: 625y is :29
wrong!
point doent match, starting here
addition point...x is: 629y is :29
addition point...x is: 632y is :29
addition point...x is: 635y is :28
addition point...x is: 638y is :31
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 646y is :35
addition point...x is: 649y is :35
addition point...x is: 652y is :35
addition point...x is: 655y is :34
addition point...x is: 658y is :34
addition point...x is: 661y is :34
addition point...x is: 664y is :33
addition point...x is: 667y is :32
addition point...x is: 670y is :28
addition point...x is: 673y is :28
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 28 and y1 is 35the slope is -0.28
verifying slope with random point to make sure its not stupid
x1 is 670 and x is dist change is 25
the slope is not bogus
the slope is less than zero, rotate right
addition point...x is: 670y is :28
wrong!
point doent match, starting here
addition point...x is: 674y is :28
addition point...x is: 677y is :27
addition point...x is: 680y is :24
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 687y is :102
addition point...x is: 690y is :102
point doent match, starting here
addition point...x is: 694y is :110
addition point...x is: 697y is :109
point doent match, starting here
addition point...x is: 701y is :75
addition point...x is: 704y is :75
addition point...x is: 707y is :74
point doent match, starting here
addition point...x is: 711y is :92
point doent match, starting here
point doent match, starting here
addition point...x is: 716y is :73
point doent match, starting here



alowed slope:44 num points: 9 seperation 2 globaltries is 1
addition point...x is: 593y is :33
addition point...x is: 598y is :32
addition point...x is: 602y is :32
point doent match, starting here
addition point...x is: 608y is :31
addition point...x is: 611y is :31
addition point...x is: 615y is :31
point doent match, starting here
point doent match, starting here
addition point...x is: 620y is :30
addition point...x is: 623y is :30
addition point...x is: 626y is :29
addition point...x is: 629y is :29
addition point...x is: 632y is :29
addition point...x is: 635y is :28
addition point...x is: 638y is :31
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 646y is :35
addition point...x is: 649y is :35
addition point...x is: 652y is :35
addition point...x is: 655y is :34
addition point...x is: 658y is :34
addition point...x is: 661y is :34
addition point...x is: 664y is :33
addition point...x is: 667y is :32
addition point...x is: 670y is :28
addition point...x is: 673y is :28
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 28 and y1 is 35the slope is -0.28
verifying slope with random point to make sure its not stupid
x1 is 664 and x is dist change is 19
bogus slope
addition point...x is: 664y is :33
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 670y is :28
addition point...x is: 673y is :28
addition point...x is: 676y is :28
addition point...x is: 679y is :25
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 687y is :102
addition point...x is: 690y is :102
point doent match, starting here
addition point...x is: 694y is :110
addition point...x is: 697y is :109
point doent match, starting here
addition point...x is: 701y is :75
addition point...x is: 704y is :75
addition point...x is: 707y is :74
point doent match, starting here
addition point...x is: 711y is :92
point doent match, starting here
point doent match, starting here
addition point...x is: 716y is :73
point doent match, starting here



alowed slope:54 num points: 9 seperation 2 globaltries is 1
addition point...x is: 593y is :33
addition point...x is: 598y is :32
addition point...x is: 602y is :32
addition point...x is: 607y is :31
addition point...x is: 611y is :31
addition point...x is: 615y is :31
addition point...x is: 618y is :93
addition point...x is: 621y is :30
point doent match, starting here
addition point...x is: 625y is :29
addition point...x is: 628y is :29
addition point...x is: 631y is :29
addition point...x is: 634y is :28
addition point...x is: 637y is :30
addition point...x is: 640y is :33
addition point...x is: 643y is :35
addition point...x is: 646y is :35
addition point...x is: 649y is :35
addition point...x is: 652y is :35
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 35 and y1 is 29the slope is 0.24
verifying slope with random point to make sure its not stupid
x1 is 637 and x is dist change is 13
bogus slope
addition point...x is: 637y is :30
addition point...x is: 640y is :33
addition point...x is: 643y is :35
addition point...x is: 646y is :35
addition point...x is: 649y is :35
wrong!
point doent match, starting here
point doent match, starting here
addition point...x is: 654y is :34
addition point...x is: 657y is :34
addition point...x is: 660y is :34
addition point...x is: 663y is :33
addition point...x is: 666y is :33
addition point...x is: 669y is :28
addition point...x is: 672y is :28
addition point...x is: 675y is :28
addition point...x is: 678y is :27
addition point...x is: 681y is :23
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 27 and y1 is 34the slope is -0.28
verifying slope with random point to make sure its not stupid
x1 is 654 and x is dist change is 1
bogus slope
addition point...x is: 654y is :34
addition point...x is: 657y is :34
addition point...x is: 660y is :34
point doent match, starting here
addition point...x is: 664y is :33
addition point...x is: 667y is :32
point doent match, starting here
addition point...x is: 671y is :28
addition point...x is: 674y is :28
addition point...x is: 677y is :27
addition point...x is: 680y is :24
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 687y is :102
addition point...x is: 690y is :102
point doent match, starting here
addition point...x is: 694y is :110
addition point...x is: 697y is :109
point doent match, starting here
addition point...x is: 701y is :75
addition point...x is: 704y is :75
addition point...x is: 707y is :74
point doent match, starting here
addition point...x is: 711y is :92
point doent match, starting here
point doent match, starting here
addition point...x is: 716y is :73
point doent match, starting here



alowed slope:64 num points: 9 seperation 2 globaltries is 1
addition point...x is: 593y is :33
addition point...x is: 598y is :32
addition point...x is: 602y is :32
addition point...x is: 607y is :31
addition point...x is: 611y is :31
addition point...x is: 615y is :31
addition point...x is: 618y is :93
addition point...x is: 621y is :30
addition point...x is: 624y is :29
addition point...x is: 627y is :29
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 29 and y1 is 81the slope is 0.547368421052632
verifying slope with random point to make sure its not stupid
x1 is 593 and x is dist change is -126
bogus slope
addition point...x is: 593y is :33
addition point...x is: 598y is :32
addition point...x is: 602y is :32
addition point...x is: 607y is :31
addition point...x is: 611y is :31
addition point...x is: 615y is :31
point doent match, starting here
point doent match, starting here
addition point...x is: 620y is :30
addition point...x is: 623y is :30
addition point...x is: 626y is :29
addition point...x is: 629y is :29
addition point...x is: 632y is :29
addition point...x is: 635y is :28
addition point...x is: 638y is :31
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 646y is :35
addition point...x is: 649y is :35
addition point...x is: 652y is :35
addition point...x is: 655y is :34
addition point...x is: 658y is :34
addition point...x is: 661y is :34
addition point...x is: 664y is :33
addition point...x is: 667y is :32
addition point...x is: 670y is :28
addition point...x is: 673y is :28
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 28 and y1 is 35the slope is -0.28
verifying slope with random point to make sure its not stupid
x1 is 670 and x is dist change is 25
the slope is not bogus
the slope is less than zero, rotate right
addition point...x is: 670y is :28
wrong!
point doent match, starting here
addition point...x is: 674y is :28
addition point...x is: 677y is :27
addition point...x is: 680y is :24
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 687y is :102
addition point...x is: 690y is :102
point doent match, starting here
addition point...x is: 694y is :110
addition point...x is: 697y is :109
point doent match, starting here
addition point...x is: 701y is :75
addition point...x is: 704y is :75
addition point...x is: 707y is :74
point doent match, starting here
addition point...x is: 711y is :92
point doent match, starting here
point doent match, starting here
addition point...x is: 716y is :73
point doent match, starting here



alowed slope:44 num points: 9 seperation 2 globaltries is 1
addition point...x is: 593y is :33
addition point...x is: 598y is :32
addition point...x is: 602y is :32
point doent match, starting here
addition point...x is: 608y is :31
addition point...x is: 611y is :31
addition point...x is: 615y is :31
point doent match, starting here
point doent match, starting here
addition point...x is: 620y is :30
addition point...x is: 623y is :30
addition point...x is: 626y is :29
addition point...x is: 629y is :29
addition point...x is: 632y is :29
addition point...x is: 635y is :28
addition point...x is: 638y is :31
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 646y is :35
addition point...x is: 649y is :35
addition point...x is: 652y is :35
addition point...x is: 655y is :34
addition point...x is: 658y is :34
addition point...x is: 661y is :34
addition point...x is: 664y is :33
addition point...x is: 667y is :32
addition point...x is: 670y is :28
addition point...x is: 673y is :28
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 28 and y1 is 35the slope is -0.28
verifying slope with random point to make sure its not stupid
x1 is 667 and x is dist change is 22
bogus slope
addition point...x is: 667y is :32
addition point...x is: 670y is :28
wrong!
point doent match, starting here
addition point...x is: 674y is :28
addition point...x is: 677y is :27
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 687y is :102
addition point...x is: 690y is :102
point doent match, starting here
addition point...x is: 694y is :110
addition point...x is: 697y is :109
point doent match, starting here
addition point...x is: 701y is :75
addition point...x is: 704y is :75
addition point...x is: 707y is :74
point doent match, starting here
addition point...x is: 711y is :92
point doent match, starting here
point doent match, starting here
addition point...x is: 716y is :73
point doent match, starting here



alowed slope:54 num points: 9 seperation 2 globaltries is 1
addition point...x is: 593y is :33
addition point...x is: 598y is :32
addition point...x is: 602y is :32
addition point...x is: 607y is :31
addition point...x is: 611y is :31
addition point...x is: 615y is :31
addition point...x is: 618y is :81
addition point...x is: 621y is :30
point doent match, starting here
addition point...x is: 625y is :29
addition point...x is: 628y is :29
addition point...x is: 631y is :29
addition point...x is: 634y is :28
addition point...x is: 637y is :30
addition point...x is: 640y is :33
addition point...x is: 643y is :35
addition point...x is: 646y is :35
addition point...x is: 649y is :35
addition point...x is: 652y is :35
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 35 and y1 is 29the slope is 0.24
verifying slope with random point to make sure its not stupid
x1 is 637 and x is dist change is 13
bogus slope
addition point...x is: 637y is :30
addition point...x is: 640y is :33
addition point...x is: 643y is :35
addition point...x is: 646y is :35
addition point...x is: 649y is :35
wrong!
point doent match, starting here
point doent match, starting here
addition point...x is: 654y is :34
addition point...x is: 657y is :34
addition point...x is: 660y is :34
addition point...x is: 663y is :33
addition point...x is: 666y is :33
addition point...x is: 669y is :28
addition point...x is: 672y is :28
addition point...x is: 675y is :28
addition point...x is: 678y is :27
addition point...x is: 681y is :23
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 27 and y1 is 34the slope is -0.28
verifying slope with random point to make sure its not stupid
x1 is 657 and x is dist change is 4
bogus slope
addition point...x is: 657y is :34
addition point...x is: 660y is :34
point doent match, starting here
addition point...x is: 664y is :33
addition point...x is: 667y is :32
point doent match, starting here
addition point...x is: 671y is :28
addition point...x is: 674y is :28
addition point...x is: 677y is :27
addition point...x is: 680y is :24
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 687y is :102
addition point...x is: 690y is :102
point doent match, starting here
addition point...x is: 694y is :110
addition point...x is: 697y is :109
point doent match, starting here
addition point...x is: 701y is :75
addition point...x is: 704y is :75
addition point...x is: 707y is :74
point doent match, starting here
addition point...x is: 711y is :92
point doent match, starting here
point doent match, starting here
addition point...x is: 716y is :73
point doent match, starting here



alowed slope:64 num points: 9 seperation 2 globaltries is 1
addition point...x is: 593y is :33
addition point...x is: 598y is :32
addition point...x is: 602y is :32
addition point...x is: 607y is :31
addition point...x is: 611y is :31
addition point...x is: 615y is :31
addition point...x is: 618y is :81
addition point...x is: 621y is :30
addition point...x is: 624y is :29
addition point...x is: 627y is :29
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 29 and y1 is 81the slope is 0.547368421052632
verifying slope with random point to make sure its not stupid
x1 is 624 and x is dist change is -95
the slope is not bogus
the slope is biger then zero, rotate left
addition point...x is: 624y is :29
wrong!
point doent match, starting here
addition point...x is: 628y is :29
addition point...x is: 631y is :29
addition point...x is: 634y is :28
addition point...x is: 637y is :30
addition point...x is: 640y is :33
addition point...x is: 643y is :35
addition point...x is: 646y is :35
addition point...x is: 649y is :35
addition point...x is: 652y is :35
addition point...x is: 655y is :34
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 35 and y1 is 29the slope is 0.24
verifying slope with random point to make sure its not stupid
x1 is 631 and x is dist change is 4
bogus slope
addition point...x is: 631y is :29
addition point...x is: 634y is :28
addition point...x is: 637y is :30
addition point...x is: 640y is :33
addition point...x is: 643y is :35
addition point...x is: 646y is :35
addition point...x is: 649y is :35
addition point...x is: 652y is :35
wrong!
point doent match, starting here
addition point...x is: 656y is :34
addition point...x is: 659y is :34
addition point...x is: 662y is :33
addition point...x is: 665y is :33
addition point...x is: 668y is :30
addition point...x is: 671y is :28
addition point...x is: 674y is :28
addition point...x is: 677y is :27
addition point...x is: 680y is :24
addition point...x is: 683y is :20
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 24 and y1 is 34the slope is -0.4
verifying slope with random point to make sure its not stupid
x1 is 680 and x is dist change is 25
the slope is not bogus
the slope is less than zero, rotate right
addition point...x is: 680y is :33
wrong!
point doent match, starting here
addition point...x is: 684y is :33
addition point...x is: 687y is :33
addition point...x is: 690y is :30
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 698y is :118
point doent match, starting here
addition point...x is: 702y is :84
addition point...x is: 705y is :85
addition point...x is: 708y is :85
point doent match, starting here
addition point...x is: 712y is :103
point doent match, starting here
addition point...x is: 716y is :85



alowed slope:44 num points: 9 seperation 2 globaltries is 1
addition point...x is: 595y is :42
point doent match, starting here
point doent match, starting here
addition point...x is: 605y is :25
addition point...x is: 608y is :25
addition point...x is: 612y is :25
point doent match, starting here
point doent match, starting here
addition point...x is: 617y is :25
addition point...x is: 620y is :25
addition point...x is: 624y is :26
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 630y is :26
addition point...x is: 633y is :26
addition point...x is: 636y is :26
addition point...x is: 639y is :26
addition point...x is: 642y is :27
addition point...x is: 645y is :28
addition point...x is: 648y is :31
addition point...x is: 651y is :34
addition point...x is: 654y is :36
addition point...x is: 657y is :36
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 36 and y1 is 26the slope is 0.4
verifying slope with random point to make sure its not stupid
x1 is 645 and x is dist change is 16
bogus slope
addition point...x is: 645y is :28
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 653y is :36
addition point...x is: 656y is :36
addition point...x is: 659y is :36
addition point...x is: 662y is :36
addition point...x is: 665y is :36
addition point...x is: 668y is :36
addition point...x is: 671y is :37
addition point...x is: 674y is :37
addition point...x is: 677y is :34
addition point...x is: 680y is :33
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 34 and y1 is 36the slope is -0.08
verifying slope with random point to make sure its not stupid
x1 is 677 and x is dist change is 25
the slope is not bogus
the slope is less than zero, rotate right
addition point...x is: 677y is :41
wrong!
point doent match, starting here
point doent match, starting here
addition point...x is: 682y is :42
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 688y is :39
addition point...x is: 691y is :40
addition point...x is: 694y is :40
addition point...x is: 697y is :39
addition point...x is: 700y is :37
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 706y is :94
point doent match, starting here
point doent match, starting here
addition point...x is: 713y is :96
point doent match, starting here



alowed slope:54 num points: 9 seperation 2 globaltries is 0
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 614y is :18
point doent match, starting here
point doent match, starting here
addition point...x is: 619y is :19
addition point...x is: 622y is :20
point doent match, starting here
point doent match, starting here
addition point...x is: 627y is :21
addition point...x is: 630y is :22
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 636y is :23
addition point...x is: 639y is :24
addition point...x is: 642y is :24
addition point...x is: 645y is :25
addition point...x is: 648y is :26
addition point...x is: 651y is :26
addition point...x is: 654y is :27
addition point...x is: 657y is :32
point doent match, starting here
addition point...x is: 661y is :37
addition point...x is: 664y is :38
addition point...x is: 667y is :38
addition point...x is: 670y is :39
addition point...x is: 673y is :40
addition point...x is: 676y is :41
addition point...x is: 679y is :41
addition point...x is: 682y is :42
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 688y is :39
addition point...x is: 691y is :40
addition point...x is: 694y is :40
addition point...x is: 697y is :39
addition point...x is: 700y is :37
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 706y is :94
point doent match, starting here
point doent match, starting here
addition point...x is: 713y is :96
addition point...x is: 716y is :98



alowed slope:64 num points: 9 seperation 2 globaltries is 0
addition point...x is: 606y is :37
addition point...x is: 609y is :115
addition point...x is: 612y is :104
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 619y is :19
addition point...x is: 622y is :20
point doent match, starting here
point doent match, starting here
addition point...x is: 627y is :21
addition point...x is: 630y is :22
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 636y is :23
addition point...x is: 639y is :24
addition point...x is: 642y is :24
addition point...x is: 645y is :25
addition point...x is: 648y is :26
addition point...x is: 651y is :26
addition point...x is: 654y is :27
addition point...x is: 657y is :32
addition point...x is: 660y is :37
addition point...x is: 663y is :38
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 37 and y1 is 23the slope is 0.56
verifying slope with random point to make sure its not stupid
x1 is 639 and x is dist change is 4
bogus slope
addition point...x is: 639y is :24
point doent match, starting here
addition point...x is: 643y is :24
addition point...x is: 646y is :25
addition point...x is: 649y is :26
addition point...x is: 652y is :26
addition point...x is: 655y is :28
addition point...x is: 658y is :33
point doent match, starting here
addition point...x is: 662y is :37
addition point...x is: 665y is :38
addition point...x is: 668y is :39
addition point...x is: 671y is :39
addition point...x is: 674y is :40
addition point...x is: 677y is :41
addition point...x is: 680y is :41
addition point...x is: 683y is :41
point doent match, starting here
point doent match, starting here
addition point...x is: 688y is :39
addition point...x is: 691y is :40
addition point...x is: 694y is :40
addition point...x is: 697y is :39
addition point...x is: 700y is :37
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 706y is :94
point doent match, starting here
point doent match, starting here
addition point...x is: 713y is :96
addition point...x is: 716y is :98



alowed slope:44 num points: 9 seperation 2 globaltries is 1
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 614y is :18
point doent match, starting here
point doent match, starting here
addition point...x is: 619y is :19
addition point...x is: 622y is :20
point doent match, starting here
point doent match, starting here
addition point...x is: 627y is :21
addition point...x is: 630y is :22
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 636y is :23
addition point...x is: 639y is :24
addition point...x is: 642y is :24
addition point...x is: 645y is :25
addition point...x is: 648y is :26
addition point...x is: 651y is :26
addition point...x is: 654y is :27
addition point...x is: 657y is :32
point doent match, starting here
addition point...x is: 661y is :37
addition point...x is: 664y is :38
addition point...x is: 667y is :38
addition point...x is: 670y is :39
addition point...x is: 673y is :40
addition point...x is: 676y is :41
addition point...x is: 679y is :41
addition point...x is: 682y is :42
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 688y is :39
addition point...x is: 691y is :40
addition point...x is: 694y is :40
addition point...x is: 697y is :39
addition point...x is: 700y is :37
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 706y is :94
point doent match, starting here
point doent match, starting here
addition point...x is: 713y is :96
point doent match, starting here



alowed slope:54 num points: 9 seperation 2 globaltries is 1
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 614y is :18
point doent match, starting here
point doent match, starting here
addition point...x is: 619y is :19
addition point...x is: 622y is :20
point doent match, starting here
point doent match, starting here
addition point...x is: 627y is :21
addition point...x is: 630y is :22
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 636y is :23
addition point...x is: 639y is :24
addition point...x is: 642y is :24
addition point...x is: 645y is :25
addition point...x is: 648y is :26
addition point...x is: 651y is :26
addition point...x is: 654y is :27
addition point...x is: 657y is :32
point doent match, starting here
addition point...x is: 661y is :37
addition point...x is: 664y is :38
addition point...x is: 667y is :38
addition point...x is: 670y is :39
addition point...x is: 673y is :40
addition point...x is: 676y is :41
addition point...x is: 679y is :41
addition point...x is: 682y is :42
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 688y is :39
addition point...x is: 691y is :40
addition point...x is: 694y is :40
addition point...x is: 697y is :39
addition point...x is: 700y is :37
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 706y is :94
point doent match, starting here
point doent match, starting here
addition point...x is: 713y is :96
addition point...x is: 716y is :98



alowed slope:64 num points: 9 seperation 2 globaltries is 1
addition point...x is: 606y is :37
addition point...x is: 609y is :115
addition point...x is: 612y is :104
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 619y is :19
addition point...x is: 622y is :20
point doent match, starting here
point doent match, starting here
addition point...x is: 627y is :21
addition point...x is: 630y is :22
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 636y is :23
addition point...x is: 639y is :24
addition point...x is: 642y is :24
addition point...x is: 645y is :25
addition point...x is: 648y is :26
addition point...x is: 651y is :26
addition point...x is: 654y is :27
addition point...x is: 657y is :32
addition point...x is: 660y is :37
addition point...x is: 663y is :38
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 37 and y1 is 23the slope is 0.56
verifying slope with random point to make sure its not stupid
x1 is 642 and x is dist change is 7
bogus slope
addition point...x is: 642y is :24
point doent match, starting here
addition point...x is: 646y is :25
addition point...x is: 649y is :26
addition point...x is: 652y is :26
addition point...x is: 655y is :28
addition point...x is: 658y is :33
point doent match, starting here
addition point...x is: 662y is :37
addition point...x is: 665y is :38
addition point...x is: 668y is :39
addition point...x is: 671y is :39
addition point...x is: 674y is :40
addition point...x is: 677y is :41
addition point...x is: 680y is :41
addition point...x is: 683y is :41
point doent match, starting here
point doent match, starting here
addition point...x is: 688y is :39
addition point...x is: 691y is :40
addition point...x is: 694y is :40
addition point...x is: 697y is :39
addition point...x is: 700y is :37
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 706y is :94
point doent match, starting here
point doent match, starting here
addition point...x is: 713y is :96
addition point...x is: 716y is :98



alowed slope:44 num points: 8 seperation 2 globaltries is 2
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 614y is :18
point doent match, starting here
point doent match, starting here
addition point...x is: 619y is :19
addition point...x is: 622y is :20
point doent match, starting here
point doent match, starting here
addition point...x is: 627y is :21
addition point...x is: 630y is :22
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 636y is :23
addition point...x is: 639y is :24
addition point...x is: 642y is :24
addition point...x is: 645y is :25
addition point...x is: 648y is :26
addition point...x is: 651y is :26
addition point...x is: 654y is :27
addition point...x is: 657y is :32
point doent match, starting here
addition point...x is: 661y is :37
addition point...x is: 664y is :38
addition point...x is: 667y is :38
addition point...x is: 670y is :39
addition point...x is: 673y is :40
addition point...x is: 676y is :41
addition point...x is: 679y is :41
addition point...x is: 682y is :42
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 688y is :39
addition point...x is: 691y is :40
addition point...x is: 694y is :40
addition point...x is: 697y is :39
addition point...x is: 700y is :37
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 706y is :94
point doent match, starting here
point doent match, starting here
addition point...x is: 713y is :96
point doent match, starting here



alowed slope:54 num points: 8 seperation 2 globaltries is 2
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 614y is :18
point doent match, starting here
point doent match, starting here
addition point...x is: 619y is :19
addition point...x is: 622y is :20
point doent match, starting here
point doent match, starting here
addition point...x is: 627y is :21
addition point...x is: 630y is :22
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 636y is :23
addition point...x is: 639y is :24
addition point...x is: 642y is :24
addition point...x is: 645y is :25
addition point...x is: 648y is :26
addition point...x is: 651y is :26
addition point...x is: 654y is :27
addition point...x is: 657y is :32
point doent match, starting here
addition point...x is: 661y is :37
addition point...x is: 664y is :38
addition point...x is: 667y is :38
addition point...x is: 670y is :39
addition point...x is: 673y is :40
addition point...x is: 676y is :41
addition point...x is: 679y is :41
addition point...x is: 682y is :42
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 688y is :39
addition point...x is: 691y is :40
addition point...x is: 694y is :40
addition point...x is: 697y is :39
addition point...x is: 700y is :37
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 706y is :94
point doent match, starting here
point doent match, starting here
addition point...x is: 713y is :96
addition point...x is: 716y is :98



alowed slope:64 num points: 8 seperation 2 globaltries is 2
addition point...x is: 606y is :37
addition point...x is: 609y is :115
addition point...x is: 612y is :104
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 619y is :19
addition point...x is: 622y is :20
point doent match, starting here
point doent match, starting here
addition point...x is: 627y is :21
addition point...x is: 630y is :22
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 636y is :23
addition point...x is: 639y is :24
addition point...x is: 642y is :24
addition point...x is: 645y is :25
addition point...x is: 648y is :26
addition point...x is: 651y is :26
addition point...x is: 654y is :27
addition point...x is: 657y is :32
addition point...x is: 660y is :37
we have enough points now
we have recieved 9 points to wokr with
taking the first and last to calculate (y) slope...
y is 32 and y1 is 23the slope is 0.409090909090909
verifying slope with random point to make sure its not stupid
x1 is 639 and x is dist change is 4
bogus slope
addition point...x is: 639y is :24
point doent match, starting here
addition point...x is: 643y is :24
addition point...x is: 646y is :25
addition point...x is: 649y is :26
addition point...x is: 652y is :26
addition point...x is: 655y is :28
addition point...x is: 658y is :33
point doent match, starting here
addition point...x is: 662y is :37
addition point...x is: 665y is :38
addition point...x is: 668y is :39
addition point...x is: 671y is :39
addition point...x is: 674y is :40
addition point...x is: 677y is :41
addition point...x is: 680y is :41
addition point...x is: 683y is :41
point doent match, starting here
point doent match, starting here
addition point...x is: 688y is :39
addition point...x is: 691y is :40
addition point...x is: 694y is :40
addition point...x is: 697y is :39
addition point...x is: 700y is :37
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 706y is :94
point doent match, starting here
point doent match, starting here
addition point...x is: 713y is :96
addition point...x is: 716y is :98



alowed slope:44 num points: 6 seperation 2 globaltries is 3
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 614y is :18
point doent match, starting here
point doent match, starting here
addition point...x is: 619y is :19
addition point...x is: 622y is :20
point doent match, starting here
point doent match, starting here
addition point...x is: 627y is :21
addition point...x is: 630y is :22
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 636y is :23
addition point...x is: 639y is :24
addition point...x is: 642y is :24
addition point...x is: 645y is :25
addition point...x is: 648y is :26
addition point...x is: 651y is :26
addition point...x is: 654y is :27
we have enough points now
we have recieved 7 points to wokr with
taking the first and last to calculate (y) slope...
y is 26 and y1 is 23the slope is 0.1875
verifying slope with random point to make sure its not stupid
x1 is 639 and x is dist change is 4
bogus slope
addition point...x is: 639y is :24
addition point...x is: 642y is :24
addition point...x is: 645y is :25
addition point...x is: 648y is :26
addition point...x is: 651y is :26
wrong!
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 661y is :37
addition point...x is: 664y is :38
addition point...x is: 667y is :38
addition point...x is: 670y is :39
addition point...x is: 673y is :40
addition point...x is: 676y is :41
addition point...x is: 679y is :41
we have enough points now
we have recieved 7 points to wokr with
taking the first and last to calculate (y) slope...
y is 41 and y1 is 37the slope is 0.25
verifying slope with random point to make sure its not stupid
x1 is 664 and x is dist change is 4
the slope is not bogus
the slope is biger then zero, rotate left
point doent match, starting here
point doent match, starting here
addition point...x is: 666y is :37
addition point...x is: 669y is :38
addition point...x is: 672y is :38
addition point...x is: 675y is :39
addition point...x is: 678y is :38
addition point...x is: 681y is :36
addition point...x is: 684y is :35
we have enough points now
we have recieved 7 points to wokr with
taking the first and last to calculate (y) slope...
y is 36 and y1 is 37the slope is -0.0625
verifying slope with random point to make sure its not stupid
x1 is 678 and x is dist change is 13
bogus slope
addition point...x is: 678y is :38
addition point...x is: 681y is :36
wrong!
point doent match, starting here
point doent match, starting here
addition point...x is: 686y is :36
addition point...x is: 689y is :36
addition point...x is: 692y is :34
addition point...x is: 695y is :33
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 701y is :88
addition point...x is: 704y is :88
addition point...x is: 707y is :89
point doent match, starting here
addition point...x is: 711y is :107
point doent match, starting here
point doent match, starting here
addition point...x is: 716y is :90



alowed slope:54 num points: 6 seperation 2 globaltries is 0
addition point...x is: 601y is :42
point doent match, starting here
addition point...x is: 608y is :22
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 617y is :23
addition point...x is: 620y is :23
addition point...x is: 624y is :24
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 634y is :25
addition point...x is: 637y is :25
addition point...x is: 640y is :26
addition point...x is: 643y is :26
addition point...x is: 646y is :27
addition point...x is: 649y is :28
addition point...x is: 652y is :32
we have enough points now
we have recieved 7 points to wokr with
taking the first and last to calculate (y) slope...
y is 28 and y1 is 25the slope is 0.1875
verifying slope with random point to make sure its not stupid
x1 is 649 and x is dist change is 16
the slope is not bogus
the slope is biger then zero, rotate left
addition point...x is: 649y is :28
wrong!
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 657y is :36
addition point...x is: 660y is :37
addition point...x is: 663y is :37
addition point...x is: 666y is :37
addition point...x is: 669y is :38
addition point...x is: 672y is :38
addition point...x is: 675y is :39
we have enough points now
we have recieved 7 points to wokr with
taking the first and last to calculate (y) slope...
y is 38 and y1 is 36the slope is 0.125
verifying slope with random point to make sure its not stupid
x1 is 666 and x is dist change is 10
bogus slope
addition point...x is: 666y is :37
addition point...x is: 669y is :38
addition point...x is: 672y is :38
wrong!
point doent match, starting here
addition point...x is: 676y is :39
addition point...x is: 679y is :37
point doent match, starting here
addition point...x is: 683y is :35
addition point...x is: 686y is :36
addition point...x is: 689y is :36
addition point...x is: 692y is :34
addition point...x is: 695y is :33
addition point...x is: 698y is :30
point doent match, starting here
addition point...x is: 702y is :88
addition point...x is: 705y is :88
addition point...x is: 708y is :89
point doent match, starting here
addition point...x is: 712y is :107
point doent match, starting here
addition point...x is: 716y is :90



alowed slope:64 num points: 6 seperation 2 globaltries is 0
addition point...x is: 607y is :22
addition point...x is: 610y is :54
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 617y is :23
addition point...x is: 620y is :23
addition point...x is: 624y is :24
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 634y is :25
addition point...x is: 637y is :25
addition point...x is: 640y is :26
addition point...x is: 643y is :26
addition point...x is: 646y is :27
addition point...x is: 649y is :28
addition point...x is: 652y is :32
we have enough points now
we have recieved 7 points to wokr with
taking the first and last to calculate (y) slope...
y is 28 and y1 is 25the slope is 0.1875
verifying slope with random point to make sure its not stupid
x1 is 649 and x is dist change is 16
the slope is not bogus
the slope is biger then zero, rotate left
addition point...x is: 649y is :28
wrong!
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 657y is :36
addition point...x is: 660y is :37
addition point...x is: 663y is :37
addition point...x is: 666y is :37
addition point...x is: 669y is :38
addition point...x is: 672y is :38
addition point...x is: 675y is :39
we have enough points now
we have recieved 7 points to wokr with
taking the first and last to calculate (y) slope...
y is 38 and y1 is 36the slope is 0.125
verifying slope with random point to make sure its not stupid
x1 is 663 and x is dist change is 7
the slope is not bogus
the slope is biger then zero, rotate left
point doent match, starting here
point doent match, starting here
addition point...x is: 665y is :35
addition point...x is: 668y is :35
addition point...x is: 671y is :35
addition point...x is: 674y is :32
addition point...x is: 677y is :31
addition point...x is: 680y is :31
addition point...x is: 683y is :31
we have enough points now
we have recieved 7 points to wokr with
taking the first and last to calculate (y) slope...
y is 31 and y1 is 35the slope is -0.25
verifying slope with random point to make sure its not stupid
x1 is 680 and x is dist change is 16
the slope is not bogus
the slope is less than zero, rotate right
addition point...x is: 680y is :34
wrong!
point doent match, starting here
addition point...x is: 684y is :34
addition point...x is: 687y is :35
addition point...x is: 690y is :34
addition point...x is: 693y is :31
addition point...x is: 696y is :28
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 702y is :86
addition point...x is: 705y is :86
addition point...x is: 708y is :87
point doent match, starting here
addition point...x is: 712y is :105
point doent match, starting here
addition point...x is: 716y is :87



alowed slope:44 num points: 9 seperation 2 globaltries is 1
point doent match, starting here
addition point...x is: 606y is :23
addition point...x is: 610y is :24
point doent match, starting here
point doent match, starting here
addition point...x is: 615y is :24
addition point...x is: 618y is :24
addition point...x is: 622y is :25
point doent match, starting here
addition point...x is: 626y is :143
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 632y is :26
addition point...x is: 635y is :26
addition point...x is: 638y is :26
addition point...x is: 641y is :26
addition point...x is: 644y is :27
addition point...x is: 647y is :28
addition point...x is: 650y is :31
addition point...x is: 653y is :35
addition point...x is: 656y is :36
addition point...x is: 659y is :36
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 36 and y1 is 26the slope is 0.4
verifying slope with random point to make sure its not stupid
x1 is 638 and x is dist change is 7
bogus slope
addition point...x is: 638y is :26
point doent match, starting here
point doent match, starting here
addition point...x is: 643y is :27
addition point...x is: 646y is :27
addition point...x is: 649y is :30
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 655y is :36
addition point...x is: 658y is :36
addition point...x is: 661y is :37
addition point...x is: 664y is :37
addition point...x is: 667y is :37
addition point...x is: 670y is :37
addition point...x is: 673y is :38
addition point...x is: 676y is :38
addition point...x is: 679y is :35
addition point...x is: 682y is :34
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 35 and y1 is 36the slope is -0.04
verifying slope with random point to make sure its not stupid
x1 is 673 and x is dist change is 19
bogus slope
addition point...x is: 673y is :38
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 681y is :34
addition point...x is: 684y is :34
addition point...x is: 687y is :35
addition point...x is: 690y is :34
addition point...x is: 693y is :31
addition point...x is: 696y is :28
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 702y is :86
addition point...x is: 705y is :86
addition point...x is: 708y is :87
point doent match, starting here
addition point...x is: 712y is :105
point doent match, starting here
addition point...x is: 716y is :87



alowed slope:54 num points: 9 seperation 2 globaltries is 1
point doent match, starting here
addition point...x is: 606y is :23
addition point...x is: 610y is :24
point doent match, starting here
point doent match, starting here
addition point...x is: 615y is :24
addition point...x is: 618y is :24
addition point...x is: 622y is :25
point doent match, starting here
addition point...x is: 626y is :143
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 632y is :26
addition point...x is: 635y is :26
addition point...x is: 638y is :26
addition point...x is: 641y is :26
addition point...x is: 644y is :27
addition point...x is: 647y is :28
addition point...x is: 650y is :31
addition point...x is: 653y is :35
addition point...x is: 656y is :36
addition point...x is: 659y is :36
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 36 and y1 is 26the slope is 0.4
verifying slope with random point to make sure its not stupid
x1 is 653 and x is dist change is 22
the slope is not bogus
the slope is biger then zero, rotate left
point doent match, starting here
point doent match, starting here
addition point...x is: 655y is :32
addition point...x is: 658y is :31
point doent match, starting here
point doent match, starting here
addition point...x is: 663y is :26
addition point...x is: 666y is :25
addition point...x is: 669y is :24
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 677y is :70
addition point...x is: 680y is :69
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 687y is :97
addition point...x is: 690y is :96
addition point...x is: 693y is :97
point doent match, starting here
addition point...x is: 697y is :103
point doent match, starting here
addition point...x is: 701y is :68
addition point...x is: 704y is :67
point doent match, starting here
addition point...x is: 708y is :84
point doent match, starting here
addition point...x is: 712y is :65
addition point...x is: 715y is :65
point doent match, starting here
addition point...x is: 719y is :72



alowed slope:64 num points: 9 seperation 2 globaltries is 0
addition point...x is: 587y is :41
addition point...x is: 592y is :40
addition point...x is: 596y is :39
addition point...x is: 600y is :38
addition point...x is: 604y is :37
addition point...x is: 608y is :36
addition point...x is: 612y is :35
addition point...x is: 615y is :34
addition point...x is: 618y is :33
addition point...x is: 621y is :32
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 33 and y1 is 72the slope is 0.386138613861386
verifying slope with random point to make sure its not stupid
x1 is 608 and x is dist change is -111
bogus slope
addition point...x is: 608y is :36
addition point...x is: 612y is :35
addition point...x is: 615y is :34
addition point...x is: 618y is :33
wrong!
point doent match, starting here
addition point...x is: 622y is :32
addition point...x is: 625y is :31
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 633y is :34
addition point...x is: 636y is :36
addition point...x is: 639y is :36
addition point...x is: 642y is :36
addition point...x is: 645y is :35
addition point...x is: 648y is :34
addition point...x is: 651y is :33
addition point...x is: 654y is :32
addition point...x is: 657y is :32
addition point...x is: 660y is :29
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 32 and y1 is 34the slope is -0.08
verifying slope with random point to make sure its not stupid
x1 is 651 and x is dist change is 19
bogus slope
addition point...x is: 651y is :33
addition point...x is: 654y is :32
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 663y is :26
addition point...x is: 666y is :25
addition point...x is: 669y is :24
addition point...x is: 672y is :20
point doent match, starting here
point doent match, starting here
addition point...x is: 677y is :70
addition point...x is: 680y is :69
addition point...x is: 683y is :74
point doent match, starting here
addition point...x is: 687y is :97
addition point...x is: 690y is :96
addition point...x is: 693y is :97
addition point...x is: 696y is :103
point doent match, starting here
addition point...x is: 700y is :68
addition point...x is: 703y is :67
point doent match, starting here
point doent match, starting here
addition point...x is: 708y is :84
point doent match, starting here
addition point...x is: 712y is :65
addition point...x is: 715y is :65
point doent match, starting here
addition point...x is: 719y is :72



alowed slope:44 num points: 9 seperation 2 globaltries is 1
addition point...x is: 587y is :41
addition point...x is: 592y is :40
addition point...x is: 596y is :39
addition point...x is: 600y is :38
addition point...x is: 604y is :37
addition point...x is: 608y is :36
addition point...x is: 612y is :35
addition point...x is: 615y is :34
addition point...x is: 618y is :33
addition point...x is: 621y is :32
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 33 and y1 is 72the slope is 0.386138613861386
verifying slope with random point to make sure its not stupid
x1 is 608 and x is dist change is -111
bogus slope
addition point...x is: 608y is :36
addition point...x is: 612y is :35
addition point...x is: 615y is :34
addition point...x is: 618y is :33
wrong!
point doent match, starting here
addition point...x is: 622y is :32
addition point...x is: 625y is :31
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 633y is :34
point doent match, starting here
point doent match, starting here
addition point...x is: 638y is :37
addition point...x is: 641y is :36
addition point...x is: 644y is :35
addition point...x is: 647y is :34
addition point...x is: 650y is :33
addition point...x is: 653y is :33
addition point...x is: 656y is :32
addition point...x is: 659y is :30
addition point...x is: 662y is :26
addition point...x is: 665y is :25
we have enough points now
we have recieved 10 points to wokr with
taking the first and last to calculate (y) slope...
y is 26 and y1 is 37the slope is -0.44
verifying slope with random point to make sure its not stupid
x1 is 662 and x is dist change is 25
the slope is not bogus
the slope is less than zero, rotate right
addition point...x is: 662y is :26
wrong!
point doent match, starting here
addition point...x is: 666y is :25
addition point...x is: 669y is :24
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 677y is :70
addition point...x is: 680y is :69
point doent match, starting here
point doent match, starting here
point doent match, starting here
point doent match, starting here
addition point...x is: 687y is :97
addition point...x is: 690y is :96
addition point...x is: 693y is :97
point doent match, starting here
addition point...x is: 697y is :103
point doent match, starting here
addition point...x is: 701y is :68
addition point...x is: 704y is :67
point doent match, starting here
addition point...x is: 708y is :84
point doent match, starting here
addition point...x is: 712y is :65
addition point...x is: 715y is :65
point doent match, starting here
addition point...x is: 719y is :72



alowed slope:54 num points: 9 seperation 2 globaltries is 0
exited
Successfully executed

LordGregGreg

2007-06-17 10:50:40

Ok, i need to add some changes to where it accepts a point to use. I also need to fix it's slope verification method a little. Thanks for testing it.
I have alot of stuff on my plate, so If anyone has time, feel free to fix it. I think it has really good potential.

Wizzup?

2007-06-17 11:05:10

From: lordgreggreg1
Ok, i need to add some changes to where it accepts a point to use. I also need to fix it's slope verification method a little. Thanks for testing it.
I have alot of stuff on my plate, so If anyone has time, feel free to fix it. I think it has really good potential.


I think pups had made one, it will be in the next SCAR I think.

LordGregGreg

2007-06-17 11:16:24

From: Wizzup?
I think pups had made one, it will be in the next SCAR I think.


I looked everywhere, I can't find it.
I think that mine would be good because it doesn't mess with the compass or anything, It just aligns it to the biggest white line it find.

Wizzup?

2007-06-17 12:27:49

From: lordgreggreg1
I looked everywhere, I can't find it.
I think that mine would be good because it doesn't mess with the compass or anything, It just aligns it to the biggest white line it find.


Pups made one in Delphi so it will be in SCAR.

n3ss3s

2007-06-19 14:39:14

I think when this works correctly it atleast should be in the next srl.

LordGregGreg

2007-06-19 19:59:44

From: n3ss3s
I think when this works correctly it atleast should be in the next srl.

Thanks, I think so too. I know that there are a few thingys that i need to modify on it. Mainily on the part where it decided to accept a point as part of the line to be tested.
I'm just unsure if i should wokr on it if it has already been made before.

HUGE 5 HR UPDATE FINISHED!!!
Please, go check this one out, it really works unlike the other ones, and it works good.
This IS better than ANY compass function you have seen.
It does NOT work like a compass function!
Check it out.

grindisbest

2007-06-20 07:58:06

Hehe, sorry this cracked me up a bit, you were a bit cocky then it didn't work. Anyways I'll test it.

nielsie95

2007-06-20 09:03:16

Works pretty good now.
Though it's a bit slow and it can only set your compass north :p.

LordGregGreg

2007-06-20 09:22:57

From: nielsie95
Works pretty good now.
Though it's a bit slow and it can only set your compass north :p.

Thanks so much for testing it so fast! :) I'm glad it worked for you, I really didn't have much time to test it before I fell asleep.
Why does it only set the compass north?… Like, I take my char argument and immidiatly do "MakeCompass(direction);" so shoudn't that work?. I could have sworn I tested it with south too…

From: grindisbest
Hehe, sorry this cracked me up a bit, you were a bit cocky then it didn't work. Anyways I'll test it.

Lol, yeah. I kinda worked FOREVER on it, and it acted like it worked, so I got kinda excited. Besides, I really wan't people to test this out, so you will notice I kinda talk my stuff up higher than it is :P. Glad it made you laugh, and look foreward to your report.

Drakan

2007-06-20 17:39:48

Hey i tested and worked just fine ;) congrats. lag was better this time

LordGregGreg

2007-06-27 11:28:12

From: drags111
Hey i tested and worked just fine ;) congrats. lag was better this time


Im glad it worked for you! I have goten quite a bit of succes in this one. I really need more people to take a few minutes to test this!

I have made it really easy to test, just run my varock walker in "alignment mode" from the form.

then make you character say "north" or etc!

ShowerThoughts

2008-02-17 14:29:21

GraveDig, this is better then makecompass('')?

LordGregGreg

2008-02-22 13:57:06

depends on the situation and whether you are clicking on the minimap or not.

It aligns the minimap so its lines are perfect, this may not always be the same as perfect north, as they change the orientation.

So if you are clicking on the minimap, and you want the lines to be perfectly stright, this is for you.