SRL Archive - OSR Help

Not Logging in?


DeSnob

2011-03-19 19:59:27

Well, I'm beginning work on my new project, and I wanted to get the plane. However, it seems that the script doesn't call any procedure after SetupReflectionEx.
program scriptskele;
{$DEFINE SMART}
{$i srl\srl.scar}
{$i reflection\reflection.simba}

const
WORLD = 32;
MEMBERS = false;
SIGNED = true;

var
plane: Integer;

procedure DeclarePlayers;
begin

HowManyPlayers := 1; //How many players in the script.
CurrentPlayer := 0; //Current player in the Players array.
NumberOfPlayers(HowManyPlayers); //Don't change.

with Players[0] do
begin
Name := ''; {Username}
Pass := ''; {Password}
Active := True; {Use This Player?}

Integers[0] := 40; //How long until you sleep in minutes?
Strings[0] := '';
Booleans[0] := False;
end;


end;

begin
AddOnTerminate('Proggy');
Smart_Members := MEMBERS;
Smart_Server := WORLD;
Smart_Signed := SIGNED;

SetupSRL;
SetupReflectionEx(true);
DeclarePlayers;
Writeln('logging in :D');
LoginPlayer;
Writeln('logged');
SetAngle(True);
plane := GetPlaneIndex;
Writeln(IntToStr(plane));
end.
I understand that I do not require the login; however, since there is an issue, I want it to be solved before I even decide to continue. Here's the output, 5 minutes after sitting at the login screen:
SRL Compiled in 15 msec
SMART Initialized.
Loaded: Server 32, Members: False, Signed: True, Super Detail: False.
Successfully executed.
As you can see, There is no debug line, which says 'logging in :D' or 'logged.' I'm clueless as to what is happening! Can someone help me out?
-DeSnob

Yago

2011-03-19 20:04:47

it logged me in fine. Are you sure you are putting your use and pass in between the hyphens like the below example?


Name := 'YourUsername'; {Username}
Pass := 'YourPassword'; {Password}

Does the login screen even show? Gve more details as to what happens.

DeSnob

2011-03-19 20:07:15

From: Yago
it logged me in fine. Are you sure you are putting your use and pass in between the hyphens like the below example?


Name := 'YourUsername'; {Username}
Pass := 'YourPassword'; {Password}

Does the login screen even show? Gve more details as to what happens.

I've coded before, and I've gotten perfectly working scripts, so that's not an issue. Lemme try something.

This is so unusual, it doesn't do anything past the SetUpSRL!

program MonkeysGoneWILD;
{$DEFINE SMART}
{$i srl\srl.scar}
{$i reflection\reflection.simba}

const
WORLD = 32;
MEMBERS = true;
SIGNED = true;

var
plane: Integer;

procedure DeclarePlayers;
begin

HowManyPlayers := 1; //How many players in the script.
CurrentPlayer := 0; //Current player in the Players array.
NumberOfPlayers(HowManyPlayers); //Don't change.

with Players[0] do
begin
Name := ''; {Username}
Pass := ''; {Password}
Active := True; {Use This Player?}

Integers[0] := 40; //How long until you sleep in minutes?
Strings[0] := '';
Booleans[0] := False;
end;


end;

begin
Smart_Members := MEMBERS;
Smart_Server := WORLD;
Smart_Signed := SIGNED;

Writeln('seting up srl');
SetupSRL;
Writeln('setting up reflection');
SetupReflectionEx(true);
Writeln('logging in :D');
DeclarePlayers;
LoginPlayer;
Writeln('logged');
SetAngle(True);
plane := GetPlaneIndex;
Writeln(IntToStr(plane));
end.

footballjds

2011-03-19 20:12:23

im guessing your using simba.
update srl and reflection.
your script worked fine for me.
also, you cannot leave the fields blank and expect it to input you usr n pass.

DeSnob

2011-03-19 20:40:51

From: footballjds
im guessing your using simba.
update srl and reflection.
your script worked fine for me.
also, you cannot leave the fields blank and expect it to input you usr n pass.


My reflection is up to date, however I'm not sure about SRL. How can I update to the latest SRL Dev? (What's the SVN/Git link?)

Yago

2011-03-19 20:45:04

If you have simba. Make sure the srl.sex extension is enabled and the in the menu click on srl then click check for update.

DeSnob

2011-03-19 20:50:09

From: Yago
If you have simba. Make sure the srl.sex extension is enabled and the in the menu click on srl then click check for update.


E: I'm gonna try something else. Let's see if it works.
E2: It worked! Thanks all for helping. :)

Yago

2011-03-19 21:03:38

No prob. :) Glad to.

footballjds

2011-03-19 22:47:40

From: DeSnob
E: I'm gonna try something else. Let's see if it works.
E2: It worked! Thanks all for helping. :)


this is another case where by searching the forums you could have resolved this issue within seconds.
simply going to simba setup section ;)
it talks about adding extensions and auto updating srl/ref/msi