Silly code error. Since it's a mix of languages (PHP and JS) it's hard to read sometimes. I first have a boolean in PHP which is true/false. I then need to convert that into the string 'true'/'false' to add it in the inline JS. But by accident, I added quotes in JS so that it ended up as: fill: 'false', instead of fill: false It's working in tby magma1447 - Script development
arisoft Wrote: ------------------------------------------------------- > I tried: fillOpacity = 0.0, fill = false, > tooltip = false in > https://project-gc.com/Challenges/GCZZZZZ/28776 > but the red circle is still stealing the polygon > tooltip. I will try later today again. I just refreshed your test script and noticed it was enabled again. I will use that to debug whyby magma1447 - Script development
Found a solution to make the circles not clickable. You should set fill = false. The server side code doesn't support it yet, but I will implement it now and make a release. Expect it to work within 30 minutes from now.by magma1447 - Script development
I will look into both matters. What I have so far... None-clickable circles, I am not sure it's possible (or easy enough). I will read up on Leaflet which is the map engine to see what I can find. This far I haven't found any examples which aren't clickable. It seems very weird to me though. I would take it for granted that it works. I haven't spent more than a few minutesby magma1447 - Script development
arisoft Wrote: ------------------------------------------------------- > Got a new error after a long wait. > > Unknown error (script error 6, > 5a587199be3896.44321106) > > Reloading sorted it out. That's the old error 5 which got renumbered. I'll go ahead and make a patch to store additional information. It's a case that should not happen, therefoby magma1447 - Checker news
arisoft Wrote: ------------------------------------------------------- > > Do you need a tooltip for the red circle? Maybe > > the best thing would be if the red circle > wasn't > > clickable at all? I assume it won't be > clickable > > if a tooltip isn't provided. But if you have > some > > useful information for it, I understand thaby magma1447 - Script development
TravelingGeek Wrote: ------------------------------------------------------- > I would use it and go back to old scripts and > update them as well. It was added this week actually. It was easy to do, and since I was patching around in the code anyway. args[1].environmentSettings.cli will be true or false depending on if it's a background job or not (cli=true doesn't neeby magma1447 - Method requests
There is a potential for two red circles to overlap, isn't there? Therefore it might be better to only have the polygons clickable. Since the circle has the same information anyway (now), it's no loss.by magma1447 - Script development
arisoft Wrote: ------------------------------------------------------- > I found a solution to the primary problem. I can > select the Z-order of circles. Only the tooltip of > the green polygon is covered by the red circle but > I can put the same tooltip text to the red circle > so it is not a real problem. Ah, I misunderstood. I thought the red circle should have a toolby magma1447 - Script development
arisoft Wrote: ------------------------------------------------------- > Somethin special happened. > After 50 seconds from starting, I got "Error Queue > token not available" > After reloading it is working again. I have seen similar things today. A few times this morning I noticed the web being insanely slow. Not sure of why, but it's like the httpd isnby magma1447 - Checker news
arisoft Wrote: ------------------------------------------------------- > > I added a JS line in the development > environment > > which will put the mark those progress steps as > > complete. Ie, freeze the timer and remove the > > text-muted classes. Those 4 lines should end up > > the same as if their were an error. Easiest > fix. > > There iby magma1447 - Checker news
arisoft Wrote: ------------------------------------------------------- > I added the reference circle and polygon corner > tooltip circles to this test script > https://project-gc.com/Challenges/GCZZZZZ/28776 > You can see the red reference circle only if user > has not qualified, like me :) > > The major problem is that the red circle covers > all tooltips on tby magma1447 - Script development
arisoft Wrote: ------------------------------------------------------- > What shoud happen if there is syntax error etc. in > the script? > > I noticed that "Running checker" continues > "countdown" forever. It is a bit misleading > because the error status is below the visible > screen area on my display. I added a JS line in the developmentby magma1447 - Checker news
I think I would be interested in one that requires caches found in Germany, Denmark and Sweden with <= 10 km in between. Not sure I fulfill it myself though, high risk that I don't. Another concept I would like is a trail between the three biggest cities (has to be counties) of Sweden. I guess it's the same code as above, but with counties instead of countries.by magma1447 - Script development
Idea from my girlfriend. You earlier discussed having trails from region A to region B, or county A to county B. Would it be feasible (in the long run) to make trail challenges that goes from A to B to C to D and so forth? Either with the the correct order required, or not. See it as brainstorming of ideas.by magma1447 - Script development
arisoft Wrote: ------------------------------------------------------- > ganja1447 Wrote: > -------------------------------------------------- > ----- > > I have implemented a htmlTooltip as well. In > that > > you should be able to add any html that will > fit > > the tooltip created by Leaflet. > > Now it is working. Circles and multiline tooltby magma1447 - Script development
Is there anyone here running Slack? (https://slack.com/) I have a Slack running, but don't use it much. I am considering if it could be a better support channel/forum for some of the more hardcore users of Project-GC. The idea pretty much came up after writing 50 posts on the forum with arisoft today. Chatting via a forum isn't always the most effective. Here is a temporary (30 daby magma1447 - Script development
I would guess the error is here: latitude = item.latirude latiTude, not latiRude. :) I haven't tested it since I can't edit your source.by magma1447 - Script development
arisoft Wrote: ------------------------------------------------------- > > Ah, I misunderstood you I think. You are > getting > > cache icons in the map and such, but no tiles > from > > Google maps? > > Yes... no red circles and no map(tiles). Can you > find the reason? I will try my best. Is it after adding circles? I will try to look at your LUA toby magma1447 - Script development
arisoft Wrote: ------------------------------------------------------- > After reloadign it shows an empty map. You can see > the results here: > > https://project-gc.com/Challenges/GCZZZZZ/28776 Ah, I misunderstood you I think. You are getting cache icons in the map and such, but no tiles from Google maps?by magma1447 - Script development
arisoft Wrote: ------------------------------------------------------- > After reloadign it shows an empty map. You can see > the results here: > > https://project-gc.com/Challenges/GCZZZZZ/28776 I ran it four times with 0 issues. You should try shift-reloading your browser. It SHOULD not be needed though.by magma1447 - Script development
I have implemented a htmlTooltip as well. In that you should be able to add any html that will fit the tooltip created by Leaflet. While testing the code I have had strange issues with the checkers twice. Most likely related to the queue. I don't know why yet.by magma1447 - Script development
arisoft Wrote: ------------------------------------------------------- > If I enable this line the result is "Error Failed > to execute script 3" and nothing else. Earlier I > got an empty map when tried. "Failed to execute script 3" currently means the token (from the queue) didn't work. It shouldn't be related to your code. You probably need to reloby magma1447 - Script development
polygons now supports "textTooltip" as complement to url and urlText. textTooltip has precedence. When provided, url and urlText will be ignored. url and urlText was used to inject into a prewritten <a href="></a>. textTooltip can only contain text, it's html-escaped, just as urlText was/is. If you need line-breaks, I will either have to look into a speciaby magma1447 - Script development
arisoft Wrote: ------------------------------------------------------- > ganja1447 Wrote: > -------------------------------------------------- > ----- > > Should I start preparing real challenges for > it? > > Go for it! > > I will try to add the needed radius circle today > but it is only cosmetic change. There is no plans > to change any signifby magma1447 - Script development
On the other hand, I don't think waiting in queue for 60 seconds is catastrophic for running a checker. As long as it's a rare exception. One could compare to how it was before checkers. In the best case, it was to load the statistics somewhere, look up the numbers, write them down in a log on so forth. Worst case was to spend hours, or days, trying to figure out if one fulfills it.by magma1447 - Checker news
Based on feedback and my own intuition I have now updated the queue system again. When the client adds itself to a queue, it gets a token. That token makes it unique in the queue instead of the user-id. This means one user can queue several tabs. I could implement a max number of slots per user if necessary, but I doubt it will be needed. The upside is that script developers won't be lby magma1447 - Checker news
I still find your script amazing. Should I start preparing real challenges for it? I collect finds for almost 20 calendars (T2 on every date, 1.5/1.5 on every date, wheelchair on every date, and so on), but today and tomorrow i have ZERO empty spots in those calendars, so I can use my evenings to hide canisters instead. :) PS! Queue system updated, post incoming in the proper thread.by magma1447 - Script development
arisoft Wrote: ------------------------------------------------------- > > Are you mostly thinking from a script > developers > > perspective? When the code doesn't finish due > to > > an endless loop bug (or similar)? > > At the beginning I though endless loops. Sometimes > I forget to add x = x + 1 in a while loop etc. > > Then I though fby magma1447 - Checker news
ganja1447 Wrote: ------------------------------------------------------- > arisoft Wrote: > -------------------------------------------------- > ----- > > It is long time to wait 60 seconds for a > runaway > > script :) > > > > Would it easy to add a "manifest" in to the > Tag, > > which limits the time-out and maybe needed >by magma1447 - Checker news