Log in

View Full Version : Including SRL <-- Help the noob :D



LordJashin
02-28-2012, 12:38 AM
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
02-28-2012, 12:58 AM
SetupSRL;

YoHoJo
02-28-2012, 12:59 AM
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
02-28-2012, 01:08 AM
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
02-28-2012, 01:10 AM
Don't have the {$DEFINE SMART} line.
No code is in SMART, it's all in SRL.

LordJashin
02-28-2012, 01:14 AM
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}

{$i SRL\SRL.simba}



To include all of SRL including Simba.simba?

YoHoJo
02-28-2012, 01:22 AM
No define, just {$i SRL\SRL.simba} is fine.

Gucci
02-28-2012, 02:35 AM
The slider just increases fps so decreases lag