Choose which documents Game Sync sends to your game
The case: Captain Mara speaks in the Stowaway dialogue. She is a member of the Harbour Watch, and your game shows the faction's crest next to her lines. The Harbour Watch is never mentioned in Stowaway, so its synced file doesn't carry it yet.
The short answer: in the game's Game Sync settings, under Document export, pick Member of in Export related documents. The next sync sends the Harbour Watch with every dialogue Mara is in.

1. Open the game's sync settings
- Open your world's Integrations page.
- Under Game Sync, click Edit on the game (or Set up sync if it doesn't sync yet).
- Scroll to Document export, between Files and Schedule.
2. Send related documents
- Click Relation types under Export related documents.
- Pick Member of / Members. A directed relation type shows both of its sides; a mutual one, like Ally, shows its name once.
- Click Save.
The summary at the bottom of the dialog now says what each dialogue carries, for example: It also carries documents linked to those by Member of / Members.
3. Choose whether mentioned documents go
Export mentioned documents is on by default. It sends the documents mentioned in a line and the documents added to a node under Connected documents.
Turn it off when your game only needs the people who speak, plus the related documents you picked. Each dialogue then carries its speakers, and documents related to them.
Test it
- Press Sync now on the game.
- Open the pull request LoreHub updates in your repository and find the Stowaway file.
- Mara is there as a
@lorehub/document, and so is the Harbour Watch, with its template and exported fields.
How related documents are picked
- Speakers always go. No setting removes the speaker of a node from its dialogue's file.
- One hop only. A related document is directly linked, by a type you picked, to a document the dialogue already carries. If the Harbour Watch is Member of the City Guard, the City Guard doesn't come along with Mara.
- Either direction. A relation counts from both of its sides: picking Member of also sends Mara along with a dialogue that mentions the Harbour Watch.
- Only what you picked. Relations of other types, like Ally, send nothing until you add them.
- Each document once. A document that is both mentioned and related is in the file once.
- Defaults keep what Game Sync sent before: mentioned documents on, no related types.
Export JSON in the dialogue builder doesn't change: it still has every document in the world. relations.json
in the Game Sync folder doesn't change either: it still has all the world's relations.
Variations
Choose a character's fields. Which fields each document carries is set per field. See Send a character's fields to your game.
In your game
Related documents are @lorehub/document resources in the dialogue's file, the same as mentioned ones, see
Document v1.1. To know how Mara and the Harbour Watch are related,
read relations.json, see Relations v1. In the OSF format, related
documents are listed in documents.osf.
Did this answer your question?
More in Export and game engines
Still need help?
Can't find what you're looking for? Ask us, we read every question.