Results 1 to 9 of 9

Thread: Not Logging in?

  1. #1
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Not Logging in?[Solved]

    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.
    Simba Code:
    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:
    Progress Report:
    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 ' or 'logged.' I'm clueless as to what is happening! Can someone help me out?
    -DeSnob
    Last edited by DeSnob; 03-20-2011 at 12:56 AM.

  2. #2
    Join Date
    Dec 2009
    Location
    R_GetPlayerLoc;
    Posts
    2,235
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

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

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

    Does the login screen even show? Gve more details as to what happens.
    "Logic never changes, just the syntax" - Kyle Undefined?

    Remember, The Edit Button Is There For A Reason!!!

  3. #3
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Yago View Post
    it logged me in fine. Are you sure you are putting your use and pass in between the hyphens like the below example?

    [simba]
    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!

    Simba Code:
    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.
    Last edited by DeSnob; 03-20-2011 at 12:11 AM.

  4. #4
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    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.

  5. #5
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by footballjds View Post
    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?)

  6. #6
    Join Date
    Dec 2009
    Location
    R_GetPlayerLoc;
    Posts
    2,235
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    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.
    "Logic never changes, just the syntax" - Kyle Undefined?

    Remember, The Edit Button Is There For A Reason!!!

  7. #7
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Yago View Post
    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.
    Last edited by DeSnob; 03-20-2011 at 12:56 AM.

  8. #8
    Join Date
    Dec 2009
    Location
    R_GetPlayerLoc;
    Posts
    2,235
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    No prob. Glad to.
    "Logic never changes, just the syntax" - Kyle Undefined?

    Remember, The Edit Button Is There For A Reason!!!

  9. #9
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Quote Originally Posted by DeSnob View Post
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •