SRL Archive - Research & Development Lounge

Option to use SCSS in scripts.


Nitro

2007-08-08 04:57:54

Hey,

This funky, little procedure will load SCSS, Load a world with the least players in and set the handle, Only if the declared constant is set to true, If false it will just carry on as if it wasn't there.

I made this procedure for my script. But I thought I might as well share it with you guys. You can use it, just remember to credit me. Here it is as an example for you to use.

Example

program UseSCSSExample;

{.include SRL/SRL.scar}

const
UseSCSS = True; // Set to True if you would like to use SCSS.

procedure SetupSCSS;
begin
Writeln('UseSCSS; is set to true, Loading SCSS...');
Wait(2000);
if OpenSCSS then
begin
Writeln('Loading world with least players in.');
SCSSLoadLeast(False, True);
end;
end;

begin
SetUpSRL;
if UseSCSS then
SetupSCSS;
end.

-Nitro

Santa_Clause

2007-08-08 06:39:49

Good job.

R0b0t1

2007-08-08 17:33:36

Kewlishnes?


Methinks I like it.

TravisV10

2007-08-26 16:48:46

NICE! Will use right now.

EDIT: Doesn't work

dvdcrayola

2007-08-26 17:10:27

program UseSCSSExample;

{.include SRL/SRL.scar}

const
UseSCSS = True; // Set to True if you would like to use SCSS.

procedure SetupSCSS;
begin
if UseSCSS then
begin
Writeln('UseSCSS; is set to true, Loading SCSS...');
Wait(2000);
if OpenSCSS then
begin
Writeln('Loading world with least players in.');
SCSSLoadLeast(False, True);
end;
end;
end;

begin
SetUpSRL;
SetupSCSS;
end.

thats easier for users to put into their script ;)

good procedure though

TravisV10

2007-08-26 17:11:53

Edit: Nvm! Works

Killerdou

2007-08-26 17:16:54

bewarned, use scss only with java 1.5.something 1.6 will crash sometimes during worldswitching(not first time you load but it happens sometimes after that)

dvdcrayola

2007-08-26 17:18:03

I dont know if the part i put works, i just used what he had

Infantry001

2007-08-26 22:06:40

And on some computers (like one of mine…), SCSS doesn't allow compass rotation :(

mat_de_b

2007-09-01 14:48:08

SCSS works good on mine and its just genrally handy so thanks

Macho Man67

2007-09-01 14:58:08

Cool, I'm going to try to use it in my next script. I'll give proper credits if I use it….

OffTopic: SCSS does not work on my computer, so I cant use it.:(

botmaster

2007-09-01 15:03:41

Doesn't work. When I include SCSS - total failure of SCSS.scar:

Line 67: [Error] (12303:1): Unknown identifier 'ChangeFPHandle' in script C:\Program Files\SCAR 3.11\includes\SRL/SRL/misc/SCSS.scar

Using SRL 4.0 BETA.

itSchRis917

2007-09-01 15:52:28

Yep, the SRL Devs know about that bug botmaster. I hope it will be fixed in the official release of SRL 4.0. (im sure it will be)

stein3

2007-09-14 11:02:56

do you know if there is a temporary fix for that error?
i can't run anything because it finds that error in line 67 of SCSS.SCAR.

itSchRis917

2007-09-15 16:31:38

Umm, i think there is.. but im not sure.. Use the search button.