<< Back to Map Development Forum   Search

Posts 1 - 10 of 10   
How to fix color-changing borders?: 2/6/2012 10:48:48


Urfang
Level 57
Report
I got many feedbacks for my map and the most frequented problem is the color-changing borders. I show what is this.

This is the standard look, the first look what the warlight shows:

![](http://i44.tinypic.com/vnjbbn.png)

And this is the same area after some click on the color-changing territories:

![](http://i41.tinypic.com/21l8i1v.png)

First I believed that the reason is that I used 1.4 width lines but the warlight use 1.0 width, at least I heard that in this forum. But I changed the width and the problem is still.

Now I dont know what can I do :(

Anyone know?
How to fix color-changing borders?: 2/6/2012 10:53:23


Perrin3088 
Level 49
Report
Imho, you should make the line between each bonus big enough so that both bonuses are shown, that way you would have a clear way to see both bonuses are there..

I believe that is how crafty made his maps, but I speak as a non-map creator
How to fix color-changing borders?: 2/6/2012 11:21:10


Urfang
Level 57
Report
I think that redraw the borderlines is serious surplus solution.

It can be enough if I can save in the editor the actually borderline positions, that which borderlines are upper and wich are lower. If I set the correct positions and i could save it, than would be better a bit I think.
How to fix color-changing borders?: 2/6/2012 11:26:05


Urfang
Level 57
Report
The color-changing phenomenon would be still in this case, but the first look would be more clear at the start.
How to fix color-changing borders?: 2/6/2012 11:30:14


Perrin3088 
Level 49
Report
crafty used to have a short guide on how to do it, but I think it got auto-deleted, perhaps matma's collection retains the original thread..

and likely, one of the more advanced map-makers will have a better solution
How to fix color-changing borders?: 2/6/2012 11:41:11


Moros 
Level 50
Report
Simple solution: select in Inkscape all of the territories you want at the top and press HOME. That places all of those above the others.
When playing the map clicking any territory automatically places it at the top, you can see that in the center of the [Scorpio](http://warlight.net/SinglePlayer.aspx?PreviewMap=5758) map.
How to fix color-changing borders?: 2/6/2012 11:43:58


myhandisonfire 
Level 54
Report
Borders between different bonuses must each have a line of there own, ie they must be two lines thick. But you dont have to redraw anything.
Just select a territory then duplicate it, shift the double a line width into the adjacent territory until it seems fit, then select both (the double and the adjacent territory) and use difference on them. Repeat the process to all sides required.
How to fix color-changing borders?: 2/6/2012 11:46:31


myhandisonfire 
Level 54
Report
*of their own. I hate that there is no editing function
How to fix color-changing borders?: 2/6/2012 11:51:08


Urfang
Level 57
Report
I did it but the warlight placed it like in the upper picture and not in the correct lower position.

This is what I cant save correctly in the warlight, maybe Fizzer knows the answer, if you read this Fizzer could you please write your opinion?
How to fix color-changing borders?: 2/6/2012 12:49:50


Matma Rex 
Level 12
Report
Let's clear up some misconceptions first.

The border width on Warlight *does not* depend on the width you set in the SVG file - it will be overwritten. That's why you didn't see any change.

However, the SVG file border width should be adjusted to be the same as the WL border width - so you are seeing the same thing on the site and in Inkscape / other editor. Currently I'm not sure what the width is (it was supposed to be 1.4 px wide, but Moros's test seems to indicate it's actually 1 px), but you should determine it (just look closely at some detailed part of border on Warlight and adjust widths in Inkscape until images match).

Also, I think you know this, but for posterity: if the territories you draw have overlapping border, they will not magically un-overlap when uploaded to Warlight - you'll have to do it by hand.

------

Right. Now your border widths are perfect (make sure they are the same on all territories!). Do borders between bonuses overlap? If no, great. If yes, do this:

Consider two adjacent territories, belonging to different bonuses, with (maybe partially) overlapping borders. What you need to do is this:

* copy first one, paste it in the same place (Ctrl-Alt-V), convert it's stroke to path (Path -> Stroke to Path)
* do the same to the second one
* select first object and outline of the second, use Path -> Difference
* select second object and outline of the first, do the same
* the borders should now no longer overlap, just touch

This is boring work, since you need to do this for every pair, but it requires little to no though - just "automatic" clicking and using keyboard shortcuts. Maybe it could be actually automated - I'll try to look into creating an Inkscape extension for this next week, when I'll have more time. (No promises.)

[I copied the above from my response to earlier thread: ]http://warlight.net/Forum/Thread.aspx?ThreadID=2925]
Posts 1 - 10 of 10