×

To be able to write in the forum you need to authenticate. Meanwhile it's read-only.

[Work in progress] GC5JT06 Norrbotten 2015!

[Work in progress] GC5JT06 Norrbotten 2015!
October 31, 2023 09:21AM
Not my challenge, but an old one that can use a checker in my opinion.

The following requirements must be fullfilled within 1 calender year.

1: Find at least 15 caches of any type within each size category, i.e., 15 other, 15 micro, 15 small, 15 regular, and 15 large caches.
2: Find at least 150 traditional caches.
3: Find at least 15 Mystery caches.
4: Find at least 15 Multi-caches.
5: Find at least 15 V caches (virtual, wherigo, webcam).
6: Attend at least 15 events.
7: Find caches placed by at least 15 different cache owners.
8: Find caches of any type for at least 15 consecutive days.
9: Find at least 150 caches in Piteå municipality.
10: Find at least 15 caches with a "Difficulty" (D) and/or "Terrain" (T) rating of 5. At least one of each. A 5/5 cache counts as double.
11: Find a cache with each of the numbers from 1 to 150 in the cache name, for example, Cache Container #55.
12: Find at least 150 caches in one day.
13: Find caches in at least 15 municipalities.
14: Find caches in at least 15 regions.
15: Find at least one cache of any type on the 15th of any month.
Re: GC5JT06 Norrbotten 2015!
October 31, 2023 09:10PM
The other similar challenges have one of-scripts attached to them so I've assumed that's needed for this one too.
Re: GC5JT06 Norrbotten 2015!
November 01, 2023 01:33AM
I don't think it needs a new script - I think these can all be done with the multi-checker script... just going to be a mega long tag.
Re: GC5JT06 Norrbotten 2015!
November 01, 2023 09:01AM
I haven't found one that takes all the different requirements but if you want to extend yours I guess that would solve the issue.
Re: GC5JT06 Norrbotten 2015!
November 01, 2023 02:55PM
I was doing well in making the tag until I got to Piteå, which is not a county but a municipality, and thus would require polygons... and yeah, multi-checker doesn't do that, and I've no experience with polygons, so not sure I would add them to that script.
Re: GC5JT06 Norrbotten 2015!
November 01, 2023 03:01PM
Piteå is a county in geocaching so that shouldn't be an issue. It's the county Piteå in the region/state Norrbotten in the Project-GC DB, the translation of OP is incorrect.
Re: GC5JT06 Norrbotten 2015!
November 01, 2023 05:00PM
Apparently municipality/county is confusing, I didn't know that. I thought they mean the same thing, but personally I think county and country look so similar that I prefer to avoid the word county. Furthermore, I have seen people using county if region was meanth. Therefor I choosed the word municipality, but it seems to be something else if I understood this conservation well?
Re: GC5JT06 Norrbotten 2015!
November 01, 2023 05:12PM
@Noach!

The issue is that there is ~250 countries in the world and that basically means ~250 ways to organize the country in different administrative ways.

In the US it's country/state/county/municipality. In Sweden it's land/län/kommun and there isn't any fourth level. If you're looking at how a country is run politically and administrative then "län" is most similar to the US-level of county and "kommun" is most similar to the level of municipality. In geocaching we use the words region for "first level under country" and county for "second level under country", whatever name is used locally based on political or administrative boundaries is ignored since it isn't relevant. So in geocaching "län" = region and "kommun" = county.
Re: GC5JT06 Norrbotten 2015!
November 01, 2023 05:15PM
And the reason that municipality is a bad choice of word is because the US-equivalent isn't allowed for geocaching challenges post-moratorium and isn't used in Project-GC.
Re: GC5JT06 Norrbotten 2015!
November 01, 2023 08:13PM
https://project-gc.com/Challenges/GC5JT06/82410

The output is horrific, but, I think it's working. One change I definitely need to make is that the "in_a_year" function doesn't put the year in the table - so you get the huge pass/fail icon table, but you don't know which year is passing or failing (most likely they all fail, because, this challenge is really really hard). Anyhow, test it out and let us know.
Re: GC5JT06 Norrbotten 2015!
November 01, 2023 08:31PM
@bmuzzin For my username I'm getting "[string ""]:6480: attempt to concatenate a boolean value".

Also you seem to have forgot a zero on the Piteå-part of the challenge, it's 150 caches in PIteå, not 15.



Edited 1 time(s). Last edit at 11/01/2023 08:33PM by Pleu. (view changes)
Re: GC5JT06 Norrbotten 2015!
November 02, 2023 02:46PM
I've fixed the 15 -> 150... (I think) you're getting that error because at least one of your finds has an owner that has opted out, and it's calling PGC.ProfileId2Name, which can return just 'false' if that's the case. I'll avoid that and see if it fixes it.

Yes - running with your name works now.



Edited 1 time(s). Last edit at 11/02/2023 02:53PM by bmuzzin. (view changes)
Re: GC5JT06 Norrbotten 2015!
November 01, 2023 08:34PM
Thanks in the first place for your outstanding work on this!

I'm not really sure but if I understand the output well it seems to me that it takes different years for the different twsts, while the test requires all the test being done in one and the same year?

Maybe it just shows the best year for each test as long as I don't fullfil all in one year and then it's okay and I even like that. But just to be sure this requirement is implemented in the right way....
Re: GC5JT06 Norrbotten 2015!
November 01, 2023 08:49PM
It's running all the checks for each year you've found a cache. So, you'll need to complete all of them in a single calendar year to pass. As I said, the output is terrible, because it's printing all the results from all years, not just your best/passing. The "in_a_year" function doesn't get used often, so definitely it needs some love on the output it gives... but, the outcome should be correct.
Re: GC5JT06 Norrbotten 2015!
November 07, 2023 07:31AM
Fails when running for me as well.

[string ""]:6477: attempt to concatenate global 'owner_name' (a nil value)
Re: GC5JT06 Norrbotten 2015!
November 07, 2023 05:58PM
olalb: fixed your case too.
Re: GC5JT06 Norrbotten 2015!
November 01, 2023 09:35PM
Okay, then I understand! Thanks again and happy there is one challenge without a checker less here in Sweden ;)
Sorry, only registered users may post in this forum.

Click here to login