Originally Posted by
rj
Gonna have to see more pics to see if this works
Simba Code:
function getFuranceHeat():extended;
var
handTPA:TPointArray;
t:TPoint;
begin
findColorsSpiralTolerance(t.x, t.y, handTPA, 1118484, 157, 21, 442, 308, 0);
if (length(handTPA) < 1) then
exit;
t := middleTPA(handTPA);
result := degrees(fixRad((ArcTan2(-(t.y - 281), t.x - 160) + Radians(90)) - Pi));
end;
Also the input numbers are based off the picture in the browser not the game
Hey, unfortunately it's not working for me, I tried changing the bounds to be tighter to the interface and I even tried making it check the whole screen when I realized the problem was the ATPA keeps coming back empty but it doesnt find anything.
Simba Code:
findColorsSpiralTolerance(t.x, t.y, handTPA, 1118484, msx1, msy1, msx2, msy2, 0);
which is weird because I checked and your color looks right to me for the needle.
Update:
I used a DTM to find the needle and that seemed to be working, so now that I have a point to put into your result function. It's not working for me unfortunately, at about 3 o clock the needle returns like 300 and then it goes all over the place as i heat the furnace up
Simba Code:
result := degrees(fixRad((ArcTan2(-(t.y - 281), t.x - 160) + Radians(90)) - Pi));