SRL Archive - Outdated Tutorials

Reflection Downloader!


Timer

2008-08-07 19:45:09

Well, Run This Script To Download Reflection!

Program Reflection_Downloader;

Var
Download: TStringArray;
Downloaded: Array[0..10] Of String;
I, F: Integer;

Procedure Setup;
Begin
Download := ['Changelog.txt', 'Characters.Scar', 'Core.scar',
'Depreciated.scar', 'Hooks.Scar', 'Objects.Scar', 'README.txt',
'Reflection.Scar', 'Walking.Scar'];
End;

Procedure DownloadFiles;
Begin
For I := 0 To High(Download) Do
Begin
Downloaded[i] := GetPage('http://scarreflection.googlecode.com/svn/trunk/' + Download[i]);
WriteLn(IntToStr(I));
End;
End;

Procedure Install;
Begin
For I := 0 To High(Download) Do
Begin
F := RewriteFile(AppPath + '\Includes\SRL\SRL\Reflection\' + Download[i], False);
WriteFileString(F, Downloaded[i]);
CloseFile(F);
End;
End;

Begin
Setup;
DownloadFiles;
Install;
End.

Shuttleu

2008-08-07 19:50:05

i made the exact same thing apart from instead of making a const calles s with scars path i used AppPath which is better because if scar changes then it will put reflection in the correct place

~shut

Timer

2008-08-08 09:48:56

Does no one want to save installing a program and just run this?! :p

OpenHearts

2008-08-08 09:54:03

So once I've downloaded this, this is all i need to use reflection scripts? Or is there more to it?

NightBlade

2008-08-08 09:54:11

Hell ya, thanks

EvilChicken!

2008-08-08 09:54:44

Why would someone do that?!

Most, if not all people here on SRL, have SubVersion. Only thing you'll need then is just to press the start menu key and R. This brings out the "Run.." command prompt. Type in this:
svn checkout http://scarreflection.googlecode.com/svn/trunk/ scarreflection-read-only
and press OK. Voila!


Edit: FINE, TIMER; JUST IGNORE ME ALL YOU WANT.

Timer

2008-08-08 09:55:23

From: OpenHearts
So once I've downloaded this, this is all i need to use reflection scripts? Or is there more to it?

Just run it every once and awhile, and yes, you'll be set! :)

From: NightBlade
Hell ya, thanks

No problem! :)

traigen

2008-08-12 06:02:49

cant connect ot the site:mad:

it just does this:
Successfully compiled (130 ms)
0
1
2
HTTP/1.1 404 Not Found
3
4
5
6
7
HTTP/1.1 404 Not Found
8
9
HTTP/1.1 404 Not Found
10
Successfully executed

elf5380

2008-08-13 16:26:56

^ me 2 whats up with that :Z

Timer

2008-08-13 17:37:30

New version..! Updated to new reflection Files.

Magiic

2008-08-14 11:44:24

ownage thanks man

FagetHax0r

2008-09-05 17:16:22

Line 3: [Error] (3:1): Unknown identifier 'Download' in script

;S

Shady?

2008-09-11 21:09:16

Nice script, to bad that i already made one myself lol. Anyways here is a tip, in line 20 change
WriteLn(IntToStr(I));
to
WriteLn(download); ?
so people will know when it's done? Also add 'Items.scar'