Players need no commands: they sit at a table and play. The commands are for staff and for calibrating the script.
Commands
| Command | Who | What it does |
|---|---|---|
/domino_admin | Staff with the ACE command.domino_admin | Opens the admin tablet. The name can be changed in admin.command. |
/domino_tune | Anyone seated at a table; staff when not seated | Starts 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 print | Everyone | Prints the current camera and hand values to the client console (F8), ready to paste into shared/config.lua. |
/domino_tune preview | Everyone | Shows or hides a sample hand of tiles. |
/domino_tune stop | Everyone | Ends the adjustment, stands you up and deletes the test table. |
/domino_dui <option> <value> | Everyone | Adjusts the flat board texture. Only useful with dui.enabled = true. |
/domino_dragdebug | Everyone | Turns 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
| Option | Value | What it does |
|---|---|---|
rotation | degrees | Turns the texture. |
mirror | 0 or 1 | Mirrors the texture. |
size | metres | Side of the square. |
z | metres | Height above the surface. |
show | none | Redraws with the current values. |
Admin tablet
| Tab | What you can do |
|---|---|
| Tables | See every table with its distance, teleport to one, or delete it. To delete you must be within table.deleteDistance metres of the table. |
| Create | Choose 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)
| Key | What it does |
|---|---|
| ← → | Changes the parameter. |
| ↑ ↓ | Changes the value. Hold Shift for steps five times larger. |
| Enter | Prints the values to the client console (F8). |
| Backspace | Leaves the adjustment mode. |
At the table
| Key | What it does |
|---|---|
| Mouse drag | Picks a tile from your hand and drops it on an open end of the line. |
| ← → or A D | Selects a tile in your hand. |
| Enter | Plays the selected tile. |
| Space | Draws a tile when you have nothing to play. |
| Right mouse button (hold) | Zooms in. In first person it also lets you look around. |
| Esc | Closes 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
| Feature | Requirement |
|---|---|
| Sit and play | None |
| Admin tablet: open, create and delete tables | ACE 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:
add_ace group.admin command.domino_admin allowadmin.ace is used as written, so write the full name of the principal. The default 'group.admin' gives the permission to the admin group.
