Bixby Sayz Posted November 5, 2011 Share Posted November 5, 2011 Running this script standing in the middle of Lumbridge castle courtyard: program new; {$DEFINE RS2} {$DEFINE OSI_Color_Anti_Randoms} {$DEFINE SMART} {.include OSI\OSI.scar} procedure Test; var Color: Integer; X, Y: Integer; TPA: TPointArray; begin Color := GetColor(MMCX + 20, MMCY); WriteLn('Color: ' + IntToStr(Color)); FindMMColorsTolerance(TPA, Color, 10); WriteLn(IntToStr(High(TPA) + 1) + ' points found.'); end; procedure ScriptTerminate; begin FreeOSI; end; begin ClearDebug; {$IFDEF SMART} SMART_Server := 1; SMART_Members := FALSE; NonAutomaticSMART := TRUE; {$ENDIF} SetUpOSI; {$IFDEF SMART} SmartSetupEx(SMART_Server, TRUE); {$ENDIF} Test; end. Disabling SMART and using the browser as a client I get: Color: 63176751790 points found. Enabling SMART I get: Color: 51339080 points found. I'm using SCAR 3.29, latest OSI, and SMART 6.9. These are my graphics settings:[ATTACH=CONFIG]41[/ATTACH] Quote Link to comment Share on other sites More sharing options...
Jakkle Posted November 5, 2011 Share Posted November 5, 2011 I got this Initating SMART Runescape Server 1 with safe mode enabled... Color: 5328973 2 points found. Freed RS2 Fonts Successfully executed (702 ms) Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted November 5, 2011 Author Share Posted November 5, 2011 Hmm. So it definitely something in my setup. But I get this on 2 different computers. How intriguing. Quote Link to comment Share on other sites More sharing options...
Wanted Posted November 5, 2011 Share Posted November 5, 2011 I'll test this when I get the chance, also... your SMART initializing is strange. Use this guide http://wiki.scar-divi.com/osi/index.php?title=Using_SMART_with_OSI A few things may be incorrect on that guide, Freddy said he was able to run multiple smarts without having to install SCAR/SMART in multiple locations I'll have to update this tutorial soon. But getting SMART to load should be a lot easier, infact all you have to do is call SetUpOSI and have {$DEFINE RS2} and {$DEFINE SMART} Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted November 5, 2011 Author Share Posted November 5, 2011 (edited) Due to the fact that colors are not working properly under SMART using the default setup results in it "hanging" until the timeout is reached. Hence the attempt to get around that. Edit: Got it working, but I'll be damned if I know why. Just one of those things. Blew away SCAR and all user settings, reinstalled 3.28, grabbed new copy of includes using includes manager, grabbed 3.29 from repository, and it works. God I hate computers some days. Still doesn't resolve the SMART takes forever to load issue, but I've tracked that down. I think I'll start a new thread for that, as it is a totally separate issue. Edited November 6, 2011 by Bixby Sayz Quote Link to comment Share on other sites More sharing options...
Wanted Posted November 6, 2011 Share Posted November 6, 2011 (edited) It's because you had your player logged in from the first time and it was looking for the login screen. Guess I need to change that. Edit: Should be fixed now. Edited November 6, 2011 by Wanted Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted December 18, 2011 Author Share Posted December 18, 2011 Here we go with round two. Thought I'd post in here rather than start a new thread. Been struggling with SMART generating a "canvas does not allow drawing" error and yet the same script runs forever using a browser as a client. After a lot of mucking around managed to reduce it down to this sample script that will generate the error every time on my machine. Could someone try this: Run the script. Won't do much the first time since you are not logged in. Disable smart (via button), login, position your char in varrock west bank, reenable smart. Run it again. Script will bomb (on my machine) after walking one time. On my machine GetTextAtEx works until a call to RadarRoadWalk. After that it's hooped. But only if using SMART. If using a browser as the client it works just fine. Once it goes wrong GetTextAtEx stays broken until you exit SCAR completely, at which point SCAR usually crashes while shutting down. Tried this on 2 Win7 machines and 2 XP machines with SCAR 3.30 + latest java with the same result. On two of those machines (1 win7 and 1 xp) cleaned scar off completely (all files/settings/reg settings), reinstalled from scratch, even reinstalled java, and...same result. So could someone run this and tell me if they get the same result, or does it work for you? In which case I freaking give up. This is how I spend my time: trying to figure out stupid shit like this. program new; {$DEFINE RS2} {$DEFINE OSI_Color_Anti_Randoms} {$DEFINE SMART} // Comment out to disable smart. {$I OSI\OSI.scar} var TPA: TPointArray; I: Integer; procedure ScriptTerminate; begin FreeOSI; end; begin ClearDebug; SetUpOSI; for I := 0 to 5 do begin WriteLn(IntToStr(GetMMLevel(Skill_Run))); if FindMMColorsTolerance(TPA, 3691097, 10) then RadarRoadWalk(TPA, 25.0, MMRDe, 130.0, 210.0, 0, 0, 0, 3, 3); WriteLn(IntToStr(GetMMLevel(Skill_Run))); if FindMMColorsTolerance(TPA, 5207942, 10) then RadarRoadWalk(TPA, 25.0, MMRDe, (-20.0), 50.0, 0, 0, 0, 3, 3); end; end. Quote Link to comment Share on other sites More sharing options...
wyn10 Posted December 18, 2011 Share Posted December 18, 2011 This is like when I was testing Getchatex and it was only reading properly in smart. Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted December 18, 2011 Author Share Posted December 18, 2011 For now my workaround is disable a lot of functionality if using smart using {$IFNDEF SMART}. Not ideal but at least it doesn't crash. Quote Link to comment Share on other sites More sharing options...