Results 1 to 19 of 19

Thread: SRL Stats not working correctly

  1. #1
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default SRL Stats not working correctly

    Hey all.

    I am trying to add SRL stats to my script.
    I have had Flight on IRC trying to help me but we are both unable to figure out what is going on.

    I have added the variables to my script,


    I have got the SRLStats set up correctly in my script, submitting stats every 5 minutes.

    I go to check the API, and it isn't showing any variables there...


    The error I am getting is:
    Code:
     SRL_Stats: Wrong info for variable
    I am using the following to commit my variables.

    Code:
    Writeln('Commiting SRL Stats');
    stats_IncVariable('Varrock Tablets (Made)', TabsMade);
    stats_IncVariable('Profit Made', TabsMade * TabPrice);
    Stats_Commit;
    When a Tab is made:
    Code:
     IncEx(TabsMade, 1);
    Any help would be awesome.
    Last edited by Justin; 12-27-2011 at 12:18 PM.

  2. #2
    Join Date
    Mar 2006
    Location
    Behind you
    Posts
    3,193
    Mentioned
    61 Post(s)
    Quoted
    63 Post(s)

    Default

    login to Stats.villavu.com then go to myscripts click manage on the side and add variables.

    "Sometimes User's don't need the Answer spelled out with Code. Sometimes all they need is guidance and explanation of the logic to get where they are going."

  3. #3
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    I have already added the variables;

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

    Default

    Are you calling Stats_Setup(); or whatever it's called?
    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.


  5. #5
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Yes I am calling the function when the script starts (Check out my SRL Membership application - Varrock Tab Maker)

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

    Default

    The ONLY other thing I can think of is some kind of firewall issue. Everything looks like it should.
    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
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Quote Originally Posted by Kyle Undefined View Post
    The ONLY other thing I can think of is some kind of firewall issue. Everything looks like it should.
    How could a firewall on my side stop it from going to the api server to show that the variables are added.
    I also have all my firewalls turned off

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

    Default

    Do you have the Security.sex extension active?
    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
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    The server is returning the Error.

    Simba Code:
    case StrToIntDef(ExtractFromStr(S, Numbers), -1) of
        100: Result := True; // successful commit.
        110: Writeln('SRL_Stats: Incorrect user and/or password');
        120: Writeln('SRL_Stats: Incorrect script ID');
        130: Writeln('SRL_Stats: Invalid time');
        140: Writeln('SRL_Stats: Variable does not exist');
        150: Writeln('SRL_Stats: Wrong info for variable');
        160: Writeln('SRL_Stats: Internal server error');
        else
          Writeln('SRL_Stats: No POST return');
      end;
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  10. #10
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Quote Originally Posted by Kyle Undefined View Post
    Do you have the Security.sex extension active?
    No its not active, should it be?

    Edit; There seems to be a problem with 'Profit Made' - Removing that from my stats seem to fix the problem.
    Last edited by Justin; 12-28-2011 at 01:00 PM.

  11. #11
    Join Date
    Sep 2007
    Location
    Australia, NSW
    Posts
    934
    Mentioned
    6 Post(s)
    Quoted
    145 Post(s)

    Default

    Sorry for the month old grave dig but I'm having the same issue with my new script

    I've set up stats before (extensively) through my fletching script so I know what I'm doing, but the server is still returning the same error over and over again:
    Code:
    SRL_Stats: Wrong info for variable
    I have:
    • Added the varibles to my script on the stats webpage,
    • Called SetupSRLStats,
      Simba Code:
      SetupSRLStats(561, SRLStats_Username, SRLStats_Password);
    • Properly implemented Stats_IncVariable (see bleow),
    • Called StatsComitt;

    Not too sure what's going wrong.. I've used Coh3n's Superheater very recently and that was committing fine. Here's what I'm trying to commit:
    Simba Code:
    stats_IncVariable(Players[CurrentPlayer].Arrays[0][P_FOOD_TYPE]+ ' Cooked', 28);
    stats_IncVariable('Cooking EXP (Gained)', Round(PlayerTotal[CurrentPlayer].XP + XP_Gain));
    The food is 'Salmon', so basically it's increasing the variable 'Salmon Cooked'.

    INACTIVE
    How-to: Make S.M.A.R.T. less laggy

    Sell me your Maple Shieldbows (u)! Up to 95gp ea!

    My Scripts:
    Ivy Chopper Ultra [RS3] | Fantastic Fletcher [RS3]
    99 x78 | 99 x10 | 99 x2 | 99 x12


    Use the REPORT tags when posting progress reports to make life easier (:
    [REPORT]Put progress report in here![/REPORT]

    Super Savvy Smither V1.06Cool Classy Cooker V1.02 [EoC]

  12. #12
    Join Date
    Sep 2007
    Location
    Australia, NSW
    Posts
    934
    Mentioned
    6 Post(s)
    Quoted
    145 Post(s)

    Default

    Made a new discovery today (and decided it was deserving of a double post). I had not edited anything to do with the Stats part of my script and I'm still recieving the error time and time again, BUT, today I saw this:

    http://stats.villavu.com/script/561

    Remember that I never changed anything in the script side of things :/ Another thing I want to know.. what time does SRL stats work on? My time is: AEST (UTC+10)

    INACTIVE
    How-to: Make S.M.A.R.T. less laggy

    Sell me your Maple Shieldbows (u)! Up to 95gp ea!

    My Scripts:
    Ivy Chopper Ultra [RS3] | Fantastic Fletcher [RS3]
    99 x78 | 99 x10 | 99 x2 | 99 x12


    Use the REPORT tags when posting progress reports to make life easier (:
    [REPORT]Put progress report in here![/REPORT]

    Super Savvy Smither V1.06Cool Classy Cooker V1.02 [EoC]

  13. #13
    Join Date
    Nov 2011
    Posts
    1,268
    Mentioned
    17 Post(s)
    Quoted
    217 Post(s)

    Default

    Profit Made is the issue, that variable is bugged, I am using it on my mercher and it doesnt summit it right =/ more like not at all
    GLH Tutorial ~ OpenGL Scripting
    http://villavu.com/forum/showthread.php?p=1292150

    GLH Scripts ~ Abyssal Scripts
    http://villavu.com/forum/showthread.php?p=1293187
    Current Projects:
    A) DemiseSlayer Pro (Released/100%).
    B) Demise Power Miner(Released/100%).
    C) Demise Pyramid Plunder(Planning Stage/0%).

  14. #14
    Join Date
    Sep 2007
    Location
    Australia, NSW
    Posts
    934
    Mentioned
    6 Post(s)
    Quoted
    145 Post(s)

    Default

    Quote Originally Posted by DemiseScythe View Post
    Profit Made is the issue, that variable is bugged, I am using it on my mercher and it doesnt summit it right =/ more like not at all
    But I don't use that variable in my script :/

    INACTIVE
    How-to: Make S.M.A.R.T. less laggy

    Sell me your Maple Shieldbows (u)! Up to 95gp ea!

    My Scripts:
    Ivy Chopper Ultra [RS3] | Fantastic Fletcher [RS3]
    99 x78 | 99 x10 | 99 x2 | 99 x12


    Use the REPORT tags when posting progress reports to make life easier (:
    [REPORT]Put progress report in here![/REPORT]

    Super Savvy Smither V1.06Cool Classy Cooker V1.02 [EoC]

  15. #15
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by DemiseScythe View Post
    Profit Made is the issue, that variable is bugged, I am using it on my mercher and it doesnt summit it right =/ more like not at all
    same :/ i'm not releasing one of my scripts until it is fixed... I want to see the profit made by people

  16. #16
    Join Date
    May 2008
    Location
    ;)
    Posts
    576
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by putonajonny View Post
    same :/ i'm not releasing one of my scripts until it is fixed... I want to see the profit made by people
    Why not use coins collected? and/or coins earned.

  17. #17
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by nickrules View Post
    Why not use coins collected? and/or coins earned.
    I hadn't realised they existed... thank you

  18. #18
    Join Date
    Sep 2007
    Location
    Australia, NSW
    Posts
    934
    Mentioned
    6 Post(s)
    Quoted
    145 Post(s)

    Default

    Another interesting observation...

    It would seem that I can not commit to SRL Stats due to the above error, but other can :/

    http://stats.villavu.com/script/561/commits

    INACTIVE
    How-to: Make S.M.A.R.T. less laggy

    Sell me your Maple Shieldbows (u)! Up to 95gp ea!

    My Scripts:
    Ivy Chopper Ultra [RS3] | Fantastic Fletcher [RS3]
    99 x78 | 99 x10 | 99 x2 | 99 x12


    Use the REPORT tags when posting progress reports to make life easier (:
    [REPORT]Put progress report in here![/REPORT]

    Super Savvy Smither V1.06Cool Classy Cooker V1.02 [EoC]

  19. #19
    Join Date
    Feb 2012
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I just finished eating, we talk point of interesting topics

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
  •