<< Back to Map Development Forum   Search

Posts 1 - 20 of 37   1  2  Next >>   
Generate your connections automatically, too!: 12/29/2011 21:31:08


Matma Rex 
Level 12
Report

The most boring part of making a map, now - automated and painless! (Sort of.)

After my centerpoint generation tool, I now present another - a connection generating one.

As the previous one, this tool will need your e-mail and password to work. This data is not used for any malicious purposes.

Please note that due to nature of the task (and my laziness), finding out which territories connect may take a long time. A couple of minutes at least even for little map, and when I tried it on a 264-territory map, Bulgaria Big, it took over 3 hours. (But, it worked perfectly!, as you can see.)

It can probably be sped up quite a bit, some of the work it does is redundant - I'll have to think about it.

Also, don't expect correct results when dealing with territories with holes or multipart ones.


Executable file for Windows: http://dl.dropbox.com/u/10983006/tmp/connection_uploader.exe

Source code: https://github.com/MatmaRex/Warlight-Tools

Generate your connections automatically, too!: 12/30/2011 07:26:52


Perrin3088 
Level 49
Report

I presume it won't work for connections that are not actually touching as well..
over water, etc.

Generate your connections automatically, too!: 12/30/2011 11:04:37


Moros 
Level 50
Report

Lol, there must be a way to automatically make oversea connections, just a script that detects yellow lines going from one territory to the other, and makes a connection between them. But nah, I'm lazy... Btw, when Benelux is finished, I'll try it with this tool, I think I can make my computer do it in roughly a day. The centerpoints I'll rather do by hand, since a lot of my territories have holes in them. But.., I'm also nearly done with a small map with all territories shaped like circles, so I'll try your centerpoint creator on that map today to make all centerpoints perfectly centered.

Generate your connections automatically, too!: 12/31/2011 16:13:43


Richard Sharpe 
Level 59
Report

Rex, ran your program. It did indeed take forever (over 5 hours) but worked decently.

http://warlight.net/SinglePlayer.aspx?PreviewMap=8218

The centerpoints were also generated by your program which doesn't handle islands very well. Had I cleaned it up in between executing the programs I am sure the connections would have been complete. Still worked quite well though.

Generate your connections automatically, too!: 12/31/2011 16:33:45


Matma Rex 
Level 12
Report

Glad to see it works.

When a territory consists of multiple "chunks" (where a chunk is a visible path or a hole in "outer chunk"), both of my utilities choose only one chunk out of them all, and treat it as if it was the entire territory - I simply didn't implement anything better. There is a kind of logic as to which one is chosen, but you might just as well assume it's random. This is on my long-term to-do list :)

Generate your connections automatically, too!: 2/12/2012 13:32:50


Moros 
Level 50
Report

Does the tool delete connections already there? Such as island-mainland connections that wouldn't be made by the generator.

Generate your connections automatically, too!: 2/12/2012 18:48:57


Matma Rex 
Level 12
Report

It does not delete anything. Deleting connections via API is currently not possible, actually.

Generate your connections automatically, too!: 2/17/2012 07:23:26

Flesius9517
Level 54
Report

I used this to 386-territory map (http://warlight.net/SinglePlayer.aspx?PreviewMap=10427), and it took less than 200000 milliseconds!

Generate your connections automatically, too!: 2/17/2012 19:47:32


Matma Rex 
Level 12
Report

E4TCD1, I'm glad to have been helpful :D

This means one of two things: you have a pretty good computer, or you are using simple shapes for territories.

I can't talk about the first, but I see you're only using straight lines for your territories (no beziers etc.) - this saves a lot of computation, even if the territories are otherwise detailed :)

Generate your connections automatically, too!: 2/17/2012 19:54:38


Moros 
Level 50
Report

I thought your program just ignored beziers and only calculated with the centerpoints!

And nice map by the way :)

Generate your connections automatically, too!: 3/8/2012 21:16:36


Ironheart
Level 54
Report

matma rex in the first bit about file what file does it mean

Generate your connections automatically, too!: 3/8/2012 22:30:10


Moros 
Level 50
Report

The Inkscape file you're working from.

Generate your connections automatically, too!: 3/9/2012 08:18:28


Ironheart
Level 54
Report

i typed it in it said try again

Generate your connections automatically, too!: 3/9/2012 16:36:23


Moros 
Level 50
Report

Are you sure you typed it like this?
C:\Users\My Stuff\Maps\Map.svg

You need to give the exact location of the file.

Generate your connections automatically, too!: 3/9/2012 18:20:44


Matma Rex 
Level 12
Report

Moros is right - either type in the full path of file, or copy both the file and my program into the same folder.

Generate your connections automatically, too!: 3/10/2012 04:04:36

Flesius9517
Level 54
Report

It's not worked perfectly... Connection missing between Yakimovo and Medkovets (Montana Province)

Generate your connections automatically, too!: 3/10/2012 09:24:16


Moros 
Level 50
Report

Yup, it doesn't work correct with multi-part territories, or those with holes in them, you have to do those manually.

Generate your connections automatically, too!: 3/10/2012 17:28:09

Grzechooo 
Level 32
Report

It's written in original post, isn't it?

Generate your connections automatically, too!: 3/10/2012 21:58:34


Ironheart
Level 54
Report

moros i did it manually i just need a name making one.

Generate your connections automatically, too!: 3/10/2012 22:11:37


Perrin3088 
Level 49
Report

E88's example is not a holey or multi territory connection..

Posts 1 - 20 of 37   1  2  Next >>