SRL Archive - OSR Help

Srl doesn't compile in simba.


weequ

2010-10-01 07:07:03

I get this error:
[Error] C:\Program Files\Simba\Includes\SRL/SRL/core/simba.simba(248:10): Duplicate identifier 'REPLACE' at line 247
I even re-installed simba and srl.

Gu3st...

2010-10-01 07:53:56

It works just fine for me
No Reflection update
No SRL update / Plugins update available!
Compiled succesfully in 827 ms.
SRL Compiled in 187 msec
Successfully executed.


Have you edited simba.simba? I got some errors in simba.simba yesterday (Not same error though), but my problem was because the font folder was missing (I have no idea where that went lol)

Where is your simba folder located?

weequ

2010-10-01 08:18:20

Nvm I figured out that this happened becouse I included another include before srl.
Why must srl be included first?

Wizzup?

2010-10-01 09:26:59

SRL doesn't have to be included as first if you don't use SRL's functions in the file you want to include before SRL. :)

weequ

2010-10-01 09:41:48

From: Wizzup?
SRL doesn't have to be included as first if you don't use SRL's functions in the file you want to include before SRL. :)

Ok. Now I get it :]

weequ

2010-10-03 06:05:39

BUMP!

I figured out that the problem is that SRL replaces Replace() function with different parameters than it has in simba.

That makes me unable to use replace In my own include when I wan't to use SRL too. AND I WANT ALSO WANT TO BE ABLE TO USE IT WITHOUT SRL.

so no matter if I do:
{.include LobbyInclude.simba}
{.include srl/srl.scar}
or
{.include srl/srl.scar}
{.include LobbyInclude.simba}
With the first one I get this error:
[Error] C:\Program Files\Simba\Includes\SRL/SRL/core/simba.simba(248:10): Duplicate identifier 'REPLACE' at line 247
Compiling failed.
and with the second one I get this:
[Error] C:\Program Files\Simba\Includes\LobbyInclude.simba(316:103): Invalid number of parameters at line 315
Compiling failed.


Here is my suggestion: Don't have SRL replace functions with different parameters. Rather make it like Replace2 then.

Wizzup?

2010-10-03 06:09:08

Can't you just give the replace in your include a different name? Or are you trying to use Simba's original replace in your include?

weequ

2010-10-03 06:23:25

From: Wizzup?
Can't you just give the replace in your include a different name? Or are you trying to use Simba's original replace in your include?
The original one.
I guess the only thing I can do now is to make own replace2 function :( (If I don't want to edit SRL)

Wizzup?

2010-10-03 06:29:42

In that case you can't use it with SRL because we're encumbered with the SCAR compatibility.

weequ

2010-10-03 06:35:02

From: Wizzup?
In that case you can't use it with SRL because we're encumbered with the SCAR compatibility.
How does this have anything to do with SCAR?

Wizzup?

2010-10-03 06:36:47

From: antti mies
How does this have anything to do with SCAR?


The simba.simba is there to provide functions similar to SCAR for SRL. Which is the easier way to add Simba compatiblity to SRL. This is what we did initially.
That does mean you can't use Simba's original functions in SRL since simba.simba overrides these to provide SCAR compatibility. (And SRL needs this)

weequ

2010-10-03 06:38:58

From: Wizzup?
The simba.simba is there to provide functions similar to SCAR for SRL. Which is the easier way to add Simba compatiblity to SRL. This is what we did initially.
That does mean you can't use Simba's original functions in SRL since simba.simba overrides these to provide SCAR compatibility. (And SRL needs this)
Oh I get it now.. :( That's a pity.