×

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

Re: Checker for GC89686

[Resolved] Checker for GC89686
June 07, 2019 09:24AM
Hi,
I'd like to get a checker made please.

The 10 oldest caches in a region. Any type of cache in any region.

Regards

Flasharry
Re: Checker for GC89686
June 11, 2019 12:03PM
so, you mean 10 different region, in every region the oldest cache?
Re: Checker for GC89686
June 11, 2019 12:50PM
Yes that's right, In any (one) region in the world 10 oldest caches. Right.
So any foreign person who qualifies somewhere else can log this cache if they visit this area.



Edited 1 time(s). Last edit at 06/11/2019 12:53PM by Flasharry. (view changes)
Re: Checker for GC89686
June 12, 2019 10:46AM
Thank to olalb, the checker is ready now.
Please try it here.
https://project-gc.com/Challenges/GC89686/43325


If you like it, please insert the following code to the listing:

<a href="https://project-gc.com/Challenges/GC89686/43325"><img src="https://cdn2.project-gc.com/Images/Checker/43325"; title="Project-GC Challenge checker" alt="PGC Checker"></a>
Re: Checker for GC89686
June 12, 2019 11:11AM
It works fine, but would it be too much to ask for a modification.
I tested it on a friend and he only had 5 of 10 oldest caches, The list showed the 10 oldest in our region, but it didn't show which ones he found. Is there some way to highlight which of the ten he has found?
It would also be great if it showed the next closest region and how many have been found there, something to work on in the future.
Re: Checker for GC89686
June 12, 2019 12:13PM
olalb, only one more request - when the challenge is NOT fulfilled, can you please highlight the caches that are missing (maybe color red the phrase "not found") and add the links to the listings as in the first version?

thank you
Jet
Re: Checker for GC89686
June 12, 2019 12:17PM
It's on my mental todo (to tidy up the output).
Just need it to actually work more often than not (for this particular challenge, the ones I wrote it for is fine).
Re: Checker for GC89686
June 12, 2019 11:16AM
I am getting time-outs on cachers, I wonder if this script is working acceptable in all cases
Re: Checker for GC89686
June 12, 2019 12:10PM
Short answer: no

Longer answer:
Will optimize it a bit tonight after work, but it'll timeout for anyone that travel and caches a lot due to the number of calls to GetOldestCaches().
Re: Checker for GC89686
June 11, 2019 12:35PM
sorry, I've understand. In any (one) region in the world 10 oldest caches. Right?
Re: Checker for GC89686
June 11, 2019 12:57PM
Somehow, my response is shown above the last reply from you jpavlik, don't know why???
Re: Checker for GC89686
June 11, 2019 03:11PM
I'm working on it.
I'm going to tag an existing script, I'm waiting for small modify I've requested to script writer.
Re: Checker for GC89686
June 12, 2019 11:48AM
Seems that the speed is serious problem. I'm worried that it's impossible to make this checker.
The API for check oldest caches in the area must be called for every region and this call is slow. Multiply it for 100 regions with found...
Re: Checker for GC89686
June 12, 2019 11:55AM
I've done quite a few checks and it takes time but they all registered results with 10-50 seconds.
The results are really awesome now after the latest modification, even allows people to qualify with archived caches.
Re: Checker for GC89686
June 12, 2019 12:09PM
It always allowed people to use archived caches (possible to turn off with a config flag).
But it's still slow, and for anyone that travels a lot it'll timeout.

I'll optimize it a bit tonight, but it'll still timeout for anyone that travel and caches a lot (due to needing to check so many different regions).
Re: Checker for GC89686
June 12, 2019 01:46PM
If it makes it faster, how about only including Europe regions. We don't get a lot of visitors from the states or elsewhere.
I can put a comment on the cache page that if a foreigner qualifies outside of europe, then they can contact me with proof.

Also can you flag it for "No finds after cache was archived"?

Cheers
Re: Checker for GC89686
June 12, 2019 02:03PM
Restricting to a single set country is fast, restricting to Europe wont really be a difference.

As to "no logs after archive" that's not an available flag at the moment but I'll work on it tonight.
That means that the user logged it after it was archived, not that it was archived after they logged.
Re: Checker for GC89686
June 12, 2019 02:19PM
User should not have logged a cache after it was archived... is correct.
Re: Checker for GC89686
June 12, 2019 01:41PM
Some optimizing done.
Can probably tweak it a bit more, but it should only be minor ones without any real effect.

I tested it on someone with 458 logged regions, and that took 41 seconds (the person qualified).
For myself it takes 8-15 seconds and I do not qualify.

For further improvements someone a lot better at Lua than me needs to take a crack at it.
Re: Checker for GC89686
June 12, 2019 02:03PM
no there is no list for me (not qualified).
there is only:
You've not found sufficient old caches for this challenge.

Regions with at least 5 founds:
and nothing else
Re: Checker for GC89686
June 12, 2019 02:12PM
I've understand - in those 2 regions I have ONLY 5 founds, so no list. Ok, no problem.
Re: Checker for GC89686
June 12, 2019 03:02PM
Some more changes, but that's it.
I've rewritten without refactoring so the code isn't very good.

If you have any additional requirements it's better to get someone to start fresh to make a more robust checker for your requirements.
Re: Checker for GC89686
June 12, 2019 07:18PM
It appears to be working very good now, thanks all for your help.
I'll test for a couple more days before saying it's alright to move to the solved file.
Tusentak
Re: Checker for GC89686
June 13, 2019 09:55AM
When testing Alamogul I get an error log

"[string ""]:100: attempt to compare string with nil"
Re: Checker for GC89686
June 13, 2019 02:45PM
Seems to be an issue with some caches being archived, but not having an archive log.
Such as https://coord.info/GC16C

Setting archive-date to hidden-date for those rare caches.
Re: Checker for GC89686
June 18, 2019 09:41AM
Cache has been published and checker works great, this thread can be archived now.
Re: Checker for GC89686
June 18, 2019 10:09AM
great, setting it as resolved
Sorry, only registered users may post in this forum.

Click here to login