Skip to content

Commands & permissions

Commands, keys and permissions of Cuxial Domino: the admin tablet, calibration tools and how to play.

Players need no commands: they sit at a table and play. The commands are for staff and for calibrating the script.

Commands ​

CommandWhoWhat it does
/domino_adminStaff with the ACE command.domino_adminOpens the admin tablet. The name can be changed in admin.command.
/domino_tuneAnyone seated at a table; staff when not seatedStarts or stops the live adjustment of the board camera and the player hand. Not seated, it creates a 1 player test table in front of you and sits you at it, which needs the staff permission.
/domino_tune printEveryonePrints the current camera and hand values to the client console (F8), ready to paste into shared/config.lua.
/domino_tune previewEveryoneShows or hides a sample hand of tiles.
/domino_tune stopEveryoneEnds the adjustment, stands you up and deletes the test table.
/domino_dui <option> <value>EveryoneAdjusts the flat board texture. Only useful with dui.enabled = true.
/domino_dragdebugEveryoneTurns drag traces in the client console on or off.

/domino_tune, /domino_dui and /domino_dragdebug only change what the player who runs them sees. Nothing is saved: copy the values you like into shared/config.lua.

Options of /domino_dui ​

OptionValueWhat it does
rotationdegreesTurns the texture.
mirror0 or 1Mirrors the texture.
sizemetresSide of the square.
zmetresHeight above the surface.
shownoneRedraws with the current values.

Admin tablet ​

TabWhat you can do
TablesSee every table with its distance, teleport to one, or delete it. To delete you must be within table.deleteDistance metres of the table.
CreateChoose the style (luxury, wood or classic), the players (1, 2, 3, 4 or 4 in teams), the game type (classic or All Fives), a name and the minimum and maximum bet. The table is placed in front of you, facing the way you face.

Deleting a table stands up everyone seated at it and returns any bet already charged.

Keys ​

Adjustment mode (/domino_tune) ​

KeyWhat it does
← →Changes the parameter.
↑ ↓Changes the value. Hold Shift for steps five times larger.
EnterPrints the values to the client console (F8).
BackspaceLeaves the adjustment mode.

At the table ​

KeyWhat it does
Mouse dragPicks a tile from your hand and drops it on an open end of the line.
← → or A DSelects a tile in your hand.
EnterPlays the selected tile.
SpaceDraws a tile when you have nothing to play.
Right mouse button (hold)Zooms in. In first person it also lets you look around.
EscCloses the leave confirmation or the admin tablet.

The camera buttons on screen switch between board view, first person and third person.

How a table works ​

  • Seats. 2 player tables use opposite chairs. On a 1 player table you sit and the AI plays against you. In team tables, opposite seats are partners.
  • Starting. Every seat must be taken. With bets enabled, one player proposes the amount and the others accept; without bets, every player confirms they are ready.
  • Dealing. Seven tiles each. In All Fives with three or four players, five tiles each.
  • Opening. In classic, the highest double opens the first round and must be the first tile. In All Fives, the player with the highest double opens with any tile. If nobody holds a double, the heaviest tile takes its place. From the second round, the winner of the last round opens with any tile.
  • Scoring. The winner of a round scores the pips left in the other hands. A blocked round goes to the hand with the fewest pips. In All Fives, a move that leaves the open ends adding up to a multiple of five scores that total at once, and round points are rounded to the nearest five.
  • Match. Rounds follow one another until a player or team reaches the target score.
  • Leaving. If a player leaves during a round and two or more remain, the round is cancelled and bets are returned. If only one remains, that player wins.

Permissions ​

FeatureRequirement
Sit and playNone
Admin tablet: open, create and delete tablesACE command.<admin.command>, by default command.domino_admin

When the resource starts, the permission is granted to the principal named in admin.ace. To grant it yourself, add a line to server.cfg:

server.cfg
cfg
add_ace group.admin command.domino_admin allow

admin.ace is used as written, so write the full name of the principal. The default 'group.admin' gives the permission to the admin group.

© Cuxial