SRL Archive - OSR Help

stuck in "findcolor''


Peanuts

2013-06-12 08:29:07

Even if i put..

if not FindColor(sex, sey, AddyColor, MSX1, MSY1, MSX2, MSY2) then
begin
chances := Chances + 1;
TerminateScript;
end;

It just searches and searches for the color…. like its stuck in the 'find color'.. when there are none left. Its perfect at finding them when they are there.. but now it just searches in the dark nothingness.. around random areas.. Doesn't the function have a fail safe? like time out thing? or how do i add one?
Same with findobjTPA etc..

ActualNoob

2013-06-12 08:51:58

yeah this is strange.

Kevin

2013-06-12 09:04:07

If a call to FindColor is resulting in a loop, then you're doing something wrong somewhere else. FindColor doesn't take more than a few ms ever. Could you post more of your code?

Peanuts

2013-06-12 09:11:02

From: Kevin
If a call to FindColor is resulting in a loop, then you're doing something wrong somewhere else. FindColor doesn't take more than a few ms ever. Could you post more of your code?


Thx for that.. Looked at the entire code and found a silly loop else where.