Info
Reality check
A window in the game that reminds the player how long they have played, with Continue, Stop and Account history. Every game has it.
Two ways to trigger it#
| Trigger | How | Message in the window |
|---|---|---|
| The game's own timer | Launch with irc_duration (seconds, 60–86,400; a value outside that range refuses the launch) and optionally irc_elapsed (seconds already played). The first window is due irc_duration − (irc_elapsed mod irc_duration) seconds after the game is ready, then every irc_duration seconds after each Continue. The game counts on a monotonic clock and checks every second and when the tab becomes visible again, so a hidden tab loses no time. | "You have been playing for N minutes.", where N counts from irc_elapsed. |
Your code 412 on a withdraw | Answer a withdraw with {"code": 412, "message": "…"}. The bet is voided without charge and without a rollback; the session stays open. | Your message as plain text: at most 500 characters, control characters removed, never HTML. |
The timer is a reminder kept in the game. The hard stop is yours: a withdraw answered 412 is refused whatever the game does. Use 412 if you need to enforce a limit.
In the game#
- From the moment a check is due, no new bet starts: the bet button is disabled, autoplay stops, and Crash drops bets queued for the next round. HiLo's Skip before a bet deals no card.
- Rounds in play go on: a Mines board, a Chicken round, a Tower round or a HiLo round can still be played and cashed out, and a live Crash bet can still be cashed out (its auto cash-out runs). The window never covers a control that moves money in an open round.
- The window opens as soon as nothing is in play, at once if nothing is.
- It cannot be dismissed: no close button, Escape and a click outside do nothing, and keyboard focus stays inside it.
| Button | What happens |
|---|---|
| Continue | We record the answer, send playerNotificationCallback with CONTINUE and wait for its first attempt; the window shows a busy state meanwhile. Then the window closes, a new period starts and the player may bet again (autoplay does not restart by itself). If the request fails, the window stays and says so. |
| Stop | We close the session, then send the notification with STOP. The game posts ifc.close to your page. Opened as a whole page with a return_url, the game goes there; otherwise it shows "Session ended". |
| Account history | Shown only when the launch had account_history_url. Opens it in a new tab; the window stays. |
Switching off the timer from your page#
If you run your own reality check on your page, send the command ifc.stop.internal.reality.check to the game. It clears the timer for the rest of the page's life and drops a window that is due but not yet open. Code 412 keeps working, and a window that is already open stays until the player answers.
gameFrame.contentWindow.postMessage({ cmd: 'ifc.stop.internal.reality.check' }, gameOrigin);A launch with a reality check#
{launch-url}/dice?user=u_829301&token=…¤cy=USD&operator=acme&irc_duration=3600&irc_elapsed=1500&account_history_url=https%3A%2F%2Fcasino.example%2FhistoryHere the first window opens 35 minutes after the game is ready (3600 − 1500 seconds) and says the player has been playing for 60 minutes; the next one comes 60 minutes after Continue.