Results 1 to 13 of 13

Thread: Just Started using Stats - Problem

  1. #1
    Join Date
    Nov 2011
    Location
    Turn Around...
    Posts
    528
    Mentioned
    1 Post(s)
    Quoted
    44 Post(s)

    Default Just Started using Stats - Problem

    I just started using srl stats and added it to my script...the only problem is that when it calls

    Simba Code:
    SRLRandomsReport;
        stats_IncVariable('Summoning EXP (Gained)',xpgain);
        stats_IncVariable('Summoning Pouches (Made)',pm);
      Stats_Commit;

    it gives me the error at the bottom. I do not know what to do...

    Error: Out Of Range at line 391
    HTTPClient[0] has not been freed in the script, freeing it now.

    The Stats line 391 is


    Simba Code:
    for i := rand_Leo to rand_Frog do
      begin
        // Update solved stats.
        Increment := RandSolved[i] - stats_RandSolved[i]; // LINE 391!
        if (Increment > 0) then
        begin
          stats_IncVariable(stats_RandNames[i] + ' (Solved)', Increment);
          stats_RandSolved[i] := RandSolved[i];
        end;
        // Update unsolved stats.
        Increment := RandFailed[i] - stats_RandFailed[i];
        if (Increment > 0) then
        begin
          stats_IncVariable(stats_RandNames[i] + ' (Unsolved)', Increment);
          stats_RandFailed[i] := RandFailed[i];
        end;
      end;
    We are all born ignorant, but one must work hard to remain stupid. - Benjamin Franklin

  2. #2
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Ah yes. You must set up Stats first:
    Simba Code:
    SetupSRLStats(ScriptID, SRLStats_Username, SRLStats_Password);

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  3. #3
    Join Date
    Nov 2011
    Location
    Turn Around...
    Posts
    528
    Mentioned
    1 Post(s)
    Quoted
    44 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    Ah yes. You must set up Stats first:
    Simba Code:
    SetupSRLStats(ScriptID, SRLStats_Username, SRLStats_Password);
    Tried it...same thing
    We are all born ignorant, but one must work hard to remain stupid. - Benjamin Franklin

  4. #4
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Did you also do SetupSRL & DeclarePlayers in the beginning of the script? I think this must come before SetupSRLStats.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  5. #5
    Join Date
    Nov 2011
    Location
    Turn Around...
    Posts
    528
    Mentioned
    1 Post(s)
    Quoted
    44 Post(s)

    Default

    yes i did...my code is up in my signature idk why its not working
    We are all born ignorant, but one must work hard to remain stupid. - Benjamin Franklin

  6. #6
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Hmm, so the code on IRC didn't work either. Try putting "WriteLn"s through out the whole thing and see what happens.

    Also, have you tried taking out "SRLRandomsReport();"?
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  7. #7
    Join Date
    Nov 2011
    Location
    Turn Around...
    Posts
    528
    Mentioned
    1 Post(s)
    Quoted
    44 Post(s)

    Default

    Yes i tried taking out SRLRandomReport and it did the same thing except show me the report lol....and what do you mean writeln through out what whole thing
    We are all born ignorant, but one must work hard to remain stupid. - Benjamin Franklin

  8. #8
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Use WriteLns to debug it.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  9. #9
    Join Date
    Nov 2011
    Location
    Turn Around...
    Posts
    528
    Mentioned
    1 Post(s)
    Quoted
    44 Post(s)

    Default

    umm ok i removed srlrandomreport, it works fine now for some reason but my commits aren't updating...it doesn't even show that i even used it lol...my script number is 329 and i have added that in the main setup...

    Simba Code:
    ActivateClient;
      DeclarePlayers;
      SetupSRLStats(329, SRLStats_User, SRLStats_Password);
      if not loggedin then
    We are all born ignorant, but one must work hard to remain stupid. - Benjamin Franklin

  10. #10
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    The bot has to run for 5? 15? minutes before the stats upload, I believe.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  11. #11
    Join Date
    Nov 2011
    Location
    Turn Around...
    Posts
    528
    Mentioned
    1 Post(s)
    Quoted
    44 Post(s)

    Default

    Quote Originally Posted by Camo Developer View Post
    The bot has to run for 5? 15? minutes before the stats upload, I believe.
    ran it for 36 minutes straight...but umm does it have to have a username and password to get it to show up online or can the username and password be left empty...
    We are all born ignorant, but one must work hard to remain stupid. - Benjamin Franklin

  12. #12
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Needs the credentials to push the vars.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  13. #13
    Join Date
    Nov 2011
    Location
    Turn Around...
    Posts
    528
    Mentioned
    1 Post(s)
    Quoted
    44 Post(s)

    Default

    ok thank you
    We are all born ignorant, but one must work hard to remain stupid. - Benjamin Franklin

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
  •