SRL Archive - Help

Duplicate???


luckelelle

2015-03-14 16:26:54

When including reflection I get this problem:

Error: Duplicate declaration "Skill_Attack" at line 220

help please. :)

Kyle

2015-03-14 16:33:02

From: luckelelle
When including reflection I get this problem:

Error: Duplicate declaration "Skill_Attack" at line 220

help please. :)


I'm assuming you are using it with Aerolib? If so, be sure to include AL first so it looks like:

{$DEFINE SMART}
{$i AeroLib/AeroLib.Simba}
{$i Reflection/Reflection.simba}

luckelelle

2015-03-14 16:35:20

From: elfyyy
I'm assuming you are using it with Aerolib? If so, be sure to include AL first so it looks like:

{$DEFINE SMART}
{$i AeroLib/AeroLib.Simba}
{$i Reflection/Reflection.simba}


No I'm not using AeroLib, no idea what that even is. :p

Harrier

2015-03-14 16:36:11

Gonna guess you need to set it to pascal script

luckelelle

2015-03-14 16:41:08

From: Hawker
Gonna guess you need to set it to pascal script


That gives me this error:

Exception in Script: Unknown compiler directives at 2:3

luckelelle

2015-03-16 07:10:00

None knows why this is happening? :(

the bank

2015-03-16 08:25:25

Post the code that results in the error.

luckelelle

2015-03-16 08:55:36

From: the bank
Post the code that results in the error.


Doesn't matter what the code is. As soon as i include srl and reflect it gives this error.

3Garrett3

2015-03-16 11:33:45

From: luckelelle
That gives me this error:

Exception in Script: Unknown compiler directives at 2:3


This is the error for the wrong compiler (Lape or Pascal) so switch back to what you had before. I think.

So now post the script that is breaking it. I don't care if it's 5 lines, type something up and tell me the error, then I can try to figure out why. I can't just take "everything breaks" because I'm not willing to wade through everything to find your error.

luckelelle

2015-03-17 12:26:14

From: 3Garrett3
This is the error for the wrong compiler (Lape or Pascal) so switch back to what you had before. I think.

So now post the script that is breaking it. I don't care if it's 5 lines, type something up and tell me the error, then I can try to figure out why. I can't just take "everything breaks" because I'm not willing to wade through everything to find your error.


This is enoguh to get the error.

program new;

{$DEFINE SMART8}
{$I SRL-OSR/SRL.simba}
{$I reflection/Reflection.simba}

begin
end.

Harrier

2015-03-17 13:50:39

From: luckelelle
This is enoguh to get the error.

program new;

{$DEFINE SMART8}
{$I SRL-OSR/SRL.simba}
{$I reflection/Reflection.simba}

begin
end.

Stop using lape reflection with srl-osr, use pascal reflection

Verfy

2015-03-23 03:33:11

From: luckelelle
This is enoguh to get the error.

program new;

{$DEFINE SMART8}
{$I SRL-OSR/SRL.simba}
{$I reflection/Reflection.simba}

begin
end.


What Hawker said, set your interpreter to Lape if you use {$I reflection/Reflection.simba} or to pascal for {$I SRL-OSR/SRL.simba}, I guess you can't use them both in same script.

Your program should look something like that (note that SMART8 is now only SMART) and there's no OS reflection :)

program new;

{$DEFINE SMART}
{$I reflection/Reflection.simba}

begin
end.

BigRedJapan

2015-05-09 15:26:25

you stuff should look llike this

{$I SRL-OSR/SRL.Simba}
{$I SRL-OSR/SRL/Reflection/Reflection.simba}