Skip to content

Configuration

Every option of Cuxial Domino explained: tables, match rules, bets, cameras and tile placement.

Everything you can adjust lives in shared/config.lua. Restart the resource after any change.

Each table also carries its own settings, chosen when it is created in the admin tablet: style, number of players, game type, name and bet limits. Those are not in the config file.

Interface · ui ​

OptionTypeDefaultWhat it does
accentstring (hex)configurableAccent colour of the interface.

Staff · admin ​

OptionTypeDefaultWhat it does
commandstring'domino_admin'Name of the command that opens the admin tablet. The permission checked is always command.<this name>.
acestring'group.admin'Principal that receives the permission automatically when the resource starts. Use the full principal name.

See Commands & permissions for how the permission is checked.

Tables · table ​

OptionTypeDefaultWhat it does
joinDistancenumber2.0Metres from a chair at which the "Sit down" interaction is available. Measured to the chair, not to the centre of the table.
deleteDistancenumber6.0Metres from the centre of the table within which staff can delete it from the tablet.
spawnForwardnumber1.7Metres in front of the staff member where a new table is placed.
minDistanceBetweennumber8.0Minimum metres between two tables. A new table closer than this is rejected.
sitUiDelayMsnumber3500Milliseconds between sitting down and the table menu opening. Matches the sit animation.
surfaceOffsetnumber | nilnilHeight of the playing surface above the origin of the table model, in metres. nil measures it automatically.
modelstablethree stylesTable models per style: luxury, wood and classic. Each style lists four models, in order: 1, 2, 3 and 4 players.

A replacement table model must be streamed by the server and carry the bones Chair_Base_01 to Chair_Base_04. Without them players cannot sit.

Match · match ​

OptionTypeDefaultWhat it does
targetPointsnumber101Points that win a classic match.
fivesTargetPointsnumber150Points that win an All Fives match.
roundHoldMsnumber3500Milliseconds the round summary stays before the next round starts on its own.
finishHoldMsnumber3500Milliseconds the match winner is shown before returning to the table menu.

Bonuses · match.dominican ​

Extra points for classic matches. They never apply to All Fives.

OptionTypeDefaultWhat it does
enabledbooleantruetrue enables the three bonuses below and winnerOpens. false disables them all.
roundPassnumber25Points when you play, every other player passes and the turn comes back to you. 0 removes this bonus.
openingPassnumber25Points when you open the round and the next player cannot play. 0 removes this bonus.
capicuanumber25Points when you go out with a tile that fitted both ends and is not a double. 0 removes this bonus.
winnerOpensbooleantruetrue: the winner of a round always opens the next one. false: the winner opens too, except after a blocked round, which is opened by the last player who placed a tile.

Turn · turn ​

OptionTypeDefaultWhat it does
secondsnumber20Seconds per turn. When they run out a tile is played for the player; with nothing to play, tiles are drawn until one fits, or the turn is passed.
afkStrikesnumber3Turns in a row that run out before the player is removed from the table. Playing or drawing resets the count.

AI · ai ​

The AI only plays on 1 player tables.

OptionTypeDefaultWhat it does
thinkMinMsnumber3000Shortest time the AI takes to move, in milliseconds.
thinkMaxMsnumber7000Longest time the AI takes to move, in milliseconds.

Bets · betting ​

OptionTypeDefaultWhat it does
enabledbooleantruetrue: every match on a table of 2 or more players is played for a bet. false: matches start with a ready check and no money.
accountstring'bank'Account the bet is charged to and paid from. 'cash' uses cash; any other value uses the bank.
minnumber100Lowest bet allowed on any table.
maxnumber100000Highest bet allowed on any table.
acceptSecondsnumber15Seconds the other players have to accept a proposed bet. Whoever does not accept in time is removed from the table.

How a bet works:

  1. With every seat taken, one player enters an amount and starts. That player is the host of the bet.
  2. The others accept within acceptSeconds.
  3. Everyone is charged the same amount. The winner of the match takes the whole pot; in team tables each winner gets half.
  4. The pot is returned to every player when the table is deleted, when a player leaves and two or more remain, or when the server restarts with a match in progress. If only one player remains, that player wins the pot.

The bet limits of a table can only narrow the global ones. A table with a minimum below min or a maximum above max uses the global value. 1 player tables never have bets.

Player hand · hand ​

Where your own tiles sit on the table in front of your seat. Calibrate these values in game with /domino_tune (see Commands & permissions).

OptionTypeDefaultWhat it does
distancenumber0.68Metres from the centre of the table towards your chair.
spacingnumber0.04Metres between tiles.
flatbooleantruetrue lays the tiles face up. false stands them up facing you.
liftnumber0.22Height of standing tiles.
pitchnumber90.0Pitch of standing tiles, in degrees.
rollnumber-90.0Roll of standing tiles, in degrees.
yawOffsetnumber0.0Extra turn for standing tiles. Change it if the face does not look at you.
flatLiftnumber0.066Height of flat tiles.
flatPitchnumber-45.0Tilt of flat tiles, in degrees. A positive value raises the far side.
flatRollnumber-5.0Roll of flat tiles, in degrees.
flatYawnumber90.0Turn of flat tiles, in degrees.
hoverLiftnumber-0.02Height change of the tile under the cursor.
pickRadiusnumber0.04How close the cursor must be to pick a tile, as a fraction of the screen height.

Sounds · sfx ​

OptionTypeDefaultWhat it does
enabledbooleantruetrue plays a sound each time a tile is placed. false mutes it.
soundsstring[]three soundsNames of the sounds, picked at random without repeating the last one.
maxDistancenumber10.0Metres from the table at which the sound is heard.
baseVolumenumber0.55Volume at the table. It fades with distance.

Camera · camera ​

OptionTypeDefaultWhat it does
defaultstring'board'Camera used when a player sits down. 'board' = from above, 'first' = first person, 'third' = third person. Players can switch during the game.
switchMsnumber550Milliseconds of the transition between cameras.
zoomSpeednumber9.0Speed of the zoom. Higher is faster.
firstZoomFovnumber55.0Field of view in first person while the right mouse button is held.

Board view · camera.board ​

The camera from above is shifted towards your seat, so your side of the table is at the bottom of the screen.

OptionTypeDefaultWhat it does
heightnumber1.5Metres above the table.
backnumber1.35Metres towards your chair.
fovnumber48.0Field of view. Raise it if the table does not fit; lower it to get closer.
lookZnumber-0.02Height of the point the camera looks at, relative to the table surface.
zoomFovnumber26.0Field of view while the right mouse button is held.
transitionMsnumber600Milliseconds of the transition when the camera is first set.

Board layout · layout ​

Geometry of the line of tiles on the table.

OptionTypeDefaultWhat it does
tileStepnumber0.055Metres between the centres of two regular tiles.
doubleStepnumber0.025Extra metres taken by a double, which is placed crosswise.
zOffsetnumber0.02Height of the tiles above the surface.
branchGapnumber0.006Gap between branches.
segmentMinnumber2Tiles in a row before the line may turn.
segmentMaxnumber5Most tiles in a row in one straight stretch.
maxTurnsnumber1Turns allowed per branch.
cornerFactornumber0.25Spacing factor applied at the corners.
propInvertedbooleanfalseSet it to true if regular tiles show their pips the wrong way round. They are turned 180°.
snapRadiusnumber0.14Metres from an open end within which a dragged tile is accepted. Outside it the tile is not dropped.
dragLiftnumber0.03Height of a tile while it is dragged.

Flat board · dui ​

Draws the board as a flat texture on the table instead of 3D tiles.

OptionTypeDefaultWhat it does
enabledbooleanfalsetrue draws the board as a texture and turns the 3D tiles on the board off. false uses 3D tiles.
sizenumber1.3Side of the square, in metres.
resolutionnumber1024Resolution of the texture, in pixels.
zOffsetnumber0.012Height above the surface.
rotationnumber0.0Degrees to turn the texture if it does not line up with the table.
mirrorbooleanfalsetrue mirrors the texture.
renderDistancenumber18.0Metres within which the texture is drawn.

Calibrate it in game with /domino_dui (see Commands & permissions).

Security · security ​

OptionTypeDefaultWhat it does
maxEventsPerSecondnumber10Events per second the server accepts from one player. Anything above is dropped.

Common changes ​

Play without money ​

shared/config.lua
lua
betting = {
    enabled = false,
    -- ...
},

Bet with cash and lower limits ​

shared/config.lua
lua
betting = {
    enabled = true,
    account = "cash",
    min = 50,
    max = 5000,
    acceptSeconds = 15,
},

Shorter matches without bonuses ​

shared/config.lua
lua
match = {
    targetPoints = 50,
    fivesTargetPoints = 100,
    dominican = {
        enabled = false,
        -- ...
    },
    -- ...
},

Let another group open the tablet ​

shared/config.lua
lua
admin = {
    ace = "group.moderator",
    command = "domino_admin",
},

© Cuxial