Results 1 to 2 of 2

Thread: SetupSRLStats and mixed case Stats name

  1. #1
    Join Date
    Aug 2009
    Location
    Nova Scotia, Canada
    Posts
    604
    Mentioned
    0 Post(s)
    Quoted
    56 Post(s)

    Default SetupSRLStats and mixed case Stats name

    Been having a devil of a time getting msi scripts to correctly reports stats.

    Tracked it down to SetupSRLStats in stats.simba in the main SRL codebase, where UserPass gets converted to lowercase.

    Removing the conversion to lowercase allowed my mixed upper/lowercase password to work with the stats site.

    Simba Code:
    procedure SetupSRLStats(ScriptID: integer; UserName, UserPass: string);
    begin
      stats_Timer := GetSystemTime;
      stats_ScriptID := IntToStr(ScriptID);
      stats_Username := LowerCase(UserName);
      stats_UserPass := LowerCase(UserPass);
      stats_RandNames := ['leo the gravedigger', 'freaky forester', 'maze',
                          'prison pete', 'evil bob''s island', 'drill demon',
                          'quiz', 'surprise exam', 'mollys evil twin', 'pinball',
                          'sandwich lady', 'bee keeper', 'pillory', 'capn arnav',
                          'abyssal teleport', 'certer', 'mime', 'frog', 'trade',
                          'mod', 'fight', 'lamp', 'bird nest', 'death'];
      SetArrayLength(stats_RandSolved, Length(stats_RandNames));
    end;
    Never ever approach a computer saying or even thinking "I will just do this quickly".

  2. #2
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default




    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

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
  •