SRL Archive - Discussions and Debates

The New SRL


WhoCares357

2012-08-13 13:52:01

Hey everyone!

I am an old SRL member from way back in the day. This place is a little nostalgic for me, so I check back once in a while.

Recently I had some free time, so I decided to play around with the new interpreter (Simba) and see how the SRL library has come along. A lot has changed since SCAR, and I feel like I have a lot of catching up to do.

The reason I made this post was to see if you guys could give me a starting point.

Primarily, I am interested in what techniques the latest scripts are using for things like walking, banking, etc. I tried writing a little cooking script, but a large part of the SRL library seems either completely broken or malfunctioning.

I know that runescape recently released an update that broke many scripts, so I realize that this may be the reason that many parts of SRL are broken.

Also, is there any documentation for SRL? I used the Simba documentation extensively when I was writing my script, and it was a huge help.

Thanks for any advice/tips,
WhoCares357

eska

2012-08-13 13:55:08

http://docs.villavu.com/

Here's the doc.

For walking, SPS, ddtm, TPA and radial walk
For item recognition: Bitmap, DTM, TPA

BraK

2012-08-13 14:04:25

You could also try Object DTMs for walking/position finding.

Heya there WhoCares long time no see. I remember being a little leecher back when you were around. Probably one of the first leechers on villavu. :)

Nebula

2012-08-13 16:16:31

Well first you'd have to make sure you have everything setup properly to begin, so I'm attaching my personal "Script Base".

SPS is probably the most common/easiest to use walking method, tut here: http://villavu.com/forum/showthread.php?t=71461

Useful functions:
WaitUpTextMulti
WaitOptionMulti
WaitFunc
IsMoving
InvCount
GameTab

Just go to C:\Simba\Includes\SRL\srl\core and explore. Most functions have an description above them so most things should be self-explanatory.

[XoL]

2012-08-13 16:17:29

o.o, welcome back (I am newer here).
As eska and BraK already pointed out what I would of said, hello :p

grats

2012-08-13 16:26:14

Hello! Yea a lot of changes, one of the cooler ones is runescape says "updated" after 6 hours no matter what now so the work around is very fancy :P

NCDS

2012-08-13 16:28:46

Welcome back. :)

litoris

2012-08-13 16:31:30

Welcome back, I suggest you look through working scripts once you feel you've got the hang of the include. You understand things much better when you see them in use.

Kyle Undefined

2012-08-13 16:36:42

Wow, you weren't very active when I joined, but it's glad to see you're back :)

WhoCares357

2012-08-13 17:05:24

@eska and Brak:
Thank you for the link to the doc and the techniques.

@Nebula:
Thanks for the list. I actually did what you suggested when I was writing the script (browse srl files). It is much quicker to do it with some api docs, though.

For walking, SPS was actually the first thing I tried. I stopped using it (added a fallback, that is), because it only worked 5 out of 10 times. Half of the time it returned true when it had not even clicked on the minimap. I do like the concept of it, though. Maybe I'm just doing something wrong. I'll have to look into it some more.

Also, I didn't know Simba supported function pointers. Very cool :D. This will be much easier than writing a timeout loop every other line.

Home

2012-08-13 17:14:27

Hello WhoCares nice to see you again!

I suggest you to take a look in other peoples scripts and see how they do it :)

~Home

masterBB

2012-08-13 17:47:30

I suggest to look into lape, that will be the new interpreter soon anyway.

http://villavu.com/forum/showthread.php?t=68613
[Srl members+]

WhoCares357

2012-08-13 18:33:41

From: masterBB
I suggest to look into lape, that will be the new interpreter soon anyway.

http://villavu.com/forum/showthread.php?t=68613
[Srl members+]


I actually tried it recently. Unfortunately it isn't compatible with SRL at the moment. Looks like a huge improvement over Pascal Script, though.

masterBB

2012-08-13 18:44:47

From: WhoCares357
I actually tried it recently. Unfortunately it isn't compatible with SRL at the moment. Looks like a huge improvement over Pascal Script, though.

https://github.com/SRL/SRL-5/tree/lape_fixes

WhoCares357

2012-08-13 19:53:38

From: masterBB
https://github.com/SRL/SRL-5/tree/lape_fixes


program new;

{$DEFINE LAPE}
{$i srl/SRL.simba}

begin
SetupSRL;
end.

Exception in Script: Duplicate declaration "ActivateClient" at line 38, column 29 in file "C:\Simba\Includes\srl\SRL.simba"

I compiled the dlls and put them in ~/Plugins (and I restarted Simba), and I merged SRL.simba, SRLLape.simba, and the core, misc, skill folders. Did I miss something?

SRL.simba at line 38:
Procedure ActivateClient;begin end; {$IFDEF LAPE} override; {$ENDIF}

Kave

2012-08-13 20:38:59

Just remembering your smither ;) Welcome back.

jakeyboy29

2012-08-13 20:56:34

hellooooo, missed you

Kasi

2012-08-13 21:53:26

Welcome back :D just off memory, you did have a pretty night alcher out back then ? i think :P

Flight

2012-08-13 22:08:45

WhoCares… If I'm not mistaken, you're also from RuneCMS?

WhoCares357

2012-08-13 22:29:30

From: Flight
WhoCares… If I'm not mistaken, you're also from RuneCMS?


Nope. I think there was another WhoCares when I was around (without 357).

Griff

2012-08-14 00:12:07

I remember you! Welcome back man :) You'll find a lot has changed, but at the same time, deep down the community is still pretty similar.

Echo_

2012-08-14 00:44:18

I've seen you on RSHacking, welcome back :)

masterBB

2012-08-14 15:15:24

From: WhoCares357

I compiled the dlls and put them in ~/Plugins (and I restarted Simba), and I merged SRL.simba, SRLLape.simba, and the core, misc, skill folders. Did I miss something?

SRL.simba at line 38:
Procedure ActivateClient;begin end; {$IFDEF LAPE} override; {$ENDIF}


It is indeed an error in srl their side. Line 38 should be:
Procedure ActivateClient; {$IFDEF LAPE} override; {$ENDIF} begin end; 

Flight

2012-08-14 21:54:09

Yep for Lape I posted the fixes yesterday here:
http://villavu.com/forum/showpost.php?p=1085887&postcount=12

eska

2012-08-14 22:16:35

From: Flight
Yep for Lape I posted the fixes yesterday here:
http://villavu.com/forum/showpost.php?p=1085887&postcount=12


I'm not sure that the fix about replaceWrap actualy works.

It doesn't make much sense to avoid calling replaceWrap since the function has been corrected in SRLLape.

Flight

2012-08-14 22:47:16

From: eska
I'm not sure that the fix about replaceWrap actualy works.

It doesn't make much sense to avoid calling replaceWrap since the function has been corrected in SRLLape.


You'll have to ask Nielsie, the only change I made for the parameters of that line was removing the -1 at the end. It's more of a fix for SMART V8.0+.

Gala

2012-08-15 07:13:05

Welcome back, the entry won't be that hard :)

Wizzup?

2012-08-19 05:13:53

Name sounds familiar, hello! :)