Results 1 to 9 of 9

Thread: Get SRL Rev Number?

  1. #1
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default Get SRL Rev Number?

    Is there a way to get SRL's revision number from a script? As in
    SCAR Code:
    if (Rev < 14) then
      begin
        WriteLn('Get Revison 14 please.');
        TerminateScript;
      end;
    ?

    Thanks for help with this nubby question
    ~ Harry


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  2. #2
    Join Date
    Sep 2007
    Posts
    501
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i dont wanna tell anybody how to do their job *cough* devs *cough*but it would be nice if this was added in every rev

    SCAR Code:
    function ReturnRev: integer;
    var
      ThisRev: integer;
    begin
      ThisRev := 14;
      Result := ThisRev;
    end;
    simple but functional

  3. #3
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Or in Globals.scar... there is an empty spot, it looks like they removed it or something

    SCAR Code:
    { const SRLVersionNumber;
      Description: Repository Version Number. }
    Would be nice to have var SRLVersionNumber = '4.14'; there


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  4. #4
    Join Date
    Jul 2007
    Posts
    1,055
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    This just MIGHT be crazy enough to work.

    Mouse(coords of "File" botton in scar);
    if findobjcustom(text = ">", color = the pitch black blod text font) then...

    The > means when scar says "Update SRL SVN (X -> X)", and the color is different than other fonts, so it might work.

    So basicly if it finds that you haven't updated rev, then it will do w/e you want.

    idk gl.

  5. #5
    Join Date
    Sep 2007
    Posts
    501
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    so all they *cough* devs *cough* need to do is put
    SCAR Code:
    const
      Rev = 4.14;
    in teh globals

  6. #6
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    So any Developers gonna consider this?


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  7. #7
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    program New;

    function GetRev: Integer;
    begin
      Result:= StrToIntDef(Between('Revision ', ': /', GetPage('http://www.srl-forums.com/srl-repos/')), -1);
    end;

    begin
      writeln(inttostr(GetRev));
    end.

  8. #8
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by bullzeye95 View Post
    SCAR Code:
    program New;

    function GetRev: Integer;
    begin
      Result:= StrToIntDef(Between('Revision ', ': /', GetPage('http://www.srl-forums.com/srl-repos/')), -1);
    end;

    begin
      writeln(inttostr(GetRev));
    end.
    Yeh.. thats the latest one.. not what the user is using...

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

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

    Default

    Will add it.
    Const SRLVersionNumber = 14;



    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)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Checking if a number is a whole number or not?
    By Sandstorm in forum OSR Help
    Replies: 4
    Last Post: 10-26-2008, 04:40 PM
  2. Name to Number
    By smithsps in forum First Scripts
    Replies: 16
    Last Post: 03-06-2008, 10:39 PM
  3. Your number?
    By ub3r |<1||3r*1337* in forum News and General
    Replies: 4
    Last Post: 08-13-2006, 09:15 PM

Posting Permissions

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