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

SMART Error Line 7 (SRL Rev 19)


killr280

2008-07-15 21:41:08

Hey all, this is my first post here on SRL forums. I have been waiting for the new SMART to come out and finally let me run my scripts. When rev 19 came out i got it and used the tut How To Make Any Script A SMART Script on the script Narcles Fast Fighter. I ran it and i got this error in SMART.Scar

Line 7: [Error] (15086:11): Duplicate identifier 'MOVEMOUSE' in script C:\Program Files\SCAR 3.15\includes\srl/srl/misc/SMART.SCAR

My first error was that smart was missing but i fixed that by putting the srl/srl/misc/SMART.SCAR

Please post all help. Thanks :)

belgin fish

2008-07-15 23:17:36

delete your old srl manualy then download the new revision and extract it to the old srl folder, you have to delete the old files you cannot overwrite then and it should work.

killr280

2008-07-15 23:37:10

Thanks for the reply but not working :( i deleted the entire SRL folder manualy and then i pressed checkout and then ran it. Still error on line 7. Any other advice?

Wanted

2008-07-15 23:49:28

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

is what it should be, your includes are probably in the wrong order.

I suggest you read the SMART tutorial in my signature.

killr280

2008-07-15 23:56:41

i did use that tut but when i did that it said smart was missing. i found the file where SMART was ut that in there. is there any way to fix this?

Wanted

2008-07-16 00:07:22

From: killr280
i did use that tut but when i did that it said smart was missing. i found the file where SMART was ut that in there. is there any way to fix this?


I just realized smart was moved to misc, re-read that tutorial (I just updated it) and try again and then post here and tell me if it worked.

Notice I changed
{.Include SMART.SCAR}
to
{.Include SRL\SRL\Misc\SMART.SCAR}

Now does it work?

Example

program NewSMARTScript;

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

begin
SMARTSetUp('world38', True, True, False); {World prefix, safe mode, unsigned, RS-HD}
SetTargetDC(SMARTGetDC);
SetUpSRL;
end.

killr280

2008-07-16 00:10:23

I did that before :( still no work

Wanted

2008-07-16 00:11:36

From: killr280
I did that before :( still no work


So you're saying that this script:

program NewSMARTScript;

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

begin
SMARTSetUp('world38', True, True, False); {World prefix, safe mode, unsigned, RS-HD}
SetTargetDC(SMARTGetDC);
SetUpSRL;
end.

Won't compile for you?

killr280

2008-07-16 00:11:51

Sorry my thing broke, ill try that

killr280

2008-07-16 00:14:05

Sorry for double post, that does compile and smart opens. Does this mean its just the script?

Wanted

2008-07-16 00:15:18

From: killr280
Sorry for double post, that does compile and smart opens. Does this mean its just the script?


Probably, did you edit the script correctly? And have you run the Quick Test Tutorial?

killr280

2008-07-16 00:16:45

quick test tutorial?

Wanted

2008-07-16 00:26:49

From: killr280
quick test tutorial?


The one linked at the bottom of the 10 steps thread.

killr280

2008-07-16 00:29:49

OMG DUDE THANKS SO MUCH! i redownloaded the script and used ur new tut. WORKED LIKE A CHARM! THANKS SO MUCH!