I'm looking for a static object on the main screen that doesn't move (I'm making, err, trying to make a wilderness agility course script so the DTMs are for the various obstacles), and I have been using DTMRotated for this object (could that cause problems?). I think the trouble may possibly be coming from colors in general as the objects are in the wilderness that only has the vibrant colors of black, grey, brown, and the occasional off-grey so color identification could be causing some problems but I honestly don't think that should affect my dtms [I]that[I] much.
I had the script working immediately after I made my DTMs, but I came back to it today and the strings I had set no longer worked. I considered that it could be due to runescape updating or an error in setting camera angle/direction but that wasn't the case, and after checking my strings in the editor it showed me that they were way out in the middle of nowhere in comparison to what I had the day before.
This is the script that I had been using to test my dtms (as such there isn't really standards as it's more a proof of concept than anything), which worked but sadly does not work now with the same strings haha.
Code:
program dtmTester;
{$DEFINE SRL5}
{$i SRL/srl.simba}
var
tube,x,y:integer;
afound: Extended;
begin
SetupSRL;
tube :=DTMFromString('m6wAAAHic42ZgYPgPxD+AmJORgYENiL8A2QxA+htU7BOQ/gDEXEB2AJCOBuIIIPYFYj8gzgbiHCDOAOIkIA4D4kAgNjE1Y/ALCATTeYXFDFGxcQy8vLwM7p5ecOzq5sEQEBTMQApgJAEjAQDN/BL4');
if FindDTMRotated(tube, x, y, MSX1, MSY1, MSX2, MSY2, -Pi, Pi, Pi/30, aFound) Then
begin
writeln('Yay we found it');
MMouse(x, y, 3, 3);
Mouse(x, y, 0, 0, True);
end;
If not FindDTM(tube, x, y, MSX1, MSY1, MSX2, MSY2) then
begin
writeln('we didnt find it');
end;
FreeDTM(Tube);
end.