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

Error when compiling with reflection


TheGuyWhoGotOn

2010-03-18 00:25:08

I have all the latest SVNs (For SRL, SMART, and Reflection). I have SCAR 3.22.

Here is my error:

Line 661: [Error] (23524:65): Type mismatch in script H:\Program Files\SCAR 3.22\includes\SRL\SRL\Reflection\Characters.Scar

Here is my script:


program New;

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


procedure SetupSmart;
begin
SmartSetupEx(1, False, True);
ClearDebug;
Wait(10000 + random(5000));
SetTargetDC(SmartGetDC);
while not(SmartReady) do Wait(100);
end;

begin
SetupSRL;
SetupSmart;
end.

Am I doing something wrong? Thank you.

mormonman

2010-03-18 00:34:39

Which reflection repository? The development one compiles… delete and re-download
http://scardevreflection.googlecode.com/svn/trunk/

i luffs yeww

2010-03-18 00:42:06

Get SCAR 3.23, by the way.

TheGuyWhoGotOn

2010-03-18 01:14:41

From: mormonman
Which reflection repository? The development one compiles… delete and re-download
http://scardevreflection.googlecode.com/svn/trunk/


Thank you, the dev repo worked like a charm. Maybe if I start scripting again I can commit again ^_^. Thanks Rep++.

@i luffs yeww: I don't dl pre-releases unless Freddy asks me to or I have a specific reason.

Edit: Just another question…SMART seems to hit an infinite loop, notice how 1 or 2 never get printed to the debug.


program New;

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


procedure SetupSmart;
begin
SmartSetupEx(1, False, True, False);
ClearDebug;
writeln('1');
Wait(7500);
Writeln('2');
SetTargetDC(SmartGetDC);
end;

begin
SetupSRL;
SetupSmart;
end.

XD Please help :).

Edit2: On a random note: I'm still in the reflection credits but I have no SRL Scripter/Dev badge :P. I guess writing for reflection doesn't count? XD

Sex

2010-03-18 01:16:02

Uptext and other such things work in 3.23 but do not work in 3.22. There is your reason :).

TheGuyWhoGotOn

2010-03-18 01:27:37

From: Sex
Uptext and other such things work in 3.23 but do not work in 3.22. There is your reason :).


That's a damn good reason, thanks (I noticed the texts weren't working XD). Rep++

Edit: 3.23 Beta + Latest SRL SVN produces:
Line 270: [Error] (15538:1): Invalid number of parameters in script H:\Program Files\SCAR 3.22\3.23\includes\SRL\SRL\Core\AntiRandoms\Sandwich.scar

Blumblebee

2010-03-18 01:35:12

your going to need to move your plugins (I think)

TheGuyWhoGotOn

2010-03-18 01:38:13

From: Blumblebee
your going to need to move your plugins (I think)


I already did…I'll try again…Same error.

Coh3n

2010-03-18 02:27:46

Hmm I usually see that error when people use 3.22. Do you have the Dev SRL? or public?

Also, the SRL Scripter/Dev cups (which I'm assuming you were talking about in an above post) are obtained by actually being an SRL Developer, and the scriper's is given to the best of scripters (usually those who write 1+ well-written, advanced techniques and working runescape scripts). :)

i luffs yeww

2010-03-18 02:37:01

Well you're using SmartSetupEx and SetTargetDC.. We don't use it anymore. Just have..


Smart_members := true; //or false for f2p
Smart_signed := true; //or false for unsigned
Smart_world := 64; //has to agree with _members, if that makes sense..
Smart_superdetail := false; //just keep at false. :p

:) just add that before SetupSRL;, and that's it.

YoHoJo

2010-03-18 02:58:52

@i luffs yeww
Just because the directory says 3.22 doesn't necessarily mean they have that version. Lots of people downloaded 3.22 SCAR, and THEN SVNed the folder to prerelease, updating their SCAR, but not the folder name

Sex

2010-03-18 11:21:43

Alright, delete all the plugins in the SCAR/Plugins folder, and then copy all the plugins from move_to_plugins_folder (in SRL) to the SCAR/Plugins folder.

Then restart SCAR and see if it works.

Bionicle

2010-03-18 11:24:44

From: Sex
Alright, delete all the plugins in the SCAR/Plugins folder, and then copy all the plugins from move_to_plugins_folder (in SRL) to the SCAR/Plugins folder.

Then restart SCAR and see if it works.


this.
but do NOT move the reflection plugins :p they don't work yet AFAIK

TheGuyWhoGotOn

2010-03-18 15:07:11

Thanks for the help everyone I'll try all that…Same error, what's the dev SRL SVN?

Dynamite

2010-03-18 16:26:43

Use:
http://www.villavu.com/repositories/srl-opendev

TheGuyWhoGotOn

2010-03-18 17:33:00

From: The Man
Use:
http://www.villavu.com/repositories/srl-opendev


Thanks, that solved everything.

Dynamite

2010-03-18 18:15:07

From: TheGuyWhoGotOn
Thanks, that solved everything.


No worries :)