Advanced

Re: Challenge for GCANM6A

[Resolved] Challenge for GCANM6A
July 13, 2024 09:25PM
Hello
I would appreciate a checker for a challenge with the following conditions:
(1) Have found a minimum of 80% of the regions of 3 countries
(2) Have found a minimum of 50% of the regions of 10 countries
Thanks!!!
Re: Challenge for GCANM6A
July 15, 2024 03:55PM
I'll mark this as a new script requiered because it needs a multiscript extension
Re: Challenge for GCANM6A
July 15, 2024 07:32PM
Doubt this would be publishable as it's based on percentages/ratios which is generally not allowed.
Re: Challenge for GCANM6A
July 16, 2024 01:27AM
That's what I thought when I first looked at it... But the "not allowed" portion of the percentage guidelines say percentage within a region... This is asking for a percentage of regions within a country. Which, I don't think is against the guidelines, as certainly there are find a cache in X regions within Y countries. We just don't have a script that does this :)
Re: Challenge for GCANM6A
July 23, 2024 01:42AM
Hi there -

TL;DR: Test this one out and let us know:
https://project-gc.com/Challenges/GCANM6A/90436

@vogelbird - I've made the necessary changes to my script to support this request (ie. percentages of regions found within a country)... and made a few other improvements along the way (adv_number now uses the standard printing methods, and thus the HTML output has links to the gccode/visit log, and you can also now use printFields on adv_number as well).
Re: Challenge for GCANM6A
July 24, 2024 06:42AM
Hello
Thanks for the script, it seems to work well, however, I am getting "caught exception" sometimes with some profile names, I do not know why...
As a proposal, would it be possible that in the "log example" it could be indicated the number of countries that the player has in the profile satisfying the condition?
Thanks again
Re: Challenge for GCANM6A
July 24, 2024 12:29PM
If you give the name of the profile, then I can debug it.

I've updated the tag to print the regions, although... it's not beautiful. Let me know if you want to keep it or not.
Re: Challenge for GCANM6A
July 27, 2024 07:37AM
Hello

I get the exception trying this profile "Zascandiles"
Re: Challenge for GCANM6A
August 07, 2024 01:00AM
Should be fixed now... apparently some countries don't have regions, in which case, I've just set the number of regions to one.
Sorry, only registered users may post in this forum.

Click here to login