Results 1 to 12 of 12

Thread: Srl doesn't compile in simba.

  1. #1
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default Srl doesn't compile in simba.

    I get this error:
    Code:
    [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.

  2. #2
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    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?
    Last edited by Zyt3x; 10-01-2010 at 11:57 AM.

  3. #3
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

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

  4. #4
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    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.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  5. #5
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    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 :]

  6. #6
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    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:
    Code:
    {.include LobbyInclude.simba}
    {.include srl/srl.scar}
    or
    Code:
    {.include srl/srl.scar}
    {.include LobbyInclude.simba}
    With the first one I get this error:
    Code:
    [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:
    Code:
    [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.
    Last edited by weequ; 10-03-2010 at 10:08 AM.

  7. #7
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    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 best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  8. #8
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    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)
    Last edited by weequ; 10-03-2010 at 10:26 AM.

  9. #9
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

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



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  10. #10
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    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?

  11. #11
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by antti mies View Post
    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)



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  12. #12
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    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.
    Last edited by weequ; 10-03-2010 at 10:43 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •