2.0 ‐ Hook with Webmap - Rosstail/Nodewar GitHub Wiki
Nodewar will display info of territories on the webmap website if any compatible webmap plugin is installed on the server. You can customize this feature from multiple places.
Map: Greenfield
The infos you and your players must know:
- Territories are filled with the color of owner team. If there is no owner, the color will be the
team.none-color
in config.yml - The border of the territory is the status: is it vulnerable (red) or protected (green)
- Each territory has a marker (on the upper screen, some flags and a custom target). You can customise it easely.
- If territories has way to attack another, a link between the territories marker will be created. You can customize and even mask it.
If two links exist between two territories, it's normal: they can conquer eachother. The attacking territory will have his link starting from upward the marker then go under the defending territory marker
- Territories and attack links can show infos by clicking on them. For the territory itself, it will display the territory complete description.
- The current compatible plugins are:
- Dynmap
- BlueMap
- SquareMap
# config.yml
webmap:
plugins: <String[]> (["auto"])
hide-by-default: <boolean> (false)
use-3d-region: <boolean> (false)
tick-per-update: <integer> (20)
many-update-delay: <integer> (1)
fill-opacity: <integer> (100)
line-opacity: <integer> (100)
From the config.yml, you can edit these values:
-
plugins
: A list of webmap plugins used with nodewar. Add "auto" to enable all of them if installed and compatible. Add their name one by one to select them manually. Add an exclamation point before the plugin name to disable it (useful with "auto"). -
hide-by-default
: Will hide the territories and attack links between them by default, useful to avoid having ubisoft-like maps without warning. Any user of the webmap can toggle it manually. -
use-3D-region
: An experimental feature that makes the territories shown as 3D instead of 2D. You will not be able to see if a territory is protected from the border since the color from the owner will be used. -
tick-per-update
: The delay between update checking of the webmap. -
many-update-delay
: The more the value, the more the render will be slow in case of massive webmap real-time updates
From your plugins/Nodewar/conquest/territory-types.yml
config or any territory config, you can parameter some little things.
# territory-types.yml OR any territory config
territory:
# data
webmap:
marker: <string>
draw-line: <boolean>
x: <integer>
y: <integer>
z: <integer>
Unset values will be ignored, territory types cascade will still apply.
-
marker
: Means the marker used as an icon on the dynmap. You can use default markers or custom ones: more info on This website -
draw-line
: If set tofalse
, this territory will not show attack links targetted at him or targeting another: useful to avoid many attack links from a territory to the capture points of another territory. -
x
,y
andz
: Will change the location of the territory marker. Attack links will target/starts from the new location.
You can rename the marker selection name through the locale file (map.dynmap.marker-label
)