Connector simulator
What the internal DROPSZ simulator checks, and the list of what your mod should test, using the dashboard test order.
DROPSZ uses an internal connector simulator: a fake connector that speaks the protocol the way a real mod should, and validates every request and response against the official schemas. The team uses it to prove that the backend accepts what it should accept and refuses what it should refuse.
The simulator is an internal tool
The simulator is part of the DROPSZ backend code and runs against a local backend. It is not distributed to the public, so you do not need it. This page shows what it covers, so you can use it as a checklist for your mod.
To test your mod, use the test order from the dashboard, with the server in sandbox mode, and the protocol examples, which have valid and invalid requests and responses.
What it guarantees on every call
- Format. Every request and every response goes through the protocol schemas. A deviation becomes an error with the schema and the field.
- Key. It checks the format of the
dzck_key before calling the API and splits the key intocredentialIdandcredentialSecret. - Transport.
POSTwith JSON only, credential in the body and never in the URL, a newnonceon every request (including on retry), andsentAtcorrected byserverTime. - Transport failure. A status other than 200 becomes a retry with a growing wait, never a refusal of an order.
- Single execution. Each
orderIdruns at most once: on redelivery, it resends the last ACK and does not run again. - Disk. It stores orders and pending ACKs, as the protocol requires.
- Local validation. Before running, it checks mode, deadline, action, parameters, limits, and target.
What your mod must prove
Each line below is a scenario that the simulator runs. Reproduce the equivalent in your mod.
Order scenarios
| Scenario | What happens | What your mod must do |
|---|---|---|
| Happy path | The order arrives and ends completed. | Run it and confirm with an ACK. |
| Failure | The run fails. | End failed with the reason EXECUTION_FAILED. |
| Local refusal | The action is turned off locally. | End rejected with the reason ACTION_DISABLED_LOCALLY. |
| Lost ACK | The ACK does not reach the backend. | Save the ACK to disk. On redelivery, resend the ACK and do not run again. |
| Offline target | The player disappears from the heartbeat for a few polls and comes back. | Do not lose the order. |
| Local pause | The heartbeat goes out with localPause.active. | Report the pause. The backend applies the emergency pause. |
See the states and idempotency in Orders: states, redelivery and idempotency and the pause in Modes and pause.
Attacks
In these scenarios the simulator tries to break the backend. The proof is the backend refusing. They show how the connector must react to each refusal.
| Attack | What is expected |
|---|---|
| Repeated nonce | The backend refuses (REPLAY_DETECTED). The connector uses a new nonce on every request. |
| Clock outside the window | The backend refuses (CLOCK_SKEW) and returns serverTime. The connector corrects the clock and retries. See Clock. |
| Invalid credential | CREDENTIAL_INVALID. |
| Revoked key | CREDENTIAL_REVOKED. |
| Old and new key during rotation | Both open a session on the same server, with the same lastSeq. |
| Server outside the application | SERVER_NOT_IN_APPLICATION. |
| Invalid session | SESSION_INVALID (or SESSION_EXPIRED, if the session expired). The connector opens a new session. |
| Unknown order | The ACK does not change the order. In the response ackResults, the item comes with result: "rejected" and code: "ORDER_UNKNOWN", without currentStatus. |
| Invalid transition | In ackResults, result: "rejected" and code: "INVALID_TRANSITION", with the order's currentStatus. |
| Order already final | In ackResults, result: "rejected" and code: "ORDER_ALREADY_FINAL", with the order's currentStatus. |
| Query string in the URL | The backend refuses (MALFORMED_REQUEST). |
The list of codes and what each one asks of the connector is in Reason codes.
A plan for your mod
- Open the session with the application's
dzck_live_key, with the server insandboxmode, and confirm that the dashboard shows Connected. - Send a test order and check that it ends
completed. - Cause a failure (a parameter the action does not accept, a turned-off action) and check the
failedorrejectedwith the right reason. - Take the server down in the middle of an order and check that, when it comes back, the mod does not run again the repeated order.
- Rotate the key and check that the mod keeps working with the new key, without losing orders.
- Revoke the key and check that the mod stops and tells the local admin. Then generate another one and paste it into the mod.
Action result
The result field of the completed ACK: a short summary of what the action did, like {"spawned": 3}. Format, limits, and what the platform does (and does not do) with it.
Test order from the dashboard
Send a test order, without money, to your own character and follow whether the mod ran the action.