SRL Archive - OSR Help

Scripts wont run.


Prayanthem

2013-04-01 09:34:15

Hey,

I recently finished setting up SRL and SIMBA using the sticky threads and youtube tutorials.
When I click play, the script compiles properly. The runescape 07 client launches.
BUT! none of the scripts functionalities run. I am using the test snippet:


Program testP07;
{$DEFINE SMART8}
{$I SRL/SRL.Simba}
{$I P07Include.Simba}

//LOGIN INFO STUFF
Procedure P07_DeclarePlayer;
Begin
P07_PlayerName:='username';
P07_PlayerPass:='password';
End;

Begin
SetupSRL;
P07_DeclarePlayer;
SetupP07Include;
ActivateClient;
Wait(2000);
If (Not P07_LoggedIn) Then
P07_LogInPlayer;
P07_MakeCameraAngleHigh;
P07_MakeCompassNorth;

Writeln(P07_GetUpText);

If P07_BankScreen Then
WriteLn('Bank is Open');
If P07_InvFull Then
WriteLn('Inventory is Full');


- Smart v8 is installed.

This will (supposedly) try to log in with 'username' and 'password'. However, it does not.
Any suggestions? Thanks.

Sjoe

2013-04-01 09:58:59

From: Prayanthem
Hey,

I recently finished setting up SRL and SIMBA using the sticky threads and youtube tutorials.
When I click play, the script compiles properly. The runescape 07 client launches.
BUT! none of the scripts functionalities run. I am using the test snippet:


Program testP07;
{$DEFINE SMART8}
{$I SRL/SRL.Simba}
{$I P07Include.Simba}

//LOGIN INFO STUFF
Procedure P07_DeclarePlayer;
Begin
P07_PlayerName:='username';
P07_PlayerPass:='password';
End;

Begin
SetupSRL;
P07_DeclarePlayer;
SetupP07Include;
ActivateClient;
Wait(2000);
If (Not P07_LoggedIn) Then
P07_LogInPlayer;
P07_MakeCameraAngleHigh;
P07_MakeCompassNorth;

Writeln(P07_GetUpText);

If P07_BankScreen Then
WriteLn('Bank is Open');
If P07_InvFull Then
WriteLn('Inventory is Full');


- Smart v8 is installed.

This will (supposedly) try to log in with 'username' and 'password'. However, it does not.
Any suggestions? Thanks.


U replaced login.simba, SmartParams.simba and globals? with the ones from Gurkan's thread

Prayanthem

2013-04-01 10:02:31

From: Sjoekeloe
U replaced login.simba, SmartParams.simba and globals? with the ones from Gurkan's thread


I did. But if you think that could be causing the problem I will try to redo the process just to be sure.

EDIT >

If I hadnt before, I have definently done it now and it changed nothing.
However, I noticed when launching Simba that it outputs this:


Can not load SQLite client library "sqlite3.dll". Check your installation.
You can find the library at "http://www.sqlite.org/".
Setting LastConfig/MainForm/RecentFiles/File7 to


Don't know what that means, but I guess I will take the tip and "Check my installation" - So I'll reinstall and see what happens.

Sjoe

2013-04-01 10:25:18

From: Prayanthem
I did. But if you think that could be causing the problem I will try to redo the process just to be sure.

EDIT >

If I hadnt before, I have definently done it now and it changed nothing.
However, I noticed when launching Simba that it outputs this:



Don't know what that means, but I guess I will take the tip and "Check my installation" - So I'll reinstall and see what happens.


Shouldn't cause a problem, that pop-ups for me to. Just try a full re-install :)

Prayanthem

2013-04-01 11:54:34

From: Sjoekeloe
Shouldn't cause a problem, that pop-ups for me to. Just try a full re-install :)


Tried a full re-install, the problem persists.

Steps:

Install Simba
Enable extensions
Update extensions
Try to run: It compiles and a rs window pops up

Install Smart v8
Run: It compiles and a rs window pops up with v8

Add P07UpChars and P07Include to their respective folders
Run, after you have selected an old RS window as the client, using the code snippet if should log in

Does not login!

* I restart Simba in between.

Outputs

New window: XXXXXX (Selection of RS client)
Compiled successfully in 624 ms.
Checking P07Include VersionNumber
Local : 1.7 / Latest : 1.7
You Have The Latest Version of P07Include

Then nothing…

Sjoe

2013-04-01 11:59:08

The way you did it, doesn't it pop up EoC?

This is the last step :http://villavu.com/forum/showthread.php?t=97599

Prayanthem

2013-04-01 12:03:05

It does, however the last step is this one:
http://villavu.com/forum/showthread.php?t=96863
Or rather:
http://www.youtube.com/watch?feature=player_detailpage&v=Iox4LylEj40#t=227s
"Open up an OldSchool runescape in your browser"

I am not using SMART in this step.

Sjoe

2013-04-01 12:05:17

From: Prayanthem
It does, however the last step is this one:
http://villavu.com/forum/showthread.php?t=96863
Or rather:
http://www.youtube.com/watch?feature=player_detailpage&v=Iox4LylEj40#t=227s
"Open up an OldSchool runescape in your browser"

I am not using SMART in this step.


try setting auto-update to false in the P07Include.

Should be at top of the include.

Make sure there's only one file in the Include folder (sometimes it makes a new now)

Prayanthem

2013-04-01 12:10:29

This is just awfully embarrasing…

My assumptions were correct - I did something wrong in the 07 setup.
Hence, I opened the P07Include.simba - it was fine - then P07UpChars folder in the fonts > The directory went like this: C:\Simba\Fonts\P07UpChars\P07UpChars
A DOUBLE FOLDER! ^ Damn you WinRar…

Anyways, new problem occured. It now successfully clicks the windows and attempts to log in, but it does not in fact output 'username' & 'password'


Begin
P07_PlayerName:='username';
P07_PlayerPass:='password';
End;


EDIT: EVERYTHING IS KEWL!!!

/closed

sebastiaanbas

2013-04-02 03:08:06

[Error] (1:1): period ('.') expected at line 0
Compiling failed. please help my