<< Back to Map Development Forum   Search

Posts 21 - 40 of 44   <<Prev   1  2  3  Next >>   
Netherlands Map v2.2: 12/24/2011 10:07:00


Domenico
Level 16
Report
By the way, I just saw that a Netherlands Small Map was uploaded by, if I'm not mistaken, the original creator of this map.
Netherlands Map v2.2: 12/24/2011 10:34:39


Moros 
Level 50
Report
Yup, and I have no idea why he made those ridiculous borders... I think he got an svg file, and just moved the provinces apart.
Netherlands Map v2.2: 12/24/2011 10:37:52


Moros 
Level 50
Report
And he again placed Schiermonnikoog under Frisian control...
Netherlands Map v2.2: 12/24/2011 10:41:52


Moros 
Level 50
Report
LOL! I thought Schiermonnikoog was from Groningen, but I just looked it up...
Netherlands Map v2.2: 12/27/2011 07:00:13

RvW 
Level 54
Report
Domenico, Moros,


Just saw the invite email and nudge you both sent me. My Internet access is problematic at the moment (router broke) so until the second week of 2012 (I'm celebrating New Year abroad) I can't be of any help, sorry. :(
Netherlands Map v2.2: 1/3/2012 16:09:29


Domenico
Level 16
Report
Okay, the definitive version is now online.
As you'll see, I have abolished the Midden-Gelderland Bonus and divided West-Brabant into a new West-Brabant plus a rough imitation of the Breda-Tilburg region, which also gained some formerly Bossche and Eindhovense territories.
Also, I have further devalued the regular Flevoland Bonus and the Gooi Bonus.

I hope the map is now done, but if you do find any mistakes, do tell me.
If it's something like a missing connection or a grave bonus value error, I'll correct the map and re-upload it in February.
If there are no urgently needed corrections, I'll wait till next year, when there will be municipal redivisions again.
Netherlands Map v2.2: 1/3/2012 20:16:51


Domenico
Level 16
Report
Here's the first connection error:

+ Sint-Michielsgestel -- Sint-Oedenrode

And so there will be an update in February...
Netherlands Map v2.2: 1/8/2012 00:21:41

RvW 
Level 54
Report
Zwijndrecht <--> Barendrecht
Sorry :(
Netherlands Map v2.2: 1/8/2012 10:33:14


Domenico
Level 16
Report
That's alright. I should have been able to see that. I do hope it'll be solved by February.
I wish I was somehow able to see the graph alone.
Netherlands Map v2.2: 1/8/2012 23:28:57

RvW 
Level 54
Report
This is a bit of work, your choice whether you want to put in all the effort.

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. 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.

You can (ab)use the [Query game API](http://wiki.warlight.net/index.php/Query_game_API) to get a list of actually existing connections (the map editing APIs are limited to setting connections, they can't query). Downside is it only works for finished ladder and tournament games (not simply maps; that's what you get with a *Query **game** API*), so you'll need the ID of a tournament game on this map. (Alternatively, ask Fizzer if he'd consider adding an API. Another alternative is to ask Fizzer to, just this once, dump the connection list from the database manually.)

Then, it's a matter of normalizing the format, sorting it and running a diff. That gives you a list of connections which (probably) should be added and some which Matma's tool didn't expect (careful, that will include things such as Enkhuizen <--> Lelystad!). However, with any amount of luck, both lists are very short and can simply be processed by hand, effectively making it two lists of "double check these manually".

If you think this is a good idea, but you don't have time:

- 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. Also, I obviously don't have the SVG file which is needed as input (which is of course easy enough to fix, with your permission).
- I doubt Fizzer would want to bother writing another API (which would have very little practical use other than this special case), so that leaves us which either looking for a tournament played on (the newest version of!) this map, or asking Fizzer to dump the connections manually.
I've only played single player so far (I can't promise opponents I'll have time to finish a game), so I have no experience with tournaments. Asking Fizzer is simply writing an email, which would make a lot more sense if it was sent by the maintainer of the map.
- If you can get the raw data, I don't mind doing the processing though. There's one practical problem though: the last week of January and the first of February are called "Exam period" here, so I can almost promise you I'd miss your February deadline...
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... :( )
Posts 21 - 40 of 44   <<Prev   1  2  3  Next >>