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 > memory? > > This information could also be used for > prioritizing scripts when the running queue if > full. Itby magma1447 - Checker news
arisoft Wrote: ------------------------------------------------------- > "My trail" seems to be a catchy name for the > script :) That was my original concept name. I never mentioned it because I didn't really love it. I was hoping for someone else to find an alternative name. Though I do think "My trail" is suitable for the name of a challenge, I think (gby magma1447 - Script development
I split the original thread. By accident two of the posts which wasn't correctly threaded ended up first instead of last here. I'll let that be.by magma1447 - Script development
arisoft Wrote: ------------------------------------------------------- > Now we have only to wait > until someone requests this kind of checker for a > challenge cache. :D I already have two concepts planned which works with the current code. I could create those geocaches and add them to the queue at any time. I even have local code to find geocachers who complete them. I donby magma1447 - Script development
mole125 Wrote: ------------------------------------------------------- > I've been thinking about this style of challenge > and I'd suggest supporting a variation of 'Cross > type challenges. I like the idea. It should only make the processing easier as well I assume. A bit more code though. I also like how one can play around with the concept to have a long disby magma1447 - Script development
There definitely are memory issues. I will look into if I can increase the RAM available tomorrow (if the host still has more ram, or I need to move it).by magma1447 - Script development
I don't know the exact reason for that error, it could be several cases. I will rewrite it a bit today, so it might return something else, or it will return: Unknown error (script error 5, {$dumpId}) That dump-id will then give me a back-trace which might help me finding the reason. Maybe not, but at least I can narrow it a bit. I tried running your https://project-gc.com/Challenges/by magma1447 - Script development
I must say that I am (very) impressed. I was thinking about digging into this deeper today, but as usual something else came up or something else took more time than expected. I have been a bit off a few days, extending the Christmas holidays, but now I am back to 100% again. Just have some stuff to catch up on. What I didn't realize at first is that you did not filter on country/regioby magma1447 - Script development
I know from experience that the map is getting real slow with 5000 geocaches. Even an excellent workstation has a bit of a pain in those cases. I would like to rewrite our map code and try to make it faster, but I haven't prioritized it yet. This also tells me that it might be a pain with thousands of lines. I would suggest testing the map return with a sliced result, especially if your wby magma1447 - Script development
The map thingy works almost as you suggest. I thought it was documented, but after looking through the documentation I realize it's not. The reason is that I created it as a test for the script "Generic polygon checker" by lillfiluren. By that time, it was considered beta and not only was it undocumented, it was also hard coded to only work with his script-id. Both because it waby magma1447 - Script development
From studying the screenshot, it seems to be exactly what I am talking about. Love the illustration of data by the way. What my own script does, that yours doesn't seem to do, is that it calculates distances between all nodes. The reason it does it, is because it ends with running a "shortest path" algorithm between the two nodes you have the red line between. To give some coolby magma1447 - Script development
My script is quite slow (seconds in first column). Not sure what it does and how much I can optimize it. Here is the output: 0.000 Getting finds from the database 0.261 Number of finds: 6692 0.262 Calculate distances 306.946 Building areas 307.388 Filtering areas Number of areas before: 359 Number of areas after: 22 307.392 Finding an area with large distance enough Found new bestby magma1447 - Script development
arisoft Wrote: ------------------------------------------------------- > I have made something like this. Not excatly the > same idea at all, but this also needs calculating > distances between all finds. > > Example: > https://project-gc.com/Challenges/GC7FEN8/30511 I like that one actually. Maybe I will use it for something in the future. The problem is that it can&by magma1447 - Script development
I actually have an idea that I believe is rather new. I have had the idea for 1-2 years and was working on a technical solution with Target a while back. It turned out to be quite hard to solve though, technically. It requires quite a lot of calculations and scales very badly with the number of finds. The easy implementation is to calculate the distance between all finds one has. Some optimizatioby magma1447 - Script development
FYI, I have split the to thread. I feel it will be easier in the long run. I will split up the topic for the cache-chain-challenge as well.by magma1447 - Script development
TravelingGeek Wrote: ------------------------------------------------------- > Good design I think. Will the queuing mechanism > allow for multiple VMs to service the request? > Related question, how many PGC points do you get > for sponsoring a VM ? It will not. Though patching that part wouldn't be the hardest thing. As it is now, it would be easier to grow the VM. 4 cby magma1447 - Checker news
pieterix Wrote: ------------------------------------------------------- > Sounds good! Could this maximum execution time > value be made available to scripts too, so we > don't have to hard-code this value in long running > scripts that hunt for better solutions and exits > when the running time is almost expired? I will add an array named environmentSettings (in addiby magma1447 - Checker news
I agree, and it's with regret it wasn't added from start. I am unsure if it will be used a lot by the developers though. But I have had the idea myself, especially since most of the LUA executions are the auto-challenge-checkers.by magma1447 - Method requests
I wonder if this could be a bug in LUA or something that has changed over the versions. The Sandbox doesn't control what it returns, there is only an associative list of functions that should be included/allowed. Like: TableMaxn = table.maxn, TableRemove = table.remove, TableSort = table.sort, The LUA version that is currently being used is 5.1.5. Since I am not used to LUAby magma1447 - Method requests
I have been working for two days on updating the flow for running checkers. As it works today, the system can run hundreds of checkers simultaneous, at least it starts them. The problem is that the dedicated virtual machine only has 4 cores and 8 GB of RAM (was 4 GB a few days ago). It was quite easy to OOM (out of memory) the system. The new design will be that when the user clicks the &qby magma1447 - Checker news
Due to name conflicts the following has been suffixed with their region names: 'Bø', 'Herøy', 'Nes', 'Os', 'Sande', 'Våler' It's still a work in progress.by magma1447 - Checker news
rragan Wrote: ------------------------------------------------------- > The idea was discussed at some length in the > Geocaching.com forums. fizzy got so far as doing a > python implementation of a checker but no lua one > exists. Offhand, I can't think of how this > challenge would violate the challenge guidelines. > No time limits, no explicitly defined polygon &by magma1447 - Script development
I did double the RAM for the VM a few hours ago. I got nothing interesting from that dump. I would need to add some additional logging to track it. I will however forget it for now, I will try to implement a queue system instead so that I know how many checkers are running simultaneous. I should also make sure that one user can only run one checker at a time, as a DoS protection, that is noby magma1447 - Script development
Norway has new polygons. The old ones were from 2015 I think. Now they are the latest from OSM. Norway is merging a lot of counties, and not all that should be merged seem to be merged in OSM yet, so might be another update fairly soon. They will keep merging until January 2020, so there is more to come regardless. Ran my tool to list differences and detect some of the affected scripts. Agaby magma1447 - Checker news
Thank you again! Works as intended, from what I can see. The magic script that does almost anything. I never learned the config syntax though.by magma1447 - ARCHIVE Checker requests (completed)
No, a 5/5 can count for both. Good question, I will make that clearer in my description.by magma1447 - ARCHIVE Checker requests (completed)
I write this post in this section since I want to target the script developers, and maybe the taggers. The question itself is of personal interest. It doesn't have anything to do with either Geocaching HQ or Project-GC. Since the moratorium, has there been any checker requests for challenges that has really felt innovative and new in your opinions? Maybe something that you felt that you wby magma1447 - Script development
Quoting the challenge requirement from the cache description, I hope it's clear enough. The requirement is to have logged every unique difficulty rating (1.0, 1.5 ... 5.0), and every unique terrain rating (1.0, 1.5 ... 5.0) on each of the seven weekdays (Monday, Tuesday ... Sunday). Note that it's not the 81 combinations of D/T, but the 9+9 difficulty/terrain ratings. GC-Code: GCby magma1447 - ARCHIVE Checker requests (completed)
It seems perfect, thank you! I had a test case of a friend which I knew only missed a few as well, seems correct.by magma1447 - ARCHIVE Checker requests (completed)
This is actually a request for two challenge checkers. But since they are so similar I'll write them in one post. Subject of this thread is only the name for one of them. The other one is almost guessable from that. :) Their names and GC codes are: All D on all “month dates” - GC7GAR6 All T on all “month dates” - GC7GAR9 I'll describe the first (the one for difficulty). For theby magma1447 - ARCHIVE Checker requests (completed)