Advanced

Re: GC7V5NZ - Earth caches in Czechia, every state

[Resolved] GC7V5NZ - Earth caches in Czechia, every state
September 02, 2018 08:06PM
Hello
I would like a challenge checker to find at least 1 Earth Cache in every states (regions) in Czechia.
Therefore for 14 states in Czechia
Analogical as Deutschland-Earthcache-Challenge

Thanks!
Re: GC7V5NZ - Earth caches in Czechia, every state
September 02, 2018 10:17PM
ciao moravan
try it here:
https://project-gc.com/Challenges/GC7V5NZ/37064

please add the following code to the listing:

<a href="https://project-gc.com/Challenges/GC7V5NZ/37064"><img src="https://cdn2.project-gc.com/Images/Checker/37064"; title="Project-GC Challenge checker" alt="PGC Checker"></a>

(taky su moravák ;) )
Re: GC7V5NZ - Earth caches in Czechia, every state
September 02, 2018 10:57PM
Ahoj Pavlíku,

checker works fine for me!

Many thanks
moravan
Re: GC7V5NZ - Earth caches in Czechia, every state
September 02, 2018 11:01PM
great, resolved

zdravim z Italie
Re: GC7V5NZ - Earth caches in Czechia, every state
October 04, 2018 07:50PM
Ahoj,
dostal jsem dotaz, zda by checker nešlo upravit tak, aby zobrazené keše byly ty první nalezené. Aktuálně se to takhle nechová.
Pak by byl seznam více vypovídající - chronologicky by byly seřazeny navštívené kraje.
Díky, pokud to nedá moc práce :)

Hello,
I was asked if the checker could not be adjusted so that the caches shown were the first ones found. It's not like this at all.
Then the list would be more telling - the visited regions would be chronologically organized
Thanks, if it does not do much work

moravan



Edited 1 time(s). Last edit at 10/04/2018 11:03PM by moravan. (view changes)
Re: GC7V5NZ - Earth caches in Czechia, every state
October 05, 2018 08:41AM
Hi Moravan
Hopelessly the question is a bit complicated. The checker is based on Rikitan's script, and it not provide the possibility of sort. So there are 3 possibilities:
  1. You can contact Rikitan and ask for the modify.
  2. I can clone his script, modify the cloned script, create new tag and you should link the new tag (new checker) in your listing. The counters will be reset in that case.
  3. Leave it as is...

So, first try to contact Rikitan

ZDRAVIM DO CESKA
ciao
Jet
Re: GC7V5NZ - Earth caches in Czechia, every state
October 05, 2018 10:43AM
Hi jpavlik,
I'll try to discuss it with a Rikitan.

Thanks
Zdravím (do Itálie?)
moravan
Re: GC7V5NZ - Earth caches in Czechia, every state
November 07, 2018 01:02PM
.



Edited 1 time(s). Last edit at 11/07/2018 01:06PM by moravan. (view changes)
Re: GC7V5NZ - Earth caches in Czechia, every state
November 07, 2018 01:07PM
.



Edited 1 time(s). Last edit at 11/07/2018 01:14PM by moravan. (view changes)
Re: GC7V5NZ - Earth caches in Czechia, every state
October 05, 2018 12:44PM
Hi guys,
sorting of finds from the oldest to newest in checker output is something, what I wanted to set some time ago already. But I did not understood, why it is not working in my LUA script.
I'm using order = 'OLDESTFIRST' in all of my scripts, but it is not reflected in output tables.

myFinds = PGC.GetFinds( profileId, { fields = fields, filter = filter, order = 'OLDESTFIRST' } )


Any advice is welcome!

Rikitan
Re: GC7V5NZ - Earth caches in Czechia, every state
October 05, 2018 04:52PM
it's simple
ones you collect all qualified caches and save it in the array by region, you make this loop for making the list:
for group,groupData in pairs(regionGroups) do
but attention, inserting the data to generic array, the pairs iterator returns the data in alphabetic order of keys
Lua 5.2.4  Copyright (C) 1994-2015 Lua.org, PUC-Rio
> a={}
> a.abc="first"
> a.der="second"
> a.aaa="third"
> print(a)
> for i,v in pairs(a) do print(i,v) end
aaa     third
abc     first
der     second
so, you should make a separate list of regions (indexed by numeric keys) :
if (groupData == nil) then -- create new data structure for Region
		groupData = {}
		groupData["qual"] = {}
		groupData["find_counter"] = 0
		regionGroups[groupKey] = groupData
                table.insert(regionGroupsList, groupKey) -- added line
and get the regions in order by this list:
for _,group in ipairs(regionGroupsList) do 	
  local groupData=regionGroups[group]



Edited 1 time(s). Last edit at 10/05/2018 05:26PM by jpavlik. (view changes)
Re: GC7V5NZ - Earth caches in Czechia, every state
October 05, 2018 04:10PM
moved to "checker request" forum
Re: GC7V5NZ - Earth caches in Czechia, every state
October 11, 2018 09:41AM
Hello Josef, thank you for the guidance, I will follow it and adjust my code. I hope to get to it today, but possibly just over the weekend.

Matus
Re: GC7V5NZ - Earth caches in Czechia, every state
November 07, 2018 02:04AM
Ok, mentioned method has sorted regions correctly (from first "found" to the last region "found"), but not finds within the region itself. They appear to be totally random, not oldest to newest. I spent 3 hours trying to index them the same way like regions, but it does not work .. I'm giving up.
Re: GC7V5NZ - Earth caches in Czechia, every state
November 07, 2018 02:05AM
Cancelling.
Re: GC7V5NZ - Earth caches in Czechia, every state
November 07, 2018 01:17PM
jpavlik Wrote:
-------------------------------------------------------
> 2. I can clone his script, modify the cloned
> script, create new tag and you should link the new
> tag (new checker) in your listing. The counters
> will be reset in that case.
-------------------------------------------------------
Hello jpavlik,
we are now at point 2. ;)
I really do not know how complicated this task is ... When you have the taste and the time for programming, could you create a new checker as specified above? I think this Generic Region checker is versatile and will be useful also for future requirements.
Thanks
Re: GC7V5NZ - Earth caches in Czechia, every state
November 07, 2018 02:32PM
Ok, I'll try it later
Re: GC7V5NZ - Earth caches in Czechia, every state
November 07, 2018 11:43PM
I've cloned the checker, I've modified it for output sorted by found date and I've make it universal for country/region/county

try it here
https://project-gc.com/Challenges/GC7V5NZ/38205

this is the link to new checker
<a href="https://project-gc.com/Challenges/GC7V5NZ/38205"><img src="https://cdn2.project-gc.com/Images/Checker/38205"; title="Project-GC Challenge checker" alt="PGC Checker"></a>

Thank to Rikitan for the original script.

Zdravim na Moravu a na Slovensko
Re: GC7V5NZ - Earth caches in Czechia, every state
November 08, 2018 08:03PM
Many thanks, the checker now works exactly to my requirements :)-D
Now I can change the link in the listing

Zdravím do Itálie
Re: GC7V5NZ - Earth caches in Czechia, every state
November 08, 2018 08:13PM
So, NOW it's resolved.

:-)
Re: GC7V5NZ - Earth caches in Czechia, every state
November 08, 2018 09:52PM
One more thing - Output difference:
Old checker
**Pardubický kraj** (Czechia) [Rezavý potok (GC7VGDM)](http://coord.info/GC7VGDM) | 2018-08-18 | 2018-08-02
New checker
**Pardubický kraj** (Czechia) [Rezavý potok (GC7VGDM)](//coord.info/GC7VGDM) | 2018-08-18 | 2018-08-02
It is supposed to be like that?
Re: GC7V5NZ - Earth caches in Czechia, every state
November 08, 2018 10:39PM
yes, it's ok
putting http:// or https:// the browser is forced to use the protocol
with // they use the same protocol as for the parent page.

The old checker forces the protocol to http and any http link in the https page causes the browser warning that the page is not secure.
As the current browsers creates many problems when you want to open http page, in the near future they can block also https pages with by http links inside. So, it's better to not force the protocol of the links.

However, I've tried put the output of the checker to the log, the geocaching.com has some problem to recognize the links, so it make confusion and does not make functional links.
I've modified the checker to force the https protocol, now works fine.

A uz me s tim serou.
Re: GC7V5NZ - Earth caches in Czechia, every state
November 08, 2018 10:46PM
Thanks for the explanation

A slibuju, ze uz nebudu otravovat :)
Re: GC7V5NZ - Earth caches in Czechia, every state
November 08, 2018 10:56PM
:)-D
zvu te na gulas a pivo - I invite you to get some beer with gulasch
https://coord.info/GC7ZT9A
Re: GC7V5NZ - Earth caches in Czechia, every state
November 07, 2018 12:36PM
Hello Rikitan,
thank you very much for your work!
Sorry, only registered users may post in this forum.

Click here to login