Skip to content

Team work ​

Several people can work on one map at the same time, each on their own copy, and merge their work at the end of the day. No server is needed: the changes travel as files through a shared folder that Dropbox, Google Drive, OneDrive or Syncthing keeps the same on every computer (or a pen drive). It is in the Team menu.

Setting up ​

  1. One person opens the project, Team > Team work..., enters a name, chooses the team folder and clicks Start team work. The current state of the map becomes the shared version.
  2. Send a full copy writes the project to <team folder>\full\.
  3. Everyone else clicks Take a full copy..., picks that folder and a place on their own disk. The team folder the copy came from becomes the team folder of the new copy. Keep the project itself outside the synced folder: only the changes go through it.

A day of work ​

  • Everyone works on their own copy as usual; nothing is locked.
  • In the evening one person clicks Send my changes. A small .dzpatch file with what changed since the shared version goes to the team folder.
  • The others see Team (1) in the menu and click Merge. Before merging, click the eye icon next to any incoming patch (or in the merge window) to highlight its changed terrain, surface and satellite tiles, added/changed/removed objects and modified elements directly on the 2D and 3D map. When several patches wait, Merge all applies them in dependency order (oldest first among independent changes). Patches without conflicts go through automatically; the merge window opens only where changes clash, and the project is backed up and saved once at the end. Where both changed the same thing, the merge window lists it with a button that shows the place on the map, and you choose Keep mine, Take theirs or, for the terrain, Add both (the two height changes added together).
  • The one who merged sends their changes back; the first person merges them. Both now have the same map and count tomorrow's changes from it.

Two people may also send at the same time: each then merges the other's file, and the next changes they send settle any difference.

Who works on what ​

Everyone can keep their own layers of objects. A layer made during team work belongs to the one who made it; Owner in the right-click menu of a layer gives it to anyone in the team, to no one, or to someone new whose name you type. The layers of others show their owner and a lock: their objects cannot be picked, moved or added to until you click the lock, which unlocks the layer for you until you lock it again or close the editor. Layers of no one, like Default, stay open to everyone.

Terrain, mask and satellite modifiers, roads and generators remember who made them; Author in their right-click menu in the outliner gives them to someone else. The outliner shows the name next to them, and the choice above it shows only the work of one person: layers by their owner, the rest by who made it.

To split a map, for example one just imported from Terrain Builder, select an area of it and use Team > Give the selected objects: the objects move to a layer of the one you choose, made when they have none. Every change of owner or author can be undone and travels with the next patch, also when nothing else of the thing changed.

The editor says when you change or delete something of someone else. Deleting a modifier, road or generator another person made first asks whether to delete it anyway, naming who made it. Any other change of their things (moving their road, painting in their mask modifier, editing objects on a layer of theirs that you unlocked) shows a message once, with a reminder that Ctrl+Z undoes it.

When both changed something that belongs to one of you, the merge suggests that person's version: Ania's tree on Ania's layer keeps her position unless you choose otherwise. Without an owner your own version is suggested, as before.

What is merged ​

PartHow
Terrain (as sculpted)Cell by cell, as changes in height; changes of both in one cell are added unless chosen otherwise
Surface mask (as painted)Pixel by pixel
Satellite image (under its modifiers)Pixel by pixel, a band at a time, so a large image is never held twice in memory
Mask and satellite modifiersBy id, tile by tile (128 px): both can work in one modifier, as with strokes of the clone brush, and only a tile both changed is asked. Their name, being shown and opacity merge apart from the pixels. Laid again over the merged pixels, so hiding one still shows what is under it; a patch carries only the tiles that changed
ObjectsBy a lasting identity, field by field: a move by one and a turn or new layer by the other both stay
Object layersBy name, with their owners
Terrain modifiers, roads, generatorsBy id, whole
MissionFile by file; text files (XML, JSON, scripts) line by line, as diff3 does, and lines changed in place one by one. Other files whole. The server's persistence is left out
Map settingsSetting by setting
Surface layers, shapes, key points, holes, road catalogWhole: taken over when only the other person changed them

A new satellite image of another size, a new terrain size or a new class name of the map cannot travel in a patch: the patch says so, and a full copy is sent instead.

Files ​

  • .team\state.json in the project: the team folder, the shared version and the patches merged.
  • .team\versions\: recent shared versions (up to twelve besides the base and any versions still needed by waiting patches). They share the satellite image with the project through hard links while it does not change; each version with a changed image takes as much space as the image.
  • .team\before-merge\: a copy of the project from before each merge (the newest three). To go back, open the project.dzwe in it and use Save as.

Undo starts anew after a merge, as after opening a project. While the merge writes the project, editing waits. Objects keep a lasting identity in objects.dzob (format 2); older projects get one when they are opened, and older versions of the editor cannot read format 2. New modifiers get random ids, so that two people never make the same one.