<< Back to Map Development Forum   Search

Posts 31 - 44 of 44   <<Prev   1  2  3  
Netherlands Map v2.2: 1/9/2012 00:06:11

RvW 
Level 54
Report
- Sint-Michielsgestel -- Sint-Oedenrode
- Zwijndrecht -- Barendrecht
- Zwijndrecht -- Papendrecht
Netherlands Map v2.2: 1/9/2012 20:25:08


Matma Rex 
Level 12
Report
Disclaimer: I didn't follow this thread and I don't know what you guys have in mind. Just replying to things related to me or my tool.

|> You could ask Matma if he can make a version of his connection utility that doesn't talk to the WL server and only works on a local SVG file; just to spit out a list of connections which should exist.

The code is open-source, available on GitHub: https://github.com/MatmaRex/Warlight-Tools/blob/master/connection_uploader.rb - clone the repo, install Ruby 1.9, install gems (Ruby libraries) progressbar, savage, nokogiri, builder and markaby, and run the tool with `ruby connection_uploader.rb`. (To create .exe files, you'll also need the ocra gem.)

The modification you want is simple enough - just kill everything from line 164 onward (`http = Net::HTTP.start('warlight.net')`) and replace it with `puts xml` (for API's XML format) or `pp connections` (for JSON-like format). You can enter bogus map ID and login info and it will work anyway.


|> I'm unsure how Matma's tool handles territories which are only touching with a corner (the Netherlands (Big) map has a few of those). Also, there's a bunch of very weirdly-shaped territories (such as Den Haag) which it might not handle well. However, by and large, it should give you a nearly-accurate list of connections.

The tool uses brute-force - converts Bezier paths to simple polygons, then - for every pair of territories - checks all pairs of their points - and if any pair is within given distance (currently hardcoded to 5 px), considers them neightbors. (It has a simple optimizartion for checking bounding box first.)

This means corner connections are usually found.

Note that multipart territories (and territories with holes) are not handled correctly (only one part is considered).


|> I don't mind talking to Matma, but his code is written in a language (Ruby) which I don't speak, so it'll still be a matter of whether he wants to write it.

Oh come on, Ruby is easy to read and modify :) and you sound like you know what you're doing ;)
Netherlands Map v2.2: 4/27/2012 13:23:43


Domenico
Level 16
Report
Okay, everyone, I'm planning to publish a new version with further repairs pretty soon, so if anyone has found any more connection errors, this is a good time to notify me.

And happy Queen's Day, everyone!
Netherlands Map v2.2: 4/27/2012 15:24:38


Moros 
Level 50
Report
You're too early, now everyone will think Queen's day to be on 27 April, instead of 30.
Netherlands Map v2.2: 4/27/2012 15:48:39


[NL] Lord Jotham
Level 47
Report
@Moros well, the people who aren't Dutch.(Most of them at least), because they never heard of Dutch Queen's Day(he could better have said "Happy Willem-Alexander's Birthday")
Netherlands Map v2.2: 4/27/2012 17:02:28


Moros 
Level 50
Report
Well, when he gets king, they might move Queen's day to the 27th and call it King's day.
Netherlands Map v2.2: 4/28/2012 10:09:17


Domenico
Level 16
Report
Could be, but I doubt it. Anyhow, I wasn't sure if I was going to be here again before Queen's Day, so I thought I might as well say it while I'm leaving that message.

Anyhow, anyone found any errors?
Netherlands Map v2.2: 4/28/2012 11:00:49


Kingu 
Level 55
Report
April 30th isn't even the Queen's birthday. That's on January 30th. April 30th was Juliana's birthday, but that date was kept when Beatrix became Queen. There is no reason to assume the date will be moved (or even that the name will be changed to 'King's Day') when Willem-Alexander becomes King.
Netherlands Map v2.2: 4/28/2012 20:46:49


Domenico
Level 16
Report
There is. The reason April 30 remained Queen's Day is that January 30 is a lousy date for outdoor activities. April 27, however, is not a significantly worse date, so actually, there is no reason *not* to move the date save nostalgia.
It could be an interesting topic for speculation, but then, I've grown rather tired of the speculation as to when Beatrix will abdicate. Any semi-meaningful date is called a possible abdication date... sigh...
Netherlands Map v2.2: 4/29/2012 15:02:43

RvW 
Level 54
Report
As for my intention to double-check the connections: I'm terribly sorry, but I didn't have time for that yet and I doubt I will any time soon; I suggest you don't wait for me. :(

---

Off-topic:

I guess the name will be changed to either King's Day ("Queen's Day" just sounds silly when we have a king again) or "Oranges Day" (someone wrote a short explanation why that'd be a nice idea).
Either way, if it'll become King's Day, I doubt it moves to another day; for all practical intents and purposes (read: weather, other nearby holidays) the difference between the 27th and the 30th is minimal; moving the date would just be a mayor headache for little benefit.
If it gets renamed to "Oranges Day", it will move to April 24th (the Birthday of William of Orange). That's one less question highschool students can fail on their history exam and it'll settle the issue once and for all. (Also, April 24th is 50% less likely to be in the last weekend of April, meaning the Batavierenrace will have to move to another weekend only half as often, what better reason could you possibly need? :p Also, my knees are killing me... :( )
Netherlands Map v2.2: 4/29/2012 16:13:00


Domenico
Level 16
Report
Hm, if I didn't know better, I'd think you were a fan of the Bataviënraces... :)
Anyhow, I'll probably re-publish the map tomorrow, unless anyone can check the connections before May 5...
As you can see, I want to make the re-publication a special occasion...
Netherlands Map v2.2: 5/5/2012 12:45:07


Domenico
Level 16
Report
Version 1.4 of The Netherlands is now pending public.

* Missing connections from v1.3 have been corrected.
* A "Football Cities" distribution mode has been added, containing the 17 cities with current Eredivisie FCs plus Zwolle, since FC Zwolle has already promoted.
* Amsterdam Zuidoost is now part of the municipal bonus rather than the regional bonus.
Netherlands Map v2.2: 5/5/2012 13:22:41


Moros 
Level 50
Report
Why is Amsterdam Zuidoost a single territory? It belongs to the Amsterdam commune. And with the same reasoning you should split Den Haag too.
Netherlands Map v2.2: 5/5/2012 14:06:04


Domenico
Level 16
Report
Well, they were separate in NMI's version. Then I saw they were one territory in your Benelux Map and I realised they are, indeed, part of the same municipality, hence the bonus rearrangement.
However, Den Haag's exclave Leidschenveen-Ypenburg isn't really an exclave since it's connected to the rest of the municipality by means of a small strip of land.
That does imply Rijswijk and Leidschendam-Voorburg shouldn't be connected, so I will change that in the next version.
Also, I'll probably pronounce that strip of land a little bit more.
Posts 31 - 44 of 44   <<Prev   1  2  3