×

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

Re: GetHides() - how to access log data

GetHides() - how to access log data
May 01, 2023 12:04PM
Hi everyone,
I am looking at PGC.GetHides().
When I set includeLogs to true, I notice that GetHides() returns multiple lines per cache (because of multiple logs, I guess) but I do not see a way to access the log data mentioned in the documentation of GetHides().

Code snippet:
fieldsHides = {
  'gccode',
  'cache_id',
  'cache_name',
  'favorite_points'
}
hides = PGC.GetHides(profileId, {includeLogs = true, fields = fieldsHides})
PGC.print(hides)

returns

Array
(
    [1] => Array
        (
            [cache_name] => LEg GOdt JaNeMaSt
            [cache_id] => 2806636
            [favorite_points] => 21
            [premium] => 0
            [latitude] => 47.313417
            [longitude] => 8.100000
            [gccode] => GC3F0AJ
        )

    [2] => Array
        (
            [cache_name] => LEg GOdt JaNeMaSt
            [cache_id] => 2806636
            [favorite_points] => 21
            [premium] => 0
            [latitude] => 47.313417
            [longitude] => 8.100000
            [gccode] => GC3F0AJ
        )

...

Does anybody know how to access the log data per cache?
Thank you for reading this post.
Best regards
voigtlaender
Re: GetHides() - how to access log data
May 02, 2023 02:19PM
https://project-gc.com/doxygen/lua-sandbox/classPGC__LUA__Sandbox.html#a8b8f58ee20469917a29dc7a7f751d9ea

There's no "includeLogs" parameter for GetFinds. Not sure what you're trying to do - but unless you're writing a legacy checker, you can't base a checker on log content anyhow. I haven't ever even seen a challenge that requires you to log other caches in a certain way, because, that would be very easy to manipulate.
Re: GetHides() - how to access log data
May 02, 2023 02:30PM
Thank you for your reply, bmuzzin.

You are right, there is no parameter "includeLogs" for GetFinds, but I was looking at GetHides():
PGC.GetHides()

What I wanted to do is build a checker for the May "Wheel of Challenges" challenge that displays the geocacher's progress. As I just realize the leaderboard provides what I wanted to achieve. So my post is obsolete.
Still odd that the documented log data seems not to be accessible.
Re: GetHides() - how to access log data
May 02, 2023 06:13PM
Duh reading, sorry about that.

Although, the original reasoning holds. Probably nobody's ever used it, because, it's hard to imagine a challenge that is somehow dependent on logs on your hides.
Re: GetHides() - how to access log data
June 11, 2023 08:28AM
I'm trying to build a checker tool that shows caches you didn't archive yourself (by reviewer action), and also don't find a way to access log data (would need the profileId of the last_archived_by log).
Sorry, you do not have permission to post/reply in this forum.