Multiplayer tools and troubleshooting
What this page is for
Section titled “What this page is for”The add-on puts four commands in one menu and one window beside them. This page says what each does, then lists why a join is refused or a session ends, and what to try.
All four are under Tools > MrW > Intrigues > Multiplayer.
| Menu item | What it does |
|---|---|
| Session | Opens the window Intrigues Multiplayer on its Session tab. |
| Check Project | Opens the same window on its Checks tab and runs the project checks. |
| Build Asset Table | Builds the table of assets that may travel between machines. |
| Build Two-Player Sample | Builds a small two-player game into the sample’s Generated folder. |
sources: the MenuItem strings in MultiplayerWindow.cs (lines 57), ProjectChecks.cs (23), AssetTableBuilder.cs (23) and SampleBuilder.cs (79).
The Session window
Section titled “The Session window”The window has three tabs.
| Tab | What it shows |
|---|---|
| Session | The state (Hosting, or Client with its state), the game scene, the join progress, the host’s session settings, the seats and the bans. A short project check summary sits at the bottom. |
| Traffic | Messages and bytes per kind and connection, and counters: messages dropped, connections refused, join requests held back by limits, worlds sent. |
| Checks | The project checks, with a fix button where one is safe. |
With no session running, the Session and Traffic tabs say so and ask you to enter Play mode and host or join.
Seats. Each seat shows its number, whether the player is here or away, the character, the language, a short fingerprint of the seat key (never the key) and the address. On the host, each seat has Kick and Ban buttons. A kick removes the seat, and the player may join again as a new player. A ban asks whether to ban the key and the address, or the key only, and warns that an address ban shuts out everyone who shares it. Clear bans lifts all bans after a confirmation.
Traffic. Write log to Temp/ saves the recent messages. The toggle Include message bytes (debug) also keeps the first bytes of each message. The window warns that these can hold values the host hides from a player and your game’s own messages. Join requests and Accept messages, which carry keys and the password, are never kept. Do not share a file written with the toggle on.
Check Project
Section titled “Check Project”The check reads the open scenes, the asset table and the Build Settings, and shows one sentence per result. Each result is marked OK, Note, Check or Problem. A fix changes the object and says in the console what it did. It never saves a scene or a database: you save them. A fix is refused in Play mode, except selecting an object.
| What it checks | Marked as | Fix offered |
|---|---|---|
| NGO is installed | Note when it is not | None. A game with its own transport does not need it. |
| A NetworkManager is in the open scenes | Note when none | None. |
| NGO Enable Scene Management is off | Check when on | Turn Enable Scene Management off |
| NGO Connection Approval is on | Check when off | Turn Connection Approval on |
| A Player Prefab is set | Note when set | None. Intrigues needs none. |
| An asset table exists | Check when missing | Build the asset table |
| Table entries point at assets that exist | Check when not | Build the asset table |
| The table is up to date | Check when out of date | Build the asset table |
| The table holds no editor-only asset type | Check when it does | None |
| The table is rebuilt before a player build | Check when off and out of date, Note when off | Build the asset table, only when it is out of date |
| The scene has an Intrigue Manager | Check when none | None |
| The manager has a database | Problem when not | Select the manager |
| The game scene is in the Build Settings | Problem when not | Add the scene to the Build Settings |
| The game scene is saved | Check when not | None |
sources: Editor/Checks/ProjectCheckRules.cs lines 167 to 281.
Build Asset Table
Section titled “Build Asset Table”The table lists every Signal and Dialogue Style of the project, and every Sprite, AudioClip and mixer group the Intrigues databases and the styles use. Each entry has a stable key, the asset GUID, with the file ID added for a sub-asset. It is part of the content hash, so the host and the players must use the same table.
The command makes Assets/Intrigues Multiplayer Asset Table.asset when the project has none. A later build keeps the entries you added by hand and each Signal’s delivery. The delivery has three values: HostOnly (the default), EveryMachine and TakingPart, the machines of the players taking part in the scheme that sent it.
It is refused in Play mode, so it never changes a table a session reads. It saves only the table.
Before every player build. A build step rebuilds the table first, so the host and the players always match. A project without a table is left alone. If the table cannot be rebuilt, the build fails with a plain message. The table’s setting Skip Build Step (also the toggle Rebuild the asset table before a player build on the Checks tab) turns the rebuild off. The build then only warns when the table is out of date.
sources: Editor/AssetTableBuilder.cs, Editor/Checks/MultiplayerBuildStep.cs, Runtime/Presentation/AssetTable.cs.
Build Two-Player Sample
Section titled “Build Two-Player Sample”This builds a small two-player game into the sample’s Generated folder, and adds its two scenes to the Build Settings after the ones already there, the menu first. For a build, move Two-Player Menu to the top or untick the other scenes. It asks before it builds. It refuses in Play mode and while an open scene has unsaved changes. It closes the open scenes while it works and opens them again. It saves only what it made in that folder.
Open the scene Two-Player Menu, host in one copy, join in the other (127.0.0.1 on the same machine), and press Propose an Alliance. The other player answers in a dialogue. The README adds that the sample needs Input Handling set to Input Manager (Old) or Both.
Troubleshooting
Section titled “Troubleshooting”When a join fails, the add-on gives your game a SessionEndInfo: a Reason, and for a refusal a Refused value and the words. Your game shows them. The two-player sample does it in TwoPlayerBootstrap.Explain, in its own wording. The README describes the cases like this:
RefuseReason |
What it means and what to do |
|---|---|
VersionMismatch |
The host and the player run different versions of Intrigues or of the add-on. Update both to the same one. |
ContentMismatch |
The databases, the asset table or the characters of the game scene differ. Make the same build for everybody, and rebuild the asset table. |
WrongPassword |
The password is wrong. After several wrong tries the address waits a minute or more. |
Full |
Every seat is taken. Raise MaxPlayers or free a seat. |
ActorTaken |
Someone else plays that character. Choose another. |
UnknownActor |
The wanted character is not in the game, or none was named. |
NotAccepting |
Accepting is off. A player who already has a seat can still come back. |
TooManyJoins |
This player or address asked to join too often in a short time. Wait. |
Banned |
The host banned this player. |
NotAllowed |
The host’s rules refused this player, for example the character is not on the list of playable characters. |
Malformed |
The first message could not be read. Make the same build for everybody. |
Two more refusals come as connection ends with text: “nothing sent within 3 seconds” (the connection was open but silent, so try again) and “too many connections are waiting” (the host is busy, so try again).
When a session ends, the SessionEndReason says why.
| Reason | Meaning |
|---|---|
Stopped |
This machine ended it. |
HostLeft |
The host closed the session or the game. Players return to their menu. There is no host migration, so a new game needs a host again. |
ConnectionLost |
The connection broke or timed out (15 seconds without anything). The player can come back to the same seat. |
Refused |
The host refused this machine. See the table above. |
ProtocolError |
The other side sent something wrong, or the player’s world could not be kept in step with the host after several tries. Join again. |
Kicked |
The host removed this player. |
Replaced |
The same player joined again from another machine, and the newest connection took the seat. |
NotInGame |
The host loaded a game in which this player has no seat or character. |
Banned |
The host banned this player. |
LoadTimedOut |
The game scene did not finish loading in time (LoadSeconds, 120 by default). |
Two refusals carry words the player may see: “did not give this player’s seat” (the host at the address runs another game now, so the key was not sent; join as a new player) and “The host removed this player’s seat” (the host kicked the seat while the player was away; join again as a new player).
Other things to check
Section titled “Other things to check”- “refused” warnings in the console on a player’s machine. Some of your code changes the world there. Move it to the host. See Host-aware game code.
- Nothing happens on join. Run Check Project. The usual causes are NGO’s scene management left on, a missing database on the Intrigue Manager, and a scene that is not in the Build Settings.
- A key press does nothing. The key is reported only when an On Key Press node waits for that player’s character, or you listed it in
ReportableKeys. - A dialogue freezes the days. A dialogue open for a player holds the days for 30 seconds at most. See
PresentationSettings.CalendarHoldin the Settings reference. - Windows asks about the firewall when you host. The host listens on every network address, UDP port 7777 by default. Allow it for private networks or open the port yourself. The README says this was not checked: no Windows machine was used.
- The sample’s buttons do nothing. Its screens read the old Input Manager. Set Input Handling to Both.
Disagreement between the README and the code
Section titled “Disagreement between the README and the code”The README’s first troubleshooting table has a column “What the player sees” with phrases such as “Different version”. Those phrases are not in the add-on’s code. The code gives the RefuseReason values above, and the screen text is your game’s.
How it connects
Section titled “How it connects”- Quick start: the steps that use these tools.
- Settings reference.
- Limits and what is not verified.