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

Latest Setup Instruction


WhoCares357

2009-07-04 06:34:57

What is the latest method of initializing SMART in a script? There are a few tutorials in here so I don't know which is the most recent/most accurate.

Thanks.

Infantry001

2009-07-04 06:38:22

SMART automatically loads when you call SetupSRL;

;)

WhoCares357

2009-07-04 06:53:31

From: Infintry001
SMART automatically loads when you call SetupSRL;

;)


Niice. Guess I'll have to remove that from my shit then :D. Thanks.

Edit: Doesn't seem to be working for me.. I get this error:

[Runtime Error] : Exception: Access violation at address 697C14D3 in module 'Embedded_SMART.dll'. Read of address 000008D4 in line 48 in script C:\Program Files\SCAR 3.20\includes\SRL\SRL\Misc\Smart.scar

How does SRL know that {.include SRL\SRL\Misc\Smart.scar} is there?

Infantry001

2009-07-04 07:10:59

No clue why you get that error.

However, as for that other question…

http://www.villavu.com/forum/showthread.php?t=46748

Quickmarch

2009-07-04 11:18:19

Put {.include SRL/SRL/Misc/Smart.scar} at the top of your script, then put Smart_Server := The World you want it to load.

Dark Arcana

2009-07-04 14:40:12

I think this will help http://www.villavu.com/wiki/index.php/How_to_make_any_Script_a_S.M.A.R.T_Script

WhoCares357

2009-07-04 18:14:19

I don't know what I'm doing wrong, but I get this error:

SRL v4 #35 has been downloaded and installed.
Failed when compiling
Line 1099: [Error] (19945:1): Unknown identifier 'Smart_Server' in script '..'

I am 90% sure I set everything up correctly.

{.include SRL/SRL/Misc/Smart.scar}
{.include SRL/SRL.scar}
{.include SRL/SRL/Misc/users.scar}

That's right after program Name;

procedure SetUpSMART;
begin
Smart_Server := WorldNumber;
Smart_Members := MembersWorld;
Smart_Signed := SignedApplet;
Smart_SuperDetail := False;
end;

  //this is the beginning of my main loop
SafeInitForm; //my own form
SafeShowFormModal; //my own form
SetUpSMART;
SetupSRL;
DeclarePlayers; //declare players loads the player form

Heavenzeyez1

2009-07-04 18:28:42


program New;
{.include srl/srl/misc/smart.scar}
{.include srl/srl.scar}
begin
Smart_Server := 127;
Smart_Members := False;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL;
end.
~Eerik~

WhoCares357

2009-07-04 18:31:22

Line 5: [Error] (16868:1): Unknown identifier 'Smart_Server' in script 

Heavenzeyez1

2009-07-04 18:35:34

Have you moved plugins and have the SRL open rev? :)
~Eerik~

WhoCares357

2009-07-04 18:48:58

I'm pretty sure SCAR places the plugins itself. I overwrote them myself to be sure and still no success.

As for the open rev.. I don't know about it or how to get it.

Heavenzeyez1

2009-07-04 18:50:11

Try this.
~Eerik~

WhoCares357

2009-07-04 18:54:31

I actually have seen that before and have used it. I had TortoiseSVN for a long time and have used it a few times. When I try to use it now I get an error:

Repository UUID '1fdd977f-c476-4c22-9c42-f94d6cf4f7a6' doesn't match expected 
UUID '8ce7925f-7129-4b6a-8a19-e7eb6b84add8'

I'm thinking the SVN url may be wrong. How do I edit it in tortoise?

Heavenzeyez1

2009-07-04 18:56:11

Try making a new folder and d/l to there. :p
~Eerik~

WhoCares357

2009-07-04 18:59:43

From: Heavenzeyez1
Try making a new folder and d/l to there. :p
~Eerik~


Roar. Works like a charm now. +rep for you mister.