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
Printable View
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
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
simple but functionalSCAR Code:function ReturnRev: integer;
var
ThisRev: integer;
begin
ThisRev := 14;
Result := ThisRev;
end;
Or in Globals.scar... there is an empty spot, it looks like they removed it or something :o
Would be nice to have var SRLVersionNumber = '4.14'; there :)SCAR Code:{ const SRLVersionNumber;
Description: Repository Version Number. }
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.
so all they *cough* devs *cough* need to do is put
in teh globalsSCAR Code:const
Rev = 4.14;
So any Developers gonna consider this? ;)
;)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.
Will add it.
Const SRLVersionNumber = 14;