SRL Archive - SRL Bugs

SMART messing up colors


Awkwardsaw

2010-04-25 19:44:08

either smart is messing up colors, or i am just really stupid..

but whenever i use SMART, things like flag; and my object finder(which is usually really good) always fails

NCDS

2010-04-25 19:46:16

From: Awkwardsaw
either smart is messing up colors, or i am just really stupid..

but whenever i use SMART, things like flag; and my object finder(which is usually really good) always fails


I use it daily for script's I'm working on and never have an issue with it.

Awkwardsaw

2010-04-25 19:59:35

From: NCDS
I use it daily for script's I'm working on and never have an issue with it.


well then, what could i be doing wrong?

all my graphic options are set correctly

NCDS

2010-04-25 20:03:13

Try messing with tolerances.

Also, if that doesn't work, maybe post your code that's messing up? I don't see how Flag; would be messing up though.

Awkwardsaw

2010-04-25 20:09:57

From: NCDS
Try messing with tolerances.

Also, if that doesn't work, maybe post your code that's messing up? I don't see how Flag; would be messing up though.


the only parts that messes up that i'm concerned with is:
flag
ismoving - in animation.scar

i use it in:
{*******************************************************************************
Function WalkToTile(Tile: TPoint; Randomness, FlagD: Integer): Boolean;
By: Wizzup and TheGuyWhoGotOn, small edit from awkwardsaw
Description: Walks to the tile using minimap.
*******************************************************************************}
function WalkToTile(Tile: TPoint; Randomness, FlagD: Integer): Boolean;
var
wTile : TPoint;
begin
Result := False;
Tile := Point(RandomRange(Tile.X-Randomness, Tile.X+Randomness), RandomRange(Tile.Y-Randomness, Tile.Y+Randomness));
wTile := TileToMM(Tile);
if not rs_OnMiniMap(wTile.X, wTile.Y) then
Exit;
if DistanceFrom(wTile) < 6 then
Exit;
Mouse(wTile.x, wTile.y, 0, 0, true);
Wait(RandomRange(80, 100));
flag; //here
Result := true;
end;

noidea

2010-04-25 21:31:50

Same thing used to happen with autocolours on my pc. Never found a fix.

NCDS

2010-04-25 23:15:07

From: Awkwardsaw
the only parts that messes up that i'm concerned with is:
flag
ismoving - in animation.scar

i use it in:
{*******************************************************************************
Function WalkToTile(Tile: TPoint; Randomness, FlagD: Integer): Boolean;
By: Wizzup and TheGuyWhoGotOn, small edit from awkwardsaw
Description: Walks to the tile using minimap.
*******************************************************************************}
function WalkToTile(Tile: TPoint; Randomness, FlagD: Integer): Boolean;
var
wTile : TPoint;
begin
Result := False;
Tile := Point(RandomRange(Tile.X-Randomness, Tile.X+Randomness), RandomRange(Tile.Y-Randomness, Tile.Y+Randomness));
wTile := TileToMM(Tile);
if not rs_OnMiniMap(wTile.X, wTile.Y) then
Exit;
if DistanceFrom(wTile) < 6 then
Exit;
Mouse(wTile.x, wTile.y, 0, 0, true);
Wait(RandomRange(80, 100));
flag; //here
Result := true;
end;


Perhaps it's something to do with your reflection?

Blumblebee

2010-04-25 23:16:53

do you call a setColorTolerance(x) and not set it back or set the modifiers and not set them back. That happened to me once and I almost pulled my hair out when I found out.

Awkwardsaw

2010-04-25 23:16:55

From: NCDS
Perhaps it's something to do with your reflection?


nopes, when i was painting on the smart canvas, i forgot to change the DC or what ever back to rs's. so scar was looking at the SMART canvas instead of the RS one

NCDS

2010-04-25 23:20:04

From: Awkwardsaw
nopes, when i was painting on the smart canvas, i forgot to change the DC or what ever back to rs's. so scar was looking at the SMART canvas instead of the RS one


Ok, so you have it fixed then?

Awkwardsaw

2010-04-25 23:20:56

From: NCDS
Ok, so you have it fixed then?


si, thanks though :)