SRL Archive - S.M.A.R.T. Questions and Answers.

SMART will NOT open


q3ick

2008-03-27 21:19:16

I cant get SMART to open at all on any script. I tried cleaning up SRL and checkingout again but it still wont open.

I was able to get it to open the first time I tried but never again.

//----------------------------------------------------------------------------//
// -- SRL Level 1 Includes --//
// -- --//
// -- Low Level SCAR Math, Mouse Movement and Color Clicking routines. --//
//----------------------------------------------------------------------------//

{.include SRL/SRL/Core/Globals.scar}
{.include SRL/SRL/Core/Math.scar}
{.include SRL/SRL/Core/Mouse.scar}
{.include SRL/SRL/Core/Color.scar}
{.include SRL/SRL/Core/Players.scar}

//----------------------------------------------------------------------------//
// -- SRL Level 2 Includes --//
// -- --//
// -- Interface, Object and OCR routines. --//
//----------------------------------------------------------------------------//

{.include SRL/SRL/Core/Timing.scar}
{.include SRL/SRL/Core/GameTab.scar}
{.include SRL/SRL/Core/Text.scar}
{.include SRL/SRL/Core/Inventory.scar}
{.include SRL/SRL/Core/Object.scar}

//----------------------------------------------------------------------------//
// -- SRL Level 3 Includes --//
// -- --//
// -- MapWalking, AntiRandoms, Bank, Symbol and many more... --//
//----------------------------------------------------------------------------//

{.include SRL/SRL/Misc/Bitmaps.scar}
{.include SRL/SRL/Core/FlagChat.scar}
{.include SRL/SRL/Core/Login.scar}
{.include SRL/SRL/Core/Mapwalk.scar}
{.include SRL/SRL/Core/Bank.scar}
{.include SRL/SRL/Core/Symbol.scar}
{.include SRL/SRL/Core/RC.scar}
{.include SRL/SRL/Core/AutoColor.scar}
{.include SRL/SRL/Core/AntiRandoms/Common.scar}
{.include SRL/SRL/Core/Globalstats.scar}
{.include SRL/SRL/Core/CAutoRespond.scar}
{.include SRL/SRL/Core/AntiRandoms/Box.scar}
{.include SRL/SRL/Core/AntiRandoms/Certer.scar}
{.include SRL/SRL/Core/AntiRandoms/Demon.scar}
{.include SRL/SRL/Core/AntiRandoms/Frog.scar}
{.include SRL/SRL/Core/AntiRandoms/Quiz.scar}
{.include SRL/SRL/Core/AntiRandoms/Sandwich.scar}
{.include SRL/SRL/Core/AntiRandoms/EvilBob.scar}
{.include SRL/SRL/Core/AntiRandoms/ChatRandoms.scar}
{.include SRL/SRL/Core/AntiRandoms/AntiRandoms.scar}
{.include SRL/SRL/Core/AntiBan.scar}
{.include SRL/SRL/Core/Amount.scar}

{*******************************************************************************
procedure SetupSRL;
by: SRL Dev Team
Description: Sets up all variables needed to run SRL.
*******************************************************************************}

procedure SetupSRL;
begin
{$IFDEF SMART}
SmartSetupEx(83, false, false);
wait(10000+random(5000));
SetTargetDC(SmartGetDC);
repeat
wait(100);
until(SmartGetColor(253, 233)<>1118604);
{$ENDIF}

Thats SRL.scar


Here is Smart.scar

{
smart.scar overwrites the SCAR procedures.
You should always include this before any other include, even SRL.scar
}
{$DEFINE SMART}
procedure MoveMouse(x, y: Integer);
begin
SmartMoveMouse(x, y);
end;

procedure HoldMouse(x, y: Integer; left: Boolean);
begin
SmartHoldMouse(x, y, left);
end;


Please post any suggestion's/problem's

Thanks Q3ick….

legendaryhero90

2008-03-27 22:59:25

did you make the script your using SMART-useable?

in other words, customize the actual script your using to be compatible with SMART?

mixster

2008-03-28 03:35:49

Also, did you remember to include SMART in the script via

{.include SRL/SRL/misc\Smart.scar}
And make sure that that comes before the SRL include?

q3ick

2008-03-28 15:52:45

Yes to both, although im not sure if mine had the \ slash in it

senrath

2008-03-28 15:57:23

From: q3ick
Yes to both, although im not sure if mine had the \ slash in it


That part isn't important. It treats / and \ the same.

q3ick

2008-03-30 11:25:16

Still doesnt open up…I tried reinstalling scar/SRL…any suggestions?

PriSoner

2008-03-30 11:49:43

World 83 has changed it's prefix along with a number of other worlds. SMART doesn't open and just hangs if it has an invalid world.

Just change 83 to 69 or something and it will open.

This will be fixed when worlds.ini is updated in SRL 15…

The following worlds have changed their prefixes: 11, 80, 82, 83, 84 and as a result no longer work with SmartSetupEx.

Also worlds 11 & 80 have changed from member worlds to free worlds..