SRL Archive - OSR Help

Why is this code not logging me in?


BelgianFries

2013-04-03 07:00:43

program New;
{$DEFINE SMART8}
{$i srl/srl.simba}

Procedure DeclarePlayers;
Begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active := True;
End;


begin
SetUpSRL;
ActivateClient;
DeclarePlayers;
LogInPlayer;
end.

It loads SMART but doesn't log me in. I obviously edited out name/pass/nick.


Thanks.

dzpliu

2013-04-03 07:11:59

try putting declareplayers before everything else?

Smidqe

2013-04-03 07:16:44

From: BelgianFries

//snip
It loads SMART but doesn't log me in. I obviously edited out name/pass/nick.


Thanks.


Are your graphics settings correct? Min detail and max brightness?

Also ActivateClient isn't necessary, since you are using SMART.

BelgianFries

2013-04-03 07:22:55

From: dzpliu
try putting declareplayers before everything else?


From: Smidqe
Are your graphics settings correct? Min detail and max brightness?

Also ActivateClient isn't necessary, since you are using SMART.


Putting DeclarePlayers before everything else didn't change anything. I'm loading 07 but my brightness is on max, yes. And I know ActivateClient wasn't needed, I'm following an old scripting tutorial, just forgot to remove it.

Any other ideas to fix this?

Justin

2013-04-03 07:31:30

Are you loading the SRL-OSR include?

BelgianFries

2013-04-03 07:31:51

Fixed it by including this: {$I SRL-OSR/SRL.Simba}

Smidqe

2013-04-03 07:32:16

From: BelgianFries
Putting DeclarePlayers before everything else didn't change anything. I'm loading 07 but my brightness is on max, yes. And I know ActivateClient wasn't needed, I'm following an old scripting tutorial, just forgot to remove it.

Any other ideas to fix this?


Okay, so you are using the 07. Then you can't use the SRL include, you need to use SRL-OSR include. Which can be downloaded here (download button is the cloud with zip inside it):
https://github.com/SRL/SRL-OSR

Extract the zip to Simba/Includes/ folder and rename the folder to SRL-OSR.

Then change the code to following.
program New;
{$DEFINE SMART8}
{$i SRL-OSR/srl.simba} //now it'll load the SRL-OSR, which is meant for the 07

Procedure DeclarePlayers;
Begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active := True;
End;


begin
SetUpSRL;
DeclarePlayers;
LogInPlayer;
end.

E: Late :p

BelgianFries

2013-04-03 07:33:53

From: Justin
Are you loading the SRL-OSR include?


Yeah, forgot that. Fixed it. :)

BelgianFries

2013-04-03 07:34:54

From: Smidqe
Okay, so you are using the 07. Then you can't use the SRL include, you need to use SRL-OSR include. Which can be downloaded here (download button is the cloud with zip inside it):
https://github.com/SRL/SRL-OSR

Extract the zip to Simba/Includes/ folder and rename the folder to SRL-OSR.

Then change the code to following.
program New;
{$DEFINE SMART8}
{$i SRL-OSR/srl.simba} //now it'll load the SRL-OSR, which is meant for the 07

Procedure DeclarePlayers;
Begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active := True;
End;


begin
SetUpSRL;
DeclarePlayers;
LogInPlayer;
end.

E: Late :p


I already had it downloaded, just didn't include it in my script. Thanks for your effort anyway. :D

tealc

2013-04-03 07:44:00

From: BelgianFries
Yeah, forgot that. Fixed it. :)

Also, I accidentally copy/pasted my code while it still contained my username/pass and posted this thread. I edited it out after 5 seconds or so and now someone is on my account. That guy was fast.

if he takes anything pm an admin the ip screenshot

BelgianFries

2013-04-03 07:46:07

From: tealc
if he takes anything pm an admin the ip screenshot


There was nothing on it anyway, just an account to test scripts. Anyways I logged back in and it still showed my IP so it was probably just a bug.

Justin

2013-04-03 07:47:56

From: BelgianFries
There was nothing on it anyway, just an account to test scripts. Anyways I logged back in and it still showed my IP so it was probably just a bug.


If you find that someone did access your account, let me know and I'll find out who it was