<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Method GetBadgeGenData()</title>
        <description> A while back we released version 4 of BadgeGen. We however left the old V3 ruleset so that it can be accessed in different ways. For example when loading Profile stats one can add the get parameter &amp;amp;bgv3. But also regarding LUA callbacks we didn&amp;#039;t touch the existing api method GetBadgeGenData(). Instead we added a new one called GetBadgeGenDataV4().

For clarity I will today (in a few minutes) renamed the old one to GetBadgeGenDataV3(). I will also fix all 17 scripts using the old version, so that it calls the function by its new name.</description>
        <link>https://project-gc.com/forum/read?6,85559,85559#msg-85559</link>
        <lastBuildDate>Wed, 26 Aug 2026 22:46:49 +0000</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://project-gc.com/forum/read?6,85559,87109#msg-87109</guid>
            <title>Re: Method GetBadgeGenData()</title>
            <link>https://project-gc.com/forum/read?6,85559,87109#msg-87109</link>
            <description><![CDATA[ It was actually unrelated to the above change.<br />
<br />
We recently added support for imperial units in BadgeGen. It was a required parameter when calling its &quot;get data&quot; function, but not such parameter was provided from the LUA callback.<br />
<br />
I have now fixed that. The LUA callback always uses imperial=false. Metric is the base unit for the rules, so imperials are just estimates. If a checker script wants to present imperials it can convert by itself, since it&#039;s more of a presentation layer.<br />
<br />
Thanks for making us aware.]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Checker news</category>
            <pubDate>Fri, 26 Apr 2024 08:23:52 +0000</pubDate>
        </item>
        <item>
            <guid>https://project-gc.com/forum/read?6,85559,87105#msg-87105</guid>
            <title>Re: Method GetBadgeGenData()</title>
            <link>https://project-gc.com/forum/read?6,85559,87105#msg-87105</link>
            <description><![CDATA[ Also, if I dump the keys in the PGC table, it doesn&#039;t include PGC.GetBadgeGenDataV3? Just these two related to BadgeGen (both of which cause an exception):<br />
<br />
PGC.GetBadgeGenDataV4<br />
PGC.GetBadgeGenData]]></description>
            <dc:creator>bmuzzin</dc:creator>
            <category>Checker news</category>
            <pubDate>Fri, 26 Apr 2024 01:24:47 +0000</pubDate>
        </item>
        <item>
            <guid>https://project-gc.com/forum/read?6,85559,87104#msg-87104</guid>
            <title>Re: Method GetBadgeGenData()</title>
            <link>https://project-gc.com/forum/read?6,85559,87104#msg-87104</link>
            <description><![CDATA[ Hi there ... it seems calling PGC.GetBadgeGenDataV4 just causes an exception. I was looking into extending Hugh&#039;s leapday script for the other addon badges (I&#039;ve done all except 366 and DT). I came back to it after a long while, and it just always throws an exception, without any information. I&#039;ve put print statements into my script and narrowed it down to this call. I was wondering if it was just my script - so I ran the original (https://project-gc.com/Challenges/80820)... also gives an exception in the same way.<br />
<br />
I&#039;m assuming it&#039;s the change mentioned here that causes it to not work?]]></description>
            <dc:creator>bmuzzin</dc:creator>
            <category>Checker news</category>
            <pubDate>Fri, 26 Apr 2024 01:16:23 +0000</pubDate>
        </item>
        <item>
            <guid>https://project-gc.com/forum/read?6,85559,85559#msg-85559</guid>
            <title>Method GetBadgeGenData()</title>
            <link>https://project-gc.com/forum/read?6,85559,85559#msg-85559</link>
            <description><![CDATA[ A while back we released version 4 of BadgeGen. We however left the old V3 ruleset so that it can be accessed in different ways. For example when loading Profile stats one can add the get parameter &amp;bgv3. But also regarding LUA callbacks we didn&#039;t touch the existing api method GetBadgeGenData(). Instead we added a new one called GetBadgeGenDataV4().<br />
<br />
For clarity I will today (in a few minutes) renamed the old one to GetBadgeGenDataV3(). I will also fix all 17 scripts using the old version, so that it calls the function by its new name.]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Checker news</category>
            <pubDate>Tue, 19 Mar 2024 07:24:56 +0000</pubDate>
        </item>
    </channel>
</rss>
