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

Paintsmart.smart error


Ivo09

2012-08-17 01:55:19

[Error] C:\Simba\Includes\SRL/srl/misc/paintsmart.simba(41:33): Unknown identifier 'SmartGetDebugDC' at line 40
Compiling failed.

Lines 38-44:
procedure SMART_SetupDebug();
begin
SmartSetDebug(True);
SMART_Canvas := TBitmap.Create;
SMART_Canvas.canvas.handle := SmartGetDebugDC;
SMART_DebugSetup := true;
end;

Edit: Just realized I messed up the title, ignore that.

euphemism

2012-08-17 02:17:25

Use SmartGraphics.simba, not PaintSmart.simba. PaintSmart is out-of-date and is being phased out.

kevin33

2012-08-17 02:20:54

Edit the line out by putting a // in front after you change it to SmartGraphics as Euph said if the error persists. Compile afterwards and let us know how it goes.

Sirenia

2012-08-18 17:03:33

Just change the include from paintsmart to smartgraphics

Ivo09

2012-08-24 05:46:38

[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(274:134): Invalid number of parameters at line 273
Compiling failed.

I'm pretty bad at this aren't I.

begin
Result := IDs;
SetEIOSTarget('libsmartremote', ToStr(Result));
Writeln('Paired with SMART[' + ToStr(Result) + ']');
Exit;
end;


The end is the line with the error. I get the same error even if I make the entire function a comment.

Solar

2012-08-24 06:01:48

Look at the OP, and change the parameters like he says. Then save smartparams and try running the script again (don't try to run smartparams!)
http://villavu.com/forum/showthread.php?t=87801

Ivo09

2012-08-24 06:40:56

I had all that set up fine. It was my java version 7 causing problems. Uninstalled it and stuck with j6 u33

My problem now is that it doesn't recognize identifier
Unknown identifier 'NumberOfPlayers'
or Unknown identifier 'Players'

Probably a lot of other similar problems that I haven't found yet too. Any ideas? Otherwise I'm stuck with MSI scripts only.

NKN

2012-08-24 06:44:52

Did you update SRL and your Plugins?

Ivo09

2012-08-24 06:48:39

Yep. No updates avaliable.

No MSI update available.
No SPS update available.
No Plugins update available.
No SRL update available.
No Extensions update available.