Results 1 to 9 of 9

Thread: Reflection help

  1. #1
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Reflection help

    Alright hes another question, so i just got refletion and tried to see if it would work with this:
    SCAR Code:
    program New;
    {.include srl/srl/misc/smart.scar}
    {.include srl/srl.scar}
    {.include srl/srl/reflection/reflection.scar}
    begin
    end.

    and got

    SCAR Code:
    Line 116: [Error] (16594:19): Unknown identifier 'SmartStringFromString' in script C:\Program Files\SCAR 3.20\includes\SRL\SRL\Reflection\Core.Scar

    anyone know what the problem is?

  2. #2
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Do you have dev repo? Did you move the plugins from the SRL include?

  3. #3
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by mormonman View Post
    Do you have dev repo? Did you move the plugins from the SRL include?
    I just followed http://www.villavu.com/forum/showthr...213#post590213 so i honsetly have no idea


    EDIT: Hmm i ran it again and it works, something must have screwed up thanks anyways!

    EDIT2: NEW PROBLEM: When i run:
    SCAR Code:
    program new;
    {.include srl/srl.scar}
    {.include srl/srl/reflection/reflection.scar}
    procedure writepos;
    var
      myposition: TPoint;
    begin
      MyPosition := GetMyPos;
      writeln('Our tile is: '+inttostr(MyPosition.x)+','+inttostr(MyPosition.y));
    end;
    begin
    writepos;
    end.

    i get

    SCAR Code:
    Our tile is: 33554430,33554430
    no matter what tile i'm on -.- anyone?
    Last edited by All that is man; 06-30-2009 at 11:21 AM.

  4. #4
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Your hooks are somehow outdated.

  5. #5
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Call SetupReflection as the first thing you do after SetupSRL.

  6. #6
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program new;
    {.include srl/srl.scar}
    {.include srl/srl/reflection/reflection.scar}
    procedure writepos;
    var
      myposition: TPoint;
    begin
      MyPosition := GetMyPos;
      writeln('Our tile is: '+inttostr(MyPosition.x)+','+inttostr(MyPosition.y));
    end;
    begin
      SetupSRL;
      SetupReflection;
      WritePos;
    end.

    .. Double ninja'd

  7. #7
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    u need smart for it to work

  8. #8
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by All that is man View Post
    I just followed http://www.villavu.com/forum/showthr...213#post590213 so i honsetly have no idea


    EDIT: Hmm i ran it again and it works, something must have screwed up thanks anyways!

    EDIT2: NEW PROBLEM: When i run:
    SCAR Code:
    program new;
    {.include srl/srl.scar}
    {.include srl/srl/reflection/reflection.scar}
    procedure writepos;
    var
      myposition: TPoint;
    begin
      MyPosition := GetMyPos;
      writeln('Our tile is: '+inttostr(MyPosition.x)+','+inttostr(MyPosition.y));
    end;
    begin
    writepos;
    end.

    i get

    SCAR Code:
    Our tile is: 33554430,33554430
    no matter what tile i'm on -.- anyone?
    All my demo procedures are for when your logged in btw. So just make sure your logged in
    I do visit every 2-6 months

  9. #9
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ZaSz View Post
    All my demo procedures are for when your logged in btw. So just make sure your logged in
    i am and i got it all working thanks a bunch for the turtorial!

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
  •