Advanced

Re: Challenge - Hidden Month-Statistics

[Resolved] Challenge - Hidden Month-Statistics
October 17, 2016 03:06PM
Hello, I would like to create a challenge based on the "Hidden Month" statistics.
The condition is to be found in the last exactly 10 years (currently so October 2007-September 2016) for each month at least 1 hidden cache. In addition, you should have found 100 hidden caches in 5 of the 10 years.
E.g. 2011-2015 at least 100 and in the other years per month at least 1

Would such a challenge be possible?
Thanks in advance.

----------
Hallo, ich möchte gern eine Challenge erstellen, basierend auf der "Hidden Month"-Statistik.
Die Bedingung soll sein, in den letzten exakt 10 Jahren (aktuell also Oktober 2007-September 2016) für jeden Monat mindestens 1 versteckten Cache gefunden zu haben. Außerdem soll man in 5 der 10 Jahre je 100 versteckte Caches gefunden haben.
Z.B. 2011-2015 je mind. 100 und in den anderen Jahren pro Monat mindestens 1

Wäre eine solche Challenge möglich?
Vielen Dank im Voraus.



Edited 1 time(s). Last edit at 10/17/2016 03:07PM by ManuFTL. (view changes)
Re: Challenge - Hidden Month-Statistics
October 17, 2016 08:08PM
That would be great.
We have such a challenge ourselve - but without the second condition - just the 10 years (120 months)
We would like to publish another one with 15 years.
Greetings
Team koia
Re: Challenge - Hidden Month-Statistics
October 18, 2016 11:50AM
This requires a new script
Re: Challenge - Hidden Month-Statistics
October 18, 2016 07:50PM
ok, thanks.
And that means what?

Cheers
Team koia
Re: Challenge - Hidden Month-Statistics
October 18, 2016 08:07PM
I'm not a script writer so it means that one of the script writer has to be willing to spend time to write the script. But keep in mind that everything is done on a voluntary basis.
Re: Challenge - Hidden Month-Statistics
October 18, 2016 08:13PM
OK, thank you for the information!
But the topic is correct I assume.
Re: Challenge - Hidden Month-Statistics
October 23, 2016 11:51PM
Well ... October 2007-September 2016 ... is only 9 years and therefore you don't pass the challenge and you can't publish it.

Anyway I have got a checker on the way so I will let you know as soon as it will be production-ready :)
Re: Challenge - Hidden Month-Statistics
October 24, 2016 09:53AM
Oh sorry, you are right.
I mean October 2006- September 2016.

So I must find two caches (Jan + Feb 2007) in the next days. Then I would create a new GC-listing for the Challenge.
Re: Challenge - Hidden Month-Statistics
October 24, 2016 11:01PM
The checker is here:
http://project-gc.com/Challenges//23160

Let me know, when you will have the GC code. I will attach to the checker.

Unfortunately, all 120 months do not fit into the log so it might be truncated, but the output on the site shows all of them.
Re: Challenge - Hidden Month-Statistics
November 07, 2016 09:57AM
Hi Jakuje,

Now I create the listing.

The GC-Code is: GC6WNE3

Thank You for your Help.
Re: Challenge - Hidden Month-Statistics
November 07, 2016 06:49PM
I added the GC code to the checker:

http://project-gc.com/Challenges/GC6WNE3/23160
Re: Challenge - Hidden Month-Statistics
November 07, 2016 07:47PM
Hi Jakuje,

Thanks a lot for your great work!

Since we have an existing 10 years challenge (http://coord.info/GC4CE6K) and plan to publish a 15 years challenge I tagged your script twice:
http://project-gc.com/Challenges/GC4CE6K/23220
http://project-gc.com/Challenges//23226

When I tested it against some cacher accounts (e.g. Ragdoll. -- we ourself are desperately behind with online logging) I noticed the following:

"You have found caches hidden in 120 different months, out of 121 required."
(The following list of caches is correct.)

And I noticed that the 1st field shows the icon
http://maxcdn.project-gc.com/images/cancel48.png

Could you please look after that? Would be great!

Thanks
Rolf
Re: Challenge - Hidden Month-Statistics
November 07, 2016 11:36PM
vogelbird already wrote me about this problem. The problem is the interval from "today - 120 months" to "today" is in fact 121 months.

I modified the script to "compensate" this problem, unless there is "exclude_current_month" set to make it working as expected in all cases. Let me know if it is what you need.
Re: Challenge - Hidden Month-Statistics
November 08, 2016 11:58AM
For ManuFTL (checker http://project-gc.com/Challenges/GC6WNE3/23160) there is still a problem in
{ "consecutive_years": 5, "per_year": 100 }.

ManuFTL should pass the checker with a result of
Year Caches
2010 54
2011 117
2012 147
2013 242
2014 177
2015 110
2016 44

But the checker still gives him "ManuFTL does not fulfill challenge "
Re: Challenge - Hidden Month-Statistics
November 08, 2016 07:18PM
Sorry for the problems. There was one more off-by-one error (total months get counted before excluding current month). Should work fine now.
Re: Challenge - Hidden Month-Statistics
November 08, 2016 07:31PM
Hi Jakuje and vogelbird,

thanks again for your help.

Seems the problem was indeed in "exclude_current_month".

The tag by vogelbird for my existing 10 years challenge now works fine.
http://project-gc.com/Challenges/GC4CE6K/23345

I will delete my tag for that challenge.

In my tag for the planned 15 years challenge I will do the same config like vogelbird did.

Thanks folks!!!!

Rolf
Re: Challenge - Hidden Month-Statistics
November 08, 2016 07:39AM
The script is giving funny results.
When I run against koia the checker says koia does not comply but in the script output it says he does.

When I run against a local cacher (iPajero) the script does not run - Error log
Array
(
[lineNo] => 204
[error] => attempt to index field '?' (a nil value)
)


Same error when I run with my name



Edited 1 time(s). Last edit at 11/08/2016 12:11PM by ChrisDen. (view changes)
Re: Challenge - Hidden Month-Statistics
November 08, 2016 01:16PM
The bug is because finds hidden before 2000 I don't understand why groundspeek allow them in their database
If Jakuje add after line 201

if year >= 2000 then

and a appropriate end it will work
Re: Challenge - Hidden Month-Statistics
November 08, 2016 07:19PM
Target, thank you for having a look into that. I added it to ignore "older" caches, which solved the problem. For both ChrisDen and iPajero. Sorry for the trouble.
Sorry, only registered users may post in this forum.

Click here to login