Publishing the map
Publish turns the project’s edits into the server files: the OTBMs and the respawn, house and zone XMLs. Only the Editor and the Owner publish. If the Owner turns on review, the Editor requests the publication and the Owner decides.
The Publish… button sits in the footer of the layers panel, next to “N unpublished changes”. Undoing does not count as a change in that number.
Step 1: choose and generate
Section titled “Step 1: choose and generate”The Publish changes dialog shows:
- Destination. With no destination configured, the publication generates a zip to download. The Owner can configure an SFTP destination: the Set up SFTP button asks for server, port, user, folder, and a password or key, and Test connection shows the server key’s fingerprint for you to confirm.
- What to publish. The whole map (the default) or Only areas, described in Publishing only a region.
- Tiles that already exist go to their layer, with the count per layer.
- New tiles: the editor asks which layer to write them to, an existing one or a New layer. Layers whose name starts with
#do not work, because the server ignores them. New towns, waypoints, houses and respawns also ask for the layer. A new zone goes to the main map. The Remember the choice in this project checkbox keeps the layer. - Map diagnostics (optional). Runs the problem scan on the whole map and counts errors and warnings. It does not block the publication.
- Version name (optional). For example, “Before the Halloween event”. The name appears in the versions list.
Generate files waits for the upload of your latest edits to finish, because the publication only sees what has already reached the server.
Publishing only a region
Section titled “Publishing only a region”Under What to publish, choose Only areas to publish part of the map and leave the rest as it is in the last published version, even if it was edited afterwards.
- Click Draw on the map. The dialog hides and a bar appears over the map. Select an area with the selection tool (M; Shift adds rectangles) and click Add selection as area. Repeat for each floor or region and click Back to Publish.
- Or click Only where I edited: Orbiz groups your unpublished edits into a few rectangles and fills the list. You can remove the ones you do not want, or draw more.
- The list shows each area (floor, corners and size) with Remove. The areas also show on the map, in purple.
Only the tiles inside the areas go out. Each area gets 1 tile of margin on every side, because the automatic border of a tile painted at the edge lands on its neighbour; in the margin only the tile that got an edit made together with a tile inside goes out. Towns, waypoints, houses, zones and respawns wait for the whole-map publication. So does an imported map that no publication has delivered yet: publish the whole map first.
Conflicts
Section titled “Conflicts”Before generating, Orbiz checks whether someone else edited, and has not yet published, tiles this publication would carry:
- Inside the area: their edits would go out together with yours.
- In the 1-tile margin, outside the area, but only tiles that got the edit together with a tile inside (the border of one of your paintings). A margin tile that someone touched alone, or more than one tile away from the area, does not go out and does not count as a conflict.
If there are conflicts, the conflicts screen opens, grouped by author, with Go to on each tile (the dialog hides so you can look at the map; Back to Publish brings it back). For each tile, or in bulk for all of an author’s tiles, choose Include or Leave out. What is left out stays unpublished. With no decision, the tile goes in. Confirm and publish sends the decisions.
The layer for new items
Section titled “The layer for new items”New tiles that already went out, in a whole-map or a regional publication, stay on the layer they went out on. So while something new has been published, a regional publication asks for the layer and only accepts the same one as last time. To change layers, publish the whole map.
The footer counter
Section titled “The footer counter”The number of unpublished changes counts per tile. After a region publication it subtracts what went out and shows only what is still missing. A whole-map publication still publishes everything up to the last edit.
What is generated
Section titled “What is generated”Each publication starts from the imported files and applies the whole edit history, so it does not depend on earlier ones. The same edits give the same result.
- Only the layers with changes are generated. A file with no changes stays the same, byte for byte.
- A new layer becomes
custom/<name>.otbm, with the four XMLs beside it:<name>-house.xml,<name>-monster.xml,<name>-npc.xmland<name>-zones.xml. - An imported map goes out whole in the first publication that includes it, even without edits.
- The OTBM is only released after being checked against the server’s reading rules. If the server would not load the file, the publication fails and says why.
- If an erased tile would reveal, in the game, the tile from a lower layer, the summary warns you.
Step 2: follow and take it to the server
Section titled “Step 2: follow and take it to the server”A publication runs on the Orbiz server. You can close the dialog: it keeps going, and the result stays in the list. The screen shows the queue, the current stage, the error in Portuguese if it fails, and Try again.
When it is ready, the result shows:
- What changed since the previous publication (or since the import), per layer: tiles, items, towns, waypoints, respawns, houses and zones.
- The list of files, with size and a standalone Download.
- Download zip. The paths are the server’s: extract at the root of the server folder and the files overwrite those with the same path.
- Write to the server folder… (Chrome and Edge only). Orbiz compares each file in the folder with what it has, does not rewrite what is already identical, and asks for confirmation for what changed outside Orbiz or does not exist in the folder. It checks the size and hash of what it downloaded, never deletes anything and stops at the first error.
- With an SFTP destination, Orbiz sends only the files that changed and keeps the previous version of each one in the destination’s
bkp/folder.
With no destination configured, nothing goes to the game server.
Previous publications
Section titled “Previous publications”Orbiz keeps the 3 most recent ready publications of each project. They appear under Previous publications, with Open, and in the versions tab.
Only one publication runs at a time in each project. While it runs, you cannot upload new sources.