SRL Archive - S.M.A.R.T. Tutorials

Quick way to test if your SMART is running properly.


Wanted

2008-06-29 00:57:56

After you complete the Complete SCAR & SRL setup.

Run this test script:

program TestSMARTLogin;

{.Include SRL\SRL\Misc\SMART.SCAR}
{.Include SRL\SRL.SCAR}

procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := ''; //3-4 letters from name
Players[0].Active:= True;
end;

begin
SMARTSetUp('world38', True, True, False); {World prefix, safe mode, unsigned, RS-HD}
SetTargetDC(SMARTGetDC);
SetUpSRL;
DeclarePlayers;
LogInPlayer;
Wait(2000);
MMouse(388, 281, 3, 3);
Wait(2000);
MMouse(4, 100, 3, 3);
Wait(3000);
LogOut;
TerminateScript;
end.

It should, log you in, move the mouse twice, and log you out. If it doesn't run flawlessly then your SMART is broken or you're really unlucky and need to rerun the script. Otherwise if it does work flawlessly and you still can't get a script to work with SMART most likely the problem is the script and not SMART.

Happy Testing

-IceFire908

Wanted

2008-07-15 01:49:59

Updated for SMART update.

sjlou

2008-07-15 02:41:28

smart opens minimized and cant maximize it
any idea ?

Wanted

2008-07-15 02:55:56

From: dushii
smart opens minimized and cant maximize it
any idea ?


Update your SRL revision to 19 :duh:

sjlou

2008-07-15 02:59:58

From: IceFire908
Update your SRL revision to 19


i did :duh:
and i tried to reinstall scar to
and tried to replace the world.ini

srry next time ill be more clear (A)

Wanted

2008-07-15 03:03:01

From: dushii
i did :duh:
and i tried to reinstall scar to
and tried to replace the world.ini


Disable all your firewalls, if the problem persists post a thread describing your problem in the SMART help section or whatever.

Loochie

2008-07-23 23:27:08

Mines been messing up, ill try this and fix what i need to fix
thanks a lot

FignA

2008-08-03 07:10:44

hmm i tried it did login but it just moved mouse around a bit but didnt walk anywhere it shows

** Warning in GameTab: 14 does not exist**

FignA

2008-08-03 09:41:49

oh it not supose to walk :D

noidea

2008-08-03 11:53:26

Dont Double-Post! Spam eigther!

By the way. This could be be usefull if you have not used smart in a while and need to test:D

noidea

Gu3st...

2008-08-03 12:25:35

From: noidea
Dont Double-Post! Spam eigther!

By the way. This could be be usefull if you have not used smart in a while and need to test:D

noidea


he didnt spam…?

[/offtopic]
nice tutorial, we needed this. :)
*googles 'SMART problem! help!'*
1338 hits…

006786

2008-08-11 12:16:19

I ran the script after updating srl/worlds.ini.

I get the following error:
Error loading SMART, please check World prefix.

Helpo?

loby105

2008-10-25 13:04:38

ok after i updated the worlds i tryed to run the script and than it says "waiting for SMART to start… ive waited for maybe 10 mins and nothing

any idea?

jking

2008-10-26 10:19:11

i need help when i copy dat code and run it on scar it get an error. Error starting smart check world prefix.

Spencer-SRL

2008-10-26 10:34:52

From: 006786
I ran the script after updating srl/worlds.ini.

I get the following error:
Error loading SMART, please check World prefix.

Helpo?


I've been getting this same error, I updated my SRL and followed ItsEmerica's worlds.ini update guide to try to fix this… No luck :|

hampus008

2008-10-26 11:03:24

This is not working becouse its not updated enough.
So loby, why do you even bring back an old topic?
Look at the last post, 2months ago.

fuxnix

2008-10-26 23:20:58

whenever i download a script and then run it and type in my info and what world and username pass ect… and click start a window comes up saying "this application has failed to start because MSVCR71.dll was not found. re-installing the application may fix the problem" and then i click ok and anouther window pops up saying "jvm.dll could not be found,try reinstalling java.

which iv reinstalled java and scar
this comes up after all that

[Runtime Error] : Exception: Access violation at address 6720138A in module 'Embedded SMART.dll'. Read of address 00000350 in line 48 in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Misc/Smart.scar

345138

2008-10-28 07:45:20

Ty for the help:P

r3dr4g0n

2008-11-02 12:20:27

getting same problem as fuxnix

Skullfire987

2008-11-08 10:01:45

Yes same problem, but I think there is a temp fix just search the forums.
Hope this helps you guys!

Nava2

2008-11-21 14:37:32

Do not use this. It is outdated.

dinries

2008-11-22 14:50:13

From: Nava2
Do not use this. It is outdated.


Where can I find a updated one?

Racko

2008-11-23 10:27:16

Oh. Apparently my SMART is broken… Thank you very much.

dinries

2008-11-24 16:15:16

From: Racko
Oh. Apparently my SMART is broken… Thank you very much.


Have u tried Nata2's smart fixes, I think it would help you.

botsrs

2008-11-24 16:20:16

@Racko - Read Nava2's post, this is outdated.

Wanted

2008-11-26 21:49:52

I need to update this

Iced_Liquid

2008-12-10 18:27:30

I had to change it to this -

SMARTSetUpEx(53, True, True, False);

To get it to work.

XabdullahX

2008-12-17 11:12:49

From: Iced_Liquid
I had to change it to this -

SMARTSetUpEx(53, True, True, False);

To get it to work.


Nice, it really works !

The full script if you dont know how to ctrl+c - ctrl+v:

program TestSMARTLogin;

{.Include SRL\SRL\Misc\SMART.SCAR}
{.Include SRL\SRL.SCAR}

procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := ''; //3-4 letters from name
Players[0].Active:= True;
end;

begin
SMARTSetUpEx(53, True, True, False);
SetTargetDC(SMARTGetDC);
SetUpSRL;
DeclarePlayers;
LogInPlayer;
Wait(2000);
MMouse(388, 281, 3, 3);
Wait(2000);
MMouse(4, 100, 3, 3);
Wait(3000);
LogOut;
TerminateScript;
end.

maksimka

2008-12-24 01:50:43

when i try to run this script it says……


Line 18: [Error] (16330:42): Invalid number of parameters in script

any help?


EDIT:nvm found it…….just read the post on top of mine…

Phran6

2008-12-24 13:58:43

Failed when compiling
Line 15: [Error] (16221:1): Unknown identifier 'SMARTSetUpEx' in script

i get this error sum1 can help ??

JanCees

2008-12-29 05:00:50

[Runtime Error] : Exception: Access violation at address 6720456E in module 'Embedded_SMART.dll'. Read of address 00000000 in line 85 in script C:\Program Files\SCAR 3.15\includes\SRL\SRL\Misc\SMART.SCAR

WTF?

chitin

2008-12-29 05:39:30

From: francishelie
Failed when compiling
Line 15: [Error] (16221:1): Unknown identifier 'SMARTSetUpEx' in script

i get this error sum1 can help ??


oh wow click my sig….

@person above me, you need ADMINISTRATOR rights to execute the SMART dll

anonymity

2009-01-03 19:17:45

Hey, thanks for this quick/simple test to the SMART area. It was… helpful. lol..

EDIT: although outdated… it still has the general Idea.

Bluerobin_xp

2009-01-25 01:25:26

:duh: ive been gone for a long while, but i just got back an tried to use my smart scar, and i kept on getting the invalid parameters message, but aftr reading this post and a few others i figured out that i had to change

Smartsetup(SmartPrefix, true, true, false); to

Smartsetupex(SmartPrefix, False, true, false);


figured i needed to add ex after Smartsetup and if u are autoing on a free world then u need to change the first true to false. aways leave 2nd true to true if ur autoing and the third option is if u want hi graphics or not, most scripts want low graphics so leave this to false. also um to make this easier for others, u can replace the smartprefix with the world u want smart to use, if u dont replace it then put SmartPrefix = aaa under Const then replace aaa with the world you want smart to use. i hope that helps others, i was lost for awhile. :rolleyes:

jurrien

2009-01-25 07:45:47

My smart works, the smart on page 1 is outdate but xabdullahx's works.

RipMikkey

2009-03-10 02:46:43

Failed when compiling
Line 1115: [Error] (19410:39): Invalid number of parameters in script C:\Users\Andrew\Downloads\[UDL] Draynor Willow Whacker 2.0.scar

i keep getting this

Turtle Dude

2009-03-11 02:56:12

Smart lags a lot on my computer. Is there anyway to get rid of some of the lagging?

Jouman

2009-11-23 06:17:40

Thanks for this, and thanks for the fix.

benjaa

2009-12-10 23:55:33

program TestSMARTLogin;

{.Include SRL\SRL\Misc\SMART.SCAR}
{.Include SRL\SRL.SCAR}

procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := ''; //3-4 letters from name
Players[0].Active:= True;
end;

begin
SMARTSetUpEx(38, False, True, False); {World prefix, safe mode, unsigned, RS-HD}
SetTargetDC(SMARTGetDC);
SetUpSRL;
DeclarePlayers;
LogInPlayer;
Wait(2000);
MMouse(388, 281, 3, 3);
Wait(2000);
MMouse(4, 100, 3, 3);
Wait(3000);
LogOut;
TerminateScript;
end.

vcvv

2009-12-19 21:57:15

After I run the script, it just shows the log in page, and flashes a loading pages "Started 3D Library", nothing happens after that.
Any fixes?

EDIT: Oh ya, the flashes of the loading page stops when I click on "Disable Graphics"

Kyle Undefined

2009-12-19 22:20:21

Try this one :

program TestSMARTLogin;

{.Include SRL\SRL\Misc\SMART.SCAR}
{.Include SRL\SRL.SCAR}

procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := ''; //3-4 letters from name
Players[0].Active:= True;
end;

begin
SetUpSRL;
DeclarePlayers;
LogInPlayer;
Wait(2000);
MMouse(388, 281, 3, 3);
Wait(2000);
MMouse(4, 100, 3, 3);
Wait(3000);
LogOut;
TerminateScript;
end.

~Camo

vcvv

2009-12-19 22:38:24

It still flashes, :\
When I disable smart and switch to standard definition, the flashes stop, but the script still doesn't work, :\

Alek000

2009-12-19 22:45:13

Log onto RS and turn the graphics to fixed graphics in the options. That should stop the flashing and get the script running.

Kyle Undefined

2009-12-19 22:51:20

Also, make sure you're running the current version of SRL.

~Camo

vcvv

2009-12-19 22:51:26

It flashes before my character logs in, and after the SMART client opens, nothing happens.

I just installed everything, and updated SRL from the file drop-down menu "Download SRL", but I still get the same results.

The_Closer

2010-02-27 05:46:02

i know this is grave digging but i get
Failed when compiling
Line 5: [Error] (69:11): Unknown identifier 'SmartIsKeyDown' in script C:\Program Files\SCAR 3.22\includes\srl\srl\misc\smart.scar
i need help..

Wanted

2010-02-27 09:27:13

From: The_Closer
i know this is grave digging but i get
Failed when compiling
Line 5: [Error] (69:11): Unknown identifier 'SmartIsKeyDown' in script C:\Program Files\SCAR 3.22\includes\srl\srl\misc\smart.scar
i need help..


/Facepalm

There were so many other better places to post your question instead of grave digging this ancient thread. The instructions were for like SCAR 3.12 T_T

goodyou

2012-02-12 20:25:03

Today be able to know everyone really happy.

doorsftw

2012-05-23 19:01:26

ty it finally works :)

BenLand100

2012-05-25 14:31:59

There is no way this actually helped you. It's nearly 4 years old and everything has changed.
Don't gravedig.