Results 1 to 4 of 4

Thread: Changes to work with SRL updates

  1. #1
    Join Date
    Feb 2007
    Posts
    47
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Changes to work with SRL updates

    I often try to run scripts and get errors that are simply due to the updates in SRL.
    But this is always going to happen.
    I then try and update it myself. This gives me a good start in the common goal of learning to script, and helps me understand things better. But most of all, it makes sure that the scripters' very hard work doesn't go to waste just because someone can't be bothered replacing 5 - 10 lines in the script to make it work. Whenever i attempt to make older scripts compatible, it is always a hassle finding what to replace what with and why. This is why i thought it may be a good idea to post all the simple solutions to common problems with outdated scripts. For example, if you know you have come accross an error on several occasions, post it here and how to fix it , and importantly, why it has changed (if any real reason applies, other than "they changed the procedure's name")

    E.g. (a very very common one, just an example!)

    [Error] (12759:1): Unknown identifier 'HighestAngle'
    Failed When Compiling
    which can be fixed by changing
    HighestAngle;
    to
    Setangle(True)
    (and yes, im sure there are other methods. if so, post them!)
    or the error:
    [Error] (12759:1): Unknown identifier 'RunAway'
    Failed When Compiling
    which can be changed to:
    RunTo(RunDirec, True);
    sorry for the simple examples. Basically, the idea is to post all the script updates that can make older scripts compatible with new versions of SRL in one place. Hopefully it will be an asset to learning scripters and people wishing to update. Any information is useful, and this thread can also be used for people wishing to know how to update specific things by posting their problem. cheers, moose.

  2. #2
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Duplicate Identifier

    if you get an error called 'duplicate identifier' for a variable, Ive found that mine can be fixed by a) adding it to a variable list, or var , and sometimes simply changing the name of the variable.

    eg/ error duplicate identifier GetOutOfHere

    var
    GetOutOfHere:- boolean



    I'm not sure if this is technically correct, but it works for all the scripts ive tried it on.
    Project: Welcome To Rainbow

  3. #3
    Join Date
    Feb 2007
    Posts
    47
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ill kick us off then . anyone know what the new name for OpenBag is?

  4. #4
    Join Date
    Dec 2006
    Location
    Minnesota
    Posts
    227
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Do you mean GameTab(4)?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. new updates
    By NightShade1765 in forum OSR Help
    Replies: 3
    Last Post: 09-15-2008, 03:34 PM
  2. srl prob. with updates/un-updates
    By sylvie56 in forum News and General
    Replies: 7
    Last Post: 04-09-2008, 03:28 AM
  3. Rsl prob. with updates/un-updates
    By sylvie56 in forum News and General
    Replies: 1
    Last Post: 04-09-2008, 12:40 AM

Posting Permissions

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