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

Wierd Smart Error


Coolerthanauto

2009-08-14 11:32:42

Ok guys I am baffled. All of a sudden whenever I try to use SMART it cannot compile smart.scar with this error. It worked earlier, in fact I am running forefeathers in SMART right now.
Line 4: [Error] (8:1): Identifier expected in script 
I have modified my smart.scar and srl.scar to automatically run smart, but that was weeks ago and it worked fine. Since it is a (slightly) modified version here is the code that it is having problems with.
function IsKeyDown(C:Char): Boolean;
begin
Result := SmartIsKeyDown(ord(c));
end;
I have tried reinstalling srl and reflection twice and that does not work. In case it matters smart started acting up when I tried to run the below script that I wrote to give tile locations to help me write the tutorial runner I am working on:

// Don't know if this works because I am half asleep right now
//and I never got a chance to compile it
{.include srl/srl/misc/smart.scar}
{.include srl/srl.scar}
{.include srl/srl/reflection/reflection.scar}

var
me : TME;
begin
me := GetMe;
Repeat
begin
wait (1000);
cleardebug;
writeln ('Current Tile is: ' + IntToStr(me.tile.x) + ' , ' + IntToStr(me.tile.y));
end;
until (false);
end.
Thanks in advance

ian.

2009-08-14 11:35:38

Did you move your plugins? :)

Move the files from..

C:\Program Files\SCAR 3.21\Includes\SRL\place inside plugins folder

to..

C:\Program Files\SCAR 3.21\Plugins

and you also need to move (I think.. :p I'd do it just in case. It won't hurt. :))..

C:\Program Files\SCAR 3.21\Includes\SRL\SRL\Reflection\PLACE INSIDE PLUGINS FOLDER

to..

C:\Program Files\SCAR 3.21\Plugins

also. :) Hope that helps.

Coolerthanauto

2009-08-14 11:40:46

Yeah I did move my plugins. I am 80% sure that the problem is not with the plugins but rather with the compiler. But I am glad the tile getter worked :)

Edit: This is seriously wierd. Forefeathers will run but my tilegetter keeps getting errors in smart.scar. Sigh… I'm going to sleep.

Baked0420

2009-08-14 11:51:55

sorry man, was gonna try to help you out, but I can't, it compiles for me, try reinstalling srl

cycrosism

2009-08-14 15:38:48

Install/Update Java and Install/Update Java Development Kit?

That might work..

Coolerthanauto

2009-08-14 23:48:57

From: cycrosism
Install/Update Java and Install/Update Java Development Kit?

That might work..


I don't get it, its really wierd. Some scripts run smart just fine and some won't compile smart.scar. My Java and all Scar/srl/reflection components are up to date