Editing Creating the SVG

Jump to: navigation, search

Warning: You are not logged in.

Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 10: Line 10:
  
 
* Optionally, set the background to black: This is so it fits in with Warzone's theme. In Inkscape, click "Document Properties" (top-rightmost button, or shift-control-D) and click the "Background" (under the default "Page" tab). Set the R,B, and G to 0 and the A to full to get black.  This isn't a required step, as Warzone will ignore the background color you set here and always have a black background.  However, making it black in Inkscape helps you visualize how it will appear when you upload it.
 
* Optionally, set the background to black: This is so it fits in with Warzone's theme. In Inkscape, click "Document Properties" (top-rightmost button, or shift-control-D) and click the "Background" (under the default "Page" tab). Set the R,B, and G to 0 and the A to full to get black.  This isn't a required step, as Warzone will ignore the background color you set here and always have a black background.  However, making it black in Inkscape helps you visualize how it will appear when you upload it.
* Set the document size: Go back to "Document Properties" and look at "Custom Size".  First set the Units to "px", then set the Width and Height to the desired size of your map (900x900 is a good starting point). Then expand the "Viewbox" drop down and set the Width and Height to the same values as your "Custom size".  You can adjust the size for your own map's needs, up to a maximum of 3500x2500. If army numbers appear too small when you test your map, that means your map is too big and had to be shrunken down, causing the army numbers to shrink. Thanks to the magic of SVG, you can reduce the size of your map without losing any detail.
+
* Set the document size: Go back to "Document Properties" and under "Custom Size" set the Width and Height to about 900. Ensure the units says px (for pixels). You can adjust the size for your own map's needs. (Note about map sizes: Most maps work best when they're less than 1000x1000. If army numbers appear too small when you test your map, that means your map is too big and had to be shrunken down, causing the army numbers to shrink. Thanks to the magic of SVG, you can reduce the size of your map without losing any detail. If you're making a super large map, note that the maximum map size is 3330x2400.)
* Ensure the Scale is also set to 1 (both x and y)
+
* Ensure the Scale is also set to 1 (both x and y), and ensure the viewbox is set to X=0, Y=0, Width=(same as your map width) and Height=(same as your map height).
  
 
Then just start drawing, using Inkscape's drawing tools.  For learning how to draw in Inkscape, there are many good tutorials on the web.  Try searching with search engines or on Youtube.
 
Then just start drawing, using Inkscape's drawing tools.  For learning how to draw in Inkscape, there are many good tutorials on the web.  Try searching with search engines or on Youtube.
Line 23: Line 23:
 
Anything that doesn't start with Territory_ won't be a territory, so you can include extra objects for decoration or instruction, such as lines, arrows, etc.
 
Anything that doesn't start with Territory_ won't be a territory, so you can include extra objects for decoration or instruction, such as lines, arrows, etc.
  
If you're making a really large map, note that maps may not contain more than 4000 territories or 1500 bonuses and your SVG file cannot be bigger than 3 megabytes.  For very large maps (>3000 territories), keep this filesize limitation in mind.  One strategy that helps is to use as few nodes as possible for your shapes.
+
If you're making a really large map, note that maps may not contain more than 3200 territories.
  
 
==Starting from an image==
 
==Starting from an image==
Line 55: Line 55:
  
 
The fill color of a bonus link will be set to the color assigned to the bonus.  The stroke color of the bonus link will always be set to yellow, and this color is not overridable.  However, the yellow stroke can be hidden by setting the stroke opacity to zero.
 
The fill color of a bonus link will be set to the color assigned to the bonus.  The stroke color of the bonus link will always be set to yellow, and this color is not overridable.  However, the yellow stroke can be hidden by setting the stroke opacity to zero.
 +
 +
  
 
== Including Text ==
 
== Including Text ==
Line 68: Line 70:
  
 
If you followed these steps but the text still is not showing up, please also verify that the text isn't overlapping any player-controllable territories, and that the text's color isn't the same as what's behind it.  A common mistake is to make black text, and if you didn't change your Inkscape background to black as instructed above, it will appear in Inkscape but not when Warzone changes your background to black.
 
If you followed these steps but the text still is not showing up, please also verify that the text isn't overlapping any player-controllable territories, and that the text's color isn't the same as what's behind it.  A common mistake is to make black text, and if you didn't change your Inkscape background to black as instructed above, it will appear in Inkscape but not when Warzone changes your background to black.
 
== SVG file limitations ==
 
 
New Warzone maps are currently subject to the following limitations:
 
 
* Max 3500 x 2500 pixels (W x H)
 
* Max 1500 bonuses
 
* Max 4000 territories
 
* Max SVG file size: 3 MB
 
* Max height map size: 2 MB
 
* Max texture size: 2 MB
 
  
 
==See also==
 
==See also==
  
 
* [[Map Making]]
 
* [[Map Making]]
* [[Uploading your SVG]]
 
* [[Map requirements]]
 
  
 
[[Category:Map Making]]
 
[[Category:Map Making]]

Please note that all contributions to Warzone Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Warzone Wiki:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox