Skip to content

Starting a Session & Testing ​

Before Testing ​

Confirm that:

  • crowd_control/common/app_id and crowd_control/common/game_id hold the Application ID and Game Pack ID from the developer portal,
  • a version of your effect pack is uploaded in the portal and set to Start Testing, see Submitting your Effect Pack,
  • the Crowd Control account you log in with in the game is on the game's Team in the portal,
  • crowd_control/common/effects points at your CCEffectEntries resource,
  • every effect has a unique id and a script implementing _trigger() (or _start() and _stop() for timed effects),
  • the Output panel shows no [CC] errors after connecting.

Test Without Crowd Control ​

test_effect() runs an effect through the same queue as a real request, without contacting Crowd Control. It works without a login or a session, which makes it useful for a debug menu:

gdscript
CrowdControl.test_effect(CrowdControl.get_effect("damageplayer"))

For these requests instance.is_test() and instance.is_local() return true.

Test With Crowd Control ​

Until a version of your pack is released, only your team and Crowd Control staff can start sessions with it. Invite teammates by their Crowd Control username under Team on the game's page in the portal.

  1. Run the game and connect.
  2. Log in when the browser opens.
  3. Start a session, or let auto_starting_session do it.
  4. Open the link returned by CrowdControl.get_interact_link(), or the effect menu of the account you logged in with.
  5. Buy each effect and check both what happens in the game and what the menu reports.

What to Check ​

Test more than the success path:

  • an effect bought while _can_run() is false: it is retried and then refunded,
  • a second request for a timed effect that is already running,
  • pausing and resuming while a timed effect runs,
  • stopping the session while effects are running or waiting,
  • every option and the quantity bounds of parameter effects,
  • hiding and disabling effects, before and during a session,
  • restarting the game: the stored login is reused,
  • losing the network connection for a moment: the plugin reconnects on its own.

Troubleshooting ​

SymptomCause
login_failed: "No Crowd Control application ID configured."crowd_control/common/app_id is empty.
login_failed: "Application not found"The Application ID is wrong.
"No CCEffectEntries resource found"crowd_control/common/effects does not point at a CCEffectEntries resource.
"Unknown effect ID ... received"The pack version being played contains an effect your game does not have. Upload your current effect pack.
session_start_failed: "No session was started for game pack ..."The Game Pack ID is wrong, no version of the pack is in testing or released, or the account you logged in with is not on the game's team.
session_start_failed, other messagesNot logged in or not connected. The message says which.
Effects are refunded after about a minuteThey never started: _can_run() stayed false, or the game was paused for the whole time.

Next Step ​

Continue with Submitting your Effect Pack.