Errors
Error codes and the most common messages, with fixes.
#Error codes
SDK errors carry a code when the cause is known:
| Code | Meaning | What to do |
|---|
PEERLESS_UNSUPPORTED | Not available here: standalone mode, or the game hasn't enabled the feature. | Hide the feature and keep playing. |
PEERLESS_REJECTED | The platform refused the request, for example an expired launch or missing access. | Show the message. Don't retry blindly. |
PEERLESS_TIMEOUT | No answer from the player within 10 seconds. | Retry later; keep the game running. |
#Common messages
| Message | Cause |
|---|
| Open this build through Peerless. | A platform call ran outside the PEERLESS player. |
| SDK mode cannot change during a launch. | init() was called again with a different mode. |
| Your identity adapter must return an existing or newly linked game player ID. | mapPlayerIdentity returned an empty value. |
| Join a room before sending events. | send() ran before join() finished. |
| Events must be under 16 KB. | A relay event was too large. |
| Use a ten-character room code. | join() received an invalid code. |
| This release needs Peerless SDK 2. | A multiplayer build bundled a protocol 1 SDK. Rebuild with the current SDK. |