SRL Archive - SRL Stats

SRL Stats not working correctly


Justin

2011-12-27 07:15:23

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:

SRL_Stats: Wrong info for variable

I am using the following to commit my variables.


Writeln('Commiting SRL Stats');
stats_IncVariable('Varrock Tablets (Made)', TabsMade);
stats_IncVariable('Profit Made', TabsMade * TabPrice);
Stats_Commit;

When a Tab is made:

IncEx(TabsMade, 1);
Any help would be awesome.

BraK

2011-12-27 07:48:10

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

Justin

2011-12-27 07:51:29

I have already added the variables;

Kyle Undefined

2011-12-27 09:09:31

Are you calling Stats_Setup(); or whatever it's called?

Justin

2011-12-27 10:00:00

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

Kyle Undefined

2011-12-27 10:24:15

The ONLY other thing I can think of is some kind of firewall issue. Everything looks like it should.

Justin

2011-12-27 10:39:16

From: Kyle Undefined
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

Kyle Undefined

2011-12-27 10:55:34

Do you have the Security.sex extension active?

Narcle

2011-12-27 11:12:52

The server is returning the Error.

  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;

Justin

2011-12-27 11:17:57

From: Kyle Undefined
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.

Press Play

2012-01-21 07:52:09

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:
SRL_Stats: Wrong info for variable
I have:
  • Added the varibles to my script on the stats webpage,
  • Called SetupSRLStats,
  • 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:
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'.

Press Play

2012-01-23 07:10:02

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)

DemiseScythe

2012-01-23 07:32:07

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

Press Play

2012-01-24 03:54:35

From: DemiseScythe
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 :/

putonajonny

2012-01-24 18:59:39

From: DemiseScythe
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

nickrules

2012-01-24 21:50:37

From: putonajonny
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.

putonajonny

2012-01-25 10:44:02

From: nickrules
Why not use coins collected? and/or coins earned.


I hadn't realised they existed… thank you :)

Press Play

2012-01-26 21:04:56

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

goodyou

2012-02-13 04:12:30

I just finished eating, we talk point of interesting topics