SRL Archive - Help

Including SRL <-- Help the noob :D


LordJashin

2012-02-27 19:38:48

Up until now I've been just using Simba's stuff. I want to use SRL but have no idea how to do it the way I want to. I want to include all of SRL except anything that deals entirely with RS. If all of SRL has stuff that can be used besides RS stuff in its files then just include the entire SRL. When I do this

Simba Code:
{$i SRL/SRL.simba}
{$DEFINE Smart}
{$DEFINE Simba}
{$DEFINE SRL5}


I get errors. Also if I did include all of SRL do I have to use SetupSRL? If so how do I stop it from loading RS stuff like bitmaps/dtms. Idc if it loads fonts.

Error: Exception: Font [AllChars] not found. at line 125
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap]


Sin

2012-02-27 19:58:03

SetupSRL;

YoHoJo

2012-02-27 19:59:36

Just need
{$DEFINE SMART}
{$i SRL\SRL.simba}
After your Program New; line.

Also after your very last begin in the script, put
SetupSRL;

LordJashin

2012-02-27 20:08:45

What would you do if you didn't want to load SMART but just use some of the code in it? Like MMouse or Mouse or w/e code in there can be useful for things other then RS

Edit: Also what is that slider on the right side of the SMART client?

YoHoJo

2012-02-27 20:10:43

Don't have the {$DEFINE SMART} line.
No code is in SMART, it's all in SRL.

LordJashin

2012-02-27 20:14:59

From: YoHoJo
Don't have the {$DEFINE SMART} line.
No code is in SMART, it's all in SRL.


My bad, but wouldn't you need to do something like this:

Simba Code:

{$DEFINE Simba}
[LEFT]{$i SRL\SRL.simba}
[/LEFT]


To include all of SRL including Simba.simba?

YoHoJo

2012-02-27 20:22:12

No define, just {$i SRL\SRL.simba} is fine.

Gucci

2012-02-27 21:35:22

The slider just increases fps so decreases lag