<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Obsolete attribute</title>
        <description> There are few caches that has attribute that is not defined in the array returned from PGC.GetAttributeList()
At least this cache https://coord.info/GC684 has attribute 16 (cactii nearby - what hell it was?).
My script crached for the users that founds this cache.
There are a couple of solutions:
 after getting attribute list add to the array the missing attributes  wait until Magnus updates the getAttributeList  ignore any attribute that is not present in the array, something like 

attrlist=PGC.GetAttributeList()
...
if attrlist[attr_index] then
  do something
  i.e. PGC.print(attrlist[attr_index].attributeName)
else
  ignore the attribute
end
</description>
        <link>https://project-gc.com/forum/read?4,34471,34471#msg-34471</link>
        <lastBuildDate>Wed, 23 Sep 2026 01:50:48 +0000</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://project-gc.com/forum/read?4,34471,40478#msg-40478</guid>
            <title>Re: Obsolete attribute</title>
            <link>https://project-gc.com/forum/read?4,34471,40478#msg-40478</link>
            <description><![CDATA[ <a href="https://coord.info/GCJDGM"  rel="nofollow">https://coord.info/GCJDGM</a><br />
<br />
This one also has the cactii attrubute set but also has four blanks. The API returns dangerous animals (18) correctly, but also thorns (39), which is not set according to the website. Idk whether cactii is returned obviously, since you filter it. Any idea why (1) you didn&#039;t catch this one when searching for this attibute, (2) why thorns is returned but not displayed, and (3) what the blanks might be?]]></description>
            <dc:creator>PattuX</dc:creator>
            <category>Script development</category>
            <pubDate>Thu, 04 Jun 2020 00:27:43 +0000</pubDate>
        </item>
        <item>
            <guid>https://project-gc.com/forum/read?4,34471,34479#msg-34479</guid>
            <title>Re: Obsolete attribute</title>
            <link>https://project-gc.com/forum/read?4,34471,34479#msg-34479</link>
            <description><![CDATA[ ID 16 seems to be the only ID missing in my table attributes. All in that table are used.]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Script development</category>
            <pubDate>Mon, 25 Nov 2019 12:45:51 +0000</pubDate>
        </item>
        <item>
            <guid>https://project-gc.com/forum/read?4,34471,34478#msg-34478</guid>
            <title>Re: Obsolete attribute</title>
            <link>https://project-gc.com/forum/read?4,34471,34478#msg-34478</link>
            <description><![CDATA[ I made a test, now the cache GC684 returns attributes_set_1=0x8d204083, so the bit 16 is not set. <br />
Are there other obsolete attributes? Please check it and filter it.<br />
I think that the solution of filter the invalid attributes is valid. It has no sense to create new icon for attribute that is not visualized in listing and is set in only one active cache.<br />
<br />
thank you for fixing this problem]]></description>
            <dc:creator>jpavlik</dc:creator>
            <category>Script development</category>
            <pubDate>Mon, 25 Nov 2019 12:41:42 +0000</pubDate>
        </item>
        <item>
            <guid>https://project-gc.com/forum/read?4,34471,34474#msg-34474</guid>
            <title>Re: Obsolete attribute</title>
            <link>https://project-gc.com/forum/read?4,34471,34474#msg-34474</link>
            <description><![CDATA[ A combination of notes to self, and presenting some facts...<br />
<br />
The GCCOM API has a method to get all attributes. The attribute Cactus (id 16) exists according to the API.<br />
There seems to be four geocaches in the world with this attribute.<br />
GC684, GC19X08, GC1BHCR, GC1BXH4<br />
<br />
Only the first isn&#039;t archived, the other three are. There is no working image at Geocaching.com either.<br />
<br />
It doesn&#039;t seem like it&#039;s ever &quot;unset&quot;.<br />
<br />
<br />
Since we haven&#039;t seem this before, my guess is that something has changed at Geocaching.com. They probably never exposed that geocaches had that attribute before, but now it does.<br />
<br />
It doesn&#039;t seem like the attribute should exist, so I do not want to add it into my database table of attributes that exists, and I don&#039;t want to add it into the API method to get all attributes available.<br />
<br />
Since it&#039;s not affecting anything on the web, I prefer to not ignore the attribute when writing cache data to the database. Until it disturbs more, it can exist there.<br />
<br />
What seems reasonable to me, is that I will do an AND on the attributes when fetching them from the database in the LUA callback. That way the LUA Sandbox will never see attribute 16 set.<br />
$fields[&#039;attributes_set_1&#039;] = &#039;c.attributes_set_1 &amp; 9223372036854743039&#039;;	// Remove attribute 16 (Cactus)<br />
<br />
I have made this patch and released to Live servers. I have not tested it. Do you mind doing that?]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Script development</category>
            <pubDate>Mon, 25 Nov 2019 09:28:09 +0000</pubDate>
        </item>
        <item>
            <guid>https://project-gc.com/forum/read?4,34471,34471#msg-34471</guid>
            <title>Obsolete attribute</title>
            <link>https://project-gc.com/forum/read?4,34471,34471#msg-34471</link>
            <description><![CDATA[ There are few caches that has attribute that is not defined in the array returned from PGC.GetAttributeList()<br />
At least this cache <a href="https://coord.info/GC684"  rel="nofollow">https://coord.info/GC684</a> has attribute 16 (cactii nearby - what hell it was?).<br />
My script crached for the users that founds this cache.<br />
There are a couple of solutions:<br />
<ol type="1"><li> after getting attribute list add to the array the missing attributes </li><li> wait until Magnus updates the getAttributeList </li><li> ignore any attribute that is not present in the array, something like </li></ol>
<pre class="bbcode">
attrlist=PGC.GetAttributeList()
...
if attrlist[attr_index] then
  do something
  i.e. PGC.print(attrlist[attr_index].attributeName)
else
  ignore the attribute
end
</pre>]]></description>
            <dc:creator>jpavlik</dc:creator>
            <category>Script development</category>
            <pubDate>Sun, 24 Nov 2019 20:46:31 +0000</pubDate>
        </item>
    </channel>
</rss>
